Board index   FAQ   Search  
Register  Login
Board index PHP PHP Scripts

Basic understanding of session and register_globals

Links for php scripts

Moderators: macek, egami, gesf

Postby Skeletor » Tue Apr 06, 2004 10:31 am

I do not have register_globals turned on, and the sessions work file. Perhaps the article you were reading is wrong?

Since you are new to PHP, perhaps a good idea might be to look over other peoples code instead of trying to jump in and design your own applications at first. Places like http://www.hotscripts.com/ have code that people have written that you can download and look at. Keep in mind you will come across some pretty crappy code examples, but it might prove to be a good place to start learning php. Also check out http://www.php.net and http://www.mysql.com for documentation on php and mysql.

I think wizard posted a post that describes the global variables: http://www.php-forum.com/p/viewtopic.php?t=2181

Good luck
Skeletor
New php-forum User
New php-forum User
 
Posts: 147
Joined: Tue Nov 19, 2002 7:47 am
Location: US, Ohio

Postby swirlee » Tue Apr 06, 2004 1:10 pm

Skeletor wrote:I do not have register_globals turned on, and the sessions work file. Perhaps the article you were reading is wrong?


My guess is that the article said that if register_globals is off, you must use $_SESSION['something'] instead of just $something. Which is a good thing!
User avatar
swirlee
Moderator
Moderator
 
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back


Return to PHP Scripts

Who is online

Users browsing this forum: Bing [Bot] and 3 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.