[PHP] How to look for unused methods/functions and variables/constants.

2007-12-12 Thread Mathijs van Veluw
Hello there, We have a large project with lots of classes. Now i am wondering if there is a way to let something check all those files and tell me which methods/functions variables/constants etc.. arn't used anymore. Or even which files arn't used anymore. Is there already something like

Re: [PHP] Problem with rawurlencode and euro sign.

2006-07-27 Thread Mathijs van Veluw
Thx for that website :). It helped. I Think the server i am sending to is on windows, and i changed the encoding to windows-1252 and that has it on %80. Going to contact the company to ask this :). Thx for the link. Jochem Maas wrote: likely to be something to do with the fact that the euro

[PHP] Is there a list of all Timezones as an array or someting?

2006-09-20 Thread Mathijs van Veluw
Hello there, I need to have a selectbox filled with the available timezones of PHP. We are using v5.1.x, and it supports the date_default_timezone_set() etc.. As value you can give a string to what timezone. I want all these strings within an array or something so i can create a selectbox so

Re: [PHP] Is there a list of all Timezones as an array or someting?

2006-09-21 Thread Mathijs van Veluw
Christopher Watson wrote: Might also want to have a look-see at the Date_TimeZone class of the PEAR::Date package. It seems pretty comprehensive with regard to time zone coverage. -Christopher Thx.. i take a look at that.. But we have a strict rule. No PHP4 only PHP5 OO. So that is not

[PHP] How do i extract a function call with arguments from a source file?

2006-10-18 Thread Mathijs van Veluw
Hello there, Is there a way to extract a function call with its arguments? Like i have something like this: =CODE== ?php //Some Comments print_r(ClassName::FunctionName('foo', 'bar', Array(), false)); $fooBar = ClassName::FunctionName('foo', 'bar'); ?

[PHP] How to prevent DomDocument from adding a !DOCTYPE.

2007-01-16 Thread Mathijs van Veluw
Hello there, Im using DomDocument currently and i realy want to prevent it from adding the !DOCTYPE and mabye even html and body etc.. Is this possible and how? Thx in advance. Mathijs. --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 000703-1, 01/15/2007 Tested on:

Re: [PHP] How to prevent DomDocument from adding a !DOCTYPE.

2007-01-16 Thread Mathijs van Veluw
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-16 15:37:09 +0100: Im using DomDocument currently and i realy want to prevent it from adding the !DOCTYPE and mabye even html and body etc.. Is this possible and how? Doesn't DOMDocument *require* DTD? I thought it's either that or a

[PHP] imap_open() error. (Can't open mailbox)

2008-06-09 Thread Mathijs van Veluw
Hello there, i use imap to read incoming mail from the the SMTP server. On the live server everythings works as it should. I can use imap_open('/path/to/file', '', ''), to read just one raw-mail. On my test env i can't get this to work. I get the error message: Can't open mailbox. While on the

Re: [PHP] imap_open() error. (Can't open mailbox)

2008-06-09 Thread Mathijs van Veluw
Thijs Lensselink wrote: Quoting Mathijs van Veluw [EMAIL PROTECTED]: Hello there, i use imap to read incoming mail from the the SMTP server. On the live server everythings works as it should. I can use imap_open('/path/to/file', '', ''), to read just one raw-mail. On my test env i can't get

Re: [PHP] imap_open() error. (Can't open mailbox)

2008-06-09 Thread Mathijs van Veluw
Thijs Lensselink wrote: Quoting Mathijs van Veluw [EMAIL PROTECTED]: Thijs Lensselink wrote: Quoting Mathijs van Veluw [EMAIL PROTECTED]: Hello there, i use imap to read incoming mail from the the SMTP server. On the live server everythings works as it should. I can use imap_open('/path

Re: [PHP] imap_open() error. (Can't open mailbox)

2008-06-09 Thread Mathijs van Veluw
Edward Kay wrote: -Original Message- From: Thijs Lensselink [mailto:[EMAIL PROTECTED] Sent: 09 June 2008 13:43 To: php-general@lists.php.net Subject: Re: [PHP] imap_open() error. (Can't open mailbox) Quoting Mathijs van Veluw [EMAIL PROTECTED]: Thijs Lensselink wrote: Quoting

[PHP] How can i get the location of an exit()/die() from within register_shutdown_function()?

2008-07-16 Thread Mathijs van Veluw
Hello there, I have an shutdown function to catch fatal-errors etc.. Now when there is an exit() somewhere i get an empty message from get_last_error(). I want to know the location of this exit() or die(). Is there a way to get the file and line-number from where the exit/die originated? Thx

Re: [PHP] How can i get the location of an exit()/die() from withinregister_shutdown_function()?

2008-07-16 Thread Mathijs van Veluw
Chris wrote: Mathijs van Veluw wrote: Hello there, I have an shutdown function to catch fatal-errors etc.. Now when there is an exit() somewhere i get an empty message from get_last_error(). I want to know the location of this exit() or die(). Is there a way to get the file and line-number

Re: [PHP] How can i get the location of an exit()/die() from within register_shutdown_function()?

2008-07-16 Thread Mathijs van Veluw
Eric Butera wrote: On Wed, Jul 16, 2008 at 3:23 AM, Mathijs van Veluw [EMAIL PROTECTED] wrote: Hello there, I have an shutdown function to catch fatal-errors etc.. Now when there is an exit() somewhere i get an empty message from get_last_error(). I want to know the location of this exit

Re: [PHP] How can i get the location of an exit()/die() from within register_shutdown_function()?

2008-07-16 Thread Mathijs van Veluw
Eric Butera wrote: On Wed, Jul 16, 2008 at 9:41 AM, Mathijs van Veluw [EMAIL PROTECTED] wrote: Well i don't use 'OR die()' stuff. But exceptions. For some reason from within the register_shutdown_function() function i get an empty error message. This only occurs, as far as i know, when