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
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
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
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
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
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
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
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
thing like this?
Thx in advance.
Mathijs
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[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
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
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
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.
--
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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',
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_
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
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
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
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
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
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
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
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
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
.
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
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
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
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
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
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
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
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
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
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
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
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'
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
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
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
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
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
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
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
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
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
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
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
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
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-
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
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:
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
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
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
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
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
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
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
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
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
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
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.."
79 matches
Mail list logo