Re: [PHP] Re: Conditional compilation

2008-08-20 Thread Micah Gersten
in production. Does somebody know if there is something like conditional compilation in PHP that I can use? Regards, Herman Gomez Madrid, Spain. Well PHP isn't compiled it's interpreted. Still I don't see much diff and no overhead between the following: #ifdef(debug

[PHP] Re: Conditional compilation

2008-08-15 Thread Shawn McKenzie
be any debugging in production. Does somebody know if there is something like conditional compilation in PHP that I can use? Regards, Herman Gomez Madrid, Spain. Well PHP isn't compiled it's interpreted. Still I don't see much diff and no overhead between the following: #ifdef(debug

Re: [PHP] Re: Conditional compilation

2008-08-15 Thread Robert Cummings
code is in the final compiled (interpreted) code, wasting cpu cycles even if there won't be any debugging in production. Does somebody know if there is something like conditional compilation in PHP that I can use? Regards, Herman Gomez Madrid, Spain. Well PHP isn't compiled

Re: [PHP] Re: Conditional compilation

2008-08-15 Thread Shawn McKenzie
is in the final compiled (interpreted) code, wasting cpu cycles even if there won't be any debugging in production. Does somebody know if there is something like conditional compilation in PHP that I can use? Regards, Herman Gomez Madrid, Spain. Well PHP isn't compiled it's interpreted. Still I

Re: [PHP] Re: Conditional compilation

2008-08-15 Thread Robert Cummings
: if ($debug) { //debugging code } But this means that the debugging code is in the final compiled (interpreted) code, wasting cpu cycles even if there won't be any debugging in production. Does somebody know if there is something like conditional compilation in PHP that I can

Re: [PHP] php conditional loop question

2003-08-14 Thread Randy L Johnson Jr
I am running php as a client and I have the script running 24/7 to download the data from the connection. Is there a function to see if the connection drops. ?? is there a way to keep restart the function in the script. perhaps use a while and exit the function with a number exit(3) and

Re: [PHP] php conditional loop question

2003-08-14 Thread Curt Zirzow
* Thus wrote Randy L Johnson Jr ([EMAIL PROTECTED]): I have done this but it does not seem to ever get to the end of file, I have it inserting the values into the database, it goes for awhile around 12 to 24 hours and then stops inserting the values into the database and I have to restart the

Re: [PHP] php conditional loop question

2003-08-14 Thread Curt Zirzow
* Thus wrote Randy L Johnson Jr ([EMAIL PROTECTED]): I have the program downloading the data and all that so I don't need help with that. I just want to be able to reun the function if the data stops or in more general a certain condition is met. I'm not entirely sure how you are reading

Re: [PHP] php conditional loop question

2003-08-14 Thread Marek Kilimajer
I think you need to set the connection to nonblocking mode. Use bool stream_set_blocking ( resource stream, int mode) Then if no data is available for a longer time (it's up to you), you can break out of the loop and do something else. Randy L Johnson Jr wrote: I am running php as a

Re: [PHP] php conditional loop question

2003-08-14 Thread Analysis Solutions
On Wed, Aug 13, 2003 at 09:51:39PM -0400, Randy L Johnson Jr wrote: I have a function that makes a connection to a live datafeed website and downloads data via a pfsockopen() statement. After awhile the data stops feeding but the connection stays open. when the data stops I want to exit

Re: [PHP] php conditional loop question

2003-08-14 Thread Randy L Johnson Jr
--- From: Analysis Solutions Date: Wednesday, August 13, 2003 10:02:15 PM To: PHP List Subject: Re: [PHP] php conditional loop question On Wed, Aug 13, 2003 at 09:51:39PM -0400, Randy L Johnson Jr wrote: I have a function that makes a connection to a live datafeed website and downloads data via

[PHP] php conditional loop question

2003-08-14 Thread Randy L Johnson Jr
ok. This is probably simple but I am not thinking straight. Here is what I want to do I have a function that makes a connection to a live datafeed website and downloads data via a pfsockopen() statement. After awhile the data stops feeding but the connection stays open. when the data

[PHP] php conditional formatting question

2003-01-28 Thread WMB
I know it's possible, but I just can't get it working. In an old file I have a straight php coding doc where it's used and am now trying to mimic the resulting output. I'm trying to get a result from a query in a specific color when it fits the bill ( if ($teamcaptain == $deelnemer) //if yes,

Re: [PHP] php conditional formatting question

2003-01-28 Thread Guru Geek
I'm new to PHP but I had a similar problem. I was comparing information in a flat text file with a variable in my php code. They never matched according to the php. I echo'd both values to the screen and they matched. So then I echo'd them to the screen with three 'a' in front and three 'a' in

[PHP] if conditional

2002-10-15 Thread Muhammad Khairuzzaman
Hello, I would like to how to know how to create an if conditional with only one condition. Can some one tell me the way to do this. This is my previos code : if (!name) { print Pplease enter your name.; } exit; if (!$email) { print PPlease enter you e-mail } exit; ? -- PHP General

Re: [PHP] if conditional

2002-10-15 Thread Maxim Maletsky
You confused us. Would you like to explain us exactly what you meant? Maybe with mentioning us your reasons/goals. -- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // where PHP Begins On Tue, 15 Oct 2002 15:31:14 +0800 Muhammad Khairuzzaman [EMAIL PROTECTED] wrote: Hello, I

Re: [PHP] if conditional

2002-10-15 Thread Bob Irwin
If the code isn't working, its because you weren't using a $name in the first if statement. Always the little things ! :) But this should work... if (!$name) { print Pplease enter your name.; } if (!$email) { print PPlease enter you e-mail; } Hello, I would like to how to know

Re: [PHP] Logic -- conditional statements

2002-06-04 Thread Analysis Solutions
On Tue, Jun 04, 2002 at 04:40:26AM +0400, Ricardo Fitzgerald wrote: I'm trying to echo a neat table I've GOT to bust your chops. That table and your code are anything BUT neat. For neat, you need to put /td tags to close each cell. Also nest your code properly... if ($value2 ==0) {

[PHP] Logic -- conditional statements

2002-06-04 Thread Ricardo Fitzgerald
Hi to all, I'm trying to echo a neat table with values from a form, depending on the values it echoes a table with one row with two or with three: Then I have conditional nested statements, to validate these variables and wrote the table with the proper values in each case, the problem is the

RE: [PHP] Logic -- conditional statements

2002-06-04 Thread Naintara Jain
Of Ricardo Fitzgerald Sent: Friday, July 10, 2893 3:44 PM To: [EMAIL PROTECTED] Subject: [PHP] Logic -- conditional statements Hi to all, I'm trying to echo a neat table with values from a form, depending on the values it echoes a table with one row with two or with three: Then I have conditional

FW: [PHP] Logic -- conditional statements

2002-06-04 Thread Naintara Jain
] t]On Behalf Of Naintara Jain Sent: Tuesday, June 04, 2002 2:37 PM To: Ricardo Fitzgerald; [EMAIL PROTECTED] Subject: RE: [PHP] Logic -- conditional statements The problem here is that you have defined three different variables $value1,$value2,$value3. Keep only one variable (say,$valueChk

RE: [PHP] Logic -- conditional statements

2002-06-04 Thread John Holmes
, but it's a better solution than all of the IFs that was just posted... ---John Holmes... -Original Message- From: Naintara Jain [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 5:47 PM To: Ricardo Fitzgerald Cc: Php-General@Lists. Php. Net Subject: FW: [PHP] Logic -- conditional

[PHP] Re: Conditional include based on virtual host ?

2001-01-27 Thread Alister
On Fri, 26 Jan 2001 14:52:28 +0100, you wrote: Hello, I have developed a large web application the contents of which (language and data) depends on the URL the site is accessed from, e.g. en.site.com would display the "english" site, and "fr.site.com" would display the french site It's a good