Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

syntax error, unexpected T_ECHO- Help please

syntax syntax error

  • Please log in to reply
2 replies to this topic

#1 HorseyGal

HorseyGal

    CC Lurker

  • Just Joined
  • Pip
  • 2 posts

Posted 02 March 2010 - 11:03 AM

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


$_X=base64_decode($_X);
$_X=strtr($_X,’123456aouie’,’aouie123456′);
$_R=ereg_replace(’__FILE__’,”‘”.$_F.”‘”,$_X);
echo 'WENEEDTHIS->'.$_R.'<-WENEEDTHIS';
$_R=0;
$_X=0;


Can anyone tell me what is missing from that line?
Thanks bunches!!:P

Edited by Orjan, 03 March 2010 - 02:10 AM.

  • 0

#2 BlaineSch

BlaineSch

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1559 posts

Posted 02 March 2010 - 11:46 AM

<?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.
  • 0

#3 HorseyGal

HorseyGal

    CC Lurker

  • Just Joined
  • Pip
  • 2 posts

Posted 02 March 2010 - 12:17 PM

<?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!! :thumbup:
  • 0





Also tagged with one or more of these keywords: syntax, syntax error

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download