scandir clients directory


Posted on 16th Feb 2014 07:03 pm by admin

hi,
how can i scandir the clients directory? i need a script that when i click a button it will upload all the files in the directory

$dir = "\\".$_SERVER["REMOTE_ADDR"]."\NewFolder";
$dir = scandir($dir);
foreach($dir as $item){
echo $item;
}


its not working

error:
QuoteWarning: scandir(\192.168.200.108NewFolder) [function.scandir]: failed to open dir: No such file or directory in C:xampphtdocsVYPAdtraqtestsave_success.php on line 43
its in intranet and the folder is already fully shared

No comments posted yet

Your Answer:

Login to answer
134 Like 38 Dislike
Previous forums Next forums
Other forums

phpmailer class & pop.gmail.com?
Code: <?php
$mail->IsSMTP();
$mail->Host = "pop.gmail.com";

PHP switch function help
Hi, I am trying to create a search function for a directory website. On the search function on html

newbie error
what is wrong with this code ?

<html>
<body>

<?

How to get variable value on next page
Hello friends
i am working on payentry page ..there i have this code.........

convert pps to wsf with php'how?
hi
i want to convert with php
PowerPoint file to swf file(flash)
how please?
thank!!!

utf8_general_ci error ??
I have all kinds of data to be inserted in database table

//I am getting this error

Yo

is_dir() problem
Hello,

I'm buidling a php scripts that dynamically get's subfolders from a specific folder.

update sql when refresh - php
hi
I have made a table (attachement)

the users can update the sql database using + or x bu

Functions Not Loading Into Div
I had some help doing some of this but what I'm trying to do is get my functions to retrieve its val

compile php5 with DOM
Hi,

I can't manage to compile php 5.3.0 from source on Windows to include DOM,
in spite of

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash