[PHP] Advanced Help Needed

2001-04-19 Thread Marc Davenport

I need some help figuring something out that my host denies is his problem.

I have a suspicion that only someone who has run into this problem once before has the 
answer.

I have this form which posts to a PHP file.  Sometimes I pass a file along.  This was 
info for a database and a picture along with it.   This worked fine for the longest 
time.  Now it does not.
when I post a file in the form I recieve an "Cannot Find Server".  When there isnt a 
file posted then the form works fine.  I dont understand because I recieve no PHP 
generated error messages, but rather a problem finding the site entirely.

Has anyone ever seen this?

Help would be much 
Marc Davenport



[PHP] Regular expressions

2001-08-08 Thread Marc Davenport

Hello all,
   I've been trying to find a good regular expression pattern to find
URLs.  I have found some that work fine when the protocol is included ie
http://www.php.net . But I can not find one that will find www.php.net .
Does anyone know where a good database of Regular expressions can be
found? or have a regular expression that can do this?

cheers,
Marc Davenport



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] File Upload Problem Solving?

2001-09-01 Thread Marc Davenport

On Fri, 31 Aug 2001, Jeff Oien wrote:

> I have a user who is unable to upload files but I don't know where
> to start with the troubleshooting process. I have this:
> 
> @copy("$img1", "/blah/$username/$img1_name") 
> or die("File upload didn't work."); 
> 
> and they are getting the die message. All but one person are able
> to upload.
> Jeff Oien

Check the following things.
1. Permissions. The Directory of the particular user might be set
different and therefore be the reason for the upload.
2. Max File Size. I'm assuming that you are trying the same file for all
people, but if not then the one person that can upload might just be
uploading a smaller file than the rest. Just a thought.

You may want to use is_uploaded_file() and move_uploaded_file() if you are
using PHP 4.0.2 or greater.

hope this helps
cheers,
marc davenport
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]