![]() |
|
Bug? file_put_contents problem with php 4 - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Bug? file_put_contents problem with php 4 (/thread-5614.html) |
Bug? file_put_contents problem with php 4 - reef - 2009-08-05 Hi, I just did a fresh install of 1.2.6rc2 on a server that has php 4.3.11 available. I have asked the hostingprovider to give me access to a newer version of php as I know this is less than the recommended/required version. But in the meantime setup.php gives me a curious fatal error: Fatal error: Call to undefined function: file_put_contents() in /home/.sites/39/site9/web/zp-core/setup.php on line 1097 Isn't this function php 5 and higher, so should not be used for php 4? Hope this helps in some way :-) regards, Bob Bug? file_put_contents problem with php 4 - divan - 2009-08-05 It's not a bug, but I hit this as well, while trying 1.2.6 RC1. You should use php5. Add the following line to your .htaccess: AddHandler application/x-httpd-php5 .php Bug? file_put_contents problem with php 4 - reef - 2009-08-05 Hi Divan, Thanks for the tip. However adding that line to the .htaccess just makes my browser want to download the page instead of it being executed. I googled and found all kinds of variations but these all have the same effect :-( regards, Bob Bug? file_put_contents problem with php 4 - acrylian - 2009-08-05 Thanks for the note. We develope on PHP 5 and sometimes we miss something. But we recommend PHP 5 anyway. Also, stated here http://www.zenphoto.org/2009/07/version-126-rc1/ Zenphoto 1.2.6 raises its requirements a little Bug? file_put_contents problem with php 4 - acrylian - 2009-08-05 @reef: I suggest to contact your host if you want to change the php versions. Bug? file_put_contents problem with php 4 - reef - 2009-08-05 Hi Acrylian, I already contacted the host to change the versions for me but wanted to pass on the error anyway. thanks! Bob Bug? file_put_contents problem with php 4 - sbillard - 2009-08-05 file_put_contents is indeed a PHP5 function. We will have to correct that. |