943,724 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1081
  • PHP RSS
Oct 26th, 2008
0

how to upload a file less in IIS server using php

Expand Post »
can anyone tell me how to upload a file iis server I use the following code now but it doesn't work in iis server.
$fileName = basename( $_FILES['fileName']['name']);//filename from post

$currentdir=getcwd();//get current directory

$target_path = $currentdir."\\snaps\\" . $fileName ;

if(move_uploaded_file($_FILES['fileName']['tmp_name'], $target_path)) {
 echo "Success";
}
can I get a working code for this?

Thanks in advance,
Similar Threads
Reputation Points: 10
Solved Threads: 7
Junior Poster in Training
danishbacker is offline Offline
97 posts
since Apr 2008
Oct 26th, 2008
0

Re: how to upload a file less in IIS server using php

Do you get any errors? Try to use the full path /your/server/path/to/your/application

Full codes will be appreciated.
PoA
Reputation Points: 19
Solved Threads: 9
Posting Whiz in Training
PoA is offline Offline
234 posts
since Jul 2004
Oct 26th, 2008
0

Re: how to upload a file less in IIS server using php

www.symphonydoha.com/admin/admin.php
is the page.

only uploading is done here, so this is the only code. i have removed only the else part of 'if'.

Thanks.
Last edited by danishbacker; Oct 26th, 2008 at 2:53 pm.
Reputation Points: 10
Solved Threads: 7
Junior Poster in Training
danishbacker is offline Offline
97 posts
since Apr 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Updating data
Next Thread in PHP Forum Timeline: Code condensation for faster loading





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC