Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Chris
Arthur Erdös wrote: Am Freitag, den 13.04.2007, 16:03 +1000 schrieb Chris: 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 thir

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-13 07:49:43 +0200: > > > 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 th

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Arthur Erdös
Am Freitag, den 13.04.2007, 16:03 +1000 schrieb Chris: > > 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 th

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

2007-04-12 Thread Stut
tedd wrote: 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. Not when you have a pre-made table-based layout already. -Stut -- PHP General

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-12 18:17:34 +0200: > 3-4 seconds is dead slow if you ask me - a script like this should be capable > of > making the average mailserver go completely apeshit assuming you'd be mailing > the > newsletters out directly after creating them [rather than storing them in a

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

2007-04-12 Thread Stut
tedd wrote: this ain't the bad old days. That's debatable! -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Chris
Arthur Erdös wrote: 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. oka

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Chris
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. Put this in between each line and

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 i

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.

[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 accessi

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 disc

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

[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. I

[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

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:

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 Thur

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 b

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] 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 unset(

[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] 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!),

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] 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] 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 dat

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, 20

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 I

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] 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 trans

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 http://earthstones.c

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 2:11 PM -0400 4/12/07, Jarrel Cobb wrote: First, CSS layout is relatively new thing. New? New to you perhaps, but certainly not "new"! CSS2 was released almost ten years ago -- that's a lifetime in web years. Its been possible for a while but bad browser support for CSS made it difficult

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

2007-04-12 Thread Richard Lynch
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 is just as much against the spirit of CSS as

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

2007-04-12 Thread Richard Lynch
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. On Thu, April 12, 2007 8:39 am, tedd wrote: > At 9:14 PM -0400 4/11/07, Jarrel Cobb

Re: [PHP] scandir and ftp wrapper

2007-04-12 Thread Richard Lynch
On Thu, April 12, 2007 9:07 am, John Ewing wrote: > Still can't get it to work, seems to be a problem generally with the > ftp > wrapper. > > If I try something really basic like > > echo file_get_contents('ftp://user:[EMAIL PROTECTED]/file.txt'); > > I get an empty string with no error messages. >

Re: [PHP] links and variables

2007-04-12 Thread Richard Lynch
On Thu, April 12, 2007 9:14 am, Dan Shirah wrote: > I have a page that has several links that point to the same page. I > want to > pass a variable to the linked page depending on which link the user > clicks > to only display a result set that is relevant to the link clicked. I > know > clicking

Re: [PHP] WYSIWYG vs. the 'power-user'

2007-04-12 Thread Richard Lynch
On Thu, April 12, 2007 10:48 am, Chetan Graham wrote: > I'm > talking about the 'non-compliance of html W3 Spec' in all their files. > The HTML code is embarrassing to look at, capitalizations, missing end > tags, added end tags, on and on and on. And what happened to the > Doctype? You should be

Re: [PHP] Download multiple sound files?

2007-04-12 Thread Richard Lynch
On Thu, April 12, 2007 11:15 am, Skip Evans wrote: > I have a need to allow a user to download multiple > sound files (mp3s, typically) from a single link. > I've been looking at various solutions via Google, > but have not seen one yet to do this. > > Can anyone point me in the right direction or

Re: [PHP] HTML tab

2007-04-12 Thread Richard Lynch
On Thu, April 12, 2007 3:22 pm, Panquekas wrote: > I'm trying to indent my HTML, but I have an problem. > So, what I have now is: > > > (...) > > And I want something like: > > > (...) > > But when I use "\n\t" in a echo comes out something like this: > > > Hi > > > As you can

Re: [PHP] WYSIWYG vs. the 'power-user'

2007-04-12 Thread Robert Cummings
On Thu, 2007-04-12 at 16:07 -0500, Edward Vermillion wrote: > On Apr 12, 2007, at 2:46 PM, Paul Novitski wrote: > > Can't remember the last time I had to update the machine code because > PHP wouldn't run properly... ;) *PFFT* Newbie! ;) Cheers, Rob. -- .--

Re: [PHP] token_get_all ...

2007-04-12 Thread Jochem Maas
Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-04-12 22:23:23 +0200: >> does anyone know if I can rely on token_get_all() tokenized anything >> and everything that is thrown at it? > > It's an interface to the PHP scanner. IOW, yes. cheers Roman. > -- PHP General Mailing List (http://ww

Re: [PHP] token_get_all ...

2007-04-12 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-12 22:23:23 +0200: > does anyone know if I can rely on token_get_all() tokenized anything > and everything that is thrown at it? It's an interface to the PHP scanner. IOW, yes. -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. Yo

Re: [PHP] WYSIWYG vs. the 'power-user'

2007-04-12 Thread Edward Vermillion
On Apr 12, 2007, at 2:46 PM, Paul Novitski wrote: At 4/12/2007 08:48 AM, Chetan Graham wrote: WYSIWYG vs. the 'power-user' Vonda McIntyre used to describe the three stages in the evolution of science fiction. In the first stage it was all about the technology, the new gadgets we could d

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Edward Vermillion
On Apr 12, 2007, at 3:04 PM, Jochem Maas wrote: Edward Vermillion wrote: On Apr 12, 2007, at 11:17 AM, Jochem Maas wrote: Arthur Erdös wrote: int memory_get_usage ( [bool $real_usage] ) Returns the amount of memory, in bytes, that's currently being allocated to your PHP script. [snip]

Re: [PHP] HTML tab

2007-04-12 Thread Zoltán Németh
2007. 04. 12, csütörtök keltezéssel 21.30-kor Panquekas ezt írta: > I use "\n" an "\t". But the spaces in the tab are too long. I just > want 2 spaces in each line. look at what I said. "\n " is a "\n" and two spaces. is that not good? BTW include the list in the replies please greets Zoltán Né

Re: [PHP] HTML tab

2007-04-12 Thread Zoltán Németh
2007. 04. 12, csütörtök keltezéssel 21.22-kor Panquekas ezt írta: > Hello, > > I'm trying to indent my HTML, but I have an problem. > So, what I have now is: > > > (...) > > And I want something like: > > > (...) > > But when I use "\n\t" in a echo comes out something like this: > >

Re: [PHP] php5 oop question

2007-04-12 Thread Jochem Maas
nice write up. :-) Tim Stiles wrote: > I suppose I should have summarized what I learned from that experiment, > putting myself more squarely on topic: Simply put, a Fluent interface > let me move from > /snip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

[PHP] token_get_all ...

2007-04-12 Thread Jochem Maas
having decided to attempt to write a visual merge/edit/translate tool for 'old skool' php lang files (see previous thread I started) I have got to a stage where I can reliably extract 'keys' and 'values' from multi-dimensional tokenized arrays regardless of the complexity of the key or value def

[PHP] HTML tab

2007-04-12 Thread Panquekas
Hello, I'm trying to indent my HTML, but I have an problem. So, what I have now is: (...) And I want something like: (...) But when I use "\n\t" in a echo comes out something like this: Hi As you can see, the tab has 4 spaces and in the bottom as 8 spaces and I just want

Re: [PHP] WYSIWYG vs. the 'power-user'

2007-04-12 Thread Paul Novitski
At 4/12/2007 08:48 AM, Chetan Graham wrote: WYSIWYG vs. the 'power-user' Vonda McIntyre used to describe the three stages in the evolution of science fiction. In the first stage it was all about the technology, the new gadgets we could dream up; "Look at this cool space ship we built!" In

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Jochem Maas
Arthur Erdös wrote: >> don't OMFG me - I can't read your cmdline from here you know, >> and I'm not the one with a completely borked script/system/whatever. >> > > a big sorry again for the missunderstanding!! ;) I did not omfg YOU! I > did omfg ME when I saw that the script eats much more memory

Re: [PHP] Posting a variable

2007-04-12 Thread Otto Wyss
Richard Lynch wrote: On Wed, April 11, 2007 12:53 pm, [EMAIL PROTECTED] wrote: Quoting Robert Cummings <[EMAIL PROTECTED]>: mysql_fetch_row()? It's a religious question. I find mysql_fetch_assoc to be less clear because you end up not necessarily using the data until much later, and by the

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Jochem Maas
Edward Vermillion wrote: > > On Apr 12, 2007, at 11:17 AM, Jochem Maas wrote: > >> Arthur Erdös wrote: int memory_get_usage ( [bool $real_usage] ) Returns the amount of memory, in bytes, that's currently being allocated to your PHP script. it returns the number of *b

[PHP] 0x9f54 is an invalid Big5 character! (was Re: [PHP] Re: 0x9f54)

2007-04-12 Thread Seak, Teng-Fong
OK, I took your problem from the other end. I tried to see what you're trying to store. I entered your 0x9F54 in a text file (using binary editor) and opened it in Firefox. Guess what! When the encoding is set to Big5, I just got a "?". But if I switch to Big5-HKSCS, I've got the "麁" c

Re: [PHP] Download multiple sound files?

2007-04-12 Thread Stut
Skip Evans wrote: Right, there is that, but I know the client is going to want the mp3s to land on the client's machine in individual mp3 files. Is there a way to link to the second, etc, next file in line after beginning the first? I can't think of a way to do this. Sort of. You could proba

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Stut
Arthur Erdös wrote: Arthur Erdös wrote: ok, its not really fast, but it runs on my development machine (AMD64, 4 GB of RAM, Ubuntu). mysql on the same machine, database with 175 tables and 2,3 GB data. that could probably slow down scripts, don't you agree? no. you have 4 F'ing gigs of ram on y

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

2007-04-12 Thread Stut
Jarrel Cobb wrote: Dreamweaver came/comes in handy when you are forced to work with a nested table layout because you're working with HTML generated by Photoshop. I hear this argument used a lot. Just because you get a design that has been generated in Photoshop is no excuse for not conformin

Re: [PHP] Re: scandir and ftp wrapper

2007-04-12 Thread Al
How about the simple opendir() then readdir()? Or, put a php file in the remote site you can query for the list. Or, if the remote has a cgi-bin put a script in it you can query remotely. Look at cURL. John Ewing wrote: It appears you are trying to scan/list a remote site's directory; why?

Re: [PHP] Download multiple sound files?

2007-04-12 Thread tg-php
Does this mean we need to start lobbying against connectionless protocols like HTTP so we can better download multiple files? hah 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 in

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

2007-04-12 Thread Robert Cummings
On Thu, 2007-04-12 at 14:11 -0400, Jarrel Cobb wrote: > First, CSS layout is relatively new thing. Its been possible for a while > but bad browser support for CSS made it difficult. Microsoft is the bane of any standard. Even with IE7 they still haven't opened up many of the important CSS feature

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

2007-04-12 Thread Jarrel Cobb
First, CSS layout is relatively new thing. Its been possible for a while but bad browser support for CSS made it difficult. I didn't imply that people should use a nested table layout and I clearly statement that now a days most people go for CSS layouts. I was simply saying that Dreamweaver ca

Re: [PHP] Download multiple sound files?

2007-04-12 Thread Richard Davey
Jim Moseby wrote: I remember, way back when, transferring multiple files was simple. The good ole days of ZModem. Maybe todays technology will catch up eventually. ;^) I doubt it :) Things were so much more optimised back then! I remember packaging all my mail up into QWK bundles, download

RE: [PHP] Download multiple sound files?

2007-04-12 Thread Jim Moseby
> = = = Original message = = = > > Hey all, > > I have a need to allow a user to download multiple > sound files (mp3s, typically) from a single link. > I've been looking at various solutions via Google, > but have not seen one yet to do this. > > Can anyone point me in the right direction or

Re: [PHP] php5 oop question

2007-04-12 Thread Tim Stiles
I suppose I should have summarized what I learned from that experiment, putting myself more squarely on topic: Simply put, a Fluent interface let me move from $_input->addCheck('Integer'); $_input->addCheck('Range',3,9); $_input->addCheck('NonEmpty'); to $_input->addCheck('Integer')

Re: [PHP] Download multiple sound files?

2007-04-12 Thread Skip Evans
Hey all, Thanks for the good suggestions. I think Stut and TG here are on the right track with a zip file kind of thing. They should be able to handle that and the php/zip stuff looks good to. Much thanks! Skip [EMAIL PROTECTED] wrote: Stut beat me to it... downloading multiple files a

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Edward Vermillion
On Apr 12, 2007, at 11:17 AM, Jochem Maas wrote: Arthur Erdös wrote: int memory_get_usage ( [bool $real_usage] ) Returns the amount of memory, in bytes, that's currently being allocated to your PHP script. it returns the number of *bytes* !!! sure, and memory_get_usage()/1048576 returns

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Arthur Erdös
> Arthur Erdös wrote: > > ok, its not really fast, but it runs on my development machine (AMD64, 4 > > GB of RAM, Ubuntu). mysql on the same machine, database with 175 tables > > and 2,3 GB data. that could probably slow down scripts, don't you agree? > > no. you have 4 F'ing gigs of ram on your

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Arthur Erdös
> don't OMFG me - I can't read your cmdline from here you know, > and I'm not the one with a completely borked script/system/whatever. > a big sorry again for the missunderstanding!! ;) I did not omfg YOU! I did omfg ME when I saw that the script eats much more memory as memory_get_usage() return

Re: [PHP] Download multiple sound files?

2007-04-12 Thread tg-php
Stut beat me to it... downloading multiple files at once is probably best done with compressing them and just downloading the one file. You could possibly rig a situation where the user downloaded one file, then a certain number of seconds later, the page redirects to the next file to download

Re: [PHP] Re: WYSIWYG vs. the 'power-user'

2007-04-12 Thread Jason Pruim
I couldn't agree more with what you are saying in this thread Chetan, I have my feet in quite a few worlds myself, I actually use dreamweaver as a code editor since it has the code completion (I don't know web design/php/mysql/etc etc very well) and some times I need reminders. I have never

[PHP] Re: WYSIWYG vs. the 'power-user'

2007-04-12 Thread Jochem Maas
Chetan Graham wrote: ince story. > Also, I do not believe in making fun of people or their views on a subject > even if I feel I know better. Better a friend than an enemy. by definition if you choose 'friend' you are stuck with the concept of 'enemy' - and war will continue doing great busines

Re: [PHP] Download multiple sound files?

2007-04-12 Thread Jochem Maas
Skip Evans wrote: > Hey all, > > I have a need to allow a user to download multiple sound files (mp3s, > typically) from a single link. I've been looking at various solutions > via Google, but have not seen one yet to do this. > > Can anyone point me in the right direction or give me a lead on ho

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Jochem Maas
Arthur Erdös wrote: > ok, its not really fast, but it runs on my development machine (AMD64, 4 > GB of RAM, Ubuntu). mysql on the same machine, database with 175 tables > and 2,3 GB data. that could probably slow down scripts, don't you agree? no. you have 4 F'ing gigs of ram on your desktop and i

Re: [PHP] Download multiple sound files?

2007-04-12 Thread Skip Evans
Hey, Right, there is that, but I know the client is going to want the mp3s to land on the client's machine in individual mp3 files. Is there a way to link to the second, etc, next file in line after beginning the first? I can't think of a way to do this. Skip Stut wrote: Skip Evans wrot

[PHP] Re: WYSIWYG vs. the 'power-user'

2007-04-12 Thread Chetan Graham
To set the record straight for both camps, in the web apps that come to me I simply do the PHP, javascript, etc. The files come to me already PhotoShopped and Dreamweaed. I tell them the fields I need, giving them a general pencil sketch of the login or edit page, etc. as I see it. They are

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Jochem Maas
Arthur Erdös wrote: >> int memory_get_usage ( [bool $real_usage] ) >> >> Returns the amount of memory, in bytes, that's currently being allocated to >> your PHP script. >> >> it returns the number of *bytes* !!! > > sure, and memory_get_usage()/1048576 returns the number of megs, or am i > wrong?

Re: [PHP] Download multiple sound files?

2007-04-12 Thread Stut
Skip Evans wrote: I have a need to allow a user to download multiple sound files (mp3s, typically) from a single link. I've been looking at various solutions via Google, but have not seen one yet to do this. Can anyone point me in the right direction or give me a lead on how this can be done?

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Arthur Erdös
ok, its not really fast, but it runs on my development machine (AMD64, 4 GB of RAM, Ubuntu). mysql on the same machine, database with 175 tables and 2,3 GB data. that could probably slow down scripts, don't you agree? > On Thu, 2007-04-12 at 17:59 +0200, Arthur Erdös wrote: > > > > > > are you ex

[PHP] Download multiple sound files?

2007-04-12 Thread Skip Evans
Hey all, I have a need to allow a user to download multiple sound files (mp3s, typically) from a single link. I've been looking at various solutions via Google, but have not seen one yet to do this. Can anyone point me in the right direction or give me a lead on how this can be done? Than

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Robert Cummings
On Thu, 2007-04-12 at 17:59 +0200, Arthur Erdös wrote: > > > > are you experiencing severe load on the server whilst the script is running? > > and/or is the script actually very, very slow? > > well, the script is not very, very slow... it takes ~3-4 seconds to > generate each newsletter (includi

Re: [PHP] WYSIWYG vs. the 'power-user'

2007-04-12 Thread Eric Butera
On 4/12/07, Chetan Graham <[EMAIL PROTECTED]> wrote: Hello to All! I've been monitoring this emotional listing from the beginning and feel the need to bring out some of my personal experience on this exciting matter of WYSIWYG vs. the 'power-user' 1) I started back when there where no GUI's ava

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Arthur Erdös
> int memory_get_usage ( [bool $real_usage] ) > > Returns the amount of memory, in bytes, that's currently being allocated to > your PHP script. > > it returns the number of *bytes* !!! sure, and memory_get_usage()/1048576 returns the number of megs, or am i wrong? o_O > > > > >> exactly how

[PHP] WYSIWYG vs. the 'power-user'

2007-04-12 Thread Chetan Graham
Hello to All! I've been monitoring this emotional listing from the beginning and feel the need to bring out some of my personal experience on this exciting matter of WYSIWYG vs. the 'power-user' 1) I started back when there where no GUI's available anywhere! In time I became quite comfortable wit

Re: [PHP] php5 oop question

2007-04-12 Thread Tim Stiles
I've seen it referred to as a "Fluent Interface". I built one just to see how hard it was, using a standard problem: data validation. The results were promising. I combined it with an object designed to work as a factory for an internally stored decorator pattern. Class Input was the fa

Re: [PHP] 'lang' file editor ...

2007-04-12 Thread Jochem Maas
Matt Carlson wrote: > I am running into the same problem. > > A very VERY basic thing that I worked on for importing yielded this: > > preg_match_all('/.*?(?:\$lang([^=]*)=(.*?); *$.*?)+/ms', > file_get_contents("localization/enUS.php"), $parsed); > > It wasn't the best, but it worked 90% of th

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Jochem Maas
Arthur Erdös wrote: > answering Jochem: > >> WTF - 386 megs for an html file??? somehow I doubt this is >> the correct number ... are you reading the memory consumption >> correctly? > > when the newsletter generation starts memory_get_usage() says ~96 MB in > use. So approx 290 megs more are use

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

2007-04-12 Thread Robert Cummings
On Thu, 2007-04-12 at 10:09 -0400, Arbitrio, Pat wrote: > Thanks for the insight Tedd. It's good to get real feedback (unlike > some of these guys busting my stones here - lol). Someone with big stones wouldn't complain! Maybe you need thicker skin ;) (scrotum pun intended) Cheers, Rob. > I

Re: [PHP] Bind IP with fsockopen

2007-04-12 Thread Tijnema !
On 4/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi ive tried \r\n\n and pretty much every other combination I can think of. But I still cant get it to return a line break. Otherwise the script is working though. A simple \r\n should do the job:) Tijnema - Original Message

Re: [PHP] 'lang' file editor ...

2007-04-12 Thread Matt Carlson
I am running into the same problem. A very VERY basic thing that I worked on for importing yielded this: preg_match_all('/.*?(?:\$lang([^=]*)=(.*?); *$.*?)+/ms', file_get_contents("localization/enUS.php"), $parsed); It wasn't the best, but it worked 90% of the time. Maybe this can help you on

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Arthur Erdös
hihi, sorry for that! The Ads come from our Ad-Seller (or how is this called in english) and we have nearly no influence on what kind of ads are delivered ;) Am Donnerstag, den 12.04.2007, 16:18 +0200 schrieb Jochem Maas: > [EMAIL PROTECTED] wrote: > > Couple of questions come to mind... > > >

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Arthur Erdös
answering Jochem: > WTF - 386 megs for an html file??? somehow I doubt this is > the correct number ... are you reading the memory consumption > correctly? when the newsletter generation starts memory_get_usage() says ~96 MB in use. So approx 290 megs more are used after reading the 20.7 Kb tem

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Zoltán Németh
2007. 04. 12, csütörtök keltezéssel 16.18-kor Jochem Maas ezt írta: > [EMAIL PROTECTED] wrote: > > Couple of questions come to mind... > > > > ... > > > 4. Please tell us these 'newsletters' don't contain information on "male > > enhancement products" or "govt seized puppies"..hah > > this spr

Re: [PHP] Re: scandir and ftp wrapper

2007-04-12 Thread John Ewing
It appears you are trying to scan/list a remote site's directory; why? Most sites will not >>allow you to do this. I'm connecting to a remote site via the ftp wrapper. So I can't just use the file path. I have a script which runs on one webserver to get information off another server via ftp.

Re: [PHP] PHP editor

2007-04-12 Thread Tijnema !
For win i'm using Macromedia Dreamwaver, it's not free, but it has great interface with servers not on your own PC, i'm using several different servers, and i have them all listed in Dreamwaver. I click on a file on one of the servers, and it loads, and when i press save, it saves directly to the

[PHP] Re: scandir and ftp wrapper

2007-04-12 Thread Al
It appears you are trying to scan/list a remote site's directory; why? Most sites will not allow you to do this. If it's your own site; just use the full path or symbolic one. j wrote: Hi I have a question about scandir I have been trying to track down problems after upgrading from 5.1.6 to

Re: [PHP] links and variables

2007-04-12 Thread Jochem Maas
Dan Shirah wrote: > Greetings! > > I have a page that has several links that point to the same page. I > want to > pass a variable to the linked page depending on which link the user clicks > to only display a result set that is relevant to the link clicked. I know > clicking on a link does not

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Jochem Maas
[EMAIL PROTECTED] wrote: > Couple of questions come to mind... > ... > 4. Please tell us these 'newsletters' don't contain information on "male > enhancement products" or "govt seized puppies"..hah this spring to my mind as well - but given his domainname (brainguide), which points to a seemi

Re: [PHP] Re: Question on Portfoilo's

2007-04-12 Thread Tijnema !
On 4/11/07, Steve <[EMAIL PROTECTED]> wrote: If you're working under an NDA or on code that doesn't belong to you, you'll most likely need to hit up the hobbiest side of programming to build your portfolio. Sit down, plan some app that would make your life easier (or someone else's), go through t

[PHP] links and variables

2007-04-12 Thread Dan Shirah
Greetings! I have a page that has several links that point to the same page. I want to pass a variable to the linked page depending on which link the user clicks to only display a result set that is relevant to the link clicked. I know clicking on a link does not submit the page, so there would

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Satyam
When you free memory you are only marking memory as available for reclaiming, but it doesn't mean it will actually reclaim it at all. The garbage collector usually runs at a very low priority and if you don't give your process a break, it will never catch up. One thing I would try is to inse

  1   2   >