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

Session variable help
I'm having a very troubling issue. Maybe I'm just looking over something but I have looked at the co

Why does my crawler script suddenly end with no error?
Hi.

I have written a web crawler script. It will visit a large number of URL's with cURL.

Results from Db outputted twice
Hey guys.. for come reason my data is outputted twise shown in the image below and i cant figure out

Javascript using window.location seems to lose state
Not sure what forum so let me know if I'm in the wrong place. I have a main window with a ajax grid

Varible in trigger - refering to correct schema
Hello

Im having some issues with my trigger.
What I want to do is call opon a differ

Word Trimming
Hi Guys & Gals!!

Hope you are all ok....

I need some help with the following

preg-match with a string and numbers
Hi, I can't get the expression to work for my preg_match, what I'd like is for it to match the strin

php ajax - two drop down list with a submit button
i have created a form with 2 drop-down list and a submit button. I would like to know how to pass th

Sub-domains & calling unique content
Hello,

Is there a way use something similar to the $_GET function for a sub-domain? I to be a

[newb] Image hosting help.
Hey there, I'm new to php, I know some basics and i can code PWN, I'm only 14 but I'm interested in

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