If error then continue and not die - possible?
Posted: Fri Mar 07, 2008 4:14 pm
Hello,
I have the following code:
If the file_get_contents($request_url) doesn't load/respond then the script echoes "feed not loading" and stops.
I want the script to echo "feed not loading" and then continue and just skip that part of the script that needed the file contents.
Is that possible?
Best Regards
Oskar R
I have the following code:
Code: Select all
$request = file_get_contents($request_url) or die("feed not loading");If the file_get_contents($request_url) doesn't load/respond then the script echoes "feed not loading" and stops.
I want the script to echo "feed not loading" and then continue and just skip that part of the script that needed the file contents.
Is that possible?
Best Regards
Oskar R