Posted by Hilarion on 09/13/05 13:00
> I am using phpMyAdmin 2.5.0 (PHP version 4.3.11 and MySQL 4.1.12) which
>
> is uploaded on our FTP site.
> In the project I need to upload files onto FTP site. I wont be able to
> use standard PHP functions like opendir. The opendir function fails at
> client site script.
> But at our localhost we installed PHP 5.x and APACHE server it is
> working perfectly. I wrote the folling code for the same..
> <?php
> $dir = "c:\\temp\\";
> if ($dh = opendir($dir)) {
> while (($file = readdir($dh)) !== false) {
> echo "filename: $file : filetype: " . filetype($dir . $file)
>
> . "\n";
> }
> closedir($dh);
> }
> ?>
> I need to read the directory on client side. How do I make it to work?
What do you mean by "client side"? You mentioned before "client site",
that's why I'm not sure. Does "client side" mean a user computer
which is browsing the webpage containing the script, or does "client
side" mean your client host machine?
In another words: where are the files you want to list? On your webserver,
your client webserwer or the webserver user computer?
Hilarion
Navigation:
[Reply to this message]
|