[PHP] Problem with sessions.
Hello All; Please forgive me if I am repeating an often asked question, but I am having a problem with sessions. I simply cannot get them to work. The sample code I provide works on another server perfectly, this is the first page: Session variables set!"; echo "go to next page"; ?> When called, the following file arrives in /tmp: sess_f9c5e87b35ae66eac64a9a346321b269 name|s:5:"hilde";pass|s:10:"mypassword"; So obviously the session file is being created. However, when I go to page2.php?PHPSESSID=f9c5e87b35ae66eac64a9a346321b269 Which has this code: The password of $name is $pass "; ?> I get "The Password of is " As a response. Both pages work perfectly on another server, so I am having trouble finding the problem, especially since the session file is actually created in /tmp My PHP.ini file is standard to a RedHat RPM install, but I will include it as an attachment. Any help would be greatly appreciated! Mike Hillyer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Problem with sessions.
I have recieved a private response, it appears my system had register_globals off and the other server would have had it turned on. The proper usage was actually $_session["name"] and I shall be using that. This was my first use of the PHP mailing list and I am very impressed and pleased with all the quick and helpful responses. Thank you all. Mike Hillyer -Original Message- From: Quentin Bennett [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 19, 2002 5:24 PM To: PHP GENERAL LIST Subject: RE: [PHP] Problem with sessions. Hi, Is your 'other server' identical (Web Server, PHP Version, register_globals setting)? Quentin -Original Message- From: Mike Hillyer [mailto:[EMAIL PROTECTED]] Sent: Friday, 20 December 2002 12:43 p.m. To: PHP GENERAL LIST Subject: [PHP] Problem with sessions. Hello All; Please forgive me if I am repeating an often asked question, but I am having a problem with sessions. I simply cannot get them to work. The sample code I provide works on another server perfectly, this is the first page: Session variables set!"; echo "go to next page"; ?> When called, the following file arrives in /tmp: sess_f9c5e87b35ae66eac64a9a346321b269 name|s:5:"hilde";pass|s:10:"mypassword"; So obviously the session file is being created. However, when I go to page2.php?PHPSESSID=f9c5e87b35ae66eac64a9a346321b269 Which has this code: The password of $name is $pass "; ?> I get "The Password of is " As a response. Both pages work perfectly on another server, so I am having trouble finding the problem, especially since the session file is actually created in /tmp My PHP.ini file is standard to a RedHat RPM install, but I will include it as an attachment. Any help would be greatly appreciated! Mike Hillyer The information contained in this email is privileged and confidential and intended for the addressee only. If you are not the intended recipient, you are asked to respect that confidentiality and not disclose, copy or make use of its contents. If received in error you are asked to destroy this email and contact the sender immediately. Your assistance is appreciated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Training Courses in PHP & MySQL
I would reccomend going to the source and looking at the training courses offered by MySQL AB, the developers of MySQL. Here is a link to the info page for MySQL's training on PHP + MySQL: http://www.mysql.com/training/courses/developing_dynamic_webapp.html Looks like a course is coming up in San Francisco in February. Mike Hillyer -Original Message- From: Ben C. [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 19, 2002 6:31 PM To: [EMAIL PROTECTED] Subject: [PHP] Training Courses in PHP & MySQL Does anyone know where I can get a good training course in both PHP and MySQL that would make me proficient? Or does anyone know of a good tutor? I would prefer it to be in California or on the west coast. Please provide your comments. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Do query strings get spidered by Google?
Hi All; I am trying to decide how to lay out a site with a lot of articles, and I am wondering if query strings get spidered by Google. I was thinking it would make for an easy search engine if I could put the articles in fulltext searchable MySQL columns, but I do not want to lose the ability of search engines to spider them. Otherwise, I believe there is a way to convert the quert string to a trailing / so it looks like directory structure, does anyone have info on that? Thanks, Mike Hillyer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] MySQL qusetion
WinMySQLAdmin has been discontinued, it is replaces by MyCC, also available from the mysql web site. Mike Hillyer -Original Message- From: Marc Bakker [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 4:13 AM To: [EMAIL PROTECTED] Subject: [PHP] MySQL qusetion Hello, I want have a Apache/PHP/MySQL configuration running on Win2000 (SP3). In my website I have a file-upload page where uses can upload a file. The max size of the upload has to be set in the mysql.ini file but I am not able to do this. I use winMySQLAdmin v1.4. When I add in the tab 'my.ini Setup' under [mysqld] 'max_allowed_packet=8M' to increase the max allowed upload filesize the corresponding value in the tab 'Variables' does not change (it stays at the default value of 1048567). Also when I restart te server (using the same winMySQLAdmintool) this value doesn't change. Funny thing is that in tab 'Environment' under 'Uptime' the value doesn't change - even after restarting the server. Is this tool buggy? Thanks, Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php