Ok, very stuck right here!
I am trying to read a file (example = bladfvjasdvcjk ^ Hello world ^ asdjbkasdckbas) and using readfile (or fpassthru ) with explode extract "Hello world" and put it into a form textarea.
Anything will help. Here is what I have...
$fp = ( $fileName, "r");
$file = fpassthru($fp);
$file_array = explode("", $file);
$reading = $file_array[1];
print $reading;
Instead if giving me just Hello world. $file is displying the file contents at the top of the page and then passing a number (instead of the full file contents) into the explode.
Please help, if any of this makes sense...
Thanks,
D