[PHP] php5 oop question

2007-04-12 Thread Jim Lucas
Ok, I have seen many different examples of OOP, but nothing quite like this. Someone was showing me syntax for Ruby the other day, and it got me thinking, wouldn't it be neat to imitate ruby, or be it a little more generic, dot notation for OOP ways of calling methods like Java, javascript,

Re: [PHP] location of the PHP executable

2007-04-12 Thread Børge Holen
On Wednesday 11 April 2007 23:50, Jarrel Cobb wrote: Don't you have to run locate -u first to generate the database before using locate? You can't just assume a database exists already can you? not an updated one at least, updatedb can also be used to update. and if you're in a little bit of

Re: [PHP] php5 oop question

2007-04-12 Thread Paul Scott
On Wed, 2007-04-11 at 23:22 -0700, Jim Lucas wrote: Has anybody else seen this style of syntax? http://5ive.uwc.ac.za/index.php?module=blogaction=viewsinglepostid=init_8059_1163957717userid=5729061010 I don't think that its really useful for anything, except maybe creating overly complex SQL

Re: [PHP] location of the PHP executable

2007-04-12 Thread Chris
Børge Holen wrote: On Wednesday 11 April 2007 23:50, Jarrel Cobb wrote: Don't you have to run locate -u first to generate the database before using locate? You can't just assume a database exists already can you? not an updated one at least, updatedb can also be used to update. Probably

Re: [PHP] php5 oop question

2007-04-12 Thread Jim Lucas
Paul Scott wrote: On Wed, 2007-04-11 at 23:22 -0700, Jim Lucas wrote: Has anybody else seen this style of syntax? http://5ive.uwc.ac.za/index.php?module=blogaction=viewsinglepostid=init_8059_1163957717userid=5729061010 I don't think that its really useful for anything, except maybe creating

Re: [PHP] php5 oop question

2007-04-12 Thread Jim Lucas
Paul Scott wrote: On Wed, 2007-04-11 at 23:22 -0700, Jim Lucas wrote: Has anybody else seen this style of syntax? http://5ive.uwc.ac.za/index.php?module=blogaction=viewsinglepostid=init_8059_1163957717userid=5729061010 I don't think that its really useful for anything, except maybe creating

Re: [PHP] php5 oop question

2007-04-12 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-11 23:36:56 -0700: Paul Scott wrote: On Wed, 2007-04-11 at 23:22 -0700, Jim Lucas wrote: Has anybody else seen this style of syntax? I don't think that its really useful for anything, except maybe creating overly complex SQL queries. What about using it for

Re: [PHP] php5 oop question

2007-04-12 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-11 23:44:16 -0700: Paul Scott wrote: On Wed, 2007-04-11 at 23:22 -0700, Jim Lucas wrote: Has anybody else seen this style of syntax? http://5ive.uwc.ac.za/index.php?module=blogaction=viewsinglepostid=init_8059_1163957717userid=5729061010 I don't think that

[PHP] Re: Outlook task via email

2007-04-12 Thread Colin Guthrie
Chris Boget wrote: I've done some searching on Google but haven't been able to come up with anything helpful. Has anyone on the list done any work on sending an Outlook Task as part of an email? Or does anyone know of a good resource that shows how this can be done? I'm going to be using

Re: [PHP] Re: SQL Source Control

2007-04-12 Thread Zoltán Németh
2007. 04. 11, szerda keltezéssel 21.43-kor Colin Guthrie ezt írta: Zoltán Németh wrote: yeah I have the same problem ;) I have two kind of SQL files: 1) SQL of the complete, blank DB structure - I store it for each main version (I should store it for each version if I wouldn't be so

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

2007-04-12 Thread Jochem Maas
what I'm looking for is something that will make it possible for an end user to merge [the contents] existing language files (that contain the items for the same language) *and* perform translations between languages in a visual/easy way (i.e. without opening a text editor) but end up with lang

RE: [PHP] Session Authentication

2007-04-12 Thread Tim Earl
-Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Ólafur Waage Envoyé : lundi 9 avril 2007 14:40 À : [EMAIL PROTECTED] Objet : [PHP] Session Authentication Lets say i have a login system. This system authenticates the user via mysql, when the

RE: [PHP] Session Authentication

2007-04-12 Thread Tim Earl
-Message d'origine- De : Tijnema ! [mailto:[EMAIL PROTECTED] Envoyé : lundi 9 avril 2007 17:55 À : Peter Lauri Cc : Martin Marques; Ólafur Waage; [EMAIL PROTECTED] Objet : Re: [PHP] Session Authentication On 4/9/07, Peter Lauri [EMAIL PROTECTED] wrote: -Original

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

2007-04-12 Thread Satyam
maybe I should consider moving my 'shit' into gettext format. That was just what I was going to sugest: using gettext format. Nevertheless, I find php-gettext far more flexible and, since it is in source format, you might want to modifiy the part that reads in the compiled translation file

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

2007-04-12 Thread Jochem Maas
Satyam wrote: maybe I should consider moving my 'shit' into gettext format. That was just what I was going to sugest: using gettext format. yeah, but I curerntly have 30 odd files each with upwards of 2000 strings in them, and it would also require changing the code base to use gettext

[PHP] free allocated memory: HOW ?

2007-04-12 Thread Arthur Erdös
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() to clean up

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Jochem Maas
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... this is a recurrent problem - not much can be done about it AFAIK ... I'd be very glad to be proved wrong. I have a script that

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

2007-04-12 Thread Jay Blanchard
[snip] agreed, Dreamweaver is not the tool for you. But I've found it to be useful for whipping up quick HTML newsletters from slice photoshop layouts. And I like to see incremental change so if I used the browser refresh technique trying to tweak the crappy table layouts photoshop spits out, I'd

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

2007-04-12 Thread Jochem Maas
I just played around with token_get_all() and token_name() and by the looks of the output it's going to be quite easy to create something that can rewrite the contents of a file and or augment it ... the only really tricky thing that I can't get my head round right away is handling the

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

2007-04-12 Thread Satyam
- Original Message - From: Jochem Maas [EMAIL PROTECTED] Satyam wrote: maybe I should consider moving my 'shit' into gettext format. That was just what I was going to sugest: using gettext format. yeah, but I curerntly have 30 odd files each with upwards of 2000 strings in them,

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Arthur Erdös
I am using PHP version 5.1.2. on my dev machine. The same problem with PHP 5.2.1 on webserver. I am generating mails based on a HTML Template. If you look at the appended screenshot you'll see that after reading the template with fread() memory_get_usage() says ~386 MB in use... Then the

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Arthur Erdös
I am using PHP version 5.1.2. on my dev machine. The same problem with PHP 5.2.1 on webserver. I am generating mails based on a HTML Template. After reading the template with fread() memory_get_usage() says ~386 MB in use... Then the placeholders in the read template are replaced by

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Arthur Erdös
I am using PHP version 5.1.2. on my dev machine. The same problem with PHP 5.2.1 on webserver. I am generating mails based on a HTML Template. After reading the template with fread() memory_get_usage() says ~386 MB in use... Then the placeholders in the read template are replaced by customized

Re: [PHP] location of the PHP executable

2007-04-12 Thread Davi
Em Quarta 11 Abril 2007 19:38, Buesching, Logan J escreveu: IF db not exists THEN locate -u END-IF I'd hate to see the time it'd take to create a first-time database... this could take awhile to run. _maybe_ locate -u is faster than ls / -Rv... Need to test before said

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

2007-04-12 Thread tedd
At 9:14 PM -0400 4/11/07, Jarrel Cobb wrote: You have to save the HTML file to see the changes with a browser refresh. You can use the design view to make sure you are atleast in the ballpark before saving and using the IE/Firefox preview. I know most people go with CSS layout now a days, but

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Jochem Maas
Arthur Erdös wrote: I am using PHP version 5.1.2. on my dev machine. The same problem with PHP 5.2.1 on webserver. I am generating mails based on a HTML Template. After reading the template with fread() memory_get_usage() says ~386 MB in use... WTF - 386 megs for an html file??? somehow I

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Zoltán Németh
2007. 04. 12, csütörtök keltezéssel 15.52-kor Jochem Maas ezt írta: Arthur Erdös wrote: I am using PHP version 5.1.2. on my dev machine. The same problem with PHP 5.2.1 on webserver. I am generating mails based on a HTML Template. After reading the template with fread()

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Jochem Maas
Zoltán Németh wrote: 2007. 04. 12, csütörtök keltezéssel 15.52-kor Jochem Maas ezt írta: Arthur Erdös wrote: I am using PHP version 5.1.2. on my dev machine. The same problem with PHP 5.2.1 on webserver. I am generating mails based on a HTML Template. After reading the template with

Re: [PHP] scandir and ftp wrapper

2007-04-12 Thread John Ewing
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. If I copy and paste the ftp url string into firefox it displays

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

2007-04-12 Thread Arbitrio, Pat
Thanks for the insight Tedd. It's good to get real feedback (unlike some of these guys busting my stones here - lol). I can take the blame on putting that Dreamweaver component in there, not our Development team. Gotta remember a lot of times you are dealing with a job spec developed from HR

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread tg-php
Couple of questions come to mind... 1. How big is this template that you're loading? Not sure why almost any HTML file would take up 300+ meg of memory when loaded into a variable. Are you loading images and other content in as well or just the HTML file? 2. Replacing the placeholders with

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

[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

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

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 seemingly

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 submit

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

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] 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 spring to my mind as

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

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] '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] 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] 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] 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 used after

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 the time.

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

[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

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 much ram

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

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 (including

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

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

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

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? o_O

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

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

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 how this

[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

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

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

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()

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 desktop

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

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

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 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 give

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,

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

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 features

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

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] 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 snipped something irrelevant about IE in 1998 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

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

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

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

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 *bytes* !!! sure, and

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
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 as

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

[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: html head (...) And I want something like: html head (...) But when I use \n\t in a echo comes out something like this: DIV ID=menu PHi/P As you can see, the tab has 4 spaces and in the

[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

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:

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: html head (...) And I want something like: html head (...) But when I use \n\t in a echo comes out something like this:

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émeth

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

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. You

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

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] 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: html head (...) And I want something like: html head (...) But when I use \n\t in a echo comes out something like this: DIV ID=menu PHi/P

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 give

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] 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 on a

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

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

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.

  1   2   >