What error are you getting? I'm doing uploads but with different code...
these functions are new to me. The first thing I would check is the slashes
in your move function, perhaps they need to be forward slashes?
---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
The benefit to the government of replacing all $1 Federal Reserve notes with
$1 coins would be $522.2 million per year, according to estimates of the
General Accouting Office released on April 7, 2000.
> -----Original Message-----
> From: MacBane [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 10, 2001 1:35 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] File upload not working
>
>
> File uploading is not working for me on my server,
>
> it is a windows 2000 box running php 4.02
>
> this is my code
>
> <?php
> include("db_con.php");
> include("logincheck.php");
> if(isset($page_id));
> $page_id =("$page_id");
> print("
> <FORM ENCTYPE='multipart/form-data' ACTION='uploadfile.php'
> METHOD=POST>
> <INPUT TYPE='hidden' name='MAX_FILE_SIZE' value='5000000'>
> <INPUT NAME='userfile' TYPE='file'>
> <input type='hidden' name=page_id value='$page_id'>
>
> <INPUT TYPE='submit' VALUE='Send File'>
>
> </FORM>");
> ?>
>
>
> <?php
> if (is_uploaded_file($userfile))
>
> {
>
> move_uploaded_file($userfile,
> "C:\nusphere\apache\htdocs\morgan\php\database\CMS\pdf");
>
> }
> ?>
>
>
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]