Jump to content

syntax error, unexpected T_ECHO- Help please

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
HorseyGal

HorseyGal

    Newbie

  • Members
  • Pip
  • 2 posts
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.


#2
BlaineSch

BlaineSch

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,448 posts
<?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.

#3
HorseyGal

HorseyGal

    Newbie

  • Members
  • Pip
  • 2 posts

BlaineSch said:

<?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: