Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Richard Lynch
On Thu, April 12, 2007 6:40 am, Arthur Erdös wrote: is there a way to free memory allocated by variables in PHP?? This is a very important issue concerning long running scripts... I have a script that generates 5000 Newsletters and when the script finishes it uses 1.8 GB (!!) of RAM.

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-12 Thread tedd
At 7:41 PM +0100 4/12/07, Stut wrote: Yes you'll need to put in a bit more work, but the result will be that much better. -Stut Sorry Stut -- I know you know this, but it's more work to NOT use css. Cheers, tedd -- --- http://sperling.com http://ancientstones.com

Re: [PHP] Download multiple sound files?

2007-04-12 Thread Richard Davey
[EMAIL PROTECTED] wrote: And POP3 probably existed long before the old BBS', so it's not that things got LESS efficient, it's just that we didn't NEED to bundle bunches of emails together into a single file because of crappy dialup connections and crappy modems and the necessity of keeping

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Richard Lynch
[combining responses] On Thu, April 12, 2007 8:13 am, Arthur Erdös wrote: any ideas what i am doing wrong and where i [ab]use php? ^^ Not showing us source code is your biggest mistake... :-) On Thu, April 12, 2007 9:34 am, Zoltán Németh wrote: site/company I think we are okay on that front.

Re: [PHP] Re: PHP Directory List Script Files over 2 GB

2007-04-12 Thread Robert M
I made a few changes to the script using system calls and changed the datatype to be a string on the sprintf portion of the script I doubt it is the most intelligent method of resolving the issue, but it got the job done. I do not run this on an Internet site, just a local intranet website that

Re: [PHP] php5 oop question

2007-04-12 Thread Richard Lynch
a) I don't see how the part about the dot notation has anything to do with the class presetned b) I don't see any benefit to the class presented c) Trying to follow the chain of - operators and method calls just gave me a headache. Other than that, it's really nifty. :-v On Thu, April 12, 2007

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Richard Lynch
On Thu, April 12, 2007 11:34 am, Arthur Erdös wrote: no email goes out, the mails are stored in the database. http://mysql_free_result/ There may be something similar for the INSERT statements, or maybe there's nothing there to free up... But I suspect that you are keeping a *TON* of MySQL

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-12 Thread tedd
At 6:31 PM -0500 4/12/07, Richard Lynch wrote: On Thu, April 12, 2007 1:34 pm, Robert Cummings wrote: ... It's too bad, I love CSS, it makes for really clean markup, but using it completely in place of tables just isn't feasible right now without resorting to CSS tricks. And using tricks

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-12 Thread tedd
At 6:25 PM -0500 4/12/07, Richard Lynch wrote: I believe the OP was saying that in the bad ol' days before CSS, DW could get you closer with nested table layouts faster than endless tweaking and re-loading, so DW was a useful tool for that reason in the past. The OP posted this week and asked

Re: [PHP] Download multiple sound files?

2007-04-12 Thread Richard Lynch
On Thu, April 12, 2007 6:39 pm, Richard Davey wrote: The protocol, while fine for most things, is not efficient. There is no way to batch-up messages for quicker transfer. Even today with our 'super fast' connections if you go on holiday for two weeks (and DON'T check email while away!), then

[PHP] PHP Eclipse on Linux

2007-04-12 Thread Bagus Nugroho
Hi All, When I'm trying to use eclipse on Linux, using command java -startup.jar, it was show an error like this Could not create Java Virtual Machine Is my command wrong. Java already installed and eclipse was put on /opt Thanks in advance bn

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Chris
Arthur Erdös wrote: Hello all, is there a way to free memory allocated by variables in PHP?? This is a very important issue concerning long running scripts... I have a script that generates 5000 Newsletters and when the script finishes it uses 1.8 GB (!!) of RAM. Although I am using

Re: [PHP] PHP Eclipse on Linux

2007-04-12 Thread rich
Try setting JAVA_HOME then starting Eclipse. I got a similar error because it was trying to load Java from the wrong directory. Rich Quoting Bagus Nugroho [EMAIL PROTECTED]: Hi All, When I'm trying to use eclipse on Linux, using command java -startup.jar, it was show an error like

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-12 Thread Jarrel Cobb
I've been atleast attempting to use CSS for partial layout for 6 or so years so yes..I know CSS is not new. That was not my point. My point was that CSS hasn't been a real viable means for layout (not pure CSS anyway) until relatively recently. Most sites until recently used tables for layout

Re: [PHP] php5 oop question

2007-04-12 Thread Larry Garfield
I have never heard that described as a fluent interface before, but you'd probably like jQuery. :-) It's a javascript library that uses much the same concept, although it refers to it as function chaining. It also operates on multiple objects simultaneously, which is even niftier. On

RE: [PHP] PHP Eclipse on Linux

2007-04-12 Thread Buesching, Logan J
I haven't used Eclipse on Linux in awhile, but I believe that they have some executable script (like, go to the eclipse directory and type ./eclipse) that you can just run and it will start up eclipse and everything. -Original Message- From: Bagus Nugroho [mailto:[EMAIL PROTECTED] Sent:

[PHP] width and height of flash-files

2007-04-12 Thread Heiko Sudar
hi, is there a way to get the width and the height of a flash movie via php? heiko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Cheap Ping

2007-04-12 Thread ccspencer
Hello, I am trying to find a simple way to test to see if a web site is up or not. I tried using $file = file_get_contents(http://www.example.com/page.html;); but when the site is down it takes too long and seems to time out terminating the script rather than returning a false I can test. Is

Re: [PHP] Cheap Ping

2007-04-12 Thread Jim Lucas
Is there some way I can set a shorter limit? http://us.php.net/manual/en/function.stream-set-timeout.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cheap Ping

2007-04-12 Thread Paul Scott
On Thu, 2007-04-12 at 23:16 -0600, [EMAIL PROTECTED] wrote: Any other suggestions? cURL. http://www.php.net/curl That will allow all the configs and stuff to be set, and you get the response in a neat variable that you can then test. --Paul All Email originating from UWC is covered by

[PHP] Re: Cheap Ping

2007-04-12 Thread ccspencer
Jim Lucas writes: Is there some way I can set a shorter limit? http://us.php.net/manual/en/function.stream-set-timeout.php As far as I can tell I can only use that if I have a stream resource available. Presumably file_get_contents() creates and uses a stream but its resource is not

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Arthur Erdös
Just post your source already. ok, the complete workflow is a little bit complicated. we are using a workflow engine and the newsletter generator is one step of three. the first cleans the statistics data, the second generates the new data and the third is the one which generates the mails.

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Arthur Erdös
It can if you're trying to process a borked image... I've had imagecreatefromjpeg() eat memory up to almost 50x the size of the image before finally deciding it can't handle it and crapping out. That was *after* running it through getimagesize() with no problem at all. okay - good point - but

<    1   2