[PHP] Re: Storing data structires in DB

2005-03-24 Thread Joshua Beall
"Joshua Beall" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > You should look into the WDDX functions - http://php.net/wddx/ - they give > you an XML document that you can edit by hand much more easily than the > bytestream you get from serialize. However it is not as compact as

Re: [PHP] OR statement

2005-03-24 Thread Tom Rogers
Hi, Friday, March 25, 2005, 11:27:30 AM, you wrote: MD> Hello, MD> I would like to first thank everyone for their help with the last few MD> questions I have had. I really appreciate it. MD> Here is my question: MD> if ($audio == "Cool"){ MD> Do this MD> }else{ MD> Do that MD> } MD> This

[PHP] Game development approach

2005-03-24 Thread Alexandre
Hi there, I'm developing an online game (using PHP+MySQL, and being totally interfaced via web) which needs to have a "game cycle" running. For example, the player is flying a plane, so he sets the plane speed to 10%, then the game cycle needs to keep "moving the plane" forward (i.e. updating po

Re: [PHP] Re: Getting the process ID

2005-03-24 Thread trlists
On 24 Mar 2005 Joshua Beall wrote: > I realized that this sort of problem would always exist unless I had some > sort of semaphore mechanism. Once a user has *started* a transaction, they > need to be prevented from initiating a second transaction until the first > transaction has been complet

Re: [PHP] OR statement

2005-03-24 Thread Josh Whiting
> This work fine, however, I would like to add to the criteria above. I would > like to say: > > if ($audio == "Cool" or "junk" or "funky"){ > > ... > if (in_array($audio,array("Cool","junk","funky"))) { ... } not the most elegant looking but it gets the job done. /josh w -- PHP General Ma

Re: [PHP] Re: Getting the process ID

2005-03-24 Thread Josh Whiting
> The problem I am having is that people are double-submitting certain > transactions. My first attempt to prevent this was to store a flag in the > session record indicating whether or not certain transactions had been > completed, but this turned out to be insufficient at times because users

[PHP] PHP4 and PHP5 in virtual Host

2005-03-24 Thread Juan Pablo Herrera
Hi! I have apache, php4 and php5 on my server. I use virtual host in this server. The virtual host have or not PHP4 using: php_admin_flag engine off/on in apache2.conf How can i use PHP5 or PHP4 or both? PHP4 is running as module and PHP5 is running as cgi. Regards, JP -- PHP General Mailing Lis

Re: [PHP] Game development approach

2005-03-24 Thread Robert Cummings
On Tue, 2005-03-22 at 21:13, Alexandre wrote: > Hi there, > > I'm developing an online game (using PHP+MySQL, and being totally interfaced > via > web) which needs to have a "game cycle" running. For example, the player is > flying a plane, so he sets the plane speed to 10%, then the game cycle

RES: [PHP] Game development approach

2005-03-24 Thread Robert Restad
I suggest you write a 'tick' engine, which i.e. games like Planetarion use. This should be written in C or C++, compiled... You can run this using PHP of course, and run it from command line/shell, but PHP isnt ideal for this. If you have a decent server and not too much players (i.e. more than a

Re: [PHP] OR statement

2005-03-24 Thread Philip Olson
> > This work fine, however, I would like to add to the criteria above. I would > > like to say: > > > > if ($audio == "Cool" or "junk" or "funky"){ > > > > ... > > > > if (in_array($audio,array("Cool","junk","funky"))) { > ... > } > Yes that's one way but to answer the question: if ($a ==

[PHP] rounding test fails when I try to "make test"

2005-03-24 Thread Larry
Hi, I am trying to build the latest stable release of php (4.3.10) I've successfully compiled but when I run "make test" the following are the two bugs that fail. FAILED TEST SUMMARY - Bug #24142 (round() problems) [ext

Re: [PHP] OR statement

2005-03-24 Thread Joe Wollard
This can also be done with double pipes, which is what is used in many other languages. - if($audio=="Cool" || $audio=="junk" || $audio=="Funky"){ Do this } else{ Do this } -- As far as I can tell there are no plans to remove or reaso

Re: [PHP] Re: Getting the process ID

2005-03-24 Thread Rasmus Lerdorf
Joshua Beall wrote: "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Joshua Beall wrote: I am doing some work where I want to do locking, and prevent scripts from running in parallel. I see that I could use the semaphore mechanism, but I'd like for my code to be por

<    1   2