[PHP] File Uploading Issue

2004-08-04 Thread PHP E-Mail List
Ok, I figured I'd tackle this since I've been coding php for about 6
months now. And wouldn't ya know, I'm having problems with, what I
thought would be the easiest thing to code ever.  Yeah well I get the
file to upload, and heck I can even take the file and display what text
was uploaded.

 

However when I go and try tio view the file in that directory. It says:

 

 Forbidden

 

You don't have permission to access /directory uploaded
to/renamed file.txt on this server.

 

Well if I don't have permission to view it, how is PHP able to read the
file after it's been uploaded and moved to display the $contents of the
file just uploaded?

 

I've tried changing the directory that it uploads to, same thing, I
changed the tmp_upload_directory in the php.ini file, it was N/A so I
added this to the php.ini file, but that doesn't work either.  It will
upload the file just fine, and If I FTP into the server, I can see the
file and I can retrieve the file just fine. I just don't get why I
personally don't have access from the same browser to view the file in
the browser.  Very confusing.  If I put something else in that directory
by FTP and go to the browser, I can see it just fine, it's only doing
this on the files that PHP uploads.

 

I can add code to help if necessary but I'm not encrypting the file on
upload or anything, I actually took the code out of one of the 6 books
on PHP that I have bought, it's PHP and MySQL Web Development 2nd
Edition.  By Luke Welling and Laura Thomson.  That's even more boggling.
The code starts on page 340 for anyone that has the book.  Any help on
this would be appreciated.  You know it's sad when I can create a super
cool database schema but I can't upload a stupid file without locking
myself out of the file from the browser.  Nice huh!!  :-)

 

Thanks In Advanced

Wolf

 



RE: [PHP] File Uploading Issue

2004-08-05 Thread PHP E-Mail List
Yeah I was at a friends house tonight and we telnetted (if that's a
word) into the server and found that it was set for read only not
execute and so I could see the directory listing but wasn't able to load
the file in the browser.  I figured it was something like this last
night, but with out the telnet to confirm it didn't make immediate
sense.  I'm now in the process of creating a chmod class to allow for
changing of the files based on the logged in user.

Thanks for the responses!
Wolf

-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 05, 2004 1:34 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] File Uploading Issue

On Thursday 05 August 2004 13:42, PHP E-Mail List wrote:

> You don't have permission to access /directory uploaded
> to/renamed file.txt on this server.

What are the permissions on that file?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
If you are smart enough to know that you're not smart enough to be an
Engineer, then you're in Business.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHPEdit almost as good as s*x (with a women in bikini)

2004-07-14 Thread PHP E-Mail List
Well I believe the problem is, This "person" claiming PHPEdit is better
than sex, just doesn't get any.

As I use PHPEdit and I'd still rather have sex!  :)

Especially.if she was in a bikini!!!

-Original Message-
From: EE [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 14, 2004 12:56 AM
To: PHP
Subject: [PHP] PHPEdit almost as good as s*x (with a women in bikini)

Sorry Guys,

I know that this is off-topic. In one of the sites,I saw the subject AD
{PHPEdit almost as good as s*x (with a women in bikini)}. This is really
irritating. What sex has to do with PHP. Does the PHPEdit folks think
that I will use their product if it is as good as s*x.

Sorry, really sorry.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php