Re: [PHP] Sessions - Ini settings and timeout

2007-10-18 Thread Zoltán Németh
2007. 10. 17, szerda keltezéssel 15.10-kor Holografix ezt írta: Many thanks Zoltn. It's clear now One more thing: session.cookie_lifetime defaults to 0 (until browser is closed). if setting session.cookie_lifetime to 60 can I look for $_SESSION[session_name()] in every request ? why

Re: [PHP] Which PHP-Editor to use?

2007-10-18 Thread Zoltán Németh
2007. 10. 18, csütörtök keltezéssel 12.56-kor Matt Arnilo S. Baluyos (Mailing Lists) ezt írta: Does Eclipse already have word-wrap? To my disappointment, it was still lacking that basic functionality the last time I tried it. I use easyeclipse for php, and I think I've seen some option

Re: [PHP] Which PHP-Editor to use?

2007-10-18 Thread Chen Lei
Matt Arnilo S. Baluyos (Mailing Lists) 写道: On 10/18/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 2007/10/18, Matt Arnilo S. Baluyos (Mailing Lists) [EMAIL PROTECTED]: Does Eclipse already have word-wrap? To my disappointment, it was still lacking that basic functionality the last

Re: [PHP] Which PHP-Editor to use?

2007-10-18 Thread Nathan Nobbe
On 10/18/07, Zoltán Németh [EMAIL PROTECTED] wrote: 2007. 10. 18, csütörtök keltezéssel 12.56-kor Matt Arnilo S. Baluyos (Mailing Lists) ezt írta: Does Eclipse already have word-wrap? To my disappointment, it was still lacking that basic functionality the last time I tried it. a quick

[PHP] HELP!! how can arithmetic variables(string) ??

2007-10-18 Thread LKSunny
? $a=1+1; //variables(string) //how can arithmetic variables(string) ?? //N ROW //output echo $a //i need output 2 not 1+1 //Please Help, Thank You Very Much !! ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to display ALL session variables?

2007-10-18 Thread Ronald Wiplinger
Is there a simple way to display all session variables? Like the code below I use in debug for all posted variables: echo h3posted variables/h3; while (list($name, $value) = each($HTTP_POST_VARS)) { echo $name = $valuebr\n; } bye Ronald -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] HELP!! how can arithmetic variables(string) ??

2007-10-18 Thread Nathan Nobbe
On 10/18/07, LKSunny [EMAIL PROTECTED] wrote: ? $a=1+1; //variables(string) //how can arithmetic variables(string) ?? //N ROW //output echo $a //i need output 2 not 1+1 //Please Help, Thank You Very Much !! ? $a = 1+1; echo $a; -nathan

Re: [PHP] How to display ALL session variables?

2007-10-18 Thread Nathan Nobbe
On 10/18/07, Ronald Wiplinger [EMAIL PROTECTED] wrote: Is there a simple way to display all session variables? Like the code below I use in debug for all posted variables: echo h3posted variables/h3; while (list($name, $value) = each($HTTP_POST_VARS)) { echo $name = $valuebr\n; }

[PHP] Re: HELP!! how can arithmetic variables(string) ??

2007-10-18 Thread Colin Guthrie
LKSunny wrote: ? $a=1+1; //variables(string) //how can arithmetic variables(string) ?? //N ROW //output echo $a //i need output 2 not 1+1 //Please Help, Thank You Very Much !! ? You can do: eval(echo $a;); But be warned, this has Injection Attack written all over

Re: [PHP] How to display ALL session variables?

2007-10-18 Thread truncatei
2007/10/18, Nathan Nobbe [EMAIL PROTECTED]: On 10/18/07, Ronald Wiplinger [EMAIL PROTECTED] wrote: Is there a simple way to display all session variables? Like the code below I use in debug for all posted variables: echo h3posted variables/h3; while (list($name, $value) =

Re: [PHP] How to display ALL session variables?

2007-10-18 Thread Nathan Nobbe
this is a nice little tool as well; it would be pretty decent for spitting out the session; http://dbug.ospinto.com/ new dBug($_SESSION); -nathan

Re: [PHP] How to display ALL session variables?

2007-10-18 Thread Ronald Wiplinger
[EMAIL PROTECTED] wrote: 2007/10/18, Nathan Nobbe [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: On 10/18/07, Ronald Wiplinger [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Is there a simple way to display all session variables? Like the code below I use in debug

Re: [PHP] How to display ALL session variables? - solved

2007-10-18 Thread Ronald Wiplinger
Ronald Wiplinger wrote: [EMAIL PROTECTED] wrote: 2007/10/18, Nathan Nobbe [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: On 10/18/07, Ronald Wiplinger [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Is there a simple way to display all session variables? Like the code

Re: [PHP] How to display ALL session variables?

2007-10-18 Thread Nathan Nobbe
On 10/18/07, Ronald Wiplinger [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: 2007/10/18, Nathan Nobbe [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: On 10/18/07, Ronald Wiplinger [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Is there a simple way to

[PHP] Strange behaviour of static declared content.

2007-10-18 Thread Joshua Bacher
Hi all, i faced the following problem. i am using a API. This API has a class that looks like following: snip class foo{ public function bar(){ static $foobar=false; if ($foobar === False){ $foobar='FUBeyondAllR';

Re: [PHP] Strange behaviour of static declared content.

2007-10-18 Thread Nathan Nobbe
On 10/18/07, Joshua Bacher [EMAIL PROTECTED] wrote: Hi all, i faced the following problem. i am using a API. This API has a class that looks like following: snip class foo{ public function bar(){ static $foobar=false; if ($foobar === False){

Re: [PHP] Strange behaviour of static declared content.

2007-10-18 Thread Joshua Bacher
I can't touch the API. i have never use static variables inside of functions and likely never will. go for static class variables instead :) ?php class foo{ public static $foobar = false; public function bar(){ static $foobar=false;

Re: [PHP] Sessions - Ini settings and timeout

2007-10-18 Thread Holografix
Many thanks again Zoltán. It's working nice now. Best regards holo Zoltán Németh [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 2007. 10. 17, szerda keltezéssel 15.10-kor Holografix ezt írta: Many thanks Zoltn. It's clear now One more thing: session.cookie_lifetime defaults to

Re: [PHP] Sessions - Ini settings and timeout

2007-10-18 Thread Holografix
Hi. Thank you very much Casey. I followed this suggestion as Zoltán also suggested and it's working nice. Best regards, holo Casey [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You could set $_SESSION['lasttime'] to time() and check it on every page. On Oct 17, 2007, at 3:58

[PHP] Re: Strange behaviour of static declared content.

2007-10-18 Thread Colin Guthrie
Joshua Bacher wrote: [EMAIL PROTECTED] ~/working/www/siuConference $ php testScript.php FUBeyondAllR already defined FUBeyondAllR -nathan thats the solution for the wrong problem. it's not up to me to change the API. the API is designed like i noted and i need a way to get around this

Re: [PHP] Strange behaviour of static declared content.

2007-10-18 Thread Stut
Joshua Bacher wrote: I can't touch the API. i have never use static variables inside of functions and likely never will. go for static class variables instead :) ?php class foo{ public static $foobar = false; public function bar(){ static $foobar=false;

Re: [PHP] Strange behaviour of static declared content.

2007-10-18 Thread Nathan Nobbe
On 10/18/07, Joshua Bacher [EMAIL PROTECTED] wrote: thats the solution for the wrong problem. it's not up to me to change the API. the API is designed like i noted and i need a way to get around this behaviour. thanks for your idea any further suggestions? josh unfortunately i dont know

Re: [PHP] Strange behaviour of static declared content.

2007-10-18 Thread Nathan Nobbe
On 10/18/07, Stut [EMAIL PROTECTED] wrote: Joshua Bacher wrote: I can't touch the API. i have never use static variables inside of functions and likely never will. go for static class variables instead :) ?php class foo{ public static $foobar = false;

Re: [PHP] Strange behaviour of static declared content.

2007-10-18 Thread Nathan Nobbe
On 10/18/07, Nathan Nobbe [EMAIL PROTECTED] wrote: On 10/18/07, Joshua Bacher [EMAIL PROTECTED] wrote: thats the solution for the wrong problem. it's not up to me to change the API. the API is designed like i noted and i need a way to get around this behaviour. thanks for your idea

Re: [PHP] Strange behaviour of static declared content.

2007-10-18 Thread Stut
Stut wrote: Joshua Bacher wrote: I can't touch the API. i have never use static variables inside of functions and likely never will. go for static class variables instead :) ?php class foo{ public static $foobar = false; public function bar(){ static

Re: [PHP] Strange behaviour of static declared content.

2007-10-18 Thread Joshua Bacher
I can't touch the API. i have never use static variables inside of functions and likely never will. go for static class variables instead :) ?php class foo{ public static $foobar = false; public function bar(){ static $foobar=false;

[PHP] Re: HELP!! how can arithmetic variables(string) ??

2007-10-18 Thread LKSunny
Thank You ! Colin Guthrie [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó·s»D:[EMAIL PROTECTED] LKSunny wrote: ? $a=1+1; //variables(string) //how can arithmetic variables(string) ?? //N ROW //output echo $a //i need output 2 not 1+1 //Please Help, Thank You Very Much !! ? You can do:

RE: [PHP] Strange behaviour of static declared content.

2007-10-18 Thread Jay Blanchard
[snip] to be honest i meanwhile have a workaround. [/snip] How about extending the API class and putting the function within the extended class that you need? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to display ALL session variables?

2007-10-18 Thread Ronald Wiplinger
Nathan Nobbe wrote: this is a nice little tool as well; it would be pretty decent for spitting out the session; http://dbug.ospinto.com/ new dBug($_SESSION); -nathan That is really cool! I like that one! bye Ronald -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] How to display ALL session variables?

2007-10-18 Thread Nathan Nobbe
On 10/18/07, Ronald Wiplinger [EMAIL PROTECTED] wrote: Nathan Nobbe wrote: this is a nice little tool as well; it would be pretty decent for spitting out the session; http://dbug.ospinto.com/ new dBug($_SESSION); -nathan just watch out for resource types in php5; it still has

[PHP] I am looking for a color picker working also in Firefox

2007-10-18 Thread Ronald Wiplinger
I found many nice color picker (True color), which are working fine in IE, but I need one, which works also in Firefox. Can you give me a recommendation, please? bye Ronald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] I am looking for a color picker working also in Firefox

2007-10-18 Thread Jay Blanchard
[snip] I found many nice color picker (True color), which are working fine in IE, but I need one, which works also in Firefox. Can you give me a recommendation, please? [/snip] http://www.visibone.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: I am looking for a color picker working also in Firefox

2007-10-18 Thread Colin Guthrie
Ronald Wiplinger wrote: I found many nice color picker (True color), which are working fine in IE, but I need one, which works also in Firefox. Can you give me a recommendation, please? http://www.iosart.com/firefox/colorzilla/ I couldn't get it to work on my Linux FF tho', but I'm guessing

[PHP] Re: Strange behaviour of static declared content.

2007-10-18 Thread Colin Guthrie
Stut wrote: Stut wrote: In that case you need a new foo. That's the only way you're going to reset the internal static if the API doesn't give you a way to do it. $f=new foo(); $f-bar(); $f-bar(); $g=new foo(); $g-bar(); Actually, scratch that, won't work. Not even unsetting $f before

Re: [PHP] Re: I am looking for a color picker working also in Firefox

2007-10-18 Thread Daniel Brown
On 10/18/07, Colin Guthrie [EMAIL PROTECTED] wrote: Ronald Wiplinger wrote: I found many nice color picker (True color), which are working fine in IE, but I need one, which works also in Firefox. Can you give me a recommendation, please? http://www.iosart.com/firefox/colorzilla/ I

Re: [PHP] Re: Strange behaviour of static declared content.

2007-10-18 Thread Nathan Nobbe
On 10/18/07, Colin Guthrie [EMAIL PROTECTED] wrote: Stut wrote: Stut wrote: In that case you need a new foo. That's the only way you're going to reset the internal static if the API doesn't give you a way to do it. $f=new foo(); $f-bar(); $f-bar(); $g=new foo(); $g-bar();

[PHP] Re: I am looking for a color picker working also in Firefox

2007-10-18 Thread Colin Guthrie
Daniel Brown wrote: On 10/18/07, Colin Guthrie [EMAIL PROTECTED] wrote: Ronald Wiplinger wrote: I found many nice color picker (True color), which are working fine in IE, but I need one, which works also in Firefox. Can you give me a recommendation, please?

Re: [PHP] Re: I am looking for a color picker working also in Firefox

2007-10-18 Thread Ronald Wiplinger
Colin Guthrie wrote: Ronald Wiplinger wrote: I found many nice color picker (True color), which are working fine in IE, but I need one, which works also in Firefox. Can you give me a recommendation, please? http://www.iosart.com/firefox/colorzilla/ I couldn't get it to work on my

[PHP] Strange benchmark behavior

2007-10-18 Thread Larry Garfield
Hi folks.  I was hoping that someone here could help me understand a bit of weirdness I've come across.  I'm trying to run some micro-benchmarks on PHP 5's object handling.  My test code is as follows: ?php define('ITERATIONS', 100);

Re: [PHP] Strange benchmark behavior

2007-10-18 Thread Nathan Nobbe
Larry, i havent dug into the code or the post much cause im coding away today, but i did drop you test script on a box of mine and run it. for what its worth, heres the results: [EMAIL PROTECTED] ~/working/www $ php testBench.php Testing __call() Native Method: 8.62859416008 seconds Magic

Re: [PHP] Strange behaviour of static declared content.

2007-10-18 Thread Joshua Bacher
[snip] to be honest i meanwhile have a workaround. [/snip] How about extending the API class and putting the function within the extended class that you need? it's only partially a solution since the API will change. therefore the expressions in the if statement maybe will change. if i

[PHP] p-s-e-x-e-c

2007-10-18 Thread Philip Thompson
Hi. I'm wanting to run an executable that generates a text file, and I'm having some issues. When I run the command on the server itself, it works just fine. When I run the same command via a webpage, the text file does not generate. My first impression was that the permissions were wrong. So, I

Re: [PHP] Re: HELP!! how can arithmetic variables(string) ??

2007-10-18 Thread Jochem Maas
Colin Guthrie wrote: LKSunny wrote: ? $a=1+1; //variables(string) //how can arithmetic variables(string) ?? //N ROW //output echo $a //i need output 2 not 1+1 //Please Help, Thank You Very Much !! ? You can do: eval(echo $a;); you realise Sunny stopped reading

Re: [PHP] Re: HELP!! how can arithmetic variables(string) ??

2007-10-18 Thread Nathan Nobbe
On 10/18/07, Jochem Maas [EMAIL PROTECTED] wrote: Colin Guthrie wrote: LKSunny wrote: ? $a=1+1; //variables(string) //how can arithmetic variables(string) ?? //N ROW //output echo $a //i need output 2 not 1+1 //Please Help, Thank You Very Much !! ? You

[PHP] html tools for Web page

2007-10-18 Thread edwardspl
Dear All, Is there a tool better than fckeditor ( http://www.fckeditor.net ) ? Would you mind recommend ? Thanks ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] html tools for Web page

2007-10-18 Thread Łukasz Wojciechowski
On 10/18/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Dear All, Is there a tool better than fckeditor ( http://www.fckeditor.net ) ? Would you mind recommend ? You may check out http://tinymce.moxiecode.com/ -- Łukasz Wojciechowski

Re: [PHP] Screenshot from web page

2007-10-18 Thread Gevorg Harutyunyan
Thanks for response, Actually I understood that I was searching not real thing. I needed PHP code that will generate jpeg from HTML. I understood that this is not real. As an addition I would prefer to launch that code on remote server(linux) and not on my PC(linux too :P ). Thanks once more, Be

RE: [PHP] p-s-e-x-e-c

2007-10-18 Thread Instruct ICC
Hi. I'm wanting to run an executable that generates a text file, and I'm having some issues. When I run the command on the server itself, it works just fine. When I run the same command via a webpage, the text file does not generate. My first impression was that the permissions were wrong.

Re: [PHP] p-s-e-x-e-c

2007-10-18 Thread Philip Thompson
On 10/18/07, Instruct ICC [EMAIL PROTECTED] wrote: Hi. I'm wanting to run an executable that generates a text file, and I'm having some issues. When I run the command on the server itself, it works just fine. When I run the same command via a webpage, the text file does not generate.

Re: [PHP] p-s-e-x-e-c

2007-10-18 Thread David Giragosian
On 10/18/07, Philip Thompson [EMAIL PROTECTED] wrote: On 10/18/07, Instruct ICC [EMAIL PROTECTED] wrote: Hi. I'm wanting to run an executable that generates a text file, and I'm having some issues. When I run the command on the server itself, it works just fine. When I run the

[PHP] From TXT to a mySQL db

2007-10-18 Thread Marcelo Wolfgang
Hi all, I need some helps/tips to know if a transition from a txt file to a sql database is viable to do. I have a TXT file that has lots of records like this: 10^13150^COMERCIO DE CALCADOS DILEU LTDA^COMERCIO DE CALCADOS DILEU LTDA^RUA JOSE BONIFACIO, 329^CENTRO^IJUI^RS^9870^055

Re: [PHP] From TXT to a mySQL db

2007-10-18 Thread Jason Pruim
On Oct 18, 2007, at 2:29 PM, Marcelo Wolfgang wrote: Hi all, I need some helps/tips to know if a transition from a txt file to a sql database is viable to do. I have a TXT file that has lots of records like this: 10^13150^COMERCIO DE CALCADOS DILEU LTDA^COMERCIO DE CALCADOS DILEU

[PHP] This, then that.

2007-10-18 Thread tedd
Hi gang: I would like to run a php script that creates a web page and AFTER it is finished creating the page, then it runs another php script -- how you do that? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List

[PHP] redefine contante value

2007-10-18 Thread Martin Marques
I'm redefining constant values and get notices on my log files: [18-Oct-2007 16:01:37] PHP Notice: Constant FPDF_FONTPATH already defined in /usr/share/php/tcpdf/config/tcpdf_config.php on line 50 How can I re-define them without getting notice messages? -- 21:50:04 up 2 days, 9:07, 0

Re: [PHP] This, then that.

2007-10-18 Thread Martin Marques
tedd wrote: Hi gang: I would like to run a php script that creates a web page and AFTER it is finished creating the page, then it runs another php script -- how you do that? CLI or apache2 module? -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18

Re: [PHP] This, then that.

2007-10-18 Thread Robert Cummings
On Thu, 2007-10-18 at 15:04 -0400, tedd wrote: Hi gang: I would like to run a php script that creates a web page and AFTER it is finished creating the page, then it runs another php script -- how you do that? exec() Cheers, Rob. --

Re: [PHP] From TXT to a mySQL db

2007-10-18 Thread Marcelo Wolfgang
This looks good, but since the db server is in a hosting company it will be possible to read from a .txt ? also I have never seen the LOAD DATA command, so I'm testing here and having problems ... can anyone spot what's wrong on this query ? $SQL = LOAD DATA INFILE 'test.txt' INTO TABLE test

Re: [PHP] This, then that.

2007-10-18 Thread Daniel Brown
On 10/18/07, Robert Cummings [EMAIL PROTECTED] wrote: On Thu, 2007-10-18 at 15:04 -0400, tedd wrote: Hi gang: I would like to run a php script that creates a web page and AFTER it is finished creating the page, then it runs another php script -- how you do that? exec() Cheers, Rob.

Re: [PHP] p-s-e-x-e-c

2007-10-18 Thread mike
On 10/18/07, Instruct ICC [EMAIL PROTECTED] wrote: When I run the command on the server itself, it works just fine. When I run the same command via a webpage, the text file does not generate. I also have a similar problem but reversed. It works in a webpage but not on the command

RE: [PHP] p-s-e-x-e-c

2007-10-18 Thread Instruct ICC
When I run the command on the server itself, it works just fine. When I run the same command via a webpage, the text file does not generate. I also have a similar problem but reversed. It works in a webpage but not on the command line. mysql_connect, mssql_connect, and a non-db function. A

[PHP] Reference return buggy notice?

2007-10-18 Thread Ondra Zizka
Hello, please look at the code bellow and tell if it does not conform to rules of returning a reference from a function. In the first method, I return reference to $sRet variable, and PHP is quiet. But in the second, PHP says: Notice: Only variable references should be returned by reference in

RE: [PHP] IF command

2007-10-18 Thread Bastien Koert
Are you sure that the value is a string? If its numeric, then try the check without the quotes around the value bastien From: [EMAIL PROTECTED] To: php-general@lists.php.net Date: Thu, 18 Oct 2007 19:49:55 -0500 Subject: [PHP] IF command When $component_reference is 5 or 19 I don't want

Re: [PHP] IF statement

2007-10-18 Thread Robert Cummings
On Thu, 2007-10-18 at 19:57 -0500, ron.php wrote: I just tried to send this to the list. I am not trying make it post again, I don't think I had the e-mail address correct the first time. I am trying to stop $component_reference from doing the echo below when the value is 5 or 19. I

[PHP] IF statement

2007-10-18 Thread ron.php
I just tried to send this to the list. I am not trying make it post again, I don't think I had the e-mail address correct the first time. I am trying to stop $component_reference from doing the echo below when the value is 5 or 19. I don't have the syntax right though. What did I miss? Ron

Re: [PHP] Strange benchmark behavior

2007-10-18 Thread Larry Garfield
Yeah, it does that sometimes. But over 1 million iterations a 0.2 second difference is negligible, and easily explained by random events in the environment (other processes on the box, etc.) It's the 25% difference I'm getting on just one box that is confusing the hell of of me. :-) On

Re: [PHP] redefine contante value

2007-10-18 Thread Larry Garfield
On Thursday 18 October 2007, Martin Marques wrote: I'm redefining constant values and get notices on my log files: [18-Oct-2007 16:01:37] PHP Notice: Constant FPDF_FONTPATH already defined in /usr/share/php/tcpdf/config/tcpdf_config.php on line 50 How can I re-define them without getting

Re: [PHP] re[PHP] commend PHP5 ebook mainly focused on it's OOP

2007-10-18 Thread Nathan Nobbe
On 10/19/07, cuongvt [EMAIL PROTECTED] wrote: In order to learning cakePHP or any other PHP framework, beside, PHP5 knowledge, I must understand atleast the basic of OOP also, right? I searched in somewhere but still found no ebook to buy mainly focused on OOP of PHP5. Could you guys

[PHP] re[PHP] commend PHP5 ebook mainly focused on it's OOP

2007-10-18 Thread cuongvt
In order to learning cakePHP or any other PHP framework, beside, PHP5 knowledge, I must understand atleast the basic of OOP also, right? I searched in somewhere but still found no ebook to buy mainly focused on OOP of PHP5. Could you guys recommend those ones? Tnx in advanced. -- View this

[PHP] Need a hint how to use an anker on the next page

2007-10-18 Thread Ronald Wiplinger
I have a long page (form), where the user has to return to the place he left last time, or where in that page a question has not been answered. Example: Tell me the German word for: Your answer: 1. dogHund 2. cat

Re: [PHP] IF command

2007-10-18 Thread Carlos Martínez González
Hi, here is the code: if ( ($component_reference != 5) AND ($component_reference != 19) ) { echo lia href=\index.php?request= . $request . \ . $component_name . /a; } 2007/10/19, ron.php [EMAIL PROTECTED]: When $component_reference is 5 or 19 I don't want the echo statement to output

[PHP] IF command

2007-10-18 Thread ron.php
When $component_reference is 5 or 19 I don't want the echo statement to output to the screen. What is the correct syntax? What I have below isn't working. Thanks for your help. Ron if ( ($component_reference != 5) OR ($component_reference != 19) ) { echo lia href=\index.php?request= .

Re: [PHP] Strange benchmark behavior

2007-10-18 Thread Nathan Nobbe
On 10/18/07, Larry Garfield [EMAIL PROTECTED] wrote: Yeah, it does that sometimes. But over 1 million iterations a 0.2 second difference is negligible, and easily explained by random events in the environment (other processes on the box, etc.) It's the 25% difference I'm getting on just

Re: [PHP] Reference return buggy notice?

2007-10-18 Thread Jochem Maas
Ondra Zizka wrote: Hello, please look at the code bellow and tell if it does not conform to rules of returning a reference from a function. In the first method, I return reference to $sRet variable, and PHP is quiet. But in the second, PHP says: Notice: Only variable references should

Re: [PHP] From TXT to a mySQL db

2007-10-18 Thread Mark Kelly
Hi. On Thursday 18 October 2007 19:29, Marcelo Wolfgang wrote: Hi all, I need some helps/tips to know if a transition from a txt file to a sql database is viable to do. [snipped data and table descriptions] Is there a quick and simple way to convert the row string into a INSERT query ?

Re: [PHP] IF statement

2007-10-18 Thread Carlos Martínez González
just change OR by AND. 2007/10/19, ron.php [EMAIL PROTECTED]: I just tried to send this to the list. I am not trying make it post again, I don't think I had the e-mail address correct the first time. I am trying to stop $component_reference from doing the echo below when the value is 5 or

Re: [PHP] IF command

2007-10-18 Thread Casey
if (!in_array($component_reference, array(5,17))) // ... More compact. On Oct 18, 2007, at 5:49 PM, ron.php [EMAIL PROTECTED] wrote: When $component_reference is 5 or 19 I don't want the echo statement to output to the screen. What is the correct syntax? What I have below isn't

Re: [PHP] This, then that.

2007-10-18 Thread Nathan Hawks
If by creates a web page you just mean it echos output to the browser, and you want to do something else after that, then: After you have sent your /html and have no more output for the browser, just use the include() function to run your extra process. e.g /html ?php