System check not working

Bug reports on core system for v0.3 RC only

System check not working

Postby smiffy6969 » Sun Feb 08, 2009 8:58 pm

There is an issue with system check feature not working, let me explain the issue a little more.

This feature relies on fetching a remote file from the razorcms website, processing the file and checking it against your settings, you are then informed of messages and if you need an upgrade.

The problem is with fetching this remote file, heres some info.

Taken from http://www.php-mysql-tutorial.com/wikis ... g-php.aspx

To read a remote file from php you have at least four options :

1. Use fopen()
2. Use file_get_contents()
3. CURL
4. Make your own function using php's socket functions.

First i need to warn you about something. You can only use fopen() and file_get_contents() when fopen wrappers is enabled. This parameter is specified in the php.ini file and cannot be changed at run time using ini_set(), To know whether you can use these two or not you can use the following code to check the value of fopen wrapper seting.


This chap here describes the issue, we use file_get_contents, as the method, so if you do not have the wrappers enabled then it won't work.

So CURL is the next best option, but it can be a problem getting it to work, it can be complexed, plus you need to have the curl libraries installed installed, and not all servers do have this.

So there you have it, the first 3 ways are reliant on server configuration, so will not work with 'ALL' servers. So we are left with the only option to create our own method using sockets, this however can take time to handshake from one host to another, you can get a hang of the system.

So there is no easy way, the only truelly universal option can cause a hang, so I am experimenting with a method of reading the data inthe back ground, so the 30 seconds it needs to handshake are not noticed, and if it does not connect then you get no hang.

Hopefully this will be available in the next release so fingers crossed.
Till then if it's not working, it will not cause errors, everything will still work correctly, if you want it working, then you need to enable the fopen wrappers on your host.

thanks

smiffy
on a long enough time line, everyones survival rate drops to zero... [ed norton - fight club]
http://www.razorcms.co.uk
http://www.mis-limited.com
smiffy6969
Site Admin
 
Posts: 1372
Joined: Sat May 24, 2008 8:18 am
Location: Loughborough, UK

Return to Bugs - Core v0.3 RC

Who is online

Users browsing this forum: No registered users and 1 guest

cron