Jump to content

Recommended Posts

Is it possible to have some of your files uploaded to an external website, and then you to check from your site whether those files are present at that external site.

 

And if the files are present, then is there a way I can execute the code inside the file and get the result?

Link to comment
https://forums.phpfreaks.com/topic/125169-accessing-an-external-site/
Share on other sites

it is possible to copy files to a website using FTP (google you will find lots of ftp upload scripts)

and you can also make after the upload is complete to check the files if they exist,or save the name/location to a txt file on the remote server and then with first server you will get and parse that file to check if the files exist

 

and the last part with execute the code inside i did not understand at all

you mean you want to execute the files from remote server and get the results on the actual one?

Yeah, I should explain it better:

 

There is mysite.com. Here, people can download some files.

 

They take these to their site, theirsite.com, and upload them.

 

From mysite.com, I can then check if the person has uploaded the files to theirsite.com

 

Then, if they have, I can access those files at theirsite.com, and then receive results from functions present in the file.

You can use file_get_contents or curl from an external source and it would be just like accessing it from your browser.  You won't have access to it like you would locally (like, knowing all the vars and doing stuff with them, etc..) the file would specifically have to output something in a format you could then parse on your own server.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.