HI
$file=root path(ie d:\wamp\www\pjtfolder\public\abc.html);
note does not give the path start with http://
$contents = file_get_contents($file);
will solve your problem
by
Ratheesh R
Hi All,
How do I read the contents of a file into a string from a Controller action
I have tried the following that give me the error No such file
$contents = file_get_contents('verification_email.html');
the file with placed in the same folder as the Controller and it has read access
How should I specify the location of the file OR
what Zend method can I use in the controller to read the file
Help guys, anybody, I am new to Zend Framework
Vernon
HI
$file=root path(ie d:\wamp\www\pjtfolder\public\abc.html);
note does not give the path start with http://
$contents = file_get_contents($file);
will solve your problem
by
Ratheesh R