Re: [PHP] PHP5 TUTORIAL

2007-06-27 Thread Yashesh Bhatia
hello, other interesting articles to give a bird's eye view of new features for php5 http://www.onlamp.com/pub/a/php/2004/07/15/UpgradePHP5.html http://devzone.zend.com/node/view/id/1714 http://www.devshed.com/c/a/PHP/Whats-New-in-PHP-5/ hth. yashesh bhatia. On 6/26/07, Preethi [EMAIL

Re: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread clive
?php class money { LOL, a penny saved is a penny earned -- Regards, Clive. Real Time Travel Connections {No electrons were harmed in the creation, transmission or reading of this email. However, many were excited and some may well have enjoyed the experience.} -- PHP General

[PHP] Re: PHP Brain Teasers (SPOILER + new one)

2007-06-27 Thread Colin Guthrie
Robert Cummings wrote: On Tue, 2007-06-26 at 17:00 -0700, Eric Newberry wrote: I think I have to answer to this one: 'If at first you don't succeed try, try again'. Here's another one... ?php $x = rand( 1, 20 ); for( $i = 0; $i $x; $i++ ); while( --$i 0 ); ?

Re: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Stut
Colin Guthrie wrote: Daniel Brown wrote: What the hell? Why not start a thread that can be fun and challenging for all of us. It's something I haven't seen done Here's another quickie: Dead simple one! ?php function x($x) { switch ($x) { case 1: return 'bitten'; case 2:

[PHP] Re: PHP Brain Teasers

2007-06-27 Thread David Restall - System Administrator
Hi, Colin Guthrie wrote: Daniel Brown wrote: What the hell? Why not start a thread that can be fun and challenging for all of us. It's something I haven't seen done Here's another quickie: Dead simple one! ?php function x($x) { switch ($x) { case 1:

Re: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Stut
David Restall - System Administrator wrote: Hi, Colin Guthrie wrote: Daniel Brown wrote: What the hell? Why not start a thread that can be fun and challenging for all of us. It's something I haven't seen done Here's another quickie: Dead simple one! ?php function x($x) { switch

[PHP] Re: PHP Brain Teasers

2007-06-27 Thread Colin Guthrie
Stut wrote: Surely this should be... function x() { static $count = 0; $count++; switch ($count) { case 1: return 'bitten'; case 2: return 'shy'; } return ''; } :p -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP Brain Teasers

2007-06-27 Thread Jochem Maas
Daniel Brown wrote: What the hell? Why not start a thread that can be fun and ... here's a easy one: interface Currency {} interface Employee {} class Peanut implements Currency {} class Primate implements Employee {} abstract class HeadHunter { static function match(Currency $c) {

[PHP] PHP P O K E R...... and JAVA (convert)

2007-06-27 Thread Ryan A
Hey all! Was looking at trying some stuff with php and p oker (texas hold'em). After searching the net for some clues as to how i can do this, i came accross the class on the php classes site (but that codes to bruteforce-ish) so continued looking and came accross some valuable suggestions on

[PHP] Re: help curl followlocation

2007-06-27 Thread Gowranga
Hello, I have the following installed on a Redhat ES4 system: curl 7.12.1 (i686-redhat-linux-gnu) libcurl/7.12.1 OpenSSL/0.9.7a zlib/1.2.1.2 libidn/0.5.6 Protocols: ftp gopher telnet dict ldap http file https ftps Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz Server version:

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-27 Thread Andrei
So you expect PHP ppl to do your job and test a JAVA class to tell u if it's worth porting it to php? Nice thoughts... Andy Ryan A wrote: Hey all! Was looking at trying some stuff with php and p oker (texas hold'em). After searching the net for some clues as to how i can do

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-27 Thread Tijnema
On 6/27/07, Ryan A [EMAIL PROTECTED] wrote: Hey all! Was looking at trying some stuff with php and p oker (texas hold'em). After searching the net for some clues as to how i can do this, i came accross the class on the php classes site (but that codes to bruteforce-ish) so continued looking

[PHP] PHP Web Applications

2007-06-27 Thread Tijnema
Hello all! I was wondering if there is some kind of extension available that does the same as PHP-GTK, Winbinder, etc. but not for the CLI but for the web? Something that will look like EyeOS [1]. Tijnema [1] http://demo.eyeos.org/ -- Vote for PHP Color Coding in Gmail! -

Re: [PHP] PHP Web Applications

2007-06-27 Thread Jochem Maas
Tijnema wrote: Hello all! I was wondering if there is some kind of extension available that does the same as PHP-GTK, Winbinder, etc. but not for the CLI but for the web? Something that will look like EyeOS [1]. EyeOS is php. Tijnema [1] http://demo.eyeos.org/ -- PHP General

Re: [PHP] PHP Web Applications

2007-06-27 Thread Tijnema
On 6/27/07, Jochem Maas [EMAIL PROTECTED] wrote: Tijnema wrote: Hello all! I was wondering if there is some kind of extension available that does the same as PHP-GTK, Winbinder, etc. but not for the CLI but for the web? Something that will look like EyeOS [1]. Tijnema [1]

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-27 Thread Ryan A
Hey all! So you expect PHP ppl to do your job and test a JAVA class to tell u if it's worth porting it to php? Nice thoughts... Andy... why be a moron? I just wanted someone with java knowledge to have a look at the code and see if it ran properly.. something that should take an experienced

Re: [PHP] PHP Web Applications

2007-06-27 Thread Jochem Maas
Tijnema wrote: On 6/27/07, Jochem Maas [EMAIL PROTECTED] wrote: Tijnema wrote: Hello all! I was wondering if there is some kind of extension available that does the same as PHP-GTK, Winbinder, etc. but not for the CLI but for the web? Something that will look like EyeOS [1].

[PHP] leaving UA trace when getting XML from URI

2007-06-27 Thread [EMAIL PROTECTED]
hello, i wrote a small RSS reader using file_get_contents to get the XML from the URI - however i noticed that this does not leave trace (User Agent) in the remote server logs. is there a way in PHP to get XML from URI and leave UA trace in the remote server logs? thanks, iv -- PHP

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-27 Thread Tijnema
On 6/27/07, Ryan A [EMAIL PROTECTED] wrote: ... Tijnema, thanks for giving it a go... Sorry it didnt compile,with my limited (and old) rusty knowledge of java 1.1 i couldnt make out too much and i dont have any java server to run this on to check it. I pretty much left Java years back once i

Re: [PHP] PHP Web Applications

2007-06-27 Thread Tijnema
On 6/27/07, Jochem Maas [EMAIL PROTECTED] wrote: Tijnema wrote: On 6/27/07, Jochem Maas [EMAIL PROTECTED] wrote: Tijnema wrote: Hello all! I was wondering if there is some kind of extension available that does the same as PHP-GTK, Winbinder, etc. but not for the CLI but for the web?

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-27 Thread Paul Scott
On Wed, 2007-06-27 at 14:17 +0200, Tijnema wrote: Not too hard to program right? As long as you keep on assuming that you are playing with infinite decks of cards, and not marking cards as dealt as you deal. --Paul All Email originating from UWC is covered by disclaimer

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-27 Thread Tijnema
On 6/27/07, Paul Scott [EMAIL PROTECTED] wrote: On Wed, 2007-06-27 at 14:17 +0200, Tijnema wrote: Not too hard to program right? As long as you keep on assuming that you are playing with infinite decks of cards, and not marking cards as dealt as you deal. --Paul Hmm, good point I just

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-27 Thread Ryan A
Paul Scott [EMAIL PROTECTED] wrote: On Wed, 2007-06-27 at 14:17 +0200, Tijnema wrote: Not too hard to program right? As long as you keep on assuming that you are playing with infinite decks of cards, and not marking cards as dealt as you deal. --Paul Hey Paul, Actually, I have already

Re: [PHP] leaving UA trace when getting XML from URI

2007-06-27 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: hello, i wrote a small RSS reader using file_get_contents to get the XML from the URI - however i noticed that this does not leave trace (User Agent) in the remote server logs. is there a way in PHP to get XML from URI and leave UA trace in the remote server logs?

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-27 Thread Stephen
Tijnema [EMAIL PROTECTED] wrote: Well, I find this a very interesting thing ;) I have played quite a lot poker, and I still play it sometimes, and this doesn't seems too hard for me :) My approach would be this: 1) Deal cards, rand(1,13) for the numbers(1- Ace, 11-Jack, 12-Queen, 13-King), and

Re: [PHP] Re: PHP Brain Teasers (SPOILER + new one)

2007-06-27 Thread Robert Cummings
On Wed, 2007-06-27 at 09:26 +0100, Colin Guthrie wrote: Robert Cummings wrote: On Tue, 2007-06-26 at 17:00 -0700, Eric Newberry wrote: I think I have to answer to this one: 'If at first you don't succeed try, try again'. Here's another one... ?php $x = rand( 1,

Re: [PHP] Re: help curl followlocation

2007-06-27 Thread Robert Cummings
On Wed, 2007-06-27 at 16:33 +0530, Gowranga wrote: Hello, I have the following installed on a Redhat ES4 system: curl 7.12.1 (i686-redhat-linux-gnu) libcurl/7.12.1 OpenSSL/0.9.7a zlib/1.2.1.2 libidn/0.5.6 Protocols: ftp gopher telnet dict ldap http file https ftps Features: GSS-Negotiate

Re: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Robert Cummings
On Wed, 2007-06-27 at 10:10 +0100, David Restall - System Administrator wrote: Probably a more accurate solution would be :- function x() { static $count = 0; $count++; switch ($count % 3) { case 0: case 2: return 'shy'; case

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-27 Thread Tijnema
On 6/27/07, Stephen [EMAIL PROTECTED] wrote: Tijnema [EMAIL PROTECTED] wrote: Well, I find this a very interesting thing ;) I have played quite a lot poker, and I still play it sometimes, and this doesn't seems too hard for me :) My approach would be this: 1) Deal cards, rand(1,13) for the

[PHP] Re: PHP Brain Teasers

2007-06-27 Thread Colin Guthrie
Daniel Brown wrote: What the hell? Why not start a thread that can be fun and challenging for all of us. It's something I haven't seen done anywhere else yet, but I wouldn't be surprised if it has been. Let's put together some names, phrases, and other stuff expressed as PHP code and

Re: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Robert Cummings
On Wed, 2007-06-27 at 14:33 +0100, Colin Guthrie wrote: Daniel Brown wrote: What the hell? Why not start a thread that can be fun and challenging for all of us. It's something I haven't seen done anywhere else yet, but I wouldn't be surprised if it has been. Let's put together some

RE: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Jay Blanchard
[snip] I like this one: ?php for ($i = an; $i==an; ); ? [/snip] Wow, that is a stumper. Here is another, should be quite simple; ?php function think($i) { TRUE == $i ? 'self-aware' : 'cow'; $return($x); } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Create .php file with php [POC CODE INCLUDED]

2007-06-27 Thread Crayon Shin Chan
On Wednesday 27 June 2007 06:32, Edward Vermillion wrote: Most /tmp directories are world rwx. So anyone that can log into the server through a shell, or any account running on the server, has at least read access to anything in the /tmp directory. They wouldn't need to do it through a web

RE: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Jay Blanchard
[snip] ?php function think($i) { TRUE == $i ? 'self-aware' : 'cow'; $return($x); } ? [/snip] Ooops, typo; ?php function think($i) { TRUE == $i ? 'self-aware' : 'cow'; $return($i); } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Robert Cummings
On Wed, 2007-06-27 at 09:21 -0500, Jay Blanchard wrote: [snip] I like this one: ?php for ($i = an; $i==an; ); ? [/snip] Wow, that is a stumper. Here is another, should be quite simple; ?php function think($i) { TRUE == $i ? 'self-aware' : 'cow'; $return($x); }

RE: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Robert Cummings
On Wed, 2007-06-27 at 09:25 -0500, Jay Blanchard wrote: [snip] ?php function think($i) { TRUE == $i ? 'self-aware' : 'cow'; $return($x); } ? [/snip] Ooops, typo; ?php function think($i) { TRUE == $i ? 'self-aware' : 'cow'; $return($i); } ? Ahaha,

Re: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Stut
Jay Blanchard wrote: [snip] ?php function think($i) { TRUE == $i ? 'self-aware' : 'cow'; $return($x); } ? [/snip] Ooops, typo; ?php function think($i) { TRUE == $i ? 'self-aware' : 'cow'; $return($i); $return($i); ?? You sure about that one? -Stut --

RE: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Jay Blanchard
[snip] ?php function think($i) { TRUE == $i ? 'self-aware' : 'cow'; $return($x); } ? I'd hazard a guess at I think therefore I am, but looking at it it seems more like... If I think then I'm self-aware otherwise I'm a cow, but regardless of my thinking I'm nothing.

Re: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Stut
Jay Blanchard wrote: [snip] ?php function think($i) { TRUE == $i ? 'self-aware' : 'cow'; $return($i); $return($i); ?? You sure about that one? [/snip] *applause* We have a thinker here ladies and gentlemen! OK Stut, for the $10,000 bonuswhat should you return here and

RE: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Jay Blanchard
[snip] Well since you've asked... the braces are all wrong, they should be vertically aligned *ducks and flees* [/snip] They were when I sent it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Jay Blanchard
[snip] [snip] ?php function think($i) { TRUE == $i ? 'self-aware' : 'cow'; $return($i); $return($i); ?? You sure about that one? [/snip] *applause* We have a thinker here ladies and gentlemen! OK Stut, for the $10,000 bonuswhat should you return here and what is the

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-27 Thread Nathan Nobbe
Ryan, if you want to port the java code to php it wouldnt be very difficult since this code doesnt rely heavily on much besides core language constructs. really you could just save it as a php file and start making changes where needed; it wouldnt take too long to port. as for the compilation

Re: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Stut
Jay Blanchard wrote: [snip] [snip] ?php function think($i) { TRUE == $i ? 'self-aware' : 'cow'; $return($i); $return($i); ?? You sure about that one? [/snip] *applause* We have a thinker here ladies and gentlemen! OK Stut, for the $10,000 bonuswhat should you return

Re: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Stut
Jay Blanchard wrote: [snip] [snip] ?php function think($i) { TRUE == $i ? 'self-aware' : 'cow'; $return($i); $return($i); ?? You sure about that one? [/snip] *applause* We have a thinker here ladies and gentlemen! OK Stut, for the $10,000 bonuswhat should you return

RE: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Robert Cummings
On Wed, 2007-06-27 at 09:52 -0500, Jay Blanchard wrote: Ignoring the extra $ and moving on... I would code it like this... function think($i) { $i = 'am'; } If I call think, then I am thinking, therefore $i should become 'am'. If you return 'am' rather than changing $i IMHO

Re: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Stut
Robert Cummings wrote: On Wed, 2007-06-27 at 09:52 -0500, Jay Blanchard wrote: Ignoring the extra $ and moving on... I would code it like this... function think($i) { $i = 'am'; } If I call think, then I am thinking, therefore $i should become 'am'. If you return 'am' rather than

RE: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Robert Cummings
On Wed, 2007-06-27 at 10:28 -0400, Robert Cummings wrote: On Wed, 2007-06-27 at 09:25 -0500, Jay Blanchard wrote: [snip] ?php function think($i) { TRUE == $i ? 'self-aware' : 'cow'; $return($x); } ? [/snip] Ooops, typo; ?php function think($i) {

RE: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Jay Blanchard
[snip] ?php function think($i) { TRUE == $i ? 'self-aware' : 'cow'; $return($i); $return($i); ?? You sure about that one? [/snip] *applause* We have a thinker here ladies and gentlemen! OK Stut, for the $10,000 bonuswhat should you return here and what is the least amount

RE: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Jay Blanchard
[snip] Just noticed something else though... what function does $return contain? :) [/snip] A typo. What else did you notice? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Robert Cummings
On Wed, 2007-06-27 at 09:37 -0500, Jay Blanchard wrote: [snip] Just noticed something else though... what function does $return contain? :) [/snip] A typo. What else did you notice? Well since you've asked... the braces are all wrong, they should be vertically aligned *ducks and flees*

Re: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Robert Cummings
On Wed, 2007-06-27 at 16:01 +0100, Stut wrote: Robert Cummings wrote: On Wed, 2007-06-27 at 09:52 -0500, Jay Blanchard wrote: Ignoring the extra $ and moving on... I would code it like this... function think($i) { $i = 'am'; } If I call think, then I am thinking, therefore

Re: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Daniel Brown
Hooray! I started a thread that's been able to get beyond 40 posts, and it's not a flame war of wit or a CAPTCHA discussion. This may be a bit nested and obscure, but it's actually a quote we see on the list quite often and I get a kick out of it each time I see it. ? if(!$trust) {

Re: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Tijnema
On 6/27/07, Daniel Brown [EMAIL PROTECTED] wrote: Hooray! I started a thread that's been able to get beyond 40 posts, and it's not a flame war of wit or a CAPTCHA discussion. haha, the CAPTCHA discussions were nice :) This may be a bit nested and obscure, but it's actually a quote we

Re: [PHP] help curl followlocation

2007-06-27 Thread Gowranga
From the PHP docs: CURLOPT_FOLLOWLOCATION (integer) This constant is not available when opendbase_dir or safe_mode are enabled. Do you have openbase_dir or safe_mode on? Cheers, Rob. -- Thanks Robert, for your mail. Both these settings are Off in my php.ini file. Kindly let

[PHP] Bit-size of machine

2007-06-27 Thread Shekar Iyer
How can one find the bit-size of the system on which PHP is running. php_uname() does not return bit type Thanks Shekar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Bit-size of machine

2007-06-27 Thread Stut
Shekar Iyer wrote: How can one find the bit-size of the system on which PHP is running. php_uname() does not return bit type A bit is a bit is a bit. It's not a different size on different systems. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: Bit-size of machine

2007-06-27 Thread Shekar Iyer
In other words, How do I find if the system on which PHP is running is 32-bit or 64-bit programmatically? Shekar Iyer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] How can one find the bit-size of the system on which PHP is running. php_uname() does not return bit type Thanks

Re: [PHP] Bit-size of machine

2007-06-27 Thread Jochem Maas
Stut wrote: Shekar Iyer wrote: How can one find the bit-size of the system on which PHP is running. php_uname() does not return bit type A bit is a bit is a bit. It's not a different size on different systems. ho ho ho stut :-) I think he's looking for the 'word' size of the CPU (32 bit,

Re: [PHP] Bit-size of machine

2007-06-27 Thread Jochem Maas
Shekar Iyer wrote: How can one find the bit-size of the system on which PHP is running. php_uname() does not return bit type ...also this might be of help: getrandmax() Thanks Shekar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] help curl followlocation

2007-06-27 Thread Tijnema
On 6/27/07, Gowranga [EMAIL PROTECTED] wrote: From the PHP docs: CURLOPT_FOLLOWLOCATION (integer) This constant is not available when opendbase_dir or safe_mode are enabled. Do you have openbase_dir or safe_mode on? Cheers, Rob. -- Thanks Robert, for your mail. Both these

Re: [PHP] PHP Web Applications

2007-06-27 Thread Dan
Check out Delphi for PHP by Borland, this does pretty much what you're looking for. - Dan Tijnema [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 6/27/07, Jochem Maas [EMAIL PROTECTED] wrote: Tijnema wrote: On 6/27/07, Jochem Maas [EMAIL PROTECTED] wrote: Tijnema wrote:

Re: [PHP] Bit-size of machine

2007-06-27 Thread Stut
Jochem Maas wrote: Stut wrote: Shekar Iyer wrote: How can one find the bit-size of the system on which PHP is running. php_uname() does not return bit type A bit is a bit is a bit. It's not a different size on different systems. ho ho ho stut :-) I think he's looking for the 'word' size of

Re: [PHP] PHP Web Applications

2007-06-27 Thread Tijnema
On 6/27/07, Dan [EMAIL PROTECTED] wrote: Check out Delphi for PHP by Borland, this does pretty much what you're looking for. - Dan Uhm, Delphi for PHP costs €259,00, I was looking for something free ;) Tijnema Tijnema [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 6/27/07,

Re: [PHP] Bit-size of machine

2007-06-27 Thread Jürgen Wind
Shekar Iyer wrote: In other words, How do I find if the system on which PHP is running is 32-bit or 64-bit programmatically? echo 'This is a ', is_int(2147483647 + 1) ? 64 : 32 , ' bit box'; HTH -- View this message in context:

Re: [PHP] help curl followlocation

2007-06-27 Thread Gowranga
You can better check it through phpinfo(), because it might be changed through httpd.conf or maybe you're looking at the wrong php.ini... Just to be sure :) Tijnema -- safe_mode entry shows it is put Off and opendbase_dir shows no value in phpinfo(). Confirmed I have only one php.ini.

[PHP] FreeMovie API

2007-06-27 Thread David Giragosian
Anyone using or know the status of the FreeMovie PHP toolkit? Seems like development stopped in 2004... David

[PHP] Swear filter ideas

2007-06-27 Thread Richard Davey
Hi all, Just wanting to pick your collective brains on this one: How do you go about implementing a swear / bad-word filter in PHP? Reasons for needing one aside, I'm just wondering if you favour a regexp, a substr_count, or what? Do you like to *** out the bad words, or just error back to the

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-27 Thread Guillaume Theoret
This isn't exactly what was asked for but when I TA'd the principles of programming languages course, an assignment I gave was to write a simple poker game in Haskell. If anyone's interested here's the sample solution I gave: http://smokinn.tengun.net/comp348/poker.hs It's all console based of

[PHP] strange include path error

2007-06-27 Thread brian
PHP 5.1.4 on Fedora 2 I recieved a note from a client about a problem with their site today. Looking at the error log, i found that the DB connection script that's included into any other that needs it was throwing an error because MDB2.php couldn't be found: Failed opening required

Re: [PHP] Bit-size of machine

2007-06-27 Thread Chetanji
Shekar Iyer wrote: How can one find the bit-size of the system on which PHP is running. php_uname() does not return bit type Thanks Shekar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php For instance, say you have an AMD 64

[PHP] Re: strange include path error

2007-06-27 Thread Greg Beaver
brian wrote: PHP 5.1.4 on Fedora 2 I recieved a note from a client about a problem with their site today. Looking at the error log, i found that the DB connection script that's included into any other that needs it was throwing an error because MDB2.php couldn't be found: Failed opening

[PHP] Re: strange include path error

2007-06-27 Thread brian
Greg Beaver wrote: brian wrote: PHP 5.1.4 on Fedora 2 I recieved a note from a client about a problem with their site today. Looking at the error log, i found that the DB connection script that's included into any other that needs it was throwing an error because MDB2.php couldn't be found:

Re: [PHP] PHP Web Applications

2007-06-27 Thread Daniel
It does?! I got it for something around $100 if I remember right. I don't remember you specifying that it had to be free either. On Jun 27, 2007, at 11:10 AM, Tijnema wrote: On 6/27/07, Dan [EMAIL PROTECTED] wrote: Check out Delphi for PHP by Borland, this does pretty much what you're