fopen problem

From: Date: Thu, 15 Jun 2000 09:14:54 +0000
Subject: fopen problem
Groups: php.general 
Request: Send a blank email to php-general+get-1910@lists.php.net to get a copy of this message
Hello, I've read the fopen message thread, but I have an other problem that I cannot manage to solve. Here is my config: PHP3.0.8, Apache 1.3.12, Solaris 2.5. PHP is compile as an Apaache module. I try do do this: ------------------------------------------------------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>fopen http</title> </head> <body> <? //print ("<H1>HTTP</H1>\n"); // ouvrir un fichier avec le protocole http if(!($myFile = fopen("http://www-cenerg.cma.fr/welcome.html", "r"))) { print("impossible d'ouvrir le fichier"); } while(!feof($myFile)) { // lire une ligne du fichier $myLine = fgetss($myFile, 255); print("$myLine <BR>\n"); } //fermer le fichier fclose($myFile); ?> </body> </html> -------------------------------------------------- And I get the following message by the browser: "The document contain no data. Try again later or contact the server's administrator" When I check the web server log file both the script and the target file have been correctly accessed: Code 200 ! Does any one as a clue ? Thanx in advance. Lionel

« previous php.general (#1910) next »