php-general Digest 9 Jul 2008 13:45:53 -0000 Issue 5559

2008-07-09 Thread php-general-digest-help
php-general Digest 9 Jul 2008 13:45:53 - Issue 5559 Topics (messages 276476 through 276498): Re: What font/size do you use for programming? 276476 by: Robert Cummings 276480 by: Shawn McKenzie 276481 by: Sancar Saran 276482 by: Per Jessen 276483 by:

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Sancar Saran
On Wednesday 09 July 2008 02:23:49 tedd wrote: Hi gang: I'm running a Mac (so I know mine is a bit different size wise) but I'm currently using Veranda at 14 point for coding. Just out of curiosity, what font and size do you ppls use for your programming? Cheers, tedd Monospace 9

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Per Jessen
Sancar Saran wrote: On Wednesday 09 July 2008 02:23:49 tedd wrote: Hi gang: I'm running a Mac (so I know mine is a bit different size wise) but I'm currently using Veranda at 14 point for coding. Just out of curiosity, what font and size do you ppls use for your programming? Cheers,

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Aschwin Wesselius
tedd wrote: Hi gang: I'm running a Mac (so I know mine is a bit different size wise) but I'm currently using Veranda at 14 point for coding. Just out of curiosity, what font and size do you ppls use for your programming? Cheers, tedd 6pt Terminal font on Windows, using UltraEdit on a

Re: [PHP] Creating zip files

2008-07-09 Thread Pavel
В сообщении от Wednesday 09 July 2008 01:22:32 Eric Butera написал(а): [1] http://us2.php.net/manual/en/ref.zip.php Thank you for this link! -- === С уважением, Манылов Павел aka [R-k] icq: 949-388-0 mailto:[EMAIL PROTECTED] === А ещё говорят так: Родился сам - помоги

[PHP] mount

2008-07-09 Thread Mário Gamito
Hi, I need to perform a mount and a umount from PHP. I've searched the manual, but didn't find anything useful. Any ideas ? Any help would be appreciated. Warm Regards, Mário Gamito -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] test

2008-07-09 Thread willyam pax
test -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] to get time

2008-07-09 Thread willyam pax
hello im still new to php i just want to know how can u get the only the time of ur local server -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: mount

2008-07-09 Thread Maxim Antonov
Hello, Mário You may use function system! system('mount -t vfat -o rw /dev/hdb1 /home/www/upload',$err); if($err){ echo We have error with number {$err}; } Mário Gamito : Hi, I need to perform a mount and a umount from PHP. I've searched the manual, but didn't find anything useful.

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Robin Vickery
2008/7/9 Aschwin Wesselius [EMAIL PROTECTED]: tedd wrote: Hi gang: I'm running a Mac (so I know mine is a bit different size wise) but I'm currently using Veranda at 14 point for coding. Just out of curiosity, what font and size do you ppls use for your programming? Cheers, tedd 6pt

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Jason Pruim
On Jul 9, 2008, at 5:25 AM, Robin Vickery wrote: 2008/7/9 Aschwin Wesselius [EMAIL PROTECTED]: tedd wrote: Hi gang: I'm running a Mac (so I know mine is a bit different size wise) but I'm currently using Veranda at 14 point for coding. Just out of curiosity, what font and size do you

[PHP] checking if URL's exist

2008-07-09 Thread cr.vegelin
Hi All, I have a Directory table with hundreds of URL's to sites and want to check periodically if all the URL's still exist. Does anyone know of a utility to check this ? Or a pointer to a piece of code ... TIA, Cor

Re: [PHP] checking if URL's exist

2008-07-09 Thread Børge Holen
On Wednesday 09 July 2008 12:18:27 [EMAIL PROTECTED] wrote: Hi All, I have a Directory table with hundreds of URL's to sites and want to check periodically if all the URL's still exist. Does anyone know of a utility to check this ? Or a pointer to a piece of code ... TIA, Cor ping whois

Re: [PHP] checking if URL's exist

2008-07-09 Thread Maxim Antonov
You need $s= fsockopen('host.com',80); fwrite($s,GET .$URL. HTTP/1.1 \r\n); fwrite($s,Host: host.com \r\n\r\n); and you must read first string - if url exists string begining with 200 or 304 if url not exists string begin - is 404 Børge Holen пишет: On Wednesday 09 July 2008 12:18:27

Re: [PHP] to get time

2008-07-09 Thread Per Jessen
willyam pax wrote: hello im still new to php i just want to know how can u get the only the time of ur local server Take a look at date() and time(). /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] to get time

2008-07-09 Thread Shelley
Or date(), such as date('Y-m-d H:i:s'); On Wed, Jul 9, 2008 at 6:29 PM, Per Jessen [EMAIL PROTECTED] wrote: willyam pax wrote: hello im still new to php i just want to know how can u get the only the time of ur local server Take a look at date() and time(). /Per Jessen, Zürich

[PHP] test

2008-07-09 Thread Thiago Melo de Paula
test -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP code will not work

2008-07-09 Thread Mike V
I had this problem and just figured it out. I was copying and pasting the code snippet from the tutorials page to my test editor and in the process picked up an invisible ctrl char. Doh!! Joseph Subida wrote: The error I get when I try ?php echo $_SERVER['HTTP_USER_AGENT']; ? is

[PHP] Running mount from PHP

2008-07-09 Thread Mário Gamito
Hi, I'm trying to run /bin/mount and /sbin/mount.cifs from a PHP page. So, I´ve added this to /etc/sudoers: - Cmnd_AliasCMD_MOUNT = /bin/mount Cmnd_AliasCMD_CIFS ) = /sbin/mount.cifs nobody ALL =

Re: [PHP] Running mount from PHP

2008-07-09 Thread Per Jessen
Mário Gamito wrote: Hi, I'm trying to run /bin/mount and /sbin/mount.cifs from a PHP page. So, I´ve added this to /etc/sudoers: - Cmnd_AliasCMD_MOUNT = /bin/mount Cmnd_AliasCMD_CIFS ) = /sbin/mount.cifs

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Philip Thompson
On Jul 8, 2008, at 6:23 PM, tedd wrote: Hi gang: I'm running a Mac (so I know mine is a bit different size wise) but I'm currently using Veranda at 14 point for coding. Just out of curiosity, what font and size do you ppls use for your programming? Cheers, tedd 15 MacBook Pro, 1440

Re: [PHP] Running mount from PHP

2008-07-09 Thread Maxim Antonov
Try to do folowing write shell script #!/bin/sh mount /dev/hdb /home/mountpoint then write C code int main(){ system (mount.sh); return 0; } then compile C code gcc main.c -o wrapper then chmod : # chmod a+s wrapper and do from php: system ('wrapper'); Per Jessen пишет: Mário

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Daniel Brown
On Tue, Jul 8, 2008 at 7:23 PM, tedd [EMAIL PROTECTED] wrote: Hi gang: I'm running a Mac (so I know mine is a bit different size wise) but I'm currently using Veranda at 14 point for coding. Just out of curiosity, what font and size do you ppls use for your programming? It had no name

[PHP] CURL and ASP

2008-07-09 Thread Daniel Brown
On Wed, Jul 9, 2008 at 9:35 AM, ioannes [EMAIL PROTECTED] wrote: Has anyone here experience of CURLing .asp pages which use session cookies as I am having difficulty doing so on two different sites, both asp. Forwarded to PHP-General, John. If you're not already subscribed there, please

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Dan Joseph
On Tue, Jul 8, 2008 at 7:23 PM, tedd [EMAIL PROTECTED] wrote: Hi gang: I'm running a Mac (so I know mine is a bit different size wise) but I'm currently using Veranda at 14 point for coding. Just out of curiosity, what font and size do you ppls use for your programming? Cheers, tedd

Re: [PHP] checking if URL's exist

2008-07-09 Thread Daniel Brown
On Wed, Jul 9, 2008 at 6:18 AM, [EMAIL PROTECTED] wrote: Hi All, I have a Directory table with hundreds of URL's to sites and want to check periodically if all the URL's still exist. Does anyone know of a utility to check this ? Or a pointer to a piece of code ... TIA, Cor ?php //

Re: [PHP] Need help with regular expression

2008-07-09 Thread Daniel Brown
On Wed, Jul 9, 2008 at 5:21 AM, Maxim Antonov [EMAIL PROTECTED] wrote: Hi, all! I try to use folowing regular expression: $out = preg_replace('#\{%%%.*?\{%bigfoto%\}.*?%%%\}#is','==REPLACEMENT==',$str); [snip!] I need result as: trtdNAME:/tdtdinput type=text name=name value=

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Richard Heyes
triple-headed display That's just greedy. -- Richard Heyes Employ me: http://www.phpguru.org/cv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Check if var content was exceeded (float).

2008-07-09 Thread k bah
-- Powered by Outblaze -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Mario Guenterberg
On Tue, Jul 08, 2008 at 07:23:49PM -0400, tedd wrote: Hi gang: I'm running a Mac (so I know mine is a bit different size wise) but I'm currently using Veranda at 14 point for coding. Just out of curiosity, what font and size do you ppls use for your programming? Monospace 9pt in

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread tedd
At 5:13 PM +0100 7/9/08, Richard Heyes wrote: triple-headed display That's just greedy. -- Richard Heyes I use a triple display as well. My desktop is 3840 x 1024 -- and I use every inch of it. tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com --

Re: [PHP] Check if var content was exceeded (float).

2008-07-09 Thread Daniel Brown
No, it wasn't but whew! That was a close one! -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, and hosting from $2.50/mo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Richard Heyes
I use a triple display as well. My desktop is 3840 x 1024 -- and I use every inch of it. And here I am with one paltry monitor. :-( -- Richard Heyes Employ me: http://www.phpguru.org/cv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] C Bindings?

2008-07-09 Thread Henri Cook
Hi there, I want to make a set of PHP bindings for the libvirt(.org) C API. Can anyone point me to how tos, information or software that would help me along the way? Thanks, Henri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Daniel Brown
On Wed, Jul 9, 2008 at 1:19 PM, Richard Heyes [EMAIL PROTECTED] wrote: And here I am with one paltry monitor. :-( I now view you as less of a man, Heyes. ;-P -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated

[PHP] Re: What font/size do you use for programming?

2008-07-09 Thread tedd
At 11:54 PM -0500 7/8/08, Shawn McKenzie wrote: Font: Agent Orange Size: 64pt 64pt! And I thought I my eyesight was poor at 14pt. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Robert Cummings
On Wed, 2008-07-09 at 18:19 +0100, Richard Heyes wrote: I use a triple display as well. My desktop is 3840 x 1024 -- and I use every inch of it. And here I am with one paltry monitor. :-( Those greedy bastids make me sick!!! I'll be back later, I hafta go spend my kids' college funds

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread tedd
At 6:19 PM +0100 7/9/08, Richard Heyes wrote: I use a triple display as well. My desktop is 3840 x 1024 -- and I use every inch of it. And here I am with one paltry monitor. :-( As you get older, your monitors get larger. However, this is not necessarily a good thing. Cheers, tedd --

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread tedd
At 1:27 PM -0400 7/9/08, Robert Cummings wrote: On Wed, 2008-07-09 at 18:19 +0100, Richard Heyes wrote: I use a triple display as well. My desktop is 3840 x 1024 -- and I use every inch of it. And here I am with one paltry monitor. :-( Those greedy bastids make me sick!!! I'll be

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Jim McIntyre
I'm running a Mac (so I know mine is a bit different size wise) but I'm currently using Veranda at 14 point for coding. Just out of curiosity, what font and size do you ppls use for your programming? I prefer Monaco to Verdana - easier to distinguish 0 and O, etc. The font that came with

[PHP] C Bindings?

2008-07-09 Thread Henri Cook
Hi there, I want to make a set of PHP bindings for the libvirt(.org) C API. Can anyone point me to how tos, information or software that would help me along the way? Thanks, Henri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: What font/size do you use for programming?

2008-07-09 Thread Shawn McKenzie
tedd wrote: At 11:54 PM -0500 7/8/08, Shawn McKenzie wrote: Font: Agent Orange Size: 64pt 64pt! And I thought I my eyesight was poor at 14pt. Cheers, tedd Just kidding... Seriously, I just use what ever is default for the app I'm using. I used to use zend, now I use Aptana or kate for

Re: [PHP] C Bindings?

2008-07-09 Thread Nathan Nobbe
On Wed, Jul 9, 2008 at 12:50 PM, Henri Cook [EMAIL PROTECTED] wrote: Hi there, I want to make a set of PHP bindings for the libvirt(.org) C API. Can anyone point me to how tos, information or software that would help me along the way?\ maybe scope out this book,

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Jason Pruim
On Jul 9, 2008, at 1:32 PM, tedd wrote: At 6:19 PM +0100 7/9/08, Richard Heyes wrote: I use a triple display as well. My desktop is 3840 x 1024 -- and I use every inch of it. And here I am with one paltry monitor. :-( As you get older, your monitors get larger. However, this is not

[PHP] zippidity do duh!

2008-07-09 Thread tedd
Hi gang: I'm trying to do some zip stuff, but on server [1] my script hangs on: $zip = new ZipArchive(); No errors, no anything, it just hangs -- I assuming that ZipArchive is not available. --- However, on server [2] (Daniel Brown's most excellent service, btw), everything works great --

Re: [PHP] zippidity do duh!

2008-07-09 Thread David Giragosian
On 7/9/08, tedd [EMAIL PROTECTED] wrote: Hi gang: I'm trying to do some zip stuff, but on server [1] my script hangs on: $zip = new ZipArchive(); No errors, no anything, it just hangs -- I assuming that ZipArchive is not available. --- However, on server [2] (Daniel Brown's most

Re: [PHP] zippidity do duh!

2008-07-09 Thread Nathan Nobbe
On Wed, Jul 9, 2008 at 1:43 PM, tedd [EMAIL PROTECTED] wrote: Hi gang: I'm trying to do some zip stuff, but on server [1] my script hangs on: $zip = new ZipArchive(); No errors, no anything, it just hangs -- I assuming that ZipArchive is not available. --- However, on server [2]

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Daniel Brown
On Wed, Jul 9, 2008 at 3:40 PM, Jason Pruim [EMAIL PROTECTED] wrote: I may only have 1 monitor... But I have 12 Spaces (google apple spaces for more info) Well, if you want to get *technical* on it, then I have 12 screens: 4 virtual desktops (KDE pager was around before Mac's Spaces)

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread tedd
At 3:40 PM -0400 7/9/08, Jason Pruim wrote: On Jul 9, 2008, at 1:32 PM, tedd wrote: At 6:19 PM +0100 7/9/08, Richard Heyes wrote: I use a triple display as well. My desktop is 3840 x 1024 -- and I use every inch of it. And here I am with one paltry monitor. :-( As you get older, your

Re: [PHP] zippidity do duh!

2008-07-09 Thread Daniel Brown
On Wed, Jul 9, 2008 at 3:43 PM, tedd [EMAIL PROTECTED] wrote: However, on server [2] (Daniel Brown's most excellent service, btw), everything works great -- as is usual (every time I say something like this he gives me another month of free service). :-) Yeah, and we're somewhere in 2011

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread tedd
At 4:01 PM -0400 7/9/08, Daniel Brown wrote: On Wed, Jul 9, 2008 at 3:40 PM, Jason Pruim [EMAIL PROTECTED] wrote: I may only have 1 monitor... But I have 12 Spaces (google apple spaces for more info) Well, if you want to get *technical* on it, then I have 12 screens: 4 virtual desktops

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Daniel Brown
On Wed, Jul 9, 2008 at 4:19 PM, tedd [EMAIL PROTECTED] wrote: Well.. if this is one of those My monitor is bigger than yours! discussions, then when I programmed with rocks, I had all of the outdoors as my monitor -- beat that! /me forfeits. -- /Daniel P. Brown Dedicated Servers - Intel

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Robert Cummings
On Wed, 2008-07-09 at 16:28 -0400, Daniel Brown wrote: On Wed, Jul 9, 2008 at 4:19 PM, tedd [EMAIL PROTECTED] wrote: Well.. if this is one of those My monitor is bigger than yours! discussions, then when I programmed with rocks, I had all of the outdoors as my monitor -- beat that!

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Børge Holen
On Wednesday 09 July 2008 19:32:10 tedd wrote: At 6:19 PM +0100 7/9/08, Richard Heyes wrote: I use a triple display as well. My desktop is 3840 x 1024 -- and I use every inch of it. And here I am with one paltry monitor. :-( As you get older, your monitors get larger. However, this is

[PHP] Action on 'Require' Fatal Error

2008-07-09 Thread Joe Harman
Hello, is there a way to call a function or do a header(Location: page.php) when a fatal error is detected from using a the require statement Thanks Joe Harman

Re: [PHP] zippidity do duh!

2008-07-09 Thread Eric Butera
On Wed, Jul 9, 2008 at 4:00 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Wed, Jul 9, 2008 at 1:43 PM, tedd [EMAIL PROTECTED] wrote: Hi gang: I'm trying to do some zip stuff, but on server [1] my script hangs on: $zip = new ZipArchive(); No errors, no anything, it just hangs -- I assuming

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread tedd
At 4:32 PM -0400 7/9/08, Robert Cummings wrote: On Wed, 2008-07-09 at 16:28 -0400, Daniel Brown wrote: On Wed, Jul 9, 2008 at 4:19 PM, tedd [EMAIL PROTECTED] wrote: Well.. if this is one of those My monitor is bigger than yours! discussions, then when I programmed with rocks, I had all

Re: [PHP] Action on 'Require' Fatal Error

2008-07-09 Thread Eric Butera
On Wed, Jul 9, 2008 at 4:49 PM, Joe Harman [EMAIL PROTECTED] wrote: Hello, is there a way to call a function or do a header(Location: page.php) when a fatal error is detected from using a the require statement Thanks Joe Harman You can set up a custom error handler. This will intercept

Re: [PHP] zippidity do duh!

2008-07-09 Thread tedd
At 2:00 PM -0600 7/9/08, Nathan Nobbe wrote: if(class_exists('ZipArchive', false)) $zip = new ZipArchive(); else trigger_error('class ZipArchive does not exist!', E_USER_NOTICE); -nathan It works, (thanks) but no error is thrown if it's not there. Cheers, tedd -- ---

[PHP] Re: What font/size do you use for programming?

2008-07-09 Thread Jonesy
On Tue, 8 Jul 2008 19:23:49 -0400, tedd wrote: I'm running a Mac (so I know mine is a bit different size wise) but I'm currently using Veranda at 14 point for coding. Just out of curiosity, what font and size do you ppls use for your programming? I've always found that my bash and php

Re: [PHP] zippidity do duh!

2008-07-09 Thread Nathan Nobbe
On Wed, Jul 9, 2008 at 3:10 PM, Eric Butera [EMAIL PROTECTED] wrote: On Wed, Jul 9, 2008 at 4:00 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Wed, Jul 9, 2008 at 1:43 PM, tedd [EMAIL PROTECTED] wrote: Hi gang: I'm trying to do some zip stuff, but on server [1] my script hangs on:

Re: [PHP] zippidity do duh!

2008-07-09 Thread Nathan Nobbe
On Wed, Jul 9, 2008 at 3:19 PM, tedd [EMAIL PROTECTED] wrote: At 2:00 PM -0600 7/9/08, Nathan Nobbe wrote: if(class_exists('ZipArchive', false)) $zip = new ZipArchive(); else trigger_error('class ZipArchive does not exist!', E_USER_NOTICE); -nathan It works, (thanks) but no error

Re: [PHP] zippidity do duh!

2008-07-09 Thread tedd
At 4:37 PM -0600 7/9/08, Nathan Nobbe wrote: On Wed, Jul 9, 2008 at 3:19 PM, tedd mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: At 2:00 PM -0600 7/9/08, Nathan Nobbe wrote: if(class_exists('ZipArchive', false)) $zip = new ZipArchive(); else trigger_error('class ZipArchive does not

Re: [PHP] zippidity do duh!

2008-07-09 Thread Eric Butera
On Wed, Jul 9, 2008 at 6:53 PM, tedd [EMAIL PROTECTED] wrote: At 4:37 PM -0600 7/9/08, Nathan Nobbe wrote: On Wed, Jul 9, 2008 at 3:19 PM, tedd mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: At 2:00 PM -0600 7/9/08, Nathan Nobbe wrote: if(class_exists('ZipArchive', false)) $zip = new

Re: [PHP] zippidity do duh!

2008-07-09 Thread Nathan Nobbe
On Wed, Jul 9, 2008 at 4:56 PM, Eric Butera [EMAIL PROTECTED] wrote: On Wed, Jul 9, 2008 at 6:53 PM, tedd [EMAIL PROTECTED] wrote: At 4:37 PM -0600 7/9/08, Nathan Nobbe wrote: On Wed, Jul 9, 2008 at 3:19 PM, tedd mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: At 2:00 PM -0600

[PHP] Logic sought

2008-07-09 Thread tedd
Hi gang: Here's the logic problem. First the site: http://php1.net/b/zip-files/ Now, the site works well enough. The user selects what they want, clicks Submit, the order is assembled in zip file and presented to the user for downloading. However, as it stands now, before the script

Re: [PHP] Logic sought

2008-07-09 Thread Kyle Browning
Write a script that cron runs that checks dates of files and removes 1 month old ones? On Wed, Jul 9, 2008 at 4:45 PM, tedd [EMAIL PROTECTED] wrote: Hi gang: Here's the logic problem. First the site: http://php1.net/b/zip-files/ Now, the site works well enough. The user selects what

Re: [PHP] Logic sought

2008-07-09 Thread Eric Butera
On Wed, Jul 9, 2008 at 7:45 PM, tedd [EMAIL PROTECTED] wrote: Hi gang: Here's the logic problem. First the site: http://php1.net/b/zip-files/ Now, the site works well enough. The user selects what they want, clicks Submit, the order is assembled in zip file and presented to the user for

Re: [PHP] Logic sought

2008-07-09 Thread Jochem Maas
generate a unique hash as the name based on the contents of the zip, then if 2 people happen to want exactly the same selection you won't have to build/zip it twice ... just check if the zip happens to exist before trying to build it. have the script do garbage collection on old zip files ...

Re: [PHP] Logic sought

2008-07-09 Thread Nathan Nobbe
On Wed, Jul 9, 2008 at 6:11 PM, Jochem Maas [EMAIL PROTECTED] wrote: generate a unique hash as the name based on the contents of the zip, then if 2 people happen to want exactly the same selection you won't have to build/zip it twice ... just check if the zip happens to exist before trying

Re: [PHP] zippidity do duh!

2008-07-09 Thread Jochem Maas
Daniel Brown schreef: On Wed, Jul 9, 2008 at 3:43 PM, tedd [EMAIL PROTECTED] wrote: However, on server [2] (Daniel Brown's most excellent service, btw), everything works great -- as is usual (every time I say something like this he gives me another month of free service). :-) Dan box isn't

Re: [PHP] zippidity do duh!

2008-07-09 Thread Eric Butera
On Wed, Jul 9, 2008 at 8:52 PM, Jochem Maas [EMAIL PROTECTED] wrote: Daniel Brown schreef: On Wed, Jul 9, 2008 at 3:43 PM, tedd [EMAIL PROTECTED] wrote: However, on server [2] (Daniel Brown's most excellent service, btw), everything works great -- as is usual (every time I say something like

Re: [PHP] Logic sought

2008-07-09 Thread Jim Lucas
tedd wrote: Hi gang: Here's the logic problem. First the site: http://php1.net/b/zip-files/ Now, the site works well enough. The user selects what they want, clicks Submit, the order is assembled in zip file and presented to the user for downloading. However, as it stands now, before the

[PHP] can any one help me on this

2008-07-09 Thread willyam pax
Warning:session_start():Canot send session cache limiter - headers already sent help me i dont understand this warning... but the program still works... thanks in advance... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] can any one help me on this

2008-07-09 Thread Bob
It's probably some white space above your session_start function. Make sure that there is no white space before your ?php start tag and try again. -Original Message- From: willyam pax Sent: 10 July 2008 13:13 To: php-general@lists.php.net Subject: [PHP] can any one help me on this

Re: [PHP] can any one help me on this

2008-07-09 Thread Robert Cummings
On Thu, 2008-07-10 at 11:13 +0800, willyam pax wrote: Warning:session_start():Canot send session cache limiter - headers already It means you have output going to the browser before you begin your session with session_start(). This usually means you have trailing whitespace in an included file

Re: [PHP] zippidity do duh!

2008-07-09 Thread Nathan Nobbe
On Wed, Jul 9, 2008 at 6:52 PM, Jochem Maas [EMAIL PROTECTED] wrote: try triggering an E_FATAL instead of E_NOTICE and you'll see there is no need to use Exceptions in this case (albeit that it's an acceptable alternative). minor but, it would have to be E_USER_ERROR, because you can only