Hi 1) If I were you, I wouldn't put data files in the "vendors" directory, but rather in a subdir in tmp/ (which is, AFAIK, a good place to put writable files that are protected from direct access from the web), or in a subdir of webroot/ (if you want to access them from the web). 2) If I were you, I'd use the File class, which is nice: http://api.cakephp.org/class_file.html ; of course you can also use php standard file functions as well. Your issue is probably due to wrong file path... 3) If I were you, I would take a some time to write an understandable post, eventually with a code snippet, and the more details you can give. No need to send a short question, and two hours later add a few details and start another thread about the same subject, etc...
++++++ Clément On Thu, May 29, 2008 at 12:29 PM, ajay <[EMAIL PROTECTED]> wrote: > > i want to know who can open a txt file using cakephp > > i created a class with fucntion to fopen a text file that i saved in > the vendors folder. > wen i tried to run as normal php codes, it worked but wen i put the > same code in the cakephp, it says cant find file or directory > ken u plz help > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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?hl=en -~----------~----~----~----~------~----~------~--~---
