I like the idea of a so called session-ID, which is sent to the browser and returned back for auth. But can I store more data in serverside session variables, for subsequent sessions to access? I'm using PHP.
...
I just don't get it..
I'm planning to get scenario like this: username.mydomain.com = mydomain.com/user.php?user=username
Well, let's not go that far yet because this wildcard DNS is making me insane!! :/
I have DNS record
* A my-ip-address
And I have in my vhost file
ServerAlias *.mydomain.com
But it just doesn't work at all.....
Still having RegEx issues.. Need to match the following characters
a-zA-z9-0 , . ' " ( ) _ - : (SPACE)
Not all the values will have all these but could have them. I have everything withing but the parentheses, Single and Double Quoytes
/^[\w. ,\/:_-]+$/
UPDATE:
I got it working with this: "/^[\w. ,:()'\"-]+$/"
$val_1 = "Abh acb 1...
I have an array of arrays, with the following structure:
array(array('page' => 'page1', 'name' => 'pagename1')
array('page' => 'page2', 'name' => 'pagename2')
array('page' => 'page3', 'name' => 'pagename3'))
Is there a built-in function that will return a new array with just the values of the 'name' keys? so I'd get:
arra...
I built a site in PHP 5 and MySQL with a table that keeps track of scheduled photo shoots. I want to push out a feed of those scheduled "events" into an ical file.
I originally asked this question and got a good answer from S. Gehrig. I got a sample ical file working, and updating regularly in Google Calendar whenever I manually adjuste...
How do I write code such that I can put things in a set and only the unique entries are kept?
for($i=0;$i<$count;$i++) {
$variable->put($some_object)
}
...
I need help with posting a value to a php script from a js function called by an onclick event in an HTML page. Any help would be appreciated.
I have a link to the Google hosted jQuery library.
I am rendering a page with php with a submit button whose onclick action is seen below as updateSession() which posts a value to a php script t...
I Want to add Options to Select Box using jquery, but my options comes from MYSQL databse table
here is method what i want:
function add_inst(va) {
alert(va);
}
<select id="test">
</select>
I want to select values from MySQL table with match value of va, then add these result as options to select id="test".
For example if i pas...
I have a json feed from zoho : here, you can acces the same file unencrypted here
I like to be able to display and parse the data from that feed int html
I have ask a similar question yesterday, but the solution was a javascript, and having java disable client side can lead to nothing to display... so i will go with php. I can parse a v...
protected function _initRoutes()
{
$this->router = $this->frontController->getRouter();
$route = new Zend_Controller_Router_Route(
':username',
array(
'module' => 'default',
'controller' => 'view',
'action' => 'profile',
'username' => ':username'
)
...
Are session variables in the global $_SESSION array shared across scripts? Lets say I place a value into $_SESSION['box'], can another simultaneously running script store another value with the same key? Will they conflict? Or will it manage the actual variable values based upon the session ID from the client?
...
Hey
Does anybody know how to make text appear between two lines of text(So the bottom text slides down slowly to make room). Using php and ajax? no flash!
ie
some text here
some text here
click and then:
some text here
more here
more here
some text here
...
I don't know how about you, but I'm not very fond of the way arrays are constructed in PHP. I have this feeling that I use array keyword way too often and that array($k => $v) or e.g. array($k1=>array($k2=>$v)) are way too long given usefulness of maps.
(Moreover, recently I've learned JS way of doing it and now I really am jealous)
The...
So it seems that cakePHP tables need a field called "name" or else the id number is displayed while testing out table relationships in the scaffold. Is there a way around this? instead of 'id' 'name' 'last_name' in my table, I want 'id' 'first_name' 'last_name'. I have to have a "name" field for every table in order to display the pr...
I am not looking for PHP frame work books, they just make me confuse. I like to learn how to design my own MVC framework for PHP.
...
Suppose you have a class A with a private property $a, and a class B which inherits from that.
If I use ReflectionClass::getProperty on an instance of B, I get a fatal error, that the property doesn't exists. This makes sense, as it is it a private method. However, ReflectionClass::hasProperty returns true, nonetheless. Is this a bug?
...
I've read about APC that it speeds up multiple php file sites. So I have this particular project in PHP with many files and i discover that require_once and parsing only class definitions (without executing them) takes most time.
So I've installed APC on my CentOS 5 server. I moved apc.php to my webserver and it displays
Hits: 1 (50....
Hi,
I have 3 php files; pie.php, bar.php and line.php. These when run individually give output as a webpage. If all are run, 3 separate webpages open up displaying a pie chart, bar chart and line graph.
What i want to do is to divide a single webpage into three part and show each individual php file's result (i.e. the graphs) in one of...
I have two scripts that are identical but one works on my home testing server and when uploaded to my hosting provider (site5) it times out.
ht3k.homedns.org/hmm/example.php (is working on my home server)
74.54.165.77/~cvxadmin/pvpgnserverscript/example.php (isn't working on my site5 account)
I'm stumped, what can I do to fix this?
...
So I have been working on a project for a client on their current web site which has been in existence for quite some time. The version of PHP used is 4.4.7, and I am not in a position to ask them to upgrade. (The system is old and it could break something) This past week I made some changes to my project, everything worked fine cooki...