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

I need help with formatting date from mysql! with php!
Hello guys

*Note: this is a php question not MySQL question, please do not move it to mysql s

Create comparison matrix?
I want to create a comparison script for forum software and was wondering is there any tutorial or b

date("now") prints out wrong date ?
Hi Guys
Anyone know why and how I can fix it ?

Unique Visitor Tracking
Hello. Currently, I run a voting site where voters are tracked by their IP address and can only vote

Display thumbnails as square while retaining aspect ratio
I am trying to figure out a way to make an image display as a square, for example 80x80 pixels, when

Merger of 6 sister companies under one flagship company after go live
Dear Experts,
I need one help regarding Merger of sister companies of same group. currently we

parse error
On my local machine I keep getting parse error for my footer. When I put it online, it doesn't show

Multiple PHP errors when clicking a link..and..removing a ghost..
Hi - I have 2 problems with a new website - homeswapvacations.com, which I need help solving.

building a function with multiple outputs
I want to build a function that has multiple outputs.

I know but am not to sure how I should

DirectoryIterator and Hacked Website
Hi Everyone.

My problem:
Some one has been sneaking in to my website hidden Iframes. I've

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