I had to move some sites from one server to another. On the previous server was the very first release of php4. On the current server is php-4.0.1pl2.
Everything moved pretty smoothly except for an error occuring on this line of code that worked on the previous version of php
$string= file("http://foo.com/something.html");
$string = implode("\n",$string);
$string= ereg_replace('/foo/bar','/new/foo',$string);
$string= ereg_replace(more/foo','more/new/foo',$string);
now it gives me the error
Warning: file("http://foo.com/something.html") - Success in /path/to/phpstuff.phtml on line 259
Warning: Bad arguments to implode() in /path/to/phpstuff.phtml on line 260
I'm confused why it does this on a newer version of php, when before it went to the url, got the stuff, and inserted it into the page properly.
Any ideas?