FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » why do examples fail to work?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: why do examples fail to work? [message #171145 is a reply to message #171130] Mon, 27 December 2010 20:14 Go to previous message
Katie is currently offline  Katie
Messages: 4
Registered: December 2010
Karma:
Junior Member
On Dec 27, 5:58 am, richard <mem...@newsguy.com> wrote:
> http://www.w3schools.com/php/php_file.asp
>
> <?php
> $file = fopen("welcome.txt", "r") or exit("Unable to open file!");
> //Output a line of the file until the end is reached
> while(!feof($file))
>   {
>   echo fgets($file). "<br />";
>   }
> fclose($file);
> ?>
>
> for my efforts, my result is ";}fclose($file);?>
>

Can you get any php code to run ?

Katie
--
CoderStack
http://www.coderstack.co.uk/perl-jobs
The Software Developer Job Board
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Slowly coming together
Next Topic: PHP code for automated tracking
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 03:55:42 GMT 2024

Total time taken to generate the page: 0.04065 seconds