Jump to content


Content help.. sort of...

  • Please log in to reply
1 reply to this topic

#1 Poi

  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 30 March 2006 - 10:29 PM

OK, i have a script, that creates 2 files, one is counter.txt and the other index.php, but with the index.php is created it seems to think, when i have a variable that needs to go in the other page, it thinks that its just a normal variable and converts it to whatever that variable equals...

For Example!:

Register.php(Note this is a simple example:
create file="index.php" content="

echo $r . "Is r!";


echo . "Is r!";


Is there a way to bypass this or something?

#2 ToonMariner

  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 31 March 2006 - 01:08 AM

You have to escape special characters in a double quoted string!

so (going on your code..)

create file="index.php" content="

echo \$r . \"Is r!\";


follow me on twitter @PHPsycho

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users