Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Larry Garfield
On Monday 30 April 2007, Greg Donald wrote: > Sounds like you got MVC-itis. PHP can't really help with that since > it's a templating language. > > Try Rubyonrails, it's the best cure for the MVC itch. Except that it's a PAC framework, not MVC, like the vast majority of web apps frameworks out

Re: [PHP] sloppy use of constants as strings. WAS: What does "<<<" mean?

2007-04-30 Thread Chris
> Personally, I *hate* that it does this work, and would love to see a little stricter parsing done and throw a fatal error if you try to use an undefined constant. You can do this yourself. See http://php.net/set_error_handler -- Postgresql & php tutorials http://www.designmagick.com/ -- PH

RE: [PHP] sloppy use of constants as strings. WAS: What does "<<<" mean?

2007-04-30 Thread Daevid Vincent
> > > echo << > > BROWSER: $_SERVER[HTTP_USER_AGENT] > > > EOF; > > > > Isn't that form (sans quote marks) deprecated and frowned upon? > > > error_reporting( E_ALL ); > > echo << BROWSER: $_SERVER[HTTP_USER_AGENT] > EOF; > > Why would cleaner, perfectly error free code be frowned upon? http:

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Micky Hulse
Greg Donald wrote: Try Rubyonrails, it's the best cure for the MVC itch. Django framework is pretty nice too. :) -- Wishlists: Switch: BCC?: My: -- PHP General Mailing Li

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Robert Cummings
On Mon, 2007-04-30 at 19:42 -0500, Greg Donald wrote: > On 4/30/07, Richard Davey <[EMAIL PROTECTED]> wrote: > > I'm not dissing heredoc syntax, it has its uses (now and again) but it's > > far from "clean", especially when embedded deep in classes > > Classes? PHP is the absolute worst language

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Greg Donald
On 4/30/07, Greg Donald <[EMAIL PROTECTED]> wrote: All parts of a heredoc statement do not have to be right justified, only the closing line. I meant my other right, the one on my left. Sorry. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Greg Donald
On 4/30/07, Richard Davey <[EMAIL PROTECTED]> wrote: I'm not dissing heredoc syntax, it has its uses (now and again) but it's far from "clean", especially when embedded deep in classes Classes? PHP is the absolute worst language to do OO programming in. If you like OO, move on to ruby or pytho

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Richard Davey
Greg Donald wrote: On 4/30/07, Daevid Vincent <[EMAIL PROTECTED]> wrote: > echo << BROWSER: $_SERVER[HTTP_USER_AGENT] > EOF; Isn't that form (sans quote marks) deprecated and frowned upon? I'm not dissing heredoc syntax, it has its uses (now and again) but it's far from "clean", especiall

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Paul Novitski
At 4/30/2007 03:38 PM, Philip Thompson wrote: Ok, let's gather some stats to see how many people actually use the heredoc syntax. I created this quick little form to gather the data. It's takes 2 seconds (literally) - vote here: http://thril.uark.edu/heredoc/ I'm interested in knowing if this i

RE: [PHP] What does "<<<" mean?

2007-04-30 Thread Brian Seymour
Heredoc is truly a great thing. You'll learn to love heredoc whenever you have tons of stuff you need to print instead of escaping php. A great example is output that comes from classes, where you can't break the class into multiple code blocks. Just don't forget that heredoc end part has to be on

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Greg Donald
On 4/30/07, Daevid Vincent <[EMAIL PROTECTED]> wrote: > echo << BROWSER: $_SERVER[HTTP_USER_AGENT] > EOF; Isn't that form (sans quote marks) deprecated and frowned upon? http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] What does "<<<" mean?

2007-04-30 Thread Daevid Vincent
> echo "BROWSER: " . $_SERVER['HTTP_USER_AGENT'] . "\n"; I've always had problems with heredoc when I try using arrays like that. I will either pull them into a straight $foo, or use the ${} thing. > echo << BROWSER: $_SERVER[HTTP_USER_AGENT] > EOF; Isn't that form (sans quote marks) deprecated

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Greg Donald
On 4/30/07, Philip Thompson <[EMAIL PROTECTED]> wrote: Ok, let's gather some stats to see how many people actually use the heredoc syntax. I created this quick little form to gather the data. It's takes 2 seconds (literally) - vote here: http://thril.uark.edu/heredoc/ If you're not using it y

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Philip Thompson
On Apr 30, 2007, at 2:17 PM, Greg Donald wrote: On 4/30/07, Nick Gorbikoff <[EMAIL PROTECTED]> wrote: Hello, folks. I rember I've since this somewhere in perl and it has somethign to do with blocks of code. I came across the same thing in some PHP code. <<< END some code END What

Re: [PHP] newbie needs help

2007-04-30 Thread Daniel Brown
Good catch on the non-list reply, Richard. I didn't even notice that. On 4/30/07, Richard Davey <[EMAIL PROTECTED]> wrote: Ben Clapp wrote: > Thank you again for the help, it does work now but with an issue, here > is the code that i have for it right now: You should always reply to the

Re: [PHP] newbie needs help

2007-04-30 Thread Richard Davey
Ben Clapp wrote: Thank you again for the help, it does work now but with an issue, here is the code that i have for it right now: You should always reply to the php mailing list, so other people can benefit from the answers we give. With this it works, but i am sure that when mymonth == 5 (

Re: [PHP] newbie needs help

2007-04-30 Thread Ben Clapp
Thank you both, I will try the code and go from there. Thank you again Daniel Brown wrote: Ben, make sure whatever method you use, you use the operator combinations >= and <= as Richard just showed you. I had forgotten to do that, which would mean (in my example) that the 13th of April a

Re: [PHP] newbie needs help

2007-04-30 Thread Daniel Brown
Ben, make sure whatever method you use, you use the operator combinations >= and <= as Richard just showed you. I had forgotten to do that, which would mean (in my example) that the 13th of April and 13th of May of each year would not be counted, only 14 April through 12 May of any given year.

Re: [PHP] newbie needs help

2007-04-30 Thread Richard Davey
Ben Clapp wrote: I am new to PHP programming and need some help. I have an image that i have show up each May for the month with $mymonth = date("m", mktime()), but i want to set up a date range for it to show up. Ex. 4-13 to 5-13 each year. How can I do that? Any help would be great. There

Re: [PHP] newbie needs help

2007-04-30 Thread Daniel Brown
One way would be to do this: 413 && date("md") < 513) { // Display image } ?> On 4/30/07, Ben Clapp <[EMAIL PROTECTED]> wrote: I am new to PHP programming and need some help. I have an image that i have show up each May for the month with $mymonth = date("m", mktime()), but i want to

[PHP] newbie needs help

2007-04-30 Thread Ben Clapp
I am new to PHP programming and need some help. I have an image that i have show up each May for the month with $mymonth = date("m", mktime()), but i want to set up a date range for it to show up. Ex. 4-13 to 5-13 each year. How can I do that? Any help would be great. Thank you Ben -- PHP Gen

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Daniel Brown
No need to apologize at all, Micky! On 4/30/07, Micky Hulse <[EMAIL PROTECTED]> wrote: Daniel Brown wrote: >Actually, that should be directed at the OP who said that. I was able > to bring up the heredoc, too. ;-P Ooops! Sorry Daniel, I meant to reply to Nick... My mistake. :( -- Wi

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Micky Hulse
Daniel Brown wrote: Actually, that should be directed at the OP who said that. I was able to bring up the heredoc, too. ;-P Ooops! Sorry Daniel, I meant to reply to Nick... My mistake. :( -- Wishlists: Switch: BCC?:

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Daniel Brown
Actually, that should be directed at the OP who said that. I was able to bring up the heredoc, too. ;-P On 4/30/07, Micky Hulse <[EMAIL PROTECTED]> wrote: Hi Daniel, Daniel Brown wrote: >> BTW: >> PHP .net search breaks if you search for <<< Try this: www.php.net/<<< And then scroll

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Micky Hulse
Hi Daniel, Daniel Brown wrote: BTW: PHP .net search breaks if you search for <<< Try this: www.php.net/<<< And then scroll down to heredoc section. Heredoc comes in handy from time-to-time. Cheers, M -- Wishlists: Switch: BCC?:

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Daniel Brown
It means to read until it reaches the matching expression --- in this case, END. On 4/30/07, Nick Gorbikoff <[EMAIL PROTECTED]> wrote: Hello, folks. I rember I've since this somewhere in perl and it has somethign to do with blocks of code. I came across the same thing in some PHP code. <<<

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Greg Donald
On 4/30/07, Nick Gorbikoff <[EMAIL PROTECTED]> wrote: Hello, folks. I rember I've since this somewhere in perl and it has somethign to do with blocks of code. I came across the same thing in some PHP code. <<< END some code END What exactly does it mean. BTW: PHP .net search breaks if

[PHP] What does "<<<" mean?

2007-04-30 Thread Nick Gorbikoff
Hello, folks. I rember I've since this somewhere in perl and it has somethign to do with blocks of code. I came across the same thing in some PHP code. <<< END some code END What exactly does it mean. BTW: PHP .net search breaks if you search for <<< Regards, --

[PHP] PHP + COM (IE Button COM Server)

2007-04-30 Thread Iqbal Naved
Hi, Anybody has implemented a IE button COM server in PHP ? I have found a python implementation for this in pywin32 package. My objective is to add a button in ie which will on click save the url in the address bar. I am attatching the iebutton.py with this mail. Also, this is a link in msdn ins

RE: [PHP] small picture into thumbnail

2007-04-30 Thread Robert Cummings
On Mon, 2007-04-30 at 20:17 +0200, WeberSites LTD wrote: > http://www.php-code-search.com/ > > Type "thumb" without the " If you're going to advertise your site, at least post a URL with the search query embedded you insensitive clod! Cheers, Rob. -- .--

[PHP] postgreSQL and bytea / image

2007-04-30 Thread Alain Roger
Hi, In my PHP page i upload pictures into database. For that i wrote a simple function which control which user is logged and will upload his picture. here is the function : CREATE OR REPLACE FUNCTION sp_a_006("login" character varying, photo bytea) RETURNS boolean AS $BODY$ DECLARE my_

RE: [PHP] small picture into thumbnail

2007-04-30 Thread WeberSites LTD
http://www.php-code-search.com/ Type "thumb" without the " berber -Original Message- From: Alain Roger [mailto:[EMAIL PROTECTED] Sent: Sunday, April 29, 2007 6:16 PM To: PHP General List Subject: [PHP] small picture into thumbnail Hi, I would like to know how i can display small size

[PHP] About resource of popen

2007-04-30 Thread Fernando chucre
Hello all, I make a script for read and interprete the stdout of cmd `ip monitor`. And I use signal_handler, the script is like this: this script run in infine loop, or when to cmd 'ip monitor' exist. The script ever whait the next line of 'ip monitor', ever. Then when I send the signal SIGHUP

Re: [PHP] Run a script apart from request

2007-04-30 Thread Eric Butera
On 4/30/07, Brad Fuller <[EMAIL PROTECTED]> wrote: Hi all, I am developing a program that does some intensive data processing, and is triggered from a page hit and/or a SOAP request. The processing takes on average 30 seconds to 1 minute, which is OK for a web page (I can use set_time_limit(0)

[PHP] set_time_limit failing...

2007-04-30 Thread Ashley M. Kirchner
The manual says that set_time_limit has no effect when PHP is running in safe_mode. Then I have a problem. I have the global safe_mode turned ON, however I have 'php_admin_value safe_mode 0' set in a vhost's config. When I load up phpinfo(), it correctly tells me that the Master Value

RE: [PHP] Run a script apart from request

2007-04-30 Thread Buesching, Logan J
> -Original Message- > From: Brad Fuller [mailto:[EMAIL PROTECTED] > Sent: Monday, April 30, 2007 10:55 AM > To: php-general@lists.php.net > Subject: [PHP] Run a script apart from request > > Hi all, > > I am developing a program that does some intensive data processing, and is > trigger

Re: [PHP] Re: Object-oriented $_REQUEST?

2007-04-30 Thread Philip Thompson
On Apr 28, 2007, at 5:13 PM, Robert Cummings wrote: On Sat, 2007-04-28 at 23:41 +0200, keviN wrote: I'm sorry but your code indicates an extreme lack of experience using PHP in the real world. Your class should be named such that it will never collide with someone else's class name in the eve

Re: [PHP] phpbb / sessionid nightmare

2007-04-30 Thread Stut
Brad Sumrall wrote: Does anyone know what this _utma _utmb _utmc _utmz stuff is? Obviously it is not a php standard. Obviously it is what is actually controlling my sessions? These come from Google services (analytics, adsense, etc), they have nothing to do with your sessions. -Stut -- PHP

Re: [PHP] PHP & MySQL -> Field Title

2007-04-30 Thread Christian Haensel
Hi Oliver, below is what I used. ".$value.""; $titel = $fieldname; $insert_q .= ",'$value'"; } $insert_q = $insert_q.')'; $insert_q = eregi_replace("\(,","(", $insert_q); echo ""; echo $insert_q; mysql_query($insert_q) or die(mysql_error());

Re: [PHP] PHP & MySQL -> Field Title

2007-04-30 Thread Oliver Block
Am Montag, 30. April 2007 07:47 schrieb Christian Haensel: > but now I have the problem with the field names and all... can someone > point me into the right direction? php-db at lists.php.net If you need to use an assoc array, use the following SQL S

Re: [PHP] PHP & MySQL -> Field Title

2007-04-30 Thread Auto-Deppe, C. Haensel
nevermind, I made it :o) RTFM sometimes works even for me :O)) Have a great day :o) Chris - Original Message - From: "Christian Haensel" <[EMAIL PROTECTED]> To: Sent: Monday, April 30, 2007 7:47 AM Subject: [PHP] PHP & MySQL -> Field Title Good Morning guys and girls As I am rath