logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: PHP cannot read files. Cannot tell if it's Apache's fault.
Author
Tokorona



Joined: 11 Aug 2007
Posts: 1

PostPosted: Sat 11 Aug '07 12:53    Post subject: PHP cannot read files. Cannot tell if it's Apache's fault. Reply with quote

I recently setup a testing server on my windows comp (production is on linux) because I was tiredof uploading and running database modifications when I workedon something.

So I downloaded Apache and PHP and set it up. I had to mess with PHP a little to get it to work, but phpinfo(); went off just fine and I was happy.

Until today. Unsure how PHP's MySQLi handled a DESC statement, I wrote off a short test program that needed to require() a general function php. That was 7 hours ago. It never worked.

I wrote some debug statements - here is the php file

Code:
 print "Read Opening";
 //test php
 
 $myfile = "C:\webroot\chardisp\genfunc.php";
 print is_file($myfile);
 clearstatcache();
 print is_readable($myfile);
 clearstatcache();

 print "Preparing to require";
 require $myfile;
 print "...";
 
 $dbconn = connectdb();
 print "Am I even running?";
 $result = $dbconn->query("DESCRIBE rpchar curr_msve");
 print_r($result);
 $dbconn->close();


I get this for output
"Read Opening11Preparing to require" and it then fails silently.

Running it in the standalone executable gets the same. The errors.txt file records no error emssages, and it is set to E_STRICT.

Nor does Apache record anything. I tried filegetcontents(); but it too, failed silently. What's going on here?

ETA: Oh, and include_path in php.ini is set to ".;"

ETA2: Forgot my softwate setup Embarassed Apache 2.2.4 (Win32) / PHP 5.2.3
Back to top


Reply to topic   Topic: PHP cannot read files. Cannot tell if it's Apache's fault. View previous topic :: View next topic
Post new topic   Forum Index -> Other Software