Poi Posted March 30, 2006 Share Posted March 30, 2006 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:<?phpcreate file="index.php" content="<?php[b]$r="r";echo $r . "Is r!";[/b]?>"?>Index.php:<?php[b]="r";echo . "Is r!";[/b]?>Is there a way to bypass this or something? Link to comment https://forums.phpfreaks.com/topic/6216-content-help-sort-of/ Share on other sites More sharing options...
ToonMariner Posted March 31, 2006 Share Posted March 31, 2006 You have to escape special characters in a double quoted string!so (going on your code..)create file="index.php" content="<?php\$r=\"r\";echo \$r . \"Is r!\";?>" Link to comment https://forums.phpfreaks.com/topic/6216-content-help-sort-of/#findComment-22497 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.