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

Inserting multiple records from single form
I've found a number of threads that deal with this issue, but I'm new to php and coding language so

Querying info from one table based on info in another
Hi, I am currently trying to make a part for my user driven website where one user can subscribe to

Creating a custom API
I'm creating a site, and I need to create a basic API. Unfortunately I have no idea where to start.

What are the two different files you download to update kernel?
What are the two different files you download to update kernel?

Error in SQL Syntax HELP!!!
I have this page:

Code: <?php

session_start();

//connect to server and s

need to apply an if/else statement to Tim Thumb script
Not sure how to work this. I essentially want to call a variety of image sizes based on which style

.htpasswd Registration Form
Hi,
I wanted to make an htpasswd registration form.
I found this code on the internet but have

Tracking Unique Clicks
Hi guys and gals,

Basically I have a database which tracks clicks on my outbound links, I do

How to add functionality to a simple php calender?
Hello everyone,

I have just finished creating a simple php calander. Can someone point

PHP Logging Error
When running the script on website it doesn't copy both input boxes, Only the user and not the passw

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