problem reading local files

hello i am new to php but i have used c and c++ for years…no matter how hard i try i cannot open a local file using fopen. i do not get an error i get a blank screen. i am running php5.3.3 on ubuntu 10.4. my phpinfo passes fine and i am using phpmyadmin for mySQL. localhost is apache2 with/var/www as root web address.ive tried to open a file using just file as in “myfile.txt” with the target file in the same directory as the php file and ive also used “/var/www/myfile.txt” nothing works…i really want to use php i have installed zend and codeigniter but i must have ability to read local files…im sure this can be done…what am i doing wrong?

Sponsor our Newsletter | Privacy Policy | Terms of Service