| | |
how to upload a file less in IIS server using php
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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.
can I get a working code for this?
Thanks in advance,
$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";
}Thanks in advance,
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.
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.
![]() |
Similar Threads
- Apache (Linux Servers and Apache)
- No Access to Administrative Tools in WinXP Pro (IIS, Services, MMC) (Viruses, Spyware and other Nasties)
- No Access to Administrative Tools in WinXP Pro (IIS, Services, MMC) (Viruses, Spyware and other Nasties)
- Using PHP to connect to remote MSSQL database (PHP)
- PC acting wierd. had pokapoka file. Log included (Viruses, Spyware and other Nasties)
- PHP Pictures Layout (PHP)
Other Threads in the PHP Forum
- Previous Thread: Updating data
- Next Thread: Code condensation for faster loading
| Thread Tools | Search this Thread |
301 apache api array autosuggest beginner binary broken cakephp checkbox class cms code compression cron curl data database date display dropdownlist dynamic echo email eregi error execution file files folder form forms function functions google href htaccess html httppost if...loop image include insert ip javascript joomla jquery key library limit link links login mail md5 menu mlm multiple mysql mysql_real_escape_string oop paypal pdf pdfdownload php phpvotingscript problem query radio random recursion remote screen script search searchbox server session sessions sms sorting source space sql syntax system table tutorial update upload url validator variable video volume votedown web website youtube zend





