rockinaway Posted September 21, 2008 Share Posted September 21, 2008 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? Quote Link to comment https://forums.phpfreaks.com/topic/125169-accessing-an-external-site/ Share on other sites More sharing options...
Minase Posted September 21, 2008 Share Posted September 21, 2008 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? Quote Link to comment https://forums.phpfreaks.com/topic/125169-accessing-an-external-site/#findComment-646957 Share on other sites More sharing options...
rockinaway Posted September 21, 2008 Author Share Posted September 21, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/125169-accessing-an-external-site/#findComment-647007 Share on other sites More sharing options...
.josh Posted September 21, 2008 Share Posted September 21, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/125169-accessing-an-external-site/#findComment-647009 Share on other sites More sharing options...
rockinaway Posted September 21, 2008 Author Share Posted September 21, 2008 Yup, I would know exactly what was in the file and how it will be returned. If a person tampers with it, then it is there own loss. Is there a tutorial anywhere on how to do this? Quote Link to comment https://forums.phpfreaks.com/topic/125169-accessing-an-external-site/#findComment-647019 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.