shell - PHP Overwrite file on other server -



shell - PHP Overwrite file on other server -

i have file called updateserver.php has next code:

$myfile = fopen("http://173.xxx.xxx.xxx/myurl/demo/path.txt", "w") or die("unable open file!");

i want utilize file edit path.txt file placed on server. possible unable this.

i took help : http://php.net/manual/en/features.remote-files.php

ps : over-writted files on same server , successful in same.

you can't write urls fopen. makes requests.

you utilize the curl library create an http set request, have configure server writing to back upwards set requests in fashion. (web servers not default because insane http client able write files server).

php shell phpsh

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -