Thx for quick reply. I read the whole topic.
I was unable to find out the output of
$scfp = @fsockopen($scip, $scport, &$errno, &$errstr, 1); // Connect to the server
I asked my host, and he said that they closed fopen which Php uses to write XML.
I switched to Crontab. And entered the command. Here's the result I have.
/bin/sh: line 1: /usr/bin/lynx: Permission denied
I have -auth=admin:xxx password because I have access to Admin panel of my Shoutcast server.
Well, I think I did my best
Next step is I want to make Lynx enable. I cant persuade my host to enable fopen etc.
For triggerin Issues, I want this script only to read cast.xml from my hoe directory and Dont execute the fsocket, fopen commands. I should reduce the load a bit.
How can I do that ?
Make cron the grabbing info from Shoutcast.
Make This Script to only read xml file on my host.
Thanks in advance.
P.S: I have a Problem with the cron command I think.
Code:
*/5 * * * * lynx -auth=admin:dNASpasshere -source http://dNAS-IP-Or-Domain:port/admin.cgi?mode=viewxml 1> /webserver/path/public_html/filename.xml
Should be
Code:
5 * * * * lynx -auth=admin:dNASpasshere -source http://dNAS-IP-Or-Domain:port/admin.cgi?mode=viewxml > /webserver/path/public_html/filename.xml
I removed */ part from the beginning and 1> from the lynx source .
Is the first one true of false ?
If it is true can you please explain why */5 instead of only 5 and 1> instead of only >
I searched some documentation but I was unable to find anything.