Closed Thread
Results 1 to 3 of 3

Thread: syntax error, unexpected T_ECHO- Help please

  1. #1
    HorseyGal is offline Newbie
    Join Date
    Mar 2010
    Posts
    2
    Rep Power
    0

    Question syntax error, unexpected T_ECHO- Help please

    Hi,
    First let me say I am not a PHP programmer. I am simply trying to edit some code and I am getting the Parse error syntax error, unexpected T_ECHO

    This is the line of code that is providing the error
    echo 'WENEEDTHIS->'.$_R.'<-WENEEDTHIS';

    FROM THIS

    Code:
    $_X=base64_decode($_X);
     
    $_X=strtr($_X,&#8217;123456aouie’,’aouie123456′);
     
    $_R=ereg_replace(&#8217;__FILE__’,”‘”.$_F.”‘”,$_X);
     
    echo 'WENEEDTHIS->'.$_R.'<-WENEEDTHIS';
     
    $_R=0;
     
    $_X=0
    Can anyone tell me what is missing from that line?
    Thanks bunches!!
    Last edited by Orjan; 03-03-2010 at 02:10 AM.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Apr 2009
    Location
    Trapped in my own little world.
    Posts
    2,487
    Rep Power
    33

    Re: syntax error, unexpected T_ECHO- Help please

    Code:
    <?PHP
    $_X
    =base64_decode($_X);
    $_X=strtr($_X,'123456aouie','aouie123456');
    $_R=ereg_replace('__FILE__',"‘".$_F."‘",$_X);
    echo 
    'WENEEDTHIS->'.$_R.'<-WENEEDTHIS';
    $_R=0;
    $_X=0;
    I think it was the character you were using for your single/double quotes... I used these and it worked fine without an error.

  4. #3
    HorseyGal is offline Newbie
    Join Date
    Mar 2010
    Posts
    2
    Rep Power
    0

    Re: syntax error, unexpected T_ECHO- Help please

    Quote Originally Posted by BlaineSch View Post
    Code:
    <?PHP
    $_X
    =base64_decode($_X);
    $_X=strtr($_X,'123456aouie','aouie123456');
    $_R=ereg_replace('__FILE__',"‘".$_F."‘",$_X);
    echo 
    'WENEEDTHIS->'.$_R.'<-WENEEDTHIS';
    $_R=0;
    $_X=0;
    I think it was the character you were using for your single/double quotes... I used these and it worked fine without an error.
    Thank you so much it worked like a charm!!

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. SQL syntax error
    By Timefly in forum PHP Development
    Replies: 2
    Last Post: 11-02-2010, 06:30 AM
  2. [help]Parse error: syntax error, unexpected $end
    By kiddies in forum PHP Development
    Replies: 3
    Last Post: 07-18-2010, 02:58 PM
  3. Possible Syntax Error.
    By ImTheMessenger in forum Python
    Replies: 3
    Last Post: 01-22-2010, 08:40 PM
  4. Odd syntax error?
    By akashhsaka in forum Python
    Replies: 6
    Last Post: 05-22-2009, 03:29 PM
  5. unexpected T_LOGICAL_OR Error in script
    By Skillz in forum PHP Development
    Replies: 1
    Last Post: 12-27-2008, 08:18 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts