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

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 thi

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

[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] 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 wrot

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 u

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

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

2008-06-09 Thread Mathijs van Veluw
age: "Can't open mailbox". While on the live server it works and i get the correct resource "resource(42) of type (imap)". I realy don't know what the problem is. Can someone help me with this? Thanks in advance. Mathijs. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2007-12-12 Thread Mathijs van Veluw
thing like this? Thx in advance. Mathijs -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to get the child name from within the parent?

2007-09-10 Thread Mathijs
[EMAIL PROTECTED] wrote: - Ursprüngliche Nachricht - Von: Mathijs <[EMAIL PROTECTED]> Datum: Montag, September 10, 2007 3:19 pm Betreff: [PHP] How to get the child name from within the parent? An: php-general@lists.php.net Hello there, Is there a way to get the child class nam

[PHP] How to get the child name from within the parent?

2007-09-10 Thread Mathijs
Hello there, Is there a way to get the child class name from within the parent method? If so, how? Thx in advance. Example: class MyParent { public static function start() { // Do something like this??? return get_child_name(); // returns 'MyChild' in this case } } class MyChild extend

[PHP] How can i convert one object to another. Convert Exception object to MyException Object.

2007-03-27 Thread Mathijs
Hello there, I am trying to convert one object to another, something like clone. For example. --- class MyException extends Exception { // My functions etc.. etc.. } function ExceptionHandler($exception) { // Convert an NoN MyException to an MyException } set_exception

[PHP] How to get class constants with there value?

2007-03-23 Thread Mathijs
Hello there, I use PHP5, and i wanted to know if there is an option to extract class constants with there name and value without using Refelection. Now i need to create a reflection of the class to get the info. Is there something like get_class_variables for constants?? Thx in advanced. --

Re: [PHP] Is there a open_basedir and curl followlocation bypass/fix?

2007-03-19 Thread Mathijs
Jochem Maas wrote: Mathijs wrote: Hello there, I Need a bypass to have followlocation working while open_basedir is in affect. I Don't see why we can't enable/disable this protection by our selfs when needed. we can't see past the choices we don't understand thoug

[PHP] Is there a open_basedir and curl followlocation bypass/fix?

2007-03-19 Thread Mathijs
Hello there, I Need a bypass to have followlocation working while open_basedir is in affect. I Don't see why we can't enable/disable this protection by our selfs when needed. Keep the protection enabled by default, and let the ppl disable it if they realy want to. Anyway, how can i bypas

Re: [PHP] Can i use DateTime Object with an timestamp as referenceinstead of an formated string.

2007-03-13 Thread Mathijs
n Wed, March 7, 2007 7:12 am, Mathijs wrote: Németh Zoltán wrote: 2007. 03. 7, szerda keltezéssel 12.58-kor Mathijs ezt írta: Hello there, I Use timestamps for logging etc.. But i need this timestamp to let is show the right time in different timezones. Now i wanted to use DateTime object, b

Re: [PHP] Can i use DateTime Object with an timestamp as referenceinstead of an formated string.

2007-03-07 Thread Mathijs
Jochem Maas wrote: Mathijs wrote: Hello there, I Use timestamps for logging etc.. so you do something like this no?: $stamp = mktime(); so if you want to use DateTime why not do this?: $stamp = new DateTime; alternatively if you are stuck with the original integer timestamp, then you can

Re: [PHP] Can i use DateTime Object with an timestamp as referenceinstead of an formated string.

2007-03-07 Thread Mathijs
Németh Zoltán wrote: 2007. 03. 7, szerda keltezéssel 12.58-kor Mathijs ezt írta: Hello there, I Use timestamps for logging etc.. But i need this timestamp to let is show the right time in different timezones. Now i wanted to use DateTime object, but it seems it needs a string as reference

[PHP] Can i use DateTime Object with an timestamp as reference instead of an formated string.

2007-03-07 Thread Mathijs
Hello there, I Use timestamps for logging etc.. But i need this timestamp to let is show the right time in different timezones. Now i wanted to use DateTime object, but it seems it needs a string as reference, so i can't use a timestamp to re-generate that time. How can i fix this? Thx in

[PHP] Detecting user_abort when using ob_start().

2007-02-16 Thread Mathijs
Hello there, I have a script which is called using ajax. This script can take a while executing. Now it sometimes happens that a user aborts a connection, like stop the ajax request. This won't stop the php script from executing. Now i need some way to detect if the user has stoped/aborted th

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

2007-01-18 Thread Mathijs
Rob Richards wrote: Mathijs wrote: I have some HTML content: Testing ØøÅå_^{}\[~]|[EMAIL PROTECTED]"#¤%&'()*+,ÖÑܧ¿äöñüà-./:;<=>?¡Ä Now i need to parse the HTML by getting all the class and id attributes and replace them with something else, a

[PHP] Is there a wordwrap for multibyte/unicode/utf8?

2007-01-18 Thread Mathijs
Hello there, I have a multibyte string which i need to wordwrap. Now wordwrap splits multibyte chars also. Is there a way to fix this?? Thx in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2007-01-17 Thread Mathijs
Miguel J. Jiménez wrote: El Wed, 17 Jan 2007 13:53:36 +0100 Mathijs <[EMAIL PROTECTED]> escribió: sByTagName() etc.. Is there mabye an other way to parse this HTML and replace/modify its atttributes? Thx in advanced. Have you try preg_replace? Tryed to, but it went to complex.

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

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

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 and etc.. Is this possible and how? Doesn't DOMDocument *require* DTD? I thought it's either that or a "document fra

[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 and 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: 1/16/2007 3:37

Re: [PHP] xml_parse() error with   and € etc.. How can ifix this?

2007-01-15 Thread Mathijs
Miguel J. Jiménez wrote: El Mon, 15 Jan 2007 12:42:58 +0100 Mathijs <[EMAIL PROTECTED]> escribió: Hello there, When i want use parse_xml() and i have entities like   in it, it gives me a entity error. This because the parser doesn't know the   entity. Now i saw on the bugs si

[PHP] xml_parse() error with   and € etc.. How can i fix this?

2007-01-15 Thread Mathijs
Hello there, When i want use parse_xml() and i have entities like   in it, it gives me a entity error. This because the parser doesn't know the   entity. Now i saw on the bugs site of php a way to solve this, by using xml_set_external_entity_ref_handler() with http://www.w3.org/TR/xhtml1/DT

[PHP] Re: How can i hightlight an stacktrace error/exception?

2007-01-04 Thread Mathijs
Thx both of you.. I already used set_error_handler(). I Now have it about the way i like it :). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How can i hightlight an stacktrace error/exception?

2007-01-03 Thread Mathijs
Hello there, Is there a way to color exceptions/errors? I try d to use highlight_string() but that only works on PHP code. Does someone has a function or something which can do this? Thx in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

Re: [PHP] ob_start() and a callback function within a class,not updating ob_get_level().

2006-11-22 Thread Mathijs
Richard Lynch wrote: On Thu, November 16, 2006 7:35 am, Mathijs wrote: I have a question about ob_start() and ob_get_level(). When i use ob_start(), and then check ob_get_level(), it shows me 1. This is a normal behavior. Now when i do the following ob_start(array('ClassName', &#

[PHP] ob_start() and a callback function within a class, not updating ob_get_level().

2006-11-16 Thread Mathijs
Hello there, I have a question about ob_start() and ob_get_level(). When i use ob_start(), and then check ob_get_level(), it shows me 1. This is a normal behavior. Now when i do the following ob_start(array('ClassName', 'ClassMethod')). It does execute the methode, but it doesn't update ob_get_

[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== =CODE== Now i want to extract the ClassName::FunctionName() part, inculding its arguments. The first two argument

Re: [PHP] How do i check if a variable is a reference or a copy?

2006-09-28 Thread Mathijs
Martin Alterisio wrote: 2006/9/28, Mathijs <[EMAIL PROTECTED]>: Hello there, Is there a way to check if a variable is passed by reference or if it is just a copy. With something like is_copy or is_reference? Thx in advance. Is this part of the "I don't know if two vars re

[PHP] How do i check if a variable is a reference or a copy?

2006-09-28 Thread Mathijs
Hello there, Is there a way to check if a variable is passed by reference or if it is just a copy. With something like is_copy or is_reference? Thx in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 queit

[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 use

[PHP] How to parse raw mail headers and messages?

2006-09-17 Thread Mathijs
Hello there, Is there a way to parse mail headers from a RAW mail received from sendmail? Like extracting the from, reply-to etc.. etc.. and also the message(s). Also mabye Multipart email's en attachments? Thx in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Re: cURL and sending an POST with an @ as first char.

2006-08-24 Thread Mathijs
Mathijs wrote: Hello there, I Have a question about cURL and sending POST data. I have an array with values which are needed for an POST. There is one value which starts with an @. This gives me a error: ErrorNo.: 26, ErrorMsg: 'failed creating formpost data'. This is becouse a

[PHP] cURL and sending an POST with an @ as first char.

2006-08-24 Thread Mathijs
Hello there, I Have a question about cURL and sending POST data. I have an array with values which are needed for an POST. There is one value which starts with an @. This gives me a error: ErrorNo.: 26, ErrorMsg: 'failed creating formpost data'. This is becouse an @ at the start of a value is

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

2006-07-27 Thread Mathijs van Veluw
character does not exist in ISO8859-1. maybe this page helps: http://www.gar.no/html/euro.htm Mathijs wrote: Hello there, I have a problem with rawurlencode(). I want to have the euro sign € to be sent by post. To do this, first rawurlencode() encodes all the chars. But for some reason

[PHP] Problem with rawurlencode and euro sign.

2006-07-27 Thread Mathijs
. But i need it to be %80. When i use rawurldecode('%80'); and put the browsers encoding to ISO-8859-* it does work. i Realy see the euro sign. So why does rawurlencode() not encodes it tho this?. Thx in advance. Mathijs. --- avast! Antivirus: Outbound message clean. Virus Database (VP

[PHP] UTF-8 With content-type text/xml problem.

2006-07-21 Thread Mathijs
Hello ppl, I have a big prob. I have a page which post some input. This input can be UTF-8 like chinese or other utf-8 chars. Also i need it to return UTF-8 and it has to be xml. For some strange reason this isn't working. Small example. PHP Code: '."\n"; print ''.$_GET['test'].''."\n"; ?> a

Re: [PHP] Return XML using PHP and Content-Type with UTF-8 breaks the UTF-8

2006-07-20 Thread Mathijs
Ray Hauge wrote: On Wednesday 19 July 2006 09:27, Mathijs wrote: Hello there, I Have an problem with UTF-8 and XML. I Output perfect XML (according to IE, Opera and Firefox). I use the Content-Type header with "text/xml; charset=utf-8". For some reason this breaks UTF-8 output. Whe

Re: [PHP] session_start/session_write_close creates multiple sessioncookieheaders. How to fix this.

2006-07-19 Thread Mathijs
Chris wrote: Mathijs wrote: Chris wrote: Mathijs wrote: Hello again, I Use session_write_close() so the page loads quicker because i use session on multiple place. This because session has protection for race conditions. Now it works very well and i don't have any problems at all. I

[PHP] Return XML using PHP and Content-Type with UTF-8 breaks the UTF-8

2006-07-19 Thread Mathijs
Hello there, I Have an problem with UTF-8 and XML. I Output perfect XML (according to IE, Opera and Firefox). I use the Content-Type header with "text/xml; charset=utf-8". For some reason this breaks UTF-8 output. When i remove it it works. But i need the text/xml header. If i save an document

Re: [PHP] session_start/session_write_close creates multiple sessioncookie headers. How to fix this.

2006-07-14 Thread Mathijs
Chris wrote: Mathijs wrote: Hello again, I Use session_write_close() so the page loads quicker because i use session on multiple place. This because session has protection for race conditions. Now it works very well and i don't have any problems at all. I only see that there are mul

[PHP] session_start/session_write_close creates multiple session cookie headers. How to fix this.

2006-07-13 Thread Mathijs
Hello again, I Use session_write_close() so the page loads quicker because i use session on multiple place. This because session has protection for race conditions. Now it works very well and i don't have any problems at all. I only see that there are multiple session cookie headers set. I Pers

Re: [PHP] Problems with caching and headers.

2006-07-11 Thread Mathijs
Jochem Maas wrote: Mathijs wrote: ... Now i have a problem with the ETag. what are you using this header for? I Use this header to check if the content of a file has changed. This because the content can be variable. But is static most of the time. I Compute an MD5 of the content, and add

Re: [PHP] Problems with caching and headers.

2006-07-11 Thread Mathijs
Mathijs wrote: Jochem Maas wrote: Mathijs wrote: Hello there, I can't figure out why there are some headers set while i don't set them myself. The following headers are sent to the browser. -Expires: Thu, 19 Nov 1981 08:52:00 GMT -Cache-Control: no-store, no-cache, must-revali

Re: [PHP] Problems with caching and headers.

2006-07-11 Thread Mathijs
Jochem Maas wrote: Mathijs wrote: Mathijs wrote: Jochem Maas wrote: Mathijs wrote: Hello there, I can't figure out why there are some headers set while i don't set them myself. The following headers are sent to the browser. -Expires: Thu, 19 Nov 1981 08:52:00 GMT -Cache-Control

Re: [PHP] Problems with caching and headers.

2006-07-11 Thread Mathijs
Jochem Maas wrote: Mathijs wrote: Hello there, I can't figure out why there are some headers set while i don't set them myself. The following headers are sent to the browser. -Expires: Thu, 19 Nov 1981 08:52:00 GMT -Cache-Control: no-store, no-cache, must-revalidate, post-check=0, p

[PHP] Problems with caching and headers.

2006-07-11 Thread Mathijs
Hello there, I can't figure out why there are some headers set while i don't set them myself. The following headers are sent to the browser. -Expires: Thu, 19 Nov 1981 08:52:00 GMT -Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 -Pragma: no-cache All those i didn'

Re: [PHP] Bitwise operators and check if an bit is NOT within theflag.

2006-07-04 Thread Mathijs
Jochem Maas wrote: Mathijs wrote: Jochem Maas wrote: Mathijs wrote: ... Thank you very much. This seems to work :). cool. heres's a couple of funcs that might help you to understand bitwise operations better: >= 1) { $x++; } return $i ? $j <<= $x: 0; } /* does

Re: [PHP] Bitwise operators and check if an bit is NOT within theflag.

2006-07-04 Thread Mathijs
Jochem Maas wrote: Mathijs wrote: Jochem Maas wrote: Mathijs wrote: ... Thank you very much. This seems to work :). cool. heres's a couple of funcs that might help you to understand bitwise operations better: >= 1) { $x++; } return $i ? $j <<= $x: 0; } /* does

Re: [PHP] Bitwise operators and check if an bit is NOT within theflag.

2006-07-04 Thread Mathijs
Jochem Maas wrote: Mathijs wrote: Jochem Maas wrote: Mathijs wrote: ... Thank you very much. This seems to work :). cool. heres's a couple of funcs that might help you to understand bitwise operations better: >= 1) { $x++; } return $i ? $j <<= $x: 0; } /* does

Re: [PHP] Bitwise operators and check if an bit is NOT within theflag.

2006-07-04 Thread Mathijs
Jochem Maas wrote: Mathijs wrote: Jochem Maas wrote: Mathijs wrote: ... Thank you very much. This seems to work :). cool. heres's a couple of funcs that might help you to understand bitwise operations better: >= 1) { $x++; } return $i ? $j <<= $x: 0; } /* does

Re: [PHP] Bitwise operators and check if an bit is NOT within theflag.

2006-07-04 Thread Mathijs
Jochem Maas wrote: Mathijs wrote: Hello there. I am working with some bitwise Operators for validating some variables. Now i need to know if an certain bit is NOT set and an other bit IS set. Example. class Test { const VALIDATE_CHECK1 = 1; const VALIDATE_CHECK2 = 2; const VALIDATE_CHECK3

[PHP] Bitwise operators and check if an bit is NOT within the flag.

2006-07-04 Thread Mathijs
Hello there. I am working with some bitwise Operators for validating some variables. Now i need to know if an certain bit is NOT set and an other bit IS set. Example. This last example i can't seem to get to work. I Want to only do that when for example VALIDATE_CHECK3 is not within the $fla

Re: [PHP] Ajax (xmlHttpRequest) and session_start() problem.

2006-05-17 Thread Mathijs
Thank you very much :D. Ill just create an class which will handle this :). It works like a charm.. Thx. Thomas Munz wrote: session_write_close(); Ex: session_start(); $asdf = $_SESSION; //-- get all datas session_write_close(); //-- close session on Wednesday 17 May 2006 16:36, Mathijs

Re: [PHP] Ajax (xmlHttpRequest) and session_start() problem.

2006-05-17 Thread Mathijs
Robert Cummings wrote: On Wed, 2006-05-17 at 10:11, Mathijs wrote: I Have an very strange problem. When i execute an very simple Ajax request to an PHP script wich just print one line and i put an sleep(20) infront of it, it works perfectly when i refresh the page. BUT.. When i put

[PHP] Ajax (xmlHttpRequest) and session_start() problem.

2006-05-17 Thread Mathijs
I Have an very strange problem. When i execute an very simple Ajax request to an PHP script wich just print one line and i put an sleep(20) infront of it, it works perfectly when i refresh the page. BUT.. When i put session_start() at the top, i can't refresh the page anymore. It won't refres

Re: [PHP] Howto Execute PHP as script owner/group without CGI?

2006-03-22 Thread Mathijs
chris smith wrote: On 3/22/06, Mathijs <[EMAIL PROTECTED]> wrote: chris smith wrote: I Want to know if it is possible to execute PHP(5) as the owner/group of the script it self. At the moment saved files get owner and group nobody. When i upload through ftp, it gets the normal owner and

Re: [PHP] Howto Execute PHP as script owner/group without CGI?

2006-03-22 Thread Mathijs
chris smith wrote: On 3/22/06, Mathijs <[EMAIL PROTECTED]> wrote: chris smith wrote: I Want to know if it is possible to execute PHP(5) as the owner/group of the script it self. At the moment saved files get owner and group nobody. When i upload through ftp, it gets the normal owner and

Re: [PHP] Howto Execute PHP as script owner/group without CGI?

2006-03-22 Thread Mathijs
chris smith wrote: I Want to know if it is possible to execute PHP(5) as the owner/group of the script it self. At the moment saved files get owner and group nobody. When i upload through ftp, it gets the normal owner and group nobody. Is there a way that i can set both owner and group to 'myus

[PHP] Howto Execute PHP as script owner/group without CGI?

2006-03-21 Thread Mathijs
Hello there, I Want to know if it is possible to execute PHP(5) as the owner/group of the script it self. At the moment saved files get owner and group nobody. When i upload through ftp, it gets the normal owner and group nobody. Is there a way that i can set both owner and group to 'myuser-

[PHP] Detect calling function with debug_backtrace()

2006-03-16 Thread Mathijs
Hello, i want to use debug_backtrace() in the function called by register_shutdown_function but it only displays the function we are currently in (the shutdown function) Is there any way to trace what class, methode or line caused php to call the shutdown function ?? Thx in advanced -- PHP Gen

[PHP] Strip comments but leave URI's which are in between ( and )

2006-02-05 Thread Mathijs
Hello there, I Have the following PREG. I Want to remove comments from an file (Javascript or CSS), but i want to leave the URI's that are within an function. So i thought to exclude any match which is between an ( and ). But i can't seem to figure out exactly how. I have the following atm:

[PHP] Print extended/parent classes

2006-02-01 Thread Mathijs
I have the following situation : Now I want to print this object Does anybody know how I can print class A also ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Check how much/which variables there are in an class

2006-01-11 Thread Mathijs
Stefan Reimers wrote: Try array get_class_vars ( string class_name) This will return an array with at least the public variables. Mathijs wrote: Is there a way to check how much/which variables there are in an class? Thx in advanced. It works, but only for the public indeed. Is there

Re: [PHP] Case-Insensitive include on linux.

2006-01-11 Thread Mathijs
George Pitcher wrote: Mathijs wrote: Is there a way to have include() be case-insensitive? If you are know that all your file and directory names are lower case, but users may input mixed case responses that will be used to determine the include, you can set the case of the user input to

[PHP] Check how much/which variables there are in an class

2006-01-11 Thread Mathijs
Is there a way to check how much/which variables there are in an class? Thx in advanced. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Case-Insensitive include on linux.

2006-01-10 Thread Mathijs
Hello there, Is there a way to have include() be case-insensitive? This would be very handy. Thx in advanced. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] fopen/fwrite and owner/group settings

2006-01-05 Thread Mathijs
Hello there, I Have a problem with some file writeing. I Use fopen to create a new file, but that file gets the owner and group the same as the apache owner and group. How can i change it so that the file gets the same owner/group as the files i upload with FTP? Thx in advanced -- PHP Gen

[PHP] How to check if an object is empty in PHP5

2006-01-02 Thread Mathijs
Hello ppl, How can i check if an Object is empty in PHP5? Becouse empty() doesn't work. Quote: "As of PHP 5, objects with no properties are no longer considered empty.". Thx in advanced. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to get a unixtime with micro/mille seconds

2005-12-19 Thread Mathijs
Zareef Ahmed wrote: Hi, use microtime function. Zareef Ahmed - Original Message - From: "Mathijs" <[EMAIL PROTECTED]> To: Sent: Monday, December 19, 2005 5:58 AM Subject: [PHP] How to get a unixtime with micro/mille seconds Hello, I Want to have a u

[PHP] How to get a unixtime with micro/mille seconds

2005-12-19 Thread Mathijs
Hello, I Want to have a unique time stamp. And for this i want to use the normal timestamp but it is possible that the seconds are the same, so i want to add the micro/milli seconds to the end of it. So when i have something like this as unixtime "1134989511" It wil be "113498951100" or even

[PHP] Multiple callback_outputs for ob_start

2005-12-05 Thread Mathijs
Hello ppl, I Have a question about ob_start(). How can i add more callback_outputs to ob_start? I want to have both: ob_start('switchContent'); and: ob_start('ob_gzhandler'); How can i do that? Thx in advanced. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

[PHP] posting plain/text with CURL?

2001-01-26 Thread Mathijs Homminga
Q: Is it possible to post plain/text data from PHP with the build-in CURL functions? Hello Mr. General PHP! I want to post PLAIN/TEXT data to some webpage (through SSL). I want to do this in PHP by using the build-in CURL support. However, by default, CURL is posting the data as "url-encoded.."