php-general Digest 20 Aug 2007 14:02:01 -0000 Issue 4972

2007-08-20 Thread php-general-digest-help
php-general Digest 20 Aug 2007 14:02:01 - Issue 4972 Topics (messages 261029 through 261048): Re: Redirection with header (was Re: [PHP] Cookies and sent headers) 261029 by: tedd 261037 by: Wouter van Vliet / Interpotential 261039 by: tedd is this a bug?

Re: [PHP] is this a bug?

2007-08-20 Thread Tijnema
On 8/20/07, Augusto Morais [EMAIL PROTECTED] wrote: I dont know what is happening... Can somebody clarify the situation for me? here is the situation: i have 3 files: class.php foo.php bar.php // - class.php class globalactions { function include_file($module) {

Re: [PHP] is this a bug?

2007-08-20 Thread Tijnema
On 8/20/07, aflavio [EMAIL PROTECTED] wrote: Strange.. I'm return a include.. Not exactly... you're returning the return value of an include. Take this: var.php: ?php return bar; ? foo.php ?php function include_bar() { return include bar.php } echo include_bar(); // echoes bar the file

Re: [PHP] is this a bug?

2007-08-20 Thread Thijs Lensselink
On Mon, 20 Aug 2007 02:24:49 -0300, Augusto Morais [EMAIL PROTECTED] wrote: I dont know what is happening... Can somebody clarify the situation for me? here is the situation: i have 3 files: class.php foo.php bar.php // - class.php class globalactions { function

Re: [PHP] Redirection with header (was Re: [PHP] Cookies and sent headers)

2007-08-20 Thread Wouter van Vliet / Interpotential
On 20/08/07, tedd [EMAIL PROTECTED] wrote: At 10:40 PM +0200 8/19/07, Wouter van Vliet / Interpotential wrote: What you're proposing, is to actually display some content on another page then were the content is originally intended? I'm sorry, but I would consider that 'bad practice'. To me,

RE: [PHP] getting from one table listing from another

2007-08-20 Thread tedd
[snip] However, the LEFT and RIGHT will take me a while to figure out. [/snip] FROM table a LEFT OUTER JOIN table b ON(a.column = b.column) Just follow the order tedd, a is on the left and b is on the right LEFT OUTER - a - b (what may be in a might not be in b) a - b - RIGHT OUTER (what may

Re: [PHP] Redirection with header (was Re: [PHP] Cookies and sent headers)

2007-08-20 Thread tedd
At 12:42 PM +0200 8/20/07, Wouter van Vliet / Interpotential wrote: Only thing I was trying to do was chip in my two cents. Again, I wasn't the one who originally asked the question and I certainly am not friggen clueless. Maybe not, but you made some pretty clueless remarks -- like if you

FW: [PHP] getting from one table listing from another

2007-08-20 Thread Jay Blanchard
[snip] Question -- is it redundant to say: FROM table a LEFT OUTER JOIN table b ON(a.column = b.column) when table a appears first? Wouldn't that be the same as: FROM table a OUTER JOIN table b ON(a.column = b.column) [/snip] An OUTER JOIN is essentially a FULL OUTER JOIN which will include

[PHP] Pass $_GET to php cli.

2007-08-20 Thread N0K
Hello. I trying something without results. I have a zend optimized php script. This script only request you a password, and then you go to admin page. If a do in a browser: http://www.example.com/administration.php Then i go to this web where the password is request. I put the password and

Re: [PHP] Pass $_GET to php cli.

2007-08-20 Thread Thijs Lensselink
On Mon, 20 Aug 2007 14:15:47 +0200, N0K [EMAIL PROTECTED] wrote: Hello. I trying something without results. I have a zend optimized php script. This script only request you a password, and then you go to admin page. If a do in a browser: http://www.example.com/administration.php Then

[PHP] Re: Pass $_GET to php cli.

2007-08-20 Thread Per Jessen
N0K wrote: So, im trying to the the same in php command line i have test with many things, but i dont know how to specify this variable to the php cli, some tested example: php administration.php --varpass=112233 --checkpass=Submit php administration.php --varpass=112233checkpass=Submit

[PHP] Pass $_GET to php cli.

2007-08-20 Thread N0K
Hello. I trying something without results. I have a zend optimized php script. This script only request you a password, and then you go to admin page. If a do in a browser: http://www.example.com/administration.php Then i go to this web where the password is request. I put the password and go

Re: [PHP] Re: Pass $_GET to php cli.

2007-08-20 Thread Thijs Lensselink
On Mon, 20 Aug 2007 14:41:03 +0200, Per Jessen [EMAIL PROTECTED] wrote: N0K wrote: So, im trying to the the same in php command line =20 i have test with many things, but i dont know how to specify this variable to the php cli, some tested example: =20 php administration.php

Re: [PHP] Re: Pass $_GET to php cli.

2007-08-20 Thread Per Jessen
Thijs Lensselink wrote: I don't see where N0K asks for mapping of $_GET to commandline parameters. He did't specifically ask, but his attempts seem to suggest that's what he was hoping for. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] getting from one table listing from another

2007-08-20 Thread Larry Garfield
On Monday 20 August 2007, tedd wrote: Question -- is it redundant to say: FROM table a LEFT OUTER JOIN table b ON(a.column = b.column) when table a appears first? Wouldn't that be the same as: FROM table a OUTER JOIN table b ON(a.column = b.column) ??? I'm trying to understand why

[PHP] PHP eval() fatal error

2007-08-20 Thread Maarten Balliauw
Here's the thing: I'm trying to do some dynamic code compilation within PHP using eval(). The code I'm trying to compile raises an E_ERROR (Fatal). Here's a simple example: ?php $code = ' $returnValue = 12*A+; '; // Clearly incorrect code :-) $returnValue = 0; eval($code); ? Now, I'd like

Re: [PHP] PHP eval() fatal error

2007-08-20 Thread Stut
Maarten Balliauw wrote: Here's the thing: I'm trying to do some dynamic code compilation within PHP using eval(). The code I'm trying to compile raises an E_ERROR (Fatal). Here's a simple example: ?php $code = ' $returnValue = 12*A+; '; // Clearly incorrect code :-) $returnValue = 0;

[PHP] Re: PHP eval() fatal error

2007-08-20 Thread M. Sokolewicz
Maarten Balliauw wrote: Here's the thing: I'm trying to do some dynamic code compilation within PHP using eval(). The code I'm trying to compile raises an E_ERROR (Fatal). Here's a simple example: ?php $code = ' $returnValue = 12*A+; '; // Clearly incorrect code :-) $returnValue = 0;

Re: [PHP] This is a bug?

2007-08-20 Thread Daniel Brown
On 8/20/07, Augusto Morais [EMAIL PROTECTED] wrote: [snip!] // - foo.php include lib/clients.class.php; $clients = new clients(); //instatiating the clients class [snip again!] var_dump($clients); //i dont get the object here. I got NULL!!! why?!?!!? problem: When the method(include_file)

Re: [PHP] Pass $_GET to php cli.

2007-08-20 Thread Daniel Brown
On 8/20/07, N0K [EMAIL PROTECTED] wrote: [snip!] But if i do in a browser: http://www.example.com/administration.php?varpass=112233checkpass=Submit Then i go directly to the administration web, without request pass. So, im trying to the the same in php command line [snippity-snip!] One

[PHP] for/foreach speed

2007-08-20 Thread Sascha Braun, CEO @ fit-o-matic
Hi people, could somebody please explain me, what loop construct is faster? The for, while or foreach. I at the moment don't know if there are more. And thanks to the person who is missusing the list here for sending trojan horses everywhere. Since I write to the PHP General list I am

Re: [PHP] Pass $_GET to php cli.

2007-08-20 Thread N0K
On 8/20/07, N0K [EMAIL PROTECTED] wrote: [snip!] But if i do in a browser: http://www.example.com/administration.php?varpass=112233checkpass=Submit Then i go directly to the administration web, without request pass. So, im trying to the the same in php command line [snippity-snip!]

Re: [PHP] for/foreach speed

2007-08-20 Thread Robert Cummings
On Mon, 2007-08-20 at 18:50 +0200, Sascha Braun, CEO @ fit-o-matic wrote: Hi people, could somebody please explain me, what loop construct is faster? The for, while or foreach. I haven't bothered testing but I'd wager $5 that the following is the fastest loop: ?php while( 1 ) { } ?

Re: [PHP] for/foreach speed

2007-08-20 Thread Sascha Braun, CEO @ fit-o-matic
Thank you very much. When we might have time for testing we can wager :)) Am Montag, den 20.08.2007, 13:21 -0400 schrieb Robert Cummings: On Mon, 2007-08-20 at 18:50 +0200, Sascha Braun, CEO @ fit-o-matic wrote: Hi people, could somebody please explain me, what loop construct is

[PHP] php 4.4.7 make install with pear causes zend freeing errors

2007-08-20 Thread John Mendenhall
Is the only valid response to problems with php4 to upgrade to php5? Or, are there still some people out there still using php4 and possibly have had problems with install such as the following? If php5 is the only answer, I guess we'll just have to go with what we have and limp along until we

Re: [PHP] php 5 and ms sql server express won't play nice !

2007-08-20 Thread Andrew Ballard
... but the second comment seems helpful. [1] http://www.php.net/manual/en/function.mssql-connect.php For SQL Server 2005, getting the right version of that ntwdblib.dll is crucial. However, Microsoft has apparently abandoned the NTWDBLIB library, so I have begun working with PDO ODBC

[PHP] Monitoring system resources used by PHP

2007-08-20 Thread Evan Kaufman
I'm looking for a way to monitor the system resources (CPU, memory, Disk I/O, etc) used by the PHP engine on a linux machine. I can't monitor it by the usual means (top, etc), since it runs as part of the apache process(es). Does anyone know if a tool exists from Zend, or a module for Apache, to

[PHP] Best Practices for calling 'setup' classes that extend 'parent' classes?

2007-08-20 Thread Graham Anderson
What is the best practice for correctly targeting 'include' paths when using Initialization/Setup classes that extend Parent classes? In my extend_parent_class.php file, I have to provide an incorrect relative path. Apparently, the path (that does work) is relative to php file that calls

RE: [PHP] Best Practices for calling 'setup' classes that extend 'parent' classes?

2007-08-20 Thread Jay Blanchard
[snip] What is the best practice for correctly targeting 'include' paths when using Initialization/Setup classes that extend Parent classes? In my extend_parent_class.php file, I have to provide an incorrect relative path. Apparently, the path (that does work) is relative to php file that

[PHP] good os, php drive classifieds package?

2007-08-20 Thread blackwater dev
I need to put together a car classifieds site and before I re-invent the wheel was curious if anyone new of any good php driven OS packages available. Does anyone have any recommendations? Thanks!

Re: [PHP] php 4.4.7 make install with pear causes zend freeing errors

2007-08-20 Thread Chris
John Mendenhall wrote: Is the only valid response to problems with php4 to upgrade to php5? Or, are there still some people out there still using php4 and possibly have had problems with install such as the following? If php5 is the only answer, I guess we'll just have to go with what we have

Re: [PHP] php 4.4.7 make install with pear causes zend freeing errors

2007-08-20 Thread John Mendenhall
Chris, I sent this to the php-install list. Try the -internals list. Thanks! JohnM -- john mendenhall [EMAIL PROTECTED] surf utopia internet services -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php 4.4.7 make install with pear causes zend freeing errors

2007-08-20 Thread M. Sokolewicz
Chris wrote: John Mendenhall wrote: Is the only valid response to problems with php4 to upgrade to php5? Or, are there still some people out there still using php4 and possibly have had problems with install such as the following? If php5 is the only answer, I guess we'll just have to go with

Re: [PHP] php 4.4.7 make install with pear causes zend freeing errors

2007-08-20 Thread Chris
M. Sokolewicz wrote: Chris wrote: John Mendenhall wrote: Is the only valid response to problems with php4 to upgrade to php5? Or, are there still some people out there still using php4 and possibly have had problems with install such as the following? If php5 is the only answer, I guess

[PHP] Declare variables in advance question

2007-08-20 Thread nitrox .
I want to declare these variables Game_id and Member_id in advance. Following the suggestionfrom one of my books can I do something like this: $expected = array('Game_id', 'Member_id');foreach($expected AS $key) {if ( !empty($_POST[$key])) { ${$key} = $_POST[$key];}else {