Crowds
10-26-2006, 12:49 PM
I have a script that needs to check the 'mother site' for version information. The site contains an updates.php page that simply contains one variable
$current = 1;
I initially tried to simple add this page as an include but found it would not work.
I have been having a look around and it seems that I have two options. fsockopen or cURL.
I know nothing about cURL and have never used fsockopen (we are off to a good start aren't we :rolleyes: ) So before I take a hike up the learning curve I just thought I would get some advice on what would be the best option. The server the update.php page is on has cURL enabled. A phpinfo() gives me
libcurl/7.10.3 OpenSSL/0.9.6g ipv6 zlib/1.2.1
But I cannot (whether or not it matters) guarantee the servers the script that requires update.php will have it enabled.
What do you think ?
(the ever awaiting wisdom)
Crowds
$current = 1;
I initially tried to simple add this page as an include but found it would not work.
I have been having a look around and it seems that I have two options. fsockopen or cURL.
I know nothing about cURL and have never used fsockopen (we are off to a good start aren't we :rolleyes: ) So before I take a hike up the learning curve I just thought I would get some advice on what would be the best option. The server the update.php page is on has cURL enabled. A phpinfo() gives me
libcurl/7.10.3 OpenSSL/0.9.6g ipv6 zlib/1.2.1
But I cannot (whether or not it matters) guarantee the servers the script that requires update.php will have it enabled.
What do you think ?
(the ever awaiting wisdom)
Crowds