RE: [PHP] Download Script

2004-08-27 Thread Ivo Pletikosic
I am wondering if this is my headers that are doing this, but I really dont know. I think its an IE or Windows behavior and what causes it is the multiple dots in the filename. I resorted to naming our downloads filename-v1_0_2_1.exe -Original Message- From: Aaron Todd

RE: [PHP] view outputed headers?

2004-01-12 Thread Ivo Pletikosic
I've been using mozilla firebird as a test browser with the 'Live HTTP Headers' extension. I've found it most useful. http://texturizer.net/firebird/extensions/#livehttpheaders -Original Message- From: Scott Taylor [mailto:[EMAIL PROTECTED] Sent: Sunday, January 11, 2004 9:34 PM

[PHP] if(NANC 0) - always evaluates TRUE...

2004-01-06 Thread Ivo Pletikosic
...no matter what follows the NANC...seems like a bug. if(NA 0) { print(err 1\n); } if(NAN 0) { print(err 2\n); } if(NANC 0) { print(err 3\n); } if(NANCY 0) { print(err 4\n); } // output err 3 err 4 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] if(NANC 0) - always evaluates TRUE...

2004-01-06 Thread Ivo Pletikosic
Hi, Never noticed it before...only after the linux box got updated to v4.3.4...running the script against my v4.2.3 also outputs err 3 err4...version 4.0.6 outputs nothing as it should. Odd...not sure where to start digging to figure this...in the meantime I'll work it around like this: $data

[PHP] Strong typed or Weak typed? (was: if(NANC 0) - always evaluates TRUE...)

2004-01-06 Thread Ivo Pletikosic
-Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] From: Kelly Hallman [EMAIL PROTECTED] On Tue, 6 Jan 2004, Ivo Pletikosic wrote: $data = 'NANC'; if(is_numeric($data) $data 0) { die('Not OK'); } Interesting problem, one of the first legit oddities

RE: [PHP] Verifying a url

2004-01-06 Thread Ivo Pletikosic
It did not work for me but since I have only one http port and one https port on my server i use instead if( $_SERVER['SERVER_PORT'] == 80 ) echo 'http'; C. -Original Message- From: Richard Davey [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 06, 2004 6:56 PM To: Thomas Andersen

RE: [PHP] Extracting Compressed Files

2003-08-14 Thread Ivo Pletikosic
Hey Matt, Below is a cut down version of how I'm doing it. I lifted most of it right out of the manual examples. It assumes a single entry in each compressed file. function uncompress($filepath, $new_filename, $compression) { if($compression == COMPRESSION_GZIP) { $zp = gzopen(

RE: [PHP] Invalid Characters, XML...

2003-08-04 Thread Ivo Pletikosic
I had a similar problem recently, but was not able to work with it in PHP tho. The array for that mapped characters to their entity turned out to be HUGE and it took forever to evaluate long XML files. I ended up killing several birds with one stone by wrapping the html-tidy utility

[PHP] Test a zip file for validity

2003-08-01 Thread Ivo Pletikosic
Hello all, How do I go about checking if a file is a zip file? Wrapping the zipinfo utility in php did not help since it does not return an exit code whether it succeeded or not. Thanks, IP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Uploading files time out every so often

2003-07-03 Thread Ivo Pletikosic
Hello, I am currently involved in a site where users frequently need to upload text files of various sizes. Every so often users will experience problems where the uploads will start timing-out and need to be reinitiated. The timeout problem comes and goes, so far I've been unable to find the

RE: [PHP] strip white space

2003-07-02 Thread Ivo Pletikosic
would $team_name = trim(ereg_replace( +, , $team_name )); do it? -Original Message- From: Steve Buehler [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 9:50 AM To: PHP Subject: [PHP] strip white space I am not sure how to go about this and hope that someone can help here.

RE: [PHP] Serving files with different filename from their own

2003-06-27 Thread Ivo Pletikosic
You can also initiate the download with headers yourself...tho it might be a bit cumbersome than just using direct links: Header( Content-Type: application/octet-stream ); Header( Content-Length: . filesize( $path ) ); Header( Content-Disposition: attatchment; filename=$filename ); readfile(