Reply
Parse error
Old 10-29-2003, 10:14 AM Parse error
Average Talker

Posts: 21
Hi, I have a PHP login script which works when I run it on a Win2000 Server PC in my home but when I upload it to my Linux Web space it give me this error:

Parse error: parse error, expecting `')'' in control.php on line 30

This is the code section where the error occurs:

if(isset($_COOKIE['username'])){
if(isAdmin($_COOKIE['username'])) $your_p='2';
elseif(isset($_COOKIE['username'],$_COOKIE['password'])) $your_p='1';
else $your_p='0';
}
else
{
$your_p='0';
}

Line 30, referred to in the error message, is the elseif line:

elseif(isset($_COOKIE['username'],$_COOKIE['password'])) $your_p='1';

Does anyone here know what the problem might be?

Thx,
May
may_hem1 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 11-06-2003, 11:38 PM
TimSchroeder's Avatar
Admin/Owner

Latest Blog Post:
RIP eMonetized?
Posts: 6,141
Location: Orlando, FL
I can't help you with this one, but I'll bump it fow one last chance

__________________
Webmaster-Talk Admin - Forum Rules | Other ePressive Websites: PC Forum |eMonetized Blog
Follow Tim Schroeder on Twitter! | Free Magazines


TimSchroeder is offline
Reply With Quote
View Public Profile Visit TimSchroeder's homepage!
 
Reply     « Reply to Parse error
 

Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11161 seconds with 12 queries