[PHP] File Type Validation problem.

2003-03-29 Thread Webmaster MBT
Hi I am wondering if any one can help me please: I'm trying to validate a file when uploading it. I want only to accept .jpg and .gif files so I'm trying to use. If(($file_type = = " image/JPEG") || ($file_type = = "image/GIF")) But it will not let through even the .jpg or .gif images.

[PHP] Image size, (not weight) help

2003-03-29 Thread Webmaster MBT
Hi: I would like to know if there is a way to know the size foan image when uploading it from a form page on PHP. I know the weight can be measured with $file_size but what Im looking for is to be able to validate if an image is more than 220pixels width or of height. Thanks in advance EJB --

[PHP] How to delay a header( Location: )

2003-03-21 Thread Webmaster MBT
Hi I need to delay the jump of a page that uses header(location: ) to jump. Ive tried adding a , after the file name (that's how we do it on html) but it doesn't work Any Ideas? EJB

[PHP] How to detect if a cookie is set?

2003-03-21 Thread Webmaster MBT
Hi I'm trying to make a script that first figures out if a cookie is set, if not,do this, if so, do that. Can I use: Isset($HTTP_COOKIE_VARS['nick'] or what should I use? EJB -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] problem with importing fields.

2003-02-14 Thread Webmaster MBT
Hi List. I have been working on a problem that is driving me crazy. I have to create a process in which I upload some info to a table. Since I have to add some different information to that table, I decided to do it like this. 1.I create a temporary table copying the structure of my final table.