php-general Digest 24 Feb 2010 16:14:58 -0000 Issue 6607

2010-02-24 Thread php-general-digest-help
php-general Digest 24 Feb 2010 16:14:58 - Issue 6607 Topics (messages 302330 through 302349): PHP or SQL to do this? 302330 by: Rob Gould 302332 by: Jim Lucas 302342 by: Ian Re: PHP / mySQL Project... Real men use 'cat' 302331 by: Jim Lucas 302336

Re: [PHP] $_POST vs $_REQUEST

2010-02-24 Thread Rene Veerman
sry i gotta disagree. a function that queries $_POST/$_GET first and then $_COOKIE seems much wiser to me. it consolidates all logic in the script, and making that logic obvious by syntax, rather than relying on functionality being determined by php.ini, which could well cause a new developer to

[PHP] obj in array?

2010-02-24 Thread Kim Madsen
Hi folks I'm hacking on a SOAP2 solution towards Magento and have retrieved the catalog in an array, but i'm having trouble accessing the values of the array cause there's an object in it. This is a var_dump of $my_array: array(14) { [0]= object(stdClass)#2 (2) { [set_id]=

Re: [PHP] obj in array?

2010-02-24 Thread Kim Madsen
Kim Madsen wrote on 24/02/2010 14:02: how do I access for instance set_id in $my_array[0]? I tried declaring an instance of $my_array[0] but that fails too: Fatal error: Cannot use object of type stdClass as array $my_array[0]-set_id; did the trick -- Kind regards Kim Emax -

Re: [PHP] PHP / mySQL Project... Real men use 'cat'

2010-02-24 Thread Andrew Ballard
On Wed, Feb 24, 2010 at 5:12 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Wed, 2010-02-24 at 09:18 +, Pete Ford wrote: sudo ln -s /bin/cat /bin/dog sudo ln -s /bin/cat /bin/rabbit sudo ln -s /bin/cat /bin/rat Sorted... But now they're in /bin, surely at some point you'll

Re: [PHP] PHP / mySQL Project... Real men use 'cat'

2010-02-24 Thread Ashley Sheridan
On Wed, 2010-02-24 at 09:22 -0500, Andrew Ballard wrote: On Wed, Feb 24, 2010 at 5:12 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Wed, 2010-02-24 at 09:18 +, Pete Ford wrote: sudo ln -s /bin/cat /bin/dog sudo ln -s /bin/cat /bin/rabbit sudo ln -s /bin/cat /bin/rat

Re: [PHP] PHP / mySQL Project... Real men use 'cat'

2010-02-24 Thread Ashley Sheridan
On Wed, 2010-02-24 at 14:24 +, Ashley Sheridan wrote: On Wed, 2010-02-24 at 09:22 -0500, Andrew Ballard wrote: On Wed, Feb 24, 2010 at 5:12 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Wed, 2010-02-24 at 09:18 +, Pete Ford wrote: sudo ln -s /bin/cat /bin/dog

Re: [PHP] Fun with Streams

2010-02-24 Thread Matt Neimeyer
Basically... I built the stream encapsulation to do two things for me: 1. Keep track of the row I was on. 2. Keep track of the columns by name. So if I wrote columns Foo, Bar, Baz one time and Foo, Baz the next it would automatically keep the Baz in column three the second time. In other words,

[PHP] HipHop and other PHP compiler performance evaluation

2010-02-24 Thread Manuel Lemos
FYI http://digg.com/programming/PHP_compiler_performance -- Regards, Manuel Lemos Find and post PHP jobs http://www.phpclasses.org/jobs/ PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] HipHop and other PHP compiler performance evaluation

2010-02-24 Thread Adam Richardson
Really nice article, Manuel. Thanks for writing and sharing the link. Adam On Wed, Feb 24, 2010 at 11:14 AM, Manuel Lemos mle...@acm.org wrote: FYI http://digg.com/programming/PHP_compiler_performance -- Regards, Manuel Lemos Find and post PHP jobs http://www.phpclasses.org/jobs/

Re: [PHP] HipHop and other PHP compiler performance evaluation

2010-02-24 Thread Manuel Lemos
Hello Adam, on 02/24/2010 01:37 PM Adam Richardson said the following: Really nice article, Manuel. Thanks for writing and sharing the link. You're welcome! ;-) Adam On Wed, Feb 24, 2010 at 11:14 AM, Manuel Lemos mle...@acm.org mailto:mle...@acm.org wrote: FYI

Re: [PHP] Linux ERD software

2010-02-24 Thread haliphax
Dia is also a superb diagramming software, though I don't think it generates any SQL for you when it's said and done. There are versions for several operating systems (including Linux AND Windows). // Todd

Re: [PHP] Linux ERD software

2010-02-24 Thread Ashley Sheridan
On Wed, 2010-02-24 at 11:28 -0600, haliphax wrote: Dia is also a superb diagramming software, though I don't think it generates any SQL for you when it's said and done. There are versions for several operating systems (including Linux AND Windows). // Todd Cool thanks all. I had a look

Re: [PHP] Linux ERD software

2010-02-24 Thread O. Lavell
haliphax wrote: Dia is also a superb diagramming software, though I don't think it generates any SQL for you when it's said and done. Dia can be scripted and there is some interesting looking stuff here: http://projects.gnome.org/dia/links.html (I never tried) -- PHP General Mailing List

Re: [PHP] Linux ERD software

2010-02-24 Thread Shawn McKenzie
Ashley Sheridan wrote: On Wed, 2010-02-24 at 11:28 -0600, haliphax wrote: Dia is also a superb diagramming software, though I don't think it generates any SQL for you when it's said and done. There are versions for several operating systems (including Linux AND Windows). // Todd Cool

[PHP] PHP Syntax Help - Check?

2010-02-24 Thread Rick Dwyer
Hello all. I'm trying to learn PHP on the fly and I have a line of code that contains syntax I can't find documented anywhere: php echo check('element8'); In the above line, can someone tell me what check means? Thank you. --Rick -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] PHP Syntax Help - Check?

2010-02-24 Thread Robert Cummings
Rick Dwyer wrote: Hello all. I'm trying to learn PHP on the fly and I have a line of code that contains syntax I can't find documented anywhere: php echo check('element8'); In the above line, can someone tell me what check means? In the above, check is a function. It is being called

Re: [PHP] PHP Syntax Help - Check?

2010-02-24 Thread Paul M Foster
On Thu, Feb 25, 2010 at 12:16:08AM -0500, Robert Cummings wrote: Rick Dwyer wrote: Hello all. I'm trying to learn PHP on the fly and I have a line of code that contains syntax I can't find documented anywhere: php echo check('element8'); In the above line, can someone tell me what check

[PHP] Database design

2010-02-24 Thread Angus Mann
Hi all. I know this is not strictly a PHP question but the code will be written in PHP, and I figure the folks here will be well versed in the questions I raise. Please feel free to contact me off the list if appropriate. I need some assistance with database design for a project I'm coding in

Re: [PHP] PHP Syntax Help - Check?

2010-02-24 Thread Rick Dwyer
OK... external function... that would explain why I could not locate it. Let me get right to the problem I am having with this code as someone may be able to help directly. I have a link on a page that opens a contact form. The link is mypage.php?my_id=5 So on mypage.php, I capture this

Re: [PHP] Database design

2010-02-24 Thread Paul M Foster
On Thu, Feb 25, 2010 at 03:37:38PM +1000, Angus Mann wrote: Hi all. I know this is not strictly a PHP question but the code will be written in PHP, and I figure the folks here will be well versed in the questions I raise. Please feel free to contact me off the list if appropriate. I need

Re: [PHP] PHP Syntax Help - Check?

2010-02-24 Thread viraj
if you do the redirection with header('Location: /mypage.php'), setting a variable on formcheck.php is not enough. if you modify the header('Location: /mypage.php') to.. header('Location: /mypage.php?my_id=5') it will take the variable to mypage.php as $_GET['my_id] you can not expect a

Re: [PHP] PHP Syntax Help - Check?

2010-02-24 Thread James McLean
On Thu, Feb 25, 2010 at 4:22 PM, Rick Dwyer rpdw...@earthlink.net wrote: OK... external function... that would explain why I could not locate it. Let me get right to the problem I am having with this code as someone may be able to help directly. I have a link on a page that opens a contact

Re: [PHP] PHP Syntax Help - Check?

2010-02-24 Thread Rick Dwyer
Hmm. OK with the help below, I am closer. The other fields on the page are getting passed via form fields that look like this: input type=text value=?php echo check('element9'); ? name=form[element9] size=40 maxlength=255 so I added: input type=text value=?php echo check('my_id'); ?

[PHP] Re: HipHop and other PHP compiler performance evaluation

2010-02-24 Thread Mark Cilissen
Manuel Lemos schreef: FYI http://digg.com/programming/PHP_compiler_performance A nice article, thank you for the information! -- Kind regards, Mark Cilissen / Pixlism -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php