Re: [PHP] Zip files: generate text file in archive on the fly

2010-10-17 Thread Simon J Welsh
Have you considered writing to a temporary file? On 18/10/2010, at 11:55 AM, Dotan Cohen wrote: > I need to provide a download of a zip archive containing three files. > This is fairly straightforward in PHP so long as one is working with > files that already exist. However, I need to customise on

Re: [PHP] Zip Search

2010-04-16 Thread tedd
At 3:21 PM -0400 4/15/10, Jack wrote: Hello All, Can anyone recommend a good open source zip code search application and database? Thanks, Jack Do you mean something like this: http://php1.net/b/zipcode/ Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earths

Re: [PHP] Zip Search

2010-04-15 Thread Jason Pruim
On Apr 15, 2010, at 3:21 PM, Jack wrote: Hello All, Can anyone recommend a good open source zip code search application and database? If it's us zip's you want... I'd go straight to the source... http://www.usps.com/zip4/welcome.htm?from=home_header&page=findazipcode The post office a

Re: [PHP] Zip Search

2010-04-15 Thread Nathan Nobbe
On Thu, Apr 15, 2010 at 1:51 PM, Tommy Pham wrote: > > -Original Message- > > From: Nathan Nobbe [mailto:quickshif...@gmail.com] > > Sent: Thursday, April 15, 2010 12:41 PM > > To: Jack > > Cc: php-general@lists.php.net > > Subject: Re: [PHP] Zip Sear

RE: [PHP] Zip Search

2010-04-15 Thread Tommy Pham
> -Original Message- > From: Nathan Nobbe [mailto:quickshif...@gmail.com] > Sent: Thursday, April 15, 2010 12:41 PM > To: Jack > Cc: php-general@lists.php.net > Subject: Re: [PHP] Zip Search > > On Thu, Apr 15, 2010 at 1:21 PM, Jack wrote: > > > Hello Al

Re: [PHP] Zip Search

2010-04-15 Thread Nathan Nobbe
On Thu, Apr 15, 2010 at 1:21 PM, Jack wrote: > Hello All, > > Can anyone recommend a good open source zip code search application and > database? > depends on what you want, u.s., canada & mexico are pretty easy to find but for other non domestic countries if you find something good feel free to

Re: [PHP]Zip and text files generated are corrupted

2010-03-30 Thread Bastien Helders
I've come to realize something, but I'm not sure if I could be right: Maybe the instructions are interrupted because there is a lack of virtual memory. I mean is there not a limit to the memory the script can use? It would explain why the script goes on, as when the instruction is interrupted, all

Re: [PHP]Zip and text files generated are corrupted

2010-03-29 Thread Bastien Helders
>I'm not sure. What is the exact command you are using? I'll show the code for the two scenario, maybe it'll help. I've edited out the sensitive information though, but I kept the essence of how it works. 1) Copy the previous file and make modification on it &1'; exec($command, $output,

Re: [PHP]Zip and text files generated are corrupted

2010-03-27 Thread Kim Madsen
Mike Roberts wrote on 25/03/2010 14:56: remove No :-) Use the proper unsubscribe method rather than spamming the list. -- Kind regards Kim Emax - masterminds.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP]Zip and text files generated are corrupted

2010-03-26 Thread Richard Quadling
On 26 March 2010 15:20, Bastien Helders wrote: >  I have checked the rights on the file for the first scenario and no user as > locked it, I can see it, read it and write into it. I could even delete it > if I wanted. > > For the second scenario, it doesn't even apply, as the exec('zip') that > ti

Re: [PHP]Zip and text files generated are corrupted

2010-03-26 Thread Bastien Helders
I have checked the rights on the file for the first scenario and no user as locked it, I can see it, read it and write into it. I could even delete it if I wanted. For the second scenario, it doesn't even apply, as the exec('zip') that timeout try to create a new file (naturally in a folder where

Re: [PHP]Zip and text files generated are corrupted

2010-03-26 Thread Richard Quadling
On 26 March 2010 12:21, Bastien Helders wrote: > I already used error_reporting and set_time_limit and the use of > ini_set('display_errors', 1); didn't display more exceptions. > > However the modification in the exec helped display STDERR I think. > > 1) In the first scenario we have the followi

Re: [PHP]Zip and text files generated are corrupted

2010-03-26 Thread Bastien Helders
I already used error_reporting and set_time_limit and the use of ini_set('display_errors', 1); didn't display more exceptions. However the modification in the exec helped display STDERR I think. 1) In the first scenario we have the following: zip warning: ../../build/Patch-6-3-2_Q3P15.zip not f

Re: [PHP]Zip and text files generated are corrupted

2010-03-26 Thread Richard Quadling
On 26 March 2010 08:51, Bastien Helders wrote: > I've already specified the outputs, and it doesn't change if I put it in a > file. > > 1)In the first scenario, where all the data are compressed together, the > only call of exec('zip') give this output: > > > adding: bin/ (stored 0%) > adding: bi

Re: [PHP]Zip and text files generated are corrupted

2010-03-26 Thread Bastien Helders
I've already specified the outputs, and it doesn't change if I put it in a file. 1)In the first scenario, where all the data are compressed together, the only call of exec('zip') give this output: adding: bin/ (stored 0%) adding: bin/startHotFixInstaller.bat (deflated 41%) adding: bin/startHotFi

Re: [PHP]Zip and text files generated are corrupted

2010-03-25 Thread Richard Quadling
On 25 March 2010 13:31, Bastien Helders wrote: > I'm really stumped, it seems that although the script is running under the > time limit, if a single instruction such as exec("zip") in the first case, > or copy() in the second case are timing out, because it takes too much time > processing the bi

RE: [PHP]Zip and text files generated are corrupted

2010-03-25 Thread Mike Roberts
://www.profsurv.com/magazine/article.aspx?i=70379 -Original Message- From: Bastien Helders [mailto:eldroskan...@gmail.com] Sent: Thursday, March 25, 2010 9:32 AM To: rquadl...@googlemail.com Cc: a...@ashleysheridan.co.uk; php-general@lists.php.net Subject: Re: [PHP]Zip and text files generated are

Re: [PHP]Zip and text files generated are corrupted

2010-03-25 Thread Bastien Helders
I'm really stumped, it seems that although the script is running under the time limit, if a single instruction such as exec("zip") in the first case, or copy() in the second case are timing out, because it takes too much time processing the big file. Is there any configuration in php.ini (or anywh

Re: [PHP]Zip and text files generated are corrupted

2010-03-25 Thread Bastien Helders
Forgot to say, it is the second scenario that generate corrupted zip and text files with unexpected end of files. 2010/3/25 Bastien Helders > So I tested two scenario: > > - First, I gather all the files selected for the patch and then compress > them together and here is what is displayed: > >

Re: [PHP]Zip and text files generated are corrupted

2010-03-25 Thread Bastien Helders
So I tested two scenario: - First, I gather all the files selected for the patch and then compress them together and here is what is displayed: [Begin display] The command zip -gr ../../build/Patch-6-3-2_Q3P15.zip * returned a status of 14 and the following output: adding: bin/ (stored 0%) adding

RE: [PHP]Zip and text files generated are corrupted

2010-03-24 Thread Mike Roberts
://www.profsurv.com/magazine/article.aspx?i=70379 -Original Message- From: Richard Quadling [mailto:rquadl...@googlemail.com] Sent: Wednesday, March 24, 2010 11:25 AM To: Bastien Helders Cc: a...@ashleysheridan.co.uk; php-general@lists.php.net Subject: Re: [PHP]Zip and text files generated are

RE: [PHP]Zip and text files generated are corrupted

2010-03-24 Thread Mike Roberts
://www.profsurv.com/magazine/article.aspx?i=70379 -Original Message- From: Bastien Helders [mailto:eldroskan...@gmail.com] Sent: Wednesday, March 24, 2010 11:19 AM To: a...@ashleysheridan.co.uk Cc: php-general@lists.php.net Subject: Re: [PHP]Zip and text files generated are corrupted Hi Ashley, No

Re: [PHP]Zip and text files generated are corrupted

2010-03-24 Thread Richard Quadling
On 24 March 2010 15:19, Bastien Helders wrote: > Hi Ashley, > > No, I set the time limit high enough (set_time_limit(2*HOUR+8*MINUTE);), and > the execution stops a long time before the time limit is reached. > > It might be relevent that the web application is hosted on a Windows > Machine. > > I

Re: [PHP]Zip and text files generated are corrupted

2010-03-24 Thread Bastien Helders
Hi Ashley, No, I set the time limit high enough (set_time_limit(2*HOUR+8*MINUTE);), and the execution stops a long time before the time limit is reached. It might be relevent that the web application is hosted on a Windows Machine. I asked myself, would setting the parameter "memory_limit" of th

Re: [PHP]Zip and text files generated are corrupted

2010-03-24 Thread Ashley Sheridan
On Wed, 2010-03-24 at 15:34 +0100, Bastien Helders wrote: > Hi list, > > I've got this web app, which from a list of selected folders (with content) > want to create a zip containing them as well as creating a text file with > information about the chosen folders and how to use them. > > To crea

Re: [PHP] zip codes and lat/longs

2007-12-06 Thread Robert Cummings
Welcome back Richard :) Cheers, Rob. On Thu, 2007-12-06 at 10:43 -0600, Richard Lynch wrote: > On Thu, December 6, 2007 9:49 am, Jason Pruim wrote: > > > > On Dec 6, 2007, at 10:29 AM, Daniel Brown wrote: > > > >> On Dec 5, 2007 8:58 PM, tedd <[EMAIL PROTECTED]> wrote: > >>> Hi gang: > >>> > >>>

Re: [PHP] zip codes and lat/longs

2007-12-06 Thread Daniel Brown
On Dec 6, 2007 11:43 AM, Richard Lynch <[EMAIL PROTECTED]> wrote: > The free one is from an OLD US census, paid for by taxpayers, and > therefore Public Domain. > > $1,000 ones (should) include new zips (lots) and up-to-date population > info etc. Yeah, mine actually does. It's from 2006 and

Re: [PHP] zip codes and lat/longs

2007-12-06 Thread Richard Lynch
On Thu, December 6, 2007 9:49 am, Jason Pruim wrote: > > On Dec 6, 2007, at 10:29 AM, Daniel Brown wrote: > >> On Dec 5, 2007 8:58 PM, tedd <[EMAIL PROTECTED]> wrote: >>> Hi gang: >>> >>> I'm entertaining how to determine what zip codes fall within a 50 >>> mile radius of another zip code. >>> >>>

Re: [PHP] zip codes and lat/longs

2007-12-06 Thread Daniel Brown
On Dec 6, 2007 11:12 AM, mike <[EMAIL PROTECTED]> wrote: > You can use the formula to figure out how many zip codes are within the radius Or you can stop shooting me in the ass by showing me things that make me wonder why I wasted all that time! ;-P -- Daniel P. Brown [Phone Numbers Go Here

Re: [PHP] zip codes and lat/longs

2007-12-06 Thread mike
You can use the formula to figure out how many zip codes are within the radius Here's a snippet of old code that did that: $radius = 50; // in miles $uchk = db_query("SELECT uz.zip FROM user_zip WHERE uid=$visitor[uid]"); if(db_numrows($uchk) == 1) { list($vz) = d

RE: [PHP] zip codes and lat/longs

2007-12-06 Thread Jay Blanchard
[snip] I'm entertaining how to determine what zip codes fall within a 50 mile radius of another zip code. Anyone done this before? Also, does anyone have any sources for zip codes and lat/long databases? TIA for any help/suggestions. [/snip] Here is a code snip that I use to determine things w

Re: [PHP] zip codes and lat/longs

2007-12-06 Thread Daniel Brown
On Dec 6, 2007 11:02 AM, mike <[EMAIL PROTECTED]> wrote: [snip!] > 1) download ZCTA (the text version) from > http://www.census.gov/geo/www/gazetteer/places2k.html [snip!] How you say? Son of the bitch. Well, my database still has more information, including nearby ZIP codes, et cetera.

Re: [PHP] zip codes and lat/longs

2007-12-06 Thread mike
After reading this I decided to figure out what the issue was. It was the MySQL result set. Somehow the columns changed and messed up the float values. So I just whipped this up quick to reload the data (and possibly update it too) Here's the quick-and-dirty: 1) download ZCTA (the text version)

Re: [PHP] zip codes and lat/longs

2007-12-06 Thread Daniel Brown
On Dec 6, 2007 10:49 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: > > On Dec 6, 2007, at 10:29 AM, Daniel Brown wrote: > > > On Dec 5, 2007 8:58 PM, tedd <[EMAIL PROTECTED]> wrote: > >> Hi gang: > >> > >> I'm entertaining how to determine what zip codes fall within a 50 > >> mile radius of another zi

Re: [PHP] zip codes and lat/longs

2007-12-06 Thread Jason Pruim
On Dec 6, 2007, at 10:29 AM, Daniel Brown wrote: On Dec 5, 2007 8:58 PM, tedd <[EMAIL PROTECTED]> wrote: Hi gang: I'm entertaining how to determine what zip codes fall within a 50 mile radius of another zip code. Anyone done this before? Also, does anyone have any sources for zip codes and

Re: [PHP] zip codes and lat/longs

2007-12-06 Thread Daniel Brown
On Dec 5, 2007 8:58 PM, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > I'm entertaining how to determine what zip codes fall within a 50 > mile radius of another zip code. > > Anyone done this before? > > Also, does anyone have any sources for zip codes and lat/long databases? Tedd, I hav

Re: [PHP] zip codes and lat/longs

2007-12-05 Thread mike
Here's code I had, but it recently stopped working It takes the zip code for the user and the user you're viewing, looks them up from the data table (z_data_zips) and does the calculation. The formula is in a handful of places - I converted mine from a MySQL example (I think, or vice versa) You c

RE: [PHP] zip codes and lat/longs

2007-12-05 Thread Bastien Koert
hate to say it,but there is lots on google like http://www.code322.com/zipcode_locator.php bastien> Date: Wed, 5 Dec 2007 20:58:52 -0500> To: php-general@lists.php.net> From: [EMAIL PROTECTED]> Subject: [PHP] zip codes and lat/longs> > Hi gang:> > I'm entertaining how to determine what zip c

Re: [PHP] zip freezes - how to handle corrupt CRC in zip-file

2007-08-16 Thread ecc
Ok, yesterday i´ve tried this... the command freezese. No chance to get an error from the archive. Am i stupid? The original zip tool give me an error on bad crc in a file, php quits with an freeze. I´ve tried also the crc error. No chance. The $zip->open always give me and TRUE as return value.

Re: [PHP] zip freezes - how to handle corrupt CRC in zip-file

2007-08-15 Thread ecc
Ah, fine. How do i use this ZIPARCHIVE::CHECKCONS flag? Something like that should work, i think? $zip = new ZipArchive; $res = $zip->open ( $filename ZIPARCHIVE::CHECKCONS ); if (TRUE === $res) { # all looks fine } elseif { switch($res){ case ZIPARCHIVE::ER_INCONS:

Re: [PHP] zip freezes - how to handle corrupt CRC in zip-file

2007-08-14 Thread Richard Lynch
On Tue, August 14, 2007 5:42 am, ecc wrote: > i´m reading zip-files with the php zip-functions without a problem. > Now i > got and Zip containing an corrupt crc (If i open this file via winzip, > the > error is shown). > > It looks like the php functions for zip-handeling "zip_entry_read" and > "

Re: [PHP] zip freezes - how to handle corrupt CRC in zip-file

2007-08-14 Thread ecc
Hi Sanjeev, thank you for your fast answer. what do you mean with "error handling function" ()? If i read in the zip_entry, the function is freezing no chance to handle the error, because php dont give me an error or exception. If php find a corrupt file, it freezes on this position. Maybe i c

Re: [PHP] zip freezes - how to handle corrupt CRC in zip-file

2007-08-14 Thread sanjeevn
Use error handling function for time being and exit from the loop where control going in the loop. On 8/14/07, ecc <[EMAIL PROTECTED]> wrote: > > > Hi @all, > > i´m reading zip-files with the php zip-functions without a problem. Now i > got and Zip containing an corrupt crc (If i open this file v

Re: [PHP] ZIP it :o)

2007-06-01 Thread Richard Lynch
, it works, it does work fast enough, and I am happy :o) > > Thanks a bunch, guys, and have a great day! > > This is Christian Haensel live from Extertal, Germany. Back to you. > > -:oD)= > > > - Original Message - > From: "Tijnema" <[EMAIL PROTECTED]> >

Re: [PHP] ZIP it :o)

2007-06-01 Thread Richard Lynch
On Fri, June 1, 2007 12:30 am, Auto-Deppe, C. Haensel wrote: > Morning guys, > > I have been trying to find an easy to use way to zip an archive on a > linux > box running PHP5. Now I've tried the zip-lib.php and others, but they > always > throw an error msg But that is not the question. > >

Re: [PHP] ZIP it :o)

2007-06-01 Thread Jim Lucas
, and then zip em up, delete >> them >> > afterwards. I copy them to the dir so I wouldn't have the whole >> > /kfz_images/number/full/ structure in the zip). >> > >> > Aaaanyhow, it works, it does work fast enough, and I am happy :o) >> > >> >

Re: [PHP] ZIP it :o)

2007-06-01 Thread Tijnema
e >> them >> > afterwards. I copy them to the dir so I wouldn't have the whole >> > /kfz_images/number/full/ structure in the zip). >> > >> > Aaaanyhow, it works, it does work fast enough, and I am happy :o) >> > >> > Thanks a bunch, gu

Re: [PHP] ZIP it :o)

2007-06-01 Thread Jim Lucas
/kfz_images/number/full/ structure in the zip). > > Aaaanyhow, it works, it does work fast enough, and I am happy :o) > > Thanks a bunch, guys, and have a great day! > > This is Christian Haensel live from Extertal, Germany. Back to you. > > -:oD)= > > > - Original Me

Re: [PHP] ZIP it :o)

2007-06-01 Thread Tijnema
full/ structure in the zip). > > Aaaanyhow, it works, it does work fast enough, and I am happy :o) > > Thanks a bunch, guys, and have a great day! > > This is Christian Haensel live from Extertal, Germany. Back to you. > > -:oD)= > > > - Original Message - Fr

Re: [PHP] ZIP it :o)

2007-06-01 Thread Jim Lucas
nks a bunch, guys, and have a great day! This is Christian Haensel live from Extertal, Germany. Back to you. -:oD)= - Original Message - From: "Tijnema" <[EMAIL PROTECTED]> To: "Chris" <[EMAIL PROTECTED]> Cc: "Auto-Deppe, C. Haensel" <[EMAIL PROTECTED

Re: [PHP] ZIP it :o)

2007-06-01 Thread Auto-Deppe, C. Haensel
! This is Christian Haensel live from Extertal, Germany. Back to you. -:oD)= - Original Message - From: "Tijnema" <[EMAIL PROTECTED]> To: "Chris" <[EMAIL PROTECTED]> Cc: "Auto-Deppe, C. Haensel" <[EMAIL PROTECTED]>; Sent: Friday, June

Re: [PHP] ZIP it :o)

2007-06-01 Thread Tijnema
On 6/1/07, Chris <[EMAIL PROTECTED]> wrote: Auto-Deppe, C. Haensel wrote: > Morning guys, > > I have been trying to find an easy to use way to zip an archive on a linux > box running PHP5. Now I've tried the zip-lib.php and others, but they > always > throw an error msg But that is not the qu

Re: [PHP] ZIP it :o)

2007-05-31 Thread Chris
Auto-Deppe, C. Haensel wrote: Morning guys, I have been trying to find an easy to use way to zip an archive on a linux box running PHP5. Now I've tried the zip-lib.php and others, but they always throw an error msg But that is not the question. I am looking to use exec("zip archive.zip $d

Re: [PHP] ZIP it :o)

2007-05-31 Thread Jim Lucas
Auto-Deppe, C. Haensel wrote: Morning guys, I have been trying to find an easy to use way to zip an archive on a linux box running PHP5. Now I've tried the zip-lib.php and others, but they always throw an error msg But that is not the question. I am looking to use exec("zip archive.zip $d

Re: [PHP] ZIP it :o)

2007-05-31 Thread Stut
Auto-Deppe, C. Haensel wrote: I have been trying to find an easy to use way to zip an archive on a linux box running PHP5. Now I've tried the zip-lib.php and others, but they always throw an error msg But that is not the question. I am looking to use exec("zip archive.zip $directory"); $d

Re: [PHP] Zip Codes

2004-11-04 Thread Dusty Bin
Brian V Bonini wrote: On Thu, 2004-11-04 at 12:47, Vail, Warren wrote: If you can figure out how to make sense of this, you might be able to find the point that a system is connected to the internet, by tracing back to a visitors current IP address. Which may get you close but either way would pr

RE: [PHP] Zip Codes

2004-11-04 Thread Brian V Bonini
On Thu, 2004-11-04 at 12:47, Vail, Warren wrote: > If you can figure out how to make sense of this, you might be able to find > the point that a system is connected to the internet, by tracing back to a > visitors current IP address. Which may get you close but either way would probably be more i

RE: [PHP] Zip Codes

2004-11-04 Thread Jay Blanchard
[snip] > Thanks for the sarcasm, it definitely helps. > > Why is it that when people ask a question there is always someone that has > a smartass answer? > It keeps us on our toes. Someone's gotta do it. [/snip] It would be a terrible thing to arrive one day, open the list, and see that everyone

Re: [PHP] Zip Codes

2004-11-04 Thread Matthew Sims
> Thanks for the sarcasm, it definitely helps. > > Why is it that when people ask a question there is always someone that has > a smartass answer? > It keeps us on our toes. Someone's gotta do it. -- --Matthew Sims -- -- PHP General Mailing List (http://www.php.net/) T

RE: [PHP] Zip Codes

2004-11-04 Thread Vail, Warren
Because for some of us, that part of our body is the smartest thing we have going, and the rest of us is not engaged in the question. Warren Vail -Original Message- From: bb9876 [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 9:41 AM To: [EMAIL PROTECTED] Subject: Re: [PHP

RE: [PHP] Zip Codes

2004-11-04 Thread Vail, Warren
the list informed. Warren Vail -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 9:22 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Zip Codes bb9876 wrote: > Is there any way to use PHP to determine the zip code someone is > visitin

Re: [PHP] Zip Codes

2004-11-04 Thread bb9876
Thanks for the sarcasm, it definitely helps. Why is it that when people ask a question there is always someone that has a smartass answer? "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thursday 04 November 2004 16:59, bb9876 wrote: > > Is there any way to use PHP t

Re: [PHP] Zip Codes

2004-11-04 Thread Matthew Weier O'Phinney
* Bb9876 <[EMAIL PROTECTED]>: > "John Nichel" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > bb9876 wrote: > > > Is there any way to use PHP to determine the zip code someone is > > > visiting > > > from, assuming they are all from the US? > > > > > > > Outside of asking the visi

Re: [PHP] Zip Codes

2004-11-04 Thread bb9876
Okay, I run a movie news site and wanted to use it to make it even quicker for users to find movie times in their area whether they were logged in or not, but that's the way it goes. Thanks fo rthe replies. "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > bb9876 wrote:

Re: [PHP] Zip Codes

2004-11-04 Thread Jason Wong
On Thursday 04 November 2004 16:59, bb9876 wrote: > Is there any way to use PHP to determine the zip code someone is visiting > from, assuming they are all from the US? Something like this should work: -- start Please input zipcode -- end -- Jason Wong -> Gremlins Associat

Re: [PHP] Zip Codes

2004-11-04 Thread John Nichel
bb9876 wrote: Is there any way to use PHP to determine the zip code someone is visiting from, assuming they are all from the US? Outside of asking the visitor for it, no. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Zip Codes

2004-11-04 Thread Greg Donald
On Thu, 4 Nov 2004 08:59:50 -0800, bb9876 <[EMAIL PROTECTED]> wrote: > Is there any way to use PHP to determine the zip code someone is visiting > from, assuming they are all from the US? http://www.usps.com/webtools/ -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://desti

RE: [PHP] Zip Codes

2004-11-04 Thread Jay Blanchard
[snip] Is there any way to use PHP to determine the zip code someone is visiting from, assuming they are all from the US? [/snip] You would have to determine their IP, which, some being dynamically assigned at log on, would not necessarily indicate the users location. Then you would have to be abl

RE: [PHP] Zip Codes

2004-11-04 Thread Vail, Warren
Do you mean other than asking them, like using their IP address? Warren Vail -Original Message- From: bb9876 [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 9:00 AM To: [EMAIL PROTECTED] Subject: [PHP] Zip Codes Is there any way to use PHP to determine the zip code someone

Re: [PHP] ZIP

2004-09-14 Thread Marek Kilimajer
Juan Pablo Herrera wrote: HI! I need catch many files in my server and make a zip file. In pear i not see nothing. I think use exec for contruction a zip file. Any idea? Regards, JP There are some classes (not in pear) that can create zip files w/out any special extension. google for "php zip clas

Re: [PHP] ZIP

2004-09-14 Thread Fernando Gutierrez
searching in php.net i found this... http://www.zend.com/zend/spotlight/creating-zip-files1.php On Tue, 14 Sep 2004 12:11:23 -0300 (ART), Juan Pablo Herrera <[EMAIL PROTECTED]> wrote: > HI! > I need catch many files in my server and make a zip file. In pear i not > see nothing. I think use exe

Re: [PHP] zip problem

2004-02-17 Thread Jason Wong
On Tuesday 17 February 2004 03:28, marc serra wrote: > I want to know if it's possible to extract a zip file in PHP. > > I've read php documentation on ZZIPlib but i don't find any solution to > extract file. > > Can you please help me to solve it. The example in the manual shows how to open a zi

Re: [PHP] Zip Code Locator / Radius Search

2003-11-20 Thread Becoming Digital
iginal Message - From: "Marco Tabini" <[EMAIL PROTECTED]> To: "Becoming Digital" <[EMAIL PROTECTED]> Cc: "php-general" <[EMAIL PROTECTED]> Sent: Thursday, 20 November, 2003 19:22 Subject: Re: [PHP] Zip Code Locator / Radius Search This may help: htt

Re: [PHP] Zip Code Locator / Radius Search

2003-11-20 Thread Marco Tabini
This may help: http://phparch.com/issue.php?mid=9 ... and it's even a free issue :) Marco -- php|architect - The Magazine for PHP Professionals Try us free at http://www.phparch.com! Complete searchable PHP mailing list archives at http://www.phparch.com/mailinglists Becoming Digital wrote:

Re: [PHP] Zip library

2003-09-17 Thread Marek Kilimajer
There are also pure php classes that can handle zip files, for example http://www.phpconcept.net/pclzip/index.en.php Stéphane Paquay wrote: Hi all, I need to unzip a file on a linux server automatically. I found the ZZiplib being able to do this but I don't know how to configure PHP to handle

Re: [PHP] Zip library

2003-09-17 Thread Jason Wong
On Wednesday 17 September 2003 16:38, St�hane Paquay wrote: > I need to unzip a file on a linux server automatically. > > I found the ZZiplib being able to do this but I don't know how to configure > PHP to handle it. You need to recompile php adding --with-zip[=DIR] If you don't know how to

Re: [PHP] zip code validation/regular expression

2003-06-03 Thread CPT John W. Holmes
> Simply trying to use regular expressions to validate a 5 or 5+4 zip code, > excluding 0 and 0-. Looked on http://www.regexlib.com, and > that's where I found the pattern below, but it doesn't work. The best I can > do on my own is two separate regular expressions, one to match a val

RE: [PHP] Zip to postcode[Scanned]

2003-04-02 Thread Ford, Mike [LSS]
> -Original Message- > From: Michael Egan [mailto:[EMAIL PROTECTED] > Sent: 02 April 2003 13:05 > > There are some ready made scripts for dealing with UK post > codes on the relevant page on the PHP site: > > http://www.php.net/manual/en/function.ereg.php And not one of them is 100% cor

Re: [PHP] Zip to postcode

2003-04-02 Thread William Bailey
Hi Andy, The following function seems to work for me: function split_postcode ($postcode) { if(eregi('(^[A-Z]{1,2})([0-9|A-Z]{1,2}).*([0-9][A-Z]{2}$)', str_replace(' ', '', $postcode), $parts)){ $outcode=strtoupper(sprintf('%s%s%s', $parts[1], @str_repeat(' ', 4-strlen($part

re: [PHP] Zip to postcode

2003-04-02 Thread Peter Hicks
Don't forget some London postcodes are Q1Q QQQ! Peter. On Wed, 2 Apr 2003, skate wrote: > sorry, don't have anything to add for code, but just a note to remember that UK post > codes can also be in the form... > > QQ11 1QQ > Q1 1QQ > Q11 1QQ > QQ1 1QQ > > so it's a real pain to write an expr

re: [PHP] Zip to postcode

2003-04-02 Thread skate
sorry, don't have anything to add for code, but just a note to remember that UK post codes can also be in the form... QQ11 1QQ Q1 1QQ Q11 1QQ QQ1 1QQ so it's a real pain to write an expression for this... -skate- Can someone please tell me how i change the following code: if (!ereg("^[0-9]{

RE: [PHP] Zip to postcode[Scanned]

2003-04-02 Thread Michael Egan
Andy, There are some ready made scripts for dealing with UK post codes on the relevant page on the PHP site: http://www.php.net/manual/en/function.ereg.php HTH, Michael Egan -Original Message- From: Andy [mailto:[EMAIL PROTECTED] Sent: 02 April 2003 12:54 To: [EMAIL PROTECTED] Subjec

Re: [PHP] Zip Way of life.

2003-03-26 Thread Marek Kilimajer
So use PclZip class, it is pure php without the need to have nay special extension installed Vincent M. wrote: Daevid Vincent wrote: You could use the exec() or shell_exec() and just do it via command line method... Yes but gunzip does not work when there are more than one file in the zip file

RE: [PHP] Zip Way of life.

2003-03-20 Thread Daevid Vincent
> zip file and unzip is not installed by on Unix servers. :-( So either install it on the servers that need it, or distribute the un/zip exe with your package in your projects local directory -- this also saves you having to deal with different versions on different servers that may not always do

Re: [PHP] Zip Way of life.

2003-03-19 Thread David T-G
Vincent -- ...and then Vincent M. said... % % David T-G wrote: % > % >...and then Vincent M. said... % >% ... % >% No, it works with .zip files too, I just don't know how to manage it :-( % > ... % >AFAIK gunzip can unzip an archive containing a single file, but if you % >have more than one in t

Re: [PHP] Zip Way of life.

2003-03-19 Thread Vincent M.
Daevid Vincent wrote: You could use the exec() or shell_exec() and just do it via command line method... Yes but gunzip does not work when there are more than one file in the zip file and unzip is not installed by default on Unix servers. :-( -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Zip Way of life.

2003-03-19 Thread Vincent M.
David T-G wrote: Vincent, et al -- ...and then Vincent M. said... % % Marek Kilimajer wrote: % >readgzfile is for *.gz files. ... % No, it works with .zip files too, I just don't know how to manage it :-( You mentioned wanting the "files" (note the plural) in the zip file. AFAIK gunzip can unzip

Re: [PHP] Zip Way of life.

2003-03-19 Thread David T-G
Vincent, et al -- ...and then Vincent M. said... % % Marek Kilimajer wrote: % >readgzfile is for *.gz files. ... % No, it works with .zip files too, I just don't know how to manage it :-( You mentioned wanting the "files" (note the plural) in the zip file. AFAIK gunzip can unzip an archive conta

RE: [PHP] Zip Way of life.

2003-03-19 Thread Daevid Vincent
You could use the exec() or shell_exec() and just do it via command line method... > -Original Message- > From: Vincent M. [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 19, 2003 12:36 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Zip Way of life. > > > Hello, > > I'd like to uncompr

Re: [PHP] Zip Way of life.

2003-03-19 Thread Vincent M.
Marek Kilimajer wrote: readgzfile is for *.gz files. Either use zip file functions (rarely supported) or PclZip (http://www.phpconcept.net/pclzip/index.en.php) No, it works with .zip files too, I just don't know how to manage it :-( -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] Zip Way of life.

2003-03-19 Thread Marek Kilimajer
readgzfile is for *.gz files. Either use zip file functions (rarely supported) or PclZip (http://www.phpconcept.net/pclzip/index.en.php) Vincent M. wrote: Hello, I'd like to uncompress to the Hard disk a zip file send by the browser. At this time I do this: function uncompresszip($zipfile) {

Re: [PHP] ZIP combinaton in PHP?

2002-06-30 Thread Jason Wong
On Sunday 30 June 2002 15:32, Tony Harrison wrote: > I realise its a longshot but is it possible to use PHP (or any other > web-based languages) to combine multiple ZIP files into a single ZIP file? > and any scripts i can download to do it. > > Any help with this is most appreciated. ;-) If you

RE: [PHP] ZIp files? Help needed...

2001-11-29 Thread Robert V. Zwink
This might interest you: http://marc.theaimsgroup.com/?l=php-general&m=100453803524687&w=2 You can install Winzip on the machine, then shell out to unzip the file. Robert V. Zwink http://www.zwink.net/daid.php -Original Message- From: Emiliano Marmonti [mailto:[EMAIL PROTECTED]] Sent: T

RE: [PHP] Zip mulitple files for download

2001-07-31 Thread Jon Haworth
> GlacierHello, > I need to zip multiple files into 1 zip file for download. > Which function do I use to accomplish this? > Thanks! http://www.php.net/exec HTH Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

RE: [PHP] Zip Code Locator?

2001-07-25 Thread Brian Dunworth
> Hey, let me know if you figure out what the extra numbers are > for... I might have a use for this at some point. The last two numbers are latitude and longitude of the registered zip code center for the given zip code. --- Brian S. Dunworth Sr. Softwa

Re: [PHP] Zip Code Locator?

2001-07-24 Thread Justin Farnsworth
Kurth Bemis wrote: > > At 04:42 PM 7/24/2001, Benjamin Bleything wrote: > > i'm pretty sure that the extra numbers are coord of that town. you know > the long and lat. [== snip, snip ==] FWIW, here is the formula needed, here just a snippet getting the distance between two ZIP's, and, yes, Vir

RE: [PHP] Zip Code Locator?

2001-07-24 Thread Kurth Bemis
t; >From: "Matthew Loff" <[EMAIL PROTECTED]> > >To: "'Ben Bleything'" <[EMAIL PROTECTED]>, "'Vincent P. Cocciolone'" ><[EMAIL PROTECTED]> > >Cc: <[EMAIL PROTECTED]> > >Subject: RE: [PHP] Zip Code L

RE: [PHP] Zip Code Locator?

2001-07-24 Thread Benjamin Bleything
soft MimeOLE V6.00.2462. >Importance: Normal > > >Ben-- > >Thanks for pointing that out... I've been looking for info like that for >a long time! > >Much appreciated. > >--Matt > > >-Original Message----- >From: Ben Bleything [mailto:[EMAIL PROTE

RE: [PHP] Zip Code Locator?

2001-07-24 Thread Matthew Loff
t: Re: [PHP] Zip Code Locator? You could write your own. . . Just kidding... well, technically you could... but... that's not the point. http://sourceforge.net/projects/zipcodedb has a "Raw ZIP code dump"... It has a little more data than just zip, city, state... I don't know

Re: [PHP] Zip Code Locator?

2001-07-24 Thread Ben Bleything
You could write your own. . . Just kidding... well, technically you could... but... that's not the point. http://sourceforge.net/projects/zipcodedb has a "Raw ZIP code dump"... It has a little more data than just zip, city, state... I don't know what it means, but maybe you would... Sorry, it's

  1   2   >