Web Hosting Deals Holiday Logo Design Webcam Chat Website Header Templates Register domain Search Engine Optimisation Web Hosting
Go Back   Talk Mania Forum > Programming / Scripting / Coding

Programming / Scripting / Coding Got a question about : PHP / Perl / Java / JavaScript / CGI Scripts / JavaScript coding. Ask here! We'll get you the answers !

 Image
Buy Sell Downloads

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-27-2007, 09:26 PM
Junior Member
 
Join Date: Feb 2007
Posts: 11
Nosf is on a distinguished road
Session PHP tip

One thing that crossed my mind and might prove itself useful to people that are just starting to learn PHP, or are advanced newbies, is regarding sessions.

Some people like to use opensource scripts in begining of their career, and some of them use sessions to store variables.

Always remember that if you use session_start (); in any of your php files and aplications, it HAS to be first line in php file. In other words, at the top of the page.

just after <?php tag, and even before <html> or any other tag.

Best regards.

Reply With Quote
  #2 (permalink)  
Old 02-27-2007, 09:34 PM
Member
 
Join Date: Feb 2007
Posts: 57
matthewgrainger is on a distinguished road
Not if your using multiple sessions or you dont want the session to start when the page loads for many reasons..
__________________
StudentMeh.co.uk - Next Generation Student Networking!
Reply With Quote
  #3 (permalink)  
Old 03-01-2007, 10:25 PM
Junior Member
 
Join Date: Feb 2007
Posts: 11
Nosf is on a distinguished road
Sure thing, mate.

Just, from point of view where you're beginning to learn php, it's a good thing to know (I had a great trouble once with similar issue).

Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT +2. The time now is 07:25 PM.


Fake ID

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC8
Forums Copyright © Talk-Mania.com