Re: [PHP] require_once and E_WARNING?

2006-07-05 Thread php
>> Code: >> function default_error_handler($code, $error, $file, $line) { >>switch ($code) { >>case E_ERROR: >> die ("Error: $error"); >>case E_WARNING: >> die("Warning: $error"); >>default: >> die("Something else entirely: $error"); >>} >> } >> set_error_handl

Re: [PHP] require_once and E_WARNING?

2006-07-05 Thread Chris
[EMAIL PROTECTED] wrote: Hello all, According to the PHP Manual, when require or require_once failes, an E_ERROR is triggered: "require() and include() are identical in every way except how they handle failure. include() produces a Warning while require() results in a Fatal Error." (With 'Fata

[PHP] require_once and E_WARNING?

2006-07-05 Thread php
Hello all, According to the PHP Manual, when require or require_once failes, an E_ERROR is triggered: "require() and include() are identical in every way except how they handle failure. include() produces a Warning while require() results in a Fatal Error." (With 'Fatal Error' being a link to E_

Re: [PHP] About GD Version 2 or above..

2006-07-05 Thread Chris
BBC wrote: Take out the ; in that line and re-start your computer and you should have GD installed, with any luck... Thank for your answer... I tried your suggestion to take out the ';'. Somehow the error still there but different out put. "GD version 2 or above is needed" or something. So I go

Re: [PHP] Printing in php

2006-07-05 Thread BBC
> weetat wrote: > > Hi all , > > > > I am using PHP 4.3.2 and MYSQL . > > > > I need to do printing function in php . > > Basically , in my client web page , it will display the list of items > > on the html page. And i have a print button , so that the user can print > > the html page to their

Re: [PHP] About GD Version 2 or above..

2006-07-05 Thread BBC
> Take out the ; in that line and re-start your computer and you should > have GD installed, with any luck... Thank for your answer... I tried your suggestion to take out the ';'. Somehow the error still there but different out put. "GD version 2 or above is needed" or something. So I got the conc

RE: [PHP] global class instance

2006-07-05 Thread KermodeBear
>> hi all, >> i wonder if there is a way of creating an instance of a class and >> reach it direcly from any scope in PHP4. basically what i want is: >> i don't want to: >>- declare global $foo, >>- use pre-defined $GLOBALS variable, >>- or use a::print >> >> thanks. > Static is your

Re: [PHP] global class instance

2006-07-05 Thread Eric Butera
On 7/1/06, sempsteen <[EMAIL PROTECTED]> wrote: hi all, i wonder if there is a way of creating an instance of a class and reach it direcly from any scope in PHP4. basically what i want is: class a { function print() { echo 'sth'; } } $a = new a(); and use this "a" instance from

Re: [PHP] What's the regex for this...?

2006-07-05 Thread Tom Chubb
Brian, I was trying to do this the other day using file_get_contents to load a page into a variable, but never quite got round to finishing it off. However, I recently received a very good Reg Exp tutorial which I hope is of use to you... *Basic Syntax of Regular Expressions (as from PHPBuilder.

Re: [PHP] Filter php page

2006-07-05 Thread Dave Goodchild
On 05/07/06, Jay Blanchard <[EMAIL PROTECTED]> wrote: [snip] can I create a script that will search a php page for iframes. And have it check the path of the iframe, If the iframe is listed as bad don't show. (list I make) Trying to do something with virus like through an iframe. I don't real

Re: [PHP] Chnage Management in PHP

2006-07-05 Thread John Nichel
Jay Blanchard wrote: [snip] Yeah, write your own you lazy sack. And get your finger out of your nose. [/snip] John obviously had a fine Fourth! LOL! Hey John, could you write it for me? It's a homework assignment. I had to stay home with the baby while my wife took the 6yo to see the firewo

RE: [PHP] Filter php page

2006-07-05 Thread Jay Blanchard
[snip] can I create a script that will search a php page for iframes. And have it check the path of the iframe, If the iframe is listed as bad don't show. (list I make) Trying to do something with virus like through an iframe. I don't really know where to start looking for help. [/snip] Vir

RE: [PHP] Chnage Management in PHP aka version control?

2006-07-05 Thread Paul Scott
On Wed, 2006-07-05 at 10:50 -0500, Jay Blanchard wrote: > For instance we have a server. That server requires that PHP be > recompiled with additional features. I would like to record the change, > and maybe even plan for the change. I would need a baseline for PHP and > then be able to setup mai

[PHP] Filter php page

2006-07-05 Thread Benjamin Adams
can I create a script that will search a php page for iframes. And have it check the path of the iframe, If the iframe is listed as bad don't show. (list I make) Trying to do something with virus like through an iframe. I don't really know where to start looking for help. --Ben -- PHP Gen

Re: [PHP] Chnage Management in PHP aka version control?

2006-07-05 Thread Adam Zey
[EMAIL PROTECTED] wrote: By 'change management' do you mean something like version control software? CVS, Subversion, etc? We use CVS at work and tried setting up Subversion at one point. I don't know, maybe we're all a bunch of retarded monkies here or maybe both systems are just overly c

RE: [PHP] Chnage Management in PHP aka version control?

2006-07-05 Thread Jay Blanchard
[snip] By 'change management' do you mean something like version control software? CVS, Subversion, etc? [/snip] Sort of, but broader. More like a log. Maybe I should build it myself. For instance we have a server. That server requires that PHP be recompiled with additional features. I would lik

Re: [PHP] Chnage Management in PHP aka version control?

2006-07-05 Thread tg-php
By 'change management' do you mean something like version control software? CVS, Subversion, etc? We use CVS at work and tried setting up Subversion at one point. I don't know, maybe we're all a bunch of retarded monkies here or maybe both systems are just overly complicated, but I don't lik

RE: [PHP] Chnage Management in PHP

2006-07-05 Thread Jay Blanchard
[snip] Yeah, write your own you lazy sack. And get your finger out of your nose. [/snip] John obviously had a fine Fourth! LOL! Hey John, could you write it for me? It's a homework assignment. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Chnage Management in PHP

2006-07-05 Thread John Nichel
Jay Blanchard wrote: I have been searching and digging for a PHP based change management application but have had little luck. Can anyone make a recommendation? Yeah, write your own you lazy sack. And get your finger out of your nose. -- John C. Nichel IV Programmer/System Admin (ÜberGeek) D

[PHP] Chnage Management in PHP

2006-07-05 Thread Jay Blanchard
I have been searching and digging for a PHP based change management application but have had little luck. Can anyone make a recommendation? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP 4.4.3RC2

2006-07-05 Thread Derick Rethans
Hello! I packed PHP 4.4.3RC2 today, which you can find here: http://downloads.php.net/derick/ Please test it carefully, and report any bugs in the bug system, but only if you have a short reproducable test case. If everything goes well, we can release it somewhere in the second half of this mo