file() function crashing a script
Posted: Sun Sep 25, 2005 3:57 pm
Has anyone ever seen this happen?
I'm moving a site to a different host. A script that used the file() function
just dies when it gets to this line:
$data = file($file);
The script stops and the status bar of the browser says: Done
Checking for what the script should have done reveals that it did nothing.
It just died.
PHP version (4.3.11) is exactly the same as the other server was using.
The Zend stuff displayed by phpinfo() is a little different.
On the site where everything works, I see this:
This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with
Zend Extension Manager v1.0.6, Copyright (c) 2003-2004, by Zend
Technologies with Zend Optimizer v2.5.7, Copyright (c) 1998-2004, by
Zend Technologies
On the one where it doesn't work, I see this:
This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with the
ionCube PHP Loader v2.5, Copyright (c) 2002-2004, by ionCube Ltd.
Does this matter? Or is it something else?
Please help; I'm desperately trying to meet a deadline (this Friday!)
Thanks in advance
I'm moving a site to a different host. A script that used the file() function
just dies when it gets to this line:
$data = file($file);
The script stops and the status bar of the browser says: Done
Checking for what the script should have done reveals that it did nothing.
It just died.
PHP version (4.3.11) is exactly the same as the other server was using.
The Zend stuff displayed by phpinfo() is a little different.
On the site where everything works, I see this:
This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with
Zend Extension Manager v1.0.6, Copyright (c) 2003-2004, by Zend
Technologies with Zend Optimizer v2.5.7, Copyright (c) 1998-2004, by
Zend Technologies
On the one where it doesn't work, I see this:
This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with the
ionCube PHP Loader v2.5, Copyright (c) 2002-2004, by ionCube Ltd.
Does this matter? Or is it something else?
Please help; I'm desperately trying to meet a deadline (this Friday!)
Thanks in advance