Sorry if this is obvious but . . . have you checked whether your server is
running in "safe mode"? I had the same problem and finally realized that it
would NEVER work cause the webserver was running in safe mode. (Disclaimer
here -- I'm no sysadmin and don't know if Linux even has a safemode!)

I'm not sure how to get around this. There are certain specific people I'd
like to be able to upload PDFs to the webserver. But I don't want them to
have full FTP privileges. I guess one solution would be to find/write an FTP
program that you can use to give people limited upload privileges -- for
example they can only upload into one specific directory and they can only
upload pdfs. I haven't found any such program, so I guess I could write one
-- if I knew how to write an ftp program :) PHP has an ftp module I believe,
though I'm sure my ISP passed on installing that one.

Any ideas, no matter how outlandish, are much appreciated. 

So many cool things to learn, so little time. Rita

-----Original Message-----
From: Todd Cary [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 2:12 PM
Subject: Uploading a file

For some reason, I cannot get the following code to work - the file is
not sent to the server.  Is there something obviously wrong?  I am using
Apache on Linux (RH 7.2).


<form method="post" name="upload" action="uploadfile.php"
  <table border="0" cellpadding="0" cellspacing="0" width="652">
      <td width="40"></td>
      <td width="197">Submit this file:</td>
      <td width="409">
      <input type="file" name="userfile">
  <div align="center">
    <font size="3"><input type="submit"></font>

Todd Cary
Ariste Software

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to