[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

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="" name="form[element9]" size="40" maxlength="255" so I added: input type="text" value="" name="form[my_id]" size="40" maxlength="255"

Re: [PHP] PHP Syntax Help - Check?

2010-02-24 Thread James McLean
On Thu, Feb 25, 2010 at 4:22 PM, Rick Dwyer 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 form.  The link i

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 variabl

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 n

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

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

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 tel

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 wi

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

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). >> >> >> // T

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: (I never tried) -- PHP General Mailing Lis

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

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] 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 > wrote: > > FYI > > http://digg.com/p

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 wrote: > FYI > > http://digg.com/programming/PHP_compiler_performance > > -- > > Regards, > Manuel Lemos > > Find and post PHP jobs > http://www.phpclasses.org/jobs/ > > PH

[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 unsubscribe,

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

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 > > wrote: > > > On Wed, 2010-02-24 at 09:18 +, Pete Ford wrote: > > >> sudo ln -s /bin/cat /bin/dog > > >> sudo ln -s /

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

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 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 want to exe

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

[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"]=> int

[PHP] Re: PHP or SQL to do this?

2010-02-24 Thread Ian
On 24/02/2010 05:46, Rob Gould wrote: > I'm not sure if I need to write a PHP for-loop to do this, or if it can all > be done in one SQL statement? > > Basically, I want to copy all the barcodes from one table and put them into > another table, but only if the barcode in the first table > 0, and

Re: [PHP] $_POST vs $_REQUEST

2010-02-24 Thread Ashley Sheridan
On Wed, 2010-02-24 at 12:34 +0100, Rene Veerman wrote: > 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 bein

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 l

Re: [PHP] $_POST vs $_REQUEST

2010-02-24 Thread Ashley Sheridan
On Wed, 2010-02-24 at 07:55 +, Jochem Maas wrote: > Op 2/22/10 10:49 PM, John Black schreef: > > On 02/22/2010 11:42 PM, Michael Shadle wrote: > >> The difference here is you can at least have some control over the data > >> and expect it in a certain fashion. Also the behavior of cookies vs.

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

2010-02-24 Thread Ashley Sheridan
On Wed, 2010-02-24 at 09:18 +, Pete Ford wrote: > On 24/02/10 08:20, shiplu wrote: > > Lots of confusion! > > > > So I tried this, > > > > $ for x in cat dog rabbit rat; do echo -n "$x "; if whatis $x> > > /dev/null; then echo found; else echo not found; fi ; done; > > cat found > > dog not fo

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

2010-02-24 Thread Pete Ford
On 24/02/10 08:20, shiplu wrote: Lots of confusion! So I tried this, $ for x in cat dog rabbit rat; do echo -n "$x "; if whatis $x> /dev/null; then echo found; else echo not found; fi ; done; cat found dog not found rabbit not found rat not found That's easy to fix: sudo ln -s /bin/cat /b

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

2010-02-24 Thread shiplu
Lots of confusion! So I tried this, $ for x in cat dog rabbit rat; do echo -n "$x "; if whatis $x > /dev/null; then echo found; else echo not found; fi ; done; cat found dog not found rabbit not found rat not found -- Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.