uploading $_FILES EMERGENCY HELP!!!!!!!!

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default Re: uploading $_FILES EMERGENCY HELP!!!!!!!!


    "Phil Powell" <soazine@erols.com> wrote in message
    news:5GR%a.20889$3M4.16826@lakeread04...
    > I am facing a 2 hour deadline (it's 4:30EST right now) and I can't get
    past
    > this:
    >
    > Warning: Unable to create '../content/absolutetruthrelativetruth.txt':
    > Permission denied in
    > /home/youth/finesocceryouthsessions-www/include/admin_content.php on line
    80
    >
    > Warning: Unable to move '/tmp/phpYLgpcn' to
    > '../content/absolutetruthrelativetruth.txt' in
    > /home/youth/finesocceryouthsessions-www/include/admin_content.php on line
    80
    >
    > Warning: chmod failed: No such file or directory in
    > /home/youth/finesocceryouthsessions-www/include/admin_content.php on line
    86
    >
    >
    > Please, someone, anyone on earth, HELP!
    >
    > Code:
    >
    > if ($hasSubmittedContent) {
    > $fileName = str_replace(' ', '_', $_FILES['content']['name']);
    > // MOVE TO /content folder AND ADD _ TO ANY SPACES IN ORIGINAL NAME
    > move_uploaded_file($_FILES['content']['tmp_name'],
    > "$ACTUAL_STARTPATH/content/$fileName");
    > }
    >
    >
    > if ($hasSubmittedContent) {
    > // LOCK THE FILES DOWN AND REMOVE THE TEMP FILES - LOCK TO PREVENT
    > UNPAID USERS FROM VIEWING
    > chmod("$ACTUAL_STARTPATH/content/$fileName", 0700);
    > echo $font . '<font color=000099>File Uploaded: ' .
    > $ACTUAL_STARTPATH . '/content/' . $fileName .
    '</font></font><p>';
    > @unlink($_FILES['content']['tmp_name']); // SUPPRESS POTENTIAL
    WARNINGS
    > IF !is_uploaded_file
    > }
    >
    >
    >
    > Phil
    >
    >

    Phil Powell Guest

  2. Similar Questions and Discussions

    1. EMERGENCY: 500 Null error
      Help me! While trying to get java classes to load (cftree) I made a change in the CF Admin tool and restarted the service. Now all I get from ANY...
    2. Emergency repair disk
      Hi all, this may seem a silly question, but can one make Emergency Repair Disk for Windows 2003 servers. If I go into the Back it will only do a...
    3. HELP! Emergency! Something farked up bad! :-(
      ACK! Help! Help! Help! I've been working on a project for 2 weeks. I was wrapping it up for delivery tomorrow. I saved it, then tried reloading...
    4. Coverting RGB to CMYK? emergency!
      Is it possible to convert a photo from rgb to cmyk in PS Elements? This is an emergency!
    5. socket emergency
      Hi, I had a problem when using Winsock in ruby. I tried various ways, but to no avail. The situation is that I need to write a simple POP3 client...
  3. #2

    Default Re: uploading $_FILES EMERGENCY HELP!!!!!!!!

    Actually, it "works" with a patch of changing the folder where the files are
    stored to 777 via FTP. That is a very bad solution, but it's all I can
    think of to allow for file uploading.

    Phil

    "Andy Hassall" <andy@andyh.co.uk> wrote in message
    news:s6qvjv89amk245qmoc06eimoh5i5hlc10e@4ax.com...
    > On Sun, 17 Aug 2003 16:34:50 -0400, "Phil Powell" <soazine@erols.com>
    wrote:
    >
    > >I am facing a 2 hour deadline (it's 4:30EST right now) and I can't get
    past
    > >this:
    > >
    > >Warning: Unable to create '../content/absolutetruthrelativetruth.txt':
    > >Permission denied in
    > >/home/youth/finesocceryouthsessions-www/include/admin_content.php on line
    80
    >
    > Permissions on that directory are what? Does the file already exist?
    > Permissions on the existing file (particularly since you seem to change
    > permissions after a previous upload)? Which is line 80, presumably the 4th
    line
    > in your post?
    >
    > --
    > Andy Hassall (andy@andyh.co.uk) icq(5747695) ([url]http://www.andyh.co.uk[/url])
    > Space: disk usage analysis tool ([url]http://www.andyhsoftware.co.uk/space[/url])

    Phil Powell Guest

  4. #3

    Default Re: uploading $_FILES EMERGENCY HELP!!!!!!!!

    Phil Powell wrote:
    > Actually, it "works" with a patch of changing the folder where the files
    > are
    > stored to 777 via FTP. That is a very bad solution, but it's all I can
    > think of to allow for file uploading.
    >
    That's not a patch, that's how file permissions work in Unix

    If the webserver isn't in your group, you could change the permissions
    to 707 for a slight security increase

    matty Guest

  5. #4

    Default Re: uploading $_FILES EMERGENCY HELP!!!!!!!!

    I cannot come up with a working solution considering the architecture (your
    basic UNIX platform), it's either I set the directory permissions to 777 and
    then I can upload with any PHP script and never VIEW the files, or set the
    directory permissions to 777, add .htaccess and .htpasswd, then everyone
    that has to log in has to, again, provide username and password to view
    files, much less upload them..

    I honestly don't know what to do. Oh, did I mention I'm only getting $80 US
    out of this?

    Phil

    "matty" <matt+nntp@askmenoquestions.co.uk> wrote in message
    news:19V%a.8168$z7.914964@wards.force9.net...
    > Phil Powell wrote:
    >
    > > Actually, it "works" with a patch of changing the folder where the files
    > > are
    > > stored to 777 via FTP. That is a very bad solution, but it's all I can
    > > think of to allow for file uploading.
    > >
    >
    > That's not a patch, that's how file permissions work in Unix
    >
    > If the webserver isn't in your group, you could change the permissions
    > to 707 for a slight security increase
    >

    Phil Powell Guest

  6. #5

    Default Re: uploading $_FILES EMERGENCY HELP!!!!!!!!

    "Phil Powell" <soazine@erols.com> wrote in
    news:k0X%a.13$xf.2@lakeread04:
    > I cannot come up with a working solution considering the architecture
    > (your basic UNIX platform), it's either I set the directory
    > permissions to 777 and then I can upload with any PHP script and never
    > VIEW the files, or set the directory permissions to 777, add .htaccess
    > and .htpasswd, then everyone that has to log in has to, again, provide
    > username and password to view files, much less upload them..
    >
    > I honestly don't know what to do. Oh, did I mention I'm only getting
    > $80 US out of this?
    Well we're getting $0.00 USD of it this. If you charge for programming, you
    should at least know how to use UNIX properly.

    KAH
    KAH Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139