File Handle Problem
Posted: Sun Jul 16, 2006 3:48 pm
Hi Folks,
I've been trying to Open a directory on my Hosted website (it's with GoDaddy - the account is enabled with PHP 4.3) and I'm having troubles obtaining a file handle. Here's the code:
It always outputs "No handle", no matter what directory I attempt to open. It could be DOCUMENT_ROOT, my home folder, or just ".". Can anyone tell me what I'm doing wrong? Am I testing $handle correctly? Do I not have permissions to open the folders? Any ideas?
-Zeroed
I've been trying to Open a directory on my Hosted website (it's with GoDaddy - the account is enabled with PHP 4.3) and I'm having troubles obtaining a file handle. Here's the code:
Code: Select all
<?php
$handle = opendir("d:\\hosted\\zeroed"); // $_SERVER['DOCUMENT_ROOT']
$test = "This is a test.";
if ($handle) echo "Handle";
else echo "No handle.";
?>-Zeroed