Jump to content

Archived

This topic is now archived and is closed to further replies.

Poi

Content help.. sort of...

Recommended Posts

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

Share this post


Link to post
Share on other sites
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!\";

?>"

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.