Jump to content

File access from another server


Krash

Recommended Posts

Tried using ftp:// wrapper, but get the same error - 'URL file-access is disabled in the server configuration'.

 

I'm actually trying to do something that appears very simple, and been working on it on/off since beginning of the year.  I'm building a verification widget that runs in an iframe on the SMF registration form.  I'd like to keep it in the widget, so all users would be loading it off my server, but haven't found a good way to pass the verification code from the iframe to the SMF form handler. 

 

Session variables don't work, because the iframe and SMF are running different sessions. 

 

I can use a cookie locally, but it won't work on a user's forum because the cookie is set from the iframe (my domain), and must be read by the user's domain.

 

The fallback is to write a verification code (0 or 1) to a text file, and have the SMF form handler open the file and read the code.  This also works locally, but it requires either having the widget write the text file on the user's server, or allowing the user to read the file off my server.

 

That's what I'm working on tonight - need a script that will run in the user's domain/server, and open/read/delete the file from my domain/server.

 

Archived

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

×
×
  • Create New...

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.