[PHP] Upload from a Mac
Has anyone any idea why I can not upload a gif file from a Mac ? I can upload the file, but it is not a gif when I receive it. -- 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]
[PHP] ImageCopyResampled() -> Php 4.0.6
If I want to use ImageCopyResampled(), do I then need Php 4.0.6 ? http://www.php.net/manual/en/function.imagecopyresampled.php -- [ www.eksperten.dk ] Scandinavias biggest IT forum. -- 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]
[PHP] MAX_FILE_SIZE : warning
When I set and a user uploads a file bigger than 50 my script prints a warning. How can I use MAX_FILE_SIZE and avoid that warning so that I can print my own error message to the user ? :) Jacob -- [ www.eksperten.dk ] Scandinavias biggest IT forum. -- 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] MAX_FILE_SIZE : warning
Thanks :) -- [ www.eksperten.dk ] Scandinavias biggest IT forum. ""James Holloway"" <[EMAIL PROTECTED]> wrote in message 9db61u$7d9$[EMAIL PROTECTED]">news:9db61u$7d9$[EMAIL PROTECTED]... > Jacob, > > When you upload a file, it appends a few of its own variables. One of them > is size - assuming the file is a variable called $file: > > if ($file_size > $max_size) { > echo $file_name . " was too big!"; > } > > Also, you could check for Mime types. > > if ($file_type != "image/jpeg" || $file_type != "image/pjpeg") { > echo "We only like jpegs!"; > } > > As a footnote, 500Kb is 512000 bytes (1024 bytes in a Kb). > > James. > > > When I set and a > > user uploads a file bigger than 50 my script prints a warning. > > > > How can I use MAX_FILE_SIZE and avoid that warning so that I can print my > > own error message to the user ? > > > > :) Jacob > > > > -- > 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] > -- 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]
[PHP] Script timeout with set_time_limit(0);
When I start a script like this : $fp = fsockopen($host, $port, $errno, $errstr, 30); if ($fp) { $fputs_str = "GET ".$path." HTTP/1.1\r\n"; $fputs_str .= "Host: ".$host."\r\n"; $fputs_str .= "\r\n"; fputs($fp, $fputs_str); fclose($fp); } The script will run for some time. But then ends. I have set set_time_limit(0); ignore_user_abort(1); but the script does not run through. What can I do ? -- [ www.eksperten.dk ] Scandinavias biggest IT forum. -- 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]