Re: [PHP] Merging Strings

2005-05-03 Thread Jochem Maas
Rolf van de Krol wrote: Hi all, why do result the following two examples in two different value for $month? (1) $current_date = getdate(time()); $month= strval($current_date['year']); $month .= (strlen(strval($current_date['mon'])) == 2) ? $current_date['mon']

[PHP] Merging Strings

2005-05-03 Thread Rolf van de Krol
Hi all, why do result the following two examples in two different value for $month? (1) $current_date = getdate(time()); $month = strval($current_date['year']); $month .= (strlen(strval($current_date['mon'])) == 2)?$current_date['mon']:("0".$current_date['mon']); (2) $current_date = getdate(time()

Re: [PHP] is this possible in PHP?

2005-05-03 Thread Rasmus Lerdorf
Dasmeet Singh wrote: Hi! I want a script that can display a list of all the websites currently hosted on my server.. (i have root access to the server) Say I have a page sitesonmyserver.php..it shud show a list of all the websites hosted on my server..eg: abc.com xyz.om And any additional info

Re: [PHP] Is it possible to save a file with UTF-8 encoding and noBOM using PHP?

2005-05-03 Thread Jon M.
Thanks also, Richard! You were right on. Just a note: I just visited the W3C validation service again, and it seems they have recently updated it. It no longer complains if it finds a BOM in your document binary. So it would appear that it's no longer an issue with enough XML parsers to be rel

RE: [PHP] is this possible in PHP?

2005-05-03 Thread Kim Madsen
> -Original Message- > From: Dasmeet Singh [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 03, 2005 9:03 AM > I want a script that can display a list of all the websites currently > hosted on my server.. (i have root access to the server) > > Say I have a page sitesonmyserver.php..it shu

[PHP] is this possible in PHP?

2005-05-03 Thread Dasmeet Singh
Hi! I want a script that can display a list of all the websites currently hosted on my server.. (i have root access to the server) Say I have a page sitesonmyserver.php..it shud show a list of all the websites hosted on my server..eg: abc.com xyz.om And any additional info if possible? Is such