hi felix.

i think you can use the file class.

there?s a post on cakebaker: 
http://cakebaker.42dh.com/2006/09/20/how-to-use-the-file-class-from-the-core/

cheers.


> Hi there,
>
> i need to load some text from a atextfile and show it on the screen.
> I placed my textfile (text1.txt) in the webroot-folder and try to open
> it that way:
>
> index.thtml:
>                  $textfile = "text1.txt";
>                  readfile($textfile);
>
> but i get the message: "Warning: readfile(text1.txt): failed to open
> stream: No such file or directory"
>
> What is wrong? and can i use a html-helper?
>
> Thanks,
> Felix
>   

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to