On Friday, February 1, 2002, at 04:28 PM, Robby wrote:
> I am using this code below but it does not work (php in installed and
> working proplely):
>
> <?php
>
> $file=fopen("http://somedomain/time.html", "r");
> if (!$file)
>
> echo "error when connect\n";
> exit;
> }
> $line = fread ($file, filesize ($file));
Looks like you forgot the opening braces for your first 'if' statement.
Does that help? If not, your error message will help others come up
with suggestions.
Erik
----
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]