Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

opendir

Status
Not open for further replies.

Elmserv

Programmer
Sep 25, 2004
72
GB
My code so far

if ($handle = opendir("
{
echo $handle;
}


My current error

Warning: opendir( [function.opendir]: failed to open dir: not implemented in /home/clients/accounts/html/rlt/test.php on line 3

does anyone know how to overcome this problem?

PS I am using PHP 5

Richard
 
i don't believe that http supports directory listing as a protocol (i know that some web servers spoof this).

from the manual the indication is that only ftp and file protocols are supported at the present time.

 
now I am into an area I don't understand.

This is my own site & I have an FTP, username & password



FTP details:-

Server podrlt.alimatt.co.uk
User podrlt
Password xxxxxxxxx


My customer wants to upload pictures into this area then my code is supposed to detect the existance and create a link

At the mo the learning curve is vertical !!


Richard
 
instead, why don't you create a php script that reads the directories and builds a file list. you can call the script remotely and parse the output
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top