February 10, 201510 yr I wonder if anyone has had success with WebDirect_Params: Extending WebDirect: URL Parameters I have got the solution to work with Safari, but for some reason it is not working with Chrome or Firefox. I keep getting this error in those browsers: Warningfopen(/tmp/E52E6D36-56A2-BF48-9893-F2E27E7CCE4D.txt) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory in /home/website/public_html/php/fm_read.php on line 10 Unable to open file! Here is the php file it is referring to: <?php // check for required parameter, should match the UUID passed in fm write file. if(isset($_GET['file_uuid']) && strlen($_GET['file_uuid'])>0 ){ $filename_string = filter_var($_GET['file_uuid'], FILTER_SANITIZE_STRING); $fn = '/tmp/'.$filename_string.'.txt'; $fr = fopen($fn, "r") or die("Unable to open file!"); echo fread($fr, filesize($fn)); fclose($fr); unlink($fn); // remove the file once read } else { exit('Error: No file.'); } The person who posted the article is not responding to my questions. Any one have any ideas of why it works on one browser, but not the others. Thanks in advance - Sam
Create an account or sign in to comment