Old 04-25-2005   1 links from elsewhere to this Post. Click to view. #1 (permalink)
Tech Support
 
Man1c M0g's Avatar
 
Tournaments Won: 1

Join Date: Sep 2003
Location: Portsmouth, UK.
Posts: 4,202
Blog Entries: 21
Images: 3

Send a message via ICQ to Man1c M0g Send a message via MSN to Man1c M0g Send a message via Skype™ to Man1c M0g
Sessions & Cookies

This is a thread to discuss the Sessions & Cookies tutorial. Please keep all posts on-topic, don't spam, and read the entire thread BEFORE you post - any issues you have could be answered deeper within the thread.
__________________
Man1c M0g is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-17-2008   #2 (permalink)
Registered User
 

Join Date: Aug 2008
Posts: 1

Hello, this tutorial seems to be broken.

I get:

Code:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/backline/public_html/hunter/php/tutorials/sessions/index.php on line 3
The line specifically:

Code:
echo ‘Welcome to our sessions test! Your example username can be pogo!’;
Entire code:

Code:
<?
session_start();
echo ‘Welcome to our sessions test! Your example username can be pogo!’;
$_SESSION [‘username’] = ‘pogo’;
echo ‘<a href=”page2.php”>Click here to have a session</a>’;
?>
hunterxaz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-17-2008   #3 (permalink)
Janitor of Lunacy
 
Tamlin's Avatar
 

Join Date: May 2006
Location: Sitting in the Wishing Chair
Posts: 5,758
Blog Entries: 2
Images: 530

Battle Wins: 20 (rank: #1)
I don't really know about PHP, but from what I've read this error generally occurs due to the wrong type of quote marks being used. I notice the code contains so-called "smart" quotes, so try replacing and with ' (and with ").
It might not work but it's worth a try.
__________________

"I might join your century, but only as a doubtful guest"
Tamlin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

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


LinkBacks (?)
LinkBack to this Thread: http://forums.biorust.com/tutorial-commenting-system/1676-sessions-cookies.html
Posted By For Type Date
BioRUST.com :: Tutorials >> Sessions & Cookies This thread Refback 11-19-2007 10:36 AM


All times are GMT +1. The time now is 11:57 AM.

Powered by vBulletin Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2

Design & Content © BioRUST 2008 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT