problem with checking alt file
From: in2minds (karl_at_redx.co.uk)
Date: 11/30/03
- Next message: in2minds: "Re: seems to be working now..."
- Previous message: Janwillem Borleffs: "Re: Emailnotificatie (sorry, this message is in dutch)"
- Next in thread: in2minds: "Re: seems to be working now..."
- Reply: in2minds: "Re: seems to be working now..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 30 Nov 2003 15:08:34 -0000
using this...
if (x == y)
{
$url = "file.txt";
$num = @file($url);
if ($num === FALSE) // 3 =
{
$url = "otherfile.txt";
$num = file($url);
}
continue with the script using value of $num ...
}
it's checking for the first file and will return "fail" if I replace the
second file check with echo fail;
but it doesn't seem to look at the second file and grab the contents
also the timeout seems to take forever (up to 3 minutes) for the first
file check, is it possible to restrict this to 30 seconds ?
thanks
Les
- Next message: in2minds: "Re: seems to be working now..."
- Previous message: Janwillem Borleffs: "Re: Emailnotificatie (sorry, this message is in dutch)"
- Next in thread: in2minds: "Re: seems to be working now..."
- Reply: in2minds: "Re: seems to be working now..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|