Ask a Question related to PHP Development, Design and Development.
-
Phil Powell #1
Re: uploading $_FILES EMERGENCY HELP!!!!!!!!
"Phil Powell" <soazine@erols.com> wrote in message
news:5GR%a.20889$3M4.16826@lakeread04...past> I am facing a 2 hour deadline (it's 4:30EST right now) and I can't get80> this:
>
> Warning: Unable to create '../content/absolutetruthrelativetruth.txt':
> Permission denied in
> /home/youth/finesocceryouthsessions-www/include/admin_content.php on line80>
> Warning: Unable to move '/tmp/phpYLgpcn' to
> '../content/absolutetruthrelativetruth.txt' in
> /home/youth/finesocceryouthsessions-www/include/admin_content.php on line86>
> Warning: chmod failed: No such file or directory in
> /home/youth/finesocceryouthsessions-www/include/admin_content.php on line'</font></font><p>';>
>
> 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 .WARNINGS> @unlink($_FILES['content']['tmp_name']); // SUPPRESS POTENTIAL> IF !is_uploaded_file
> }
>
>
>
> Phil
>
>
Phil Powell Guest
-
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... -
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... -
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... -
Coverting RGB to CMYK? emergency!
Is it possible to convert a photo from rgb to cmyk in PS Elements? This is an emergency! -
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... -
Phil Powell #2
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...wrote:> On Sun, 17 Aug 2003 16:34:50 -0400, "Phil Powell" <soazine@erols.com>past>> >I am facing a 2 hour deadline (it's 4:30EST right now) and I can't get80> >this:
> >
> >Warning: Unable to create '../content/absolutetruthrelativetruth.txt':
> >Permission denied in
> >/home/youth/finesocceryouthsessions-www/include/admin_content.php on lineline>
> 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> 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
-
matty #3
Re: uploading $_FILES EMERGENCY HELP!!!!!!!!
Phil Powell wrote:
That's not a patch, that's how file permissions work in Unix> 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.
>
If the webserver isn't in your group, you could change the permissions
to 707 for a slight security increase
matty Guest
-
Phil Powell #4
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
-
KAH #5
Re: uploading $_FILES EMERGENCY HELP!!!!!!!!
"Phil Powell" <soazine@erols.com> wrote in
news:k0X%a.13$xf.2@lakeread04:
Well we're getting $0.00 USD of it this. If you charge for programming, you> 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?
should at least know how to use UNIX properly.
KAH
KAH Guest



Reply With Quote

