MySQL_Narb Posted July 4, 2012 Share Posted July 4, 2012 I have a JavaScript code I use on my website, and I want it to delete a file on the website after running through the code. Is this possible? Quote Link to comment https://forums.phpfreaks.com/topic/265200-delete-a-file/ Share on other sites More sharing options...
PFMaBiSmAd Posted July 4, 2012 Share Posted July 4, 2012 The only thing javascript has the direct ability to do related to a web server is to make http requests to the web server. What exact problem are you trying to solve? Quote Link to comment https://forums.phpfreaks.com/topic/265200-delete-a-file/#findComment-1359099 Share on other sites More sharing options...
MySQL_Narb Posted July 4, 2012 Author Share Posted July 4, 2012 The only thing javascript has the direct ability to do related to a web server is to make http requests to the web server. What exact problem are you trying to solve? Hmmm, odd. I'm mainly just learning Java and trying to ask about as many features as possible. Is there any way to include an external PHP file? Say I have a test.com, and I have verify.com - I want my JavaScript to pull a file from verify.com and do some simple verification steps. Anyway to go about this? Quote Link to comment https://forums.phpfreaks.com/topic/265200-delete-a-file/#findComment-1359100 Share on other sites More sharing options...
haku Posted July 4, 2012 Share Posted July 4, 2012 First, Java is not JavaScript. Other than a somewhat similar name, they are very different languages. Second, as PFMaBiSmAd said, the only thing javascript can do with the server is make http requests to it. So no, it cannot include php files. Quote Link to comment https://forums.phpfreaks.com/topic/265200-delete-a-file/#findComment-1359128 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.