Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 07-21-2008, 12:27 PM Parse/Syntax Error
Junior Talker

Posts: 1
Trades: 0
Hi all, new board member here - just took over a site and it has been one error after the other... new one is quite crucial - it inhibits the members from being able to register for events:


Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/sbloom02/public_html/e/events_confirmation.php on line 87

Line 87 isn't very revealing... the following are lines 86 - 94 - thing is, I made zero alterations to this part of the code in the transfer and they weren't receiving the error on the old server:
$b = 64; // byte length for md5
if (strlen($key) > $b) {
$key = pack("H*",md5($key));
}
$key = str_pad($key, $b, chr(0x00));
$ipad = str_pad('', $b, chr(0x36));
$opad = str_pad('', $b, chr(0x5c));
$k_ipad = $key ^ $ipad ;
$k_opad = $key ^ $opad;

Any suggestions appreciated - the client is extremely anxious to have this solved obviously - thanks in advance!

Sherry
sbloom01 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-21-2008, 07:19 PM Re: Parse/Syntax Error
Super Talker

Posts: 116
Trades: 0
make sure $key is not empty/null. or its at least set, because sometimes if its not set you might get errors like that.
__________________


Please login or register to view this content. Registration is FREE

nasaboy007 is offline
Reply With Quote
View Public Profile Visit nasaboy007's homepage!
 
Old 07-21-2008, 10:46 PM Re: Parse/Syntax Error
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
This is a syntax error. The above example looks ok, I don't see anything wrong with it. Check above this block to see if you are missing a ; semicolin or } bracket.
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Parse/Syntax Error
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





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



Page generated in 0.11483 seconds with 12 queries