Hi,
Its not explicitly cross domain sessions that I am looking for, but its the easiest way to explain what it is I want.
I have a system which creates websites.
The websites are hosted across lots of different servers.
Users can create their account and then they can create lots of websites.
They could create
www.mysite.com
subdom...
i am getting
orm:schema-tool => The supplied
configuration uses the annotation
metadata driver. The 'class-dir'
argument is required for this driver.
when i try to follow the doctrine 2.0 alpha (i know its alpha) mini tutorial
i am on windows 7 x64, wamp 2. i ran
php.exe doctrine.php orm:schema-tool --create
...
I am creating a game which uses the sharedObject to save each players progress locally. It also connects to a central database to create an online scoreboard. When a user inserts a score for the first time a unique ID is sent out of the database to the swf and saved as part of the sharedObject data.
Absolutely everything works and the ...
How can I do one login script that uses cookies for login and for example I want to check if the visitor is logged in without querying the database.
For example I want on frontpage to show some menu's only for logged in users .
so I must do if(isLoggedIn()) show the menu . But that's a query everytime the page loads so it's not very go...
I'm needing to load an XML document into PHP that comes from an external source. The XML does not declare it's encoding and contains illegal characters like &. If I try to load the XML document directly in the browser I get errors like "An invalid character was found in text content" also when loading the file in PHP I get lots of warnin...
im building a forum and now im gonna code the thread page.
is there any open source thread script to use that resembles stackoverflow:s thread page with the actual thread, the replies and the comments? one which you could customize?
i bet a lot of users have created such scripts, would be great to not having to reinvent the wheel.
or ...
I need to exclude first id entry, and display the rest on my wordpress, I have never used sql before.
$all_users_id = $wpdb->get_col( $wpdb->prepare("SELECT $wpdb->users.ID FROM $wpdb->users ORDER BY %s ASC", $sort ));
...
I followed the folling tutorial: http://mel.melaxis.com/devblog/2005/08/06/localizing-php-web-sites-using-gettext/
about Php gettext extension (I unchecked the comment in the php.ini)
The gettext is activated but it doesn't show up the translation (German).
Here are the files:
C:\wamp\www\php-test\test.php:
<?php
require_once("local...
Hi !
I'm using GWT to dynamically load html snippets from php script. I define the snippet i want the php script to return in the url (test.php?snippet=1). Now in GWT i have a function "getSnippet(int snippet id)" that uses a RequestBuilder to retrieve the snippet. It works perfectly fine, but it bothers me that i have to create a new R...
I am creating a simple Web Application in PHP for my college project. I am using the MySQL database.
I connect to the database in login.php. After connection I assign the connection to $_SESSION["conn"] and then redirect to main.php.
In main.php I write $conn = $_SESSION["conn"]. But the connection in $conn does not work.
I thought th...
I have a web app which is currently not rendering in IE. For the time being, I want to check for IE and display another page for IE visitors. How can I do it? Do I need javascript or PHP?
...
Can PHP sessions be edited like cookies? Or they're stored on the webhost?
...
How to do the following:
I want to have a link [upload image] which pop ups modal form,
and when user populates it, the form is processed.
(The question is not about uploading, this may be a contact form or anything).
My problem is, how to display the form and server side validation messages when validation fails.
I have found this tu...
is there an easy way to crawl open source php forums and put them in categories in my own forum, eg. "windows", "mac" and so on?
...
I have the following code
//check out the tags, if it allready exist update with 1 if not create new record
$tag_item = "";
$tags = explode(" ", $tags);
foreach($tags as $tag):
if(!empty($tag) && $tag != " "):
$t_sql = mysqli_query($link, "SELECT id, times FROM shop_tags WHERE tag='".$...
all external URLs look like
'module/action?key1=param1'. No
customization possible--but it's fast.
The difference is that the first uses
PHP's GET, and the second uses
PATH_INFO.
I've seen PATH_INFO several times,but still don't know what exactly it is?
...
I have the below code in a page.
<?php if($this->getMode()!='grid'): ?>
<?php $_iterator = 0; ?>
<div class="listing-type-list catalog-listing top10full" onclick='window.open("http://google.com")'>
<?php
$i = 0;
foreach ($_productCollection as $_product):
$i++;
?>
<div class="listing-number"><p class="listing-position"><?ph...
I currently have a problem reading in XHTML as the XML parser doesn't recognise HTML character entities so:
<?php
$text = <<<EOF
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Entities are Causing Me Problems</title>
</head>
<body>
<p>Copy...
Currently, I'm grabbing a remote site's XML feed and saving a local copy on my server to be parsed in PHP.
Problem is how do I go about adding some checks in PHP to see if the feed.xml file is valid and if so use feed.xml.
And if invalid with errors (of which sometimes the remote XML feed somes display blank feed.xml), serve a backup...
I would like to add [ and ] in my validation Regex that already accept all numeric, underscore, period and alphanumeric character.
Here is the regex working:
$regex = "^[._a-zA-Z0-9-]*$";
But when I try :
$regex = "^[.\\[\\]_a-zA-Z0-9-]*$";
or
$regex = "^[.\[\]_a-zA-Z0-9-]*$";
It doesn't work (I have read to double escape in...