Re: [PHP] I got the mail form blues! HTML/POST/mail() question - Also request for style suggestions

2004-12-16 Thread Ryan King
On Dec 16, 2004, at 10:02 PM, Monique Verrier wrote: Hi! I have an html string stored in $message. I submit the form to a subroutine and the value in $message is lost. All the other variables come into feedback.php just fine. I would love any help. This is a new language for me so any

Re: [PHP] assignment

2004-12-11 Thread Ryan King
On Dec 9, 2004, at 10:02 PM, Song Ken Vern wrote: Hi, Tried searching for what this $$ operator means. But can't get the right results by using $$ as search string in php manual. $temp = $$temp2; Is this an array assignment? No, its a variable varible:

Re: [PHP] Multiple Inheritance

2004-12-10 Thread Ryan King
On Dec 10, 2004, at 4:17 PM, Greg Beaver wrote: The biggest hogs in php programming are: 1) unnecessary images and animated crap/unnecessary javascript 2) terrible database usage 3) too much complexity in the design I would like to add 0) Compilation. Many scripts take longer to compile than

Re: [PHP] Multiple Inheritance

2004-12-10 Thread Ryan King
On Dec 10, 2004, at 3:50 PM, Greg Donald wrote: On Fri, 10 Dec 2004 10:32:30 -0800 (PST), Richard Lynch [EMAIL PROTECTED] wrote: What I do is not use classes. I agree. Some of the worst arguments for OO I've heard recently: OO programming lets you organize your code better. So what you're saying

Re: [PHP] PEAR performance/overhead

2004-12-08 Thread Ryan King
On Dec 7, 2004, at 12:34 PM, David Dickson wrote: I was told that PEAR has too much overhead to be considered for a large scale site. Does any one feel the same? Is this an outrageous comment? I would like to hear comments from people who are using PEAR, or people who have considered PEAR but

Re: [PHP] Problem with code

2004-12-07 Thread Ryan King
On Dec 5, 2004, at 9:05 PM, Richard Kurth wrote: I am having a problem with the code below it provides the first page with out any problem but when I select the next page it shows all the results from the first page and the results from the second page. It does the same thing on the third page

Re: [PHP] Very fresh to php

2004-11-30 Thread Ryan King
On Nov 30, 2004, at 10:45 PM, suneel wrote: Hi...guys, I'm a new bee to php. Could any one tell me that who is the father of php? take care guys, That would be Rasmus Lerdorf - http://php.net/history -ryan - http://theryanking.com/blog -- PHP General Mailing List

Re: [PHP] Grammar for PHP

2004-11-28 Thread Ryan King
On Nov 28, 2004, at 7:28 AM, Dominic Fox wrote: Hi, I would like to parse some PHP files to extract some information about them. Is there a formal grammar (EBNF or other) anywhere that I could use as a reference? I'd like to write the parser myself (in Haskell), so existing PHP parsers (in PHP

Re: [PHP] automatic responder

2004-11-28 Thread Ryan King
On Nov 28, 2004, at 10:38 AM, Alessandro Rosa wrote: Yes, but perhaps every 5 minutes. You have to solve this too, either cron job if you have it available or it can be trigered by user http requests (not very reliable). Thanks again! Yours e-mail fixed some procedural doubts I have been thinking

Re: [PHP] Re: intalling pear:db

2004-11-25 Thread Ryan King
On Nov 25, 2004, at 1:56 AM, Merlin wrote: Hi, that did not help. The pear manual says that this can be installed via command line, plus pear list tells me that the package is installed. However if I call phpinfo() there is no mentioning about pear in any way?! Do I have to enable it first

Re: [PHP] Where to learn about these topics

2004-11-22 Thread Ryan King
On Nov 22, 2004, at 11:33 AM, Chris Lott wrote: In MySQL I would say... If you have data which has to be inserted in serveral tables, you must first check if all conditions are ok. So, do some selects to check if everythin in your database is ok, and after that, execute the query. But, when you

Re: [PHP] Tabs or Spaces?

2004-11-21 Thread Ryan King
On Nov 21, 2004, at 4:30 PM, M. Sokolewicz wrote: Jon-Eirik Pettersen wrote: Daniel Schierbeck wrote: Hello there! There seems to be some tendency towards using spaces instead of tabs when indenting PHP code - personally i can't come up with any reason not to use tabs. I was just wondering if

Re: [PHP] Re: Tabs or Spaces?

2004-11-21 Thread Ryan King
On Nov 21, 2004, at 3:09 PM, Matthew Weier O'Phinney wrote: * Daniel Schierbeck [EMAIL PROTECTED]: There seems to be some tendency towards using spaces instead of tabs when indenting PHP code - personally i can't come up with any reason not to use tabs. I was just wondering if any of you freakees

Re: [PHP] Tabs or Spaces?

2004-11-21 Thread Ryan King
On Nov 21, 2004, at 5:09 PM, Chris Shiflett wrote: --- Ryan King [EMAIL PROTECTED] wrote: However, when indenting with 3 spaces instead of a single tab, then your code-size WILL increase, and will include 3x more space content than it used to :) Who cares? Just to point out the obvious, if you're

Re: [PHP] require() in other directories?

2004-11-18 Thread Ryan King
Peter Lauri wrote: I get the Failed to open stream, no such file in directory If you were in one of these folders: /fr/ /eng/ And your classfile was namned classes.php and in the directory: /classes/ And you wanted to include the classfile, how would you write it? I would assume:

[PHP] mp3 cropping

2004-11-17 Thread Ryan King
Anyone out there know of a tool or technique for cropping an MP3 file (e.g., cutting the first 30 sec out into another file)? PHP would be nice, but not necessary. TIA, ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mp3 cropping

2004-11-17 Thread Ryan King
On Nov 17, 2004, at 10:05 PM, Robby Russell wrote: On Wed, 2004-11-17 at 21:53 -0600, Ryan King wrote: Anyone out there know of a tool or technique for cropping an MP3 file (e.g., cutting the first 30 sec out into another file)? PHP would be nice, but not necessary. TIA, ryan a php question would

Re: [PHP] mp3 cropping

2004-11-17 Thread Ryan King
On Nov 17, 2004, at 10:05 PM, Robby Russell wrote: On Wed, 2004-11-17 at 21:53 -0600, Ryan King wrote: Anyone out there know of a tool or technique for cropping an MP3 file (e.g., cutting the first 30 sec out into another file)? PHP would be nice, but not necessary. TIA, ryan a php question would

Re: [PHP] isset opposite

2004-11-16 Thread Ryan King
On Nov 16, 2004, at 5:11 PM, Dustin Krysak wrote: Hi there.. I am pretty new to PHP, and I am familiar with php isset option now i was wondering (I have looked at the PHP site - but can not find it) how can you check if something is not set? I need to test if a $_GET is not set (not

[PHP] mp3 parsing

2004-11-16 Thread Ryan King
Anyone out there have a way to read the header info out of an mp3 file? I'm able to parse out the id3 tags, but am having trouble finding a way to read the header info. The info I'm trying to get is the playtime and bitrate. thanks, ryan -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: mp3 parsing

2004-11-16 Thread Ryan King
On Nov 16, 2004, at 7:24 PM, Manuel Lemos wrote: Hello, On 11/16/2004 10:58 PM, Ryan King wrote: Anyone out there have a way to read the header info out of an mp3 file? I'm able to parse out the id3 tags, but am having trouble finding a way to read the header info. The info I'm trying to get

Re: [PHP] explode and PATH_SEPARATOR

2004-11-15 Thread Ryan King
On Nov 15, 2004, at 10:17 AM, Francisco M. Marzoa Alonso wrote: Taking this code: pre ?php define (PATH_SEPARATOR, /); $String=Root/One/Two/Three/Last; $arr = explode ( PATH_SEPARATOR, $String ); var_dump ( $arr ); $arr = explode ( /, $String ); var_dump ( $arr ); ? /pre PATH_SEPARATOR is is a

Re: [PHP] Date handling

2004-11-15 Thread Ryan King
On Nov 15, 2004, at 2:05 PM, Ryan wrote: Hello, I would like to find out the 'official' way to handle dates in PHP. There are many paths, choose the one best for you. :-) I am looking at the PEAR Date module and that seems to resolve these issues, but I would like to know if that is the

Re: [PHP] unable to use vars in foreach

2004-11-14 Thread Ryan King
On Sunday, November 14, 2004, at 08:24PM, Jonathan Villa [EMAIL PROTECTED] wrote: $modules = simplexml_load_file(MODULES); Are you certain that MODULES has been defined()? And what do you get when you print_r($modules)? -ryan -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] unable to use vars in foreach

2004-11-14 Thread Ryan King
On Sunday, November 14, 2004, at 08:36PM, Jonathan Villa [EMAIL PROTECTED] wrote: On Sunday, November 14, 2004, at 08:24PM, Jonathan Villa [EMAIL PROTECTED] wrote: $modules = simplexml_load_file(MODULES); Are you certain that MODULES has been defined()? And what do you get when

Re: [PHP] unable to use vars in foreach [updated question]

2004-11-14 Thread Ryan King
On Sunday, November 14, 2004, at 08:44PM, Jonathan Villa [EMAIL PROTECTED] wrote: So, searching php.net (I swear I did before...) I found this at http://us2.php.net/language.types.array You cannot use arrays or objects as keys. Doing so will result in a warning: Illegal offset type.

Re: [PHP] inline_C installation

2004-11-11 Thread Ryan King
On Nov 11, 2004, at 12:50 PM, Rayan Lahoud wrote: Does anybody knows how to install a pear package. i have the inline_C package that i want to install and use. And can i have some sample functions using this package? I believe the inline_c package is actually a pecl package [pecl.php.net],

Re: [PHP] Automatic Execution of Function

2004-11-07 Thread Ryan King
On Sunday, November 07, 2004, at 09:38PM, Kevin Javia [EMAIL PROTECTED] wrote: Hi, I need to make a function that will execute automatically at some regular intervals. Is it possible? If yes, can any give me some hint how can I make such thing? Thanks. Kevin. I presume you're talking about

Re: [PHP] You know you're a geek when...

2004-11-07 Thread Ryan King
On Sunday, November 07, 2004, at 10:38PM, raditha dissanayake [EMAIL PROTECTED] wrote: Murray @ PlanetThoughtful wrote: .You upgrade MySQL from 4.0.x to 4.1.x and you get excited because now you can include subselects in your pages. You know you're a geek when you know which list deals