Posted by Vishal Joshi on 10/13/15 11:26
Hello,
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?
Thanks in advance.
Regards
Vishal Joshi.
Navigation:
[Reply to this message]
|