untill 2 days ago the same script worked perfect in my win98 + apache + php system
but now suddenly it gives me an error
"Call to undefined function: array_search() "
chris
Things never 'suddenly' begin to give errors. what did you change about the script or the setup? Did you upgrade PHP to a new version?
I would have never posted the question here had I done an upgradation etc
is virus attack a possibility ?
or deletion and renaming of files a cause ?
is there a generic script which checks which function works and which doesn't ?
There is only one way to get this error, and that is to run a version of PHP that does not yet support the array function, which means you should now be running PHP <4.0.
Run phpinfo() and see what you get.
PHP Version 4.0.4pl1
The version doesn't match..
array_search (PHP 4 >= 4.0.5) http://tr.php.net/manual/en/function.array-search.php