Batman,
No luck - I got an error in line 3 (the url), so I put " " around it and that seemed to be acceptable. However, I still get
Parse error: parse error in <...>indexTEST2.php on line 4
when running the following code:
Plain text
<?
$file = "http://.../indexTEST2.php"
$file2 = fopen("$file", r);
$ex = explode(" ",$file2);
$new = str_replace ("text", "macaroni", $ex); ?>
Note that I'm opening the same page I'm currently using (which may make it tougher or maybe there's a simpler solution thanks to that). I also tried learning more about how to use fopen, and it looked like I had to update it to
$file2 = fopen("$file", "r");
but I still get the error on line 4. Thoughts? Thanks,
Chris