connecting to a txt file - newbie

From: Date: Thu, 10 Oct 2002 14:13:33 +0000
Subject: connecting to a txt file - newbie
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-119529@lists.php.net to get a copy of this message
good morning, im having some issues with the simple task of pulling from a txt file. my code is: <html> <head> <title>job app</title> </head>db <body> <?php if(!$file=fopen("text.txt", "r")) { echo("couldnt open the file"); } else { $text = fread($file, 100); fclose($file); } ?> </body> </html> and the txt file contains one line of bogus txt. you can see my results here: http://www.villany2k1.com/text.php. if anyone has any info as to what i am doing wrong, i would really appreciate it. thanks so much jennifer (jennifer@whitenoisemachine.net)

« previous php.general (#119529) next »