php-general | 2001062
Date: 06/25/01
- Next message: KPortsmout <email protected>: "Re: [PHP] Batch Coding Help Please"
- Previous message: Miles Thompson: "[PHP] Re: [PHP-DB] access to a access db via php"
- In reply to: atan: "[PHP] file("http://www.php.net") error?"
- Next in thread: Richard Lynch: "Re: [PHP] file("http://www.php.net") error?"
- Reply: Richard Lynch: "Re: [PHP] file("http://www.php.net") error?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Dunno,...
Maybe you should specify the full file path, ie:
file(http://www.163.com/index.htm) ?
""atan"" <22877 <email protected>> wrote in message
news:9h0s59$l4h$1 <email protected>
> file("http://www.163.com") error?
> this is a test:
> ////////////////////////
> <?php
> $fcontents = file ('http://www.php.net');
> while (list ($line_num, $line) = each ($fcontents)) {
> echo "<b>Line $line_num:</b> " . htmlspecialchars ($line) . "<br>\n";
> }
> ?>
> /////////////////////////////////////////
> This program run no error in my server ;
> but it not work when i sent it to the Server (mtkj.51.net)
> The message:
>
> Warning: file("http://www.163.com") - Permission denied in
> /z1/mtkj/public_html/test.php on line 2
> Warning: Variable passed to each() is not an array or object in
> /z1/mtkj/public_html/test.php on line 3
>
> why?
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe <email protected>
> For additional commands, e-mail: php-general-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: KPortsmout <email protected>: "Re: [PHP] Batch Coding Help Please"
- Previous message: Miles Thompson: "[PHP] Re: [PHP-DB] access to a access db via php"
- In reply to: atan: "[PHP] file("http://www.php.net") error?"
- Next in thread: Richard Lynch: "Re: [PHP] file("http://www.php.net") error?"
- Reply: Richard Lynch: "Re: [PHP] file("http://www.php.net") error?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

