Re: file i/o
| From: | John Voth | Date: | Wed, 20 Dec 2000 20:20:08 +0000 |
| Subject: | Re: file i/o | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-31306@lists.php.net to get a copy of this message | ||
At 08:58 PM 12/20/2000 +0200, Teodor Cimpoesu wrote:
>Hi John!
>On Wed, 20 Dec 2000, John Voth wrote:
>
>> When I load it up in my browser I get nothing! I mean the page source
>> looks like this: Could anyone shed some light on this? I'm sure that
>> I'm missing something simple. Thanks in advance! John
>
>Do you have PHP set up properly? If the answer < 0, then better check
>http://www.php.net/FAQ.php#5 as a starting point.
I do know that I have PHP installed properly since many other PHP tests work.
For example, my test.php file containing "phpinfo();" works really well - spewing
out many lines of code.
I've also tested out this script and it works but I can't figure out why.
<?
$d = dir("/mydir");
echo "Handle: ".$d->handle."<br>\n";
echo "Path: ".$d->path."<br>\n";
while($entry=$d->read()) {
echo $entry."<br>\n";
}
$d->close();
?>
/========================================================================\
| John Voth Mobiltex Data Ltd.Calgary, Alberta,Canada, T1Y-4T7 |
| jvoth@mobiltex.com 403-291-2770, 403-250-6795 (fax) |
\========================================================================/