Re: [PHP] Help with header function

2002-06-11 Thread Shane Kelly
LOL...thanks ed...figured it out last night... don't need to do a file_exists since i capture file_name in my db...I do a query before the insert to see if the file_name entered in the form, matches any of the file_names stored in mySQL. if the count of the record set > 0 then the file exists, a

RE: [PHP] Help with header function

2002-06-10 Thread Lazor, Ed
LOL Yea, it's always much easier if we have actual code to work from rather than taking guesses in the dark. -Original Message- Why do I get the feeling I'm playing that "mind bender" game where you have to guess the right combination within so many turns? LOL

Re: [PHP] Help with header function

2002-06-10 Thread Kevin Stone
t;Lazor, Ed" <[EMAIL PROTECTED]> To: "'Kevin Stone'" <[EMAIL PROTECTED]>; "PHP-general" <[EMAIL PROTECTED]> Sent: Monday, June 10, 2002 2:00 PM Subject: RE: [PHP] Help with header function > I'm pretty sure it was the lack of a space in the

RE: [PHP] Help with header function

2002-06-10 Thread Lazor, Ed
I'm pretty sure it was the lack of a space in the header field between Location: and the actual url. -Original Message- The only thing I can think of is that you have a syntax error in the header. -Kevin ***

Fw: [PHP] Help with header function

2002-06-10 Thread Kevin Stone
The only thing I can think of is that you have a syntax error in the header. -Kevin - Original Message - From: "Shane Kelly" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 10, 2002 1:43 PM Subject: Re: [PHP] Help with header function > I don

Re: [PHP] Help with header function

2002-06-10 Thread Shane Kelly
I don't get an error message...but the page doesn't automatically forward to the redirected url. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with header function

2002-06-10 Thread Stuart Dallas
On Monday, June 10, 2002 at 8:03:40 PM, you wrote: > header("Location:http://www.mysite.com/file_exists.php";); You should have a space after Location:... header("Location: http://www.mysite.com/file_exists.php";); If that's not it, please post the error/what happens. We are not mind readers.

Fw: [PHP] Help with header function

2002-06-10 Thread Kevin Stone
lt;[EMAIL PROTECTED]> Sent: Monday, June 10, 2002 1:03 PM Subject: [PHP] Help with header function > I'm creating an upload form for users to upload files to my server. but I > don't want them to overwrite existing files if they try to upload using the > same file nam

[PHP] Help with header function

2002-06-10 Thread Shane Kelly
I'm creating an upload form for users to upload files to my server. but I don't want them to overwrite existing files if they try to upload using the same file name... THE FOLLOWING SCRIPT WORKS PERFECTLY if (file_exists("uploads/documents/".$file_name)==TRUE) { die ("File already exists")