Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 3585 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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
 

This topic is 3585 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.