Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Are world writeable XML files a big risk?

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Are world writeable XML files a big risk?

Postby cronjob78 » Wed Oct 03, 2012 9:57 am

Is it safe to make .XML feeds world writeable?

With PHP I build an XML feed on server A and “copy” it to another B. I do the “copy” by calling a PHP script on B from A by using:

$string = html_get_contents('http://www.websiteB.com/feed_copier.php');

feed_copier.php on server B then uses fwrite(‘feed.xml’, $string) to make the copy.

It works well and runs every hour as a cronjob on server A....however I have to make the feed.xml on server B world writeable (666) because I’m calling the script on B from A across the big bad world wide web.

(1) How worried should I be about having an XML file with world writeable permissions?
(2) Is there any other way around it? I have limited access to server B and the reason I copy the script over is so that if there is a problem with server A then the server B will still be able to access its feed.
cronjob78
New php-forum User
New php-forum User
 
Posts: 1
Joined: Wed Oct 03, 2012 9:53 am

Return to PHP coding => General

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.