Re: [PHP] Calendar booking form in PHP/MySQL

2007-07-08 Thread Zareef Ahmed
Hi Murphy, I think till now you got the idea why you did't got replies for query. Please do a simple google search and you will find something. using sourceforge is also good idea. People are here to solve and discuss the programming problems of each others, NOT to do work for each other :) Zar

Re: [PHP] triming utf8 (?) a string

2007-07-08 Thread Jim Lucas
Rick Pasotto wrote: I'm using the PEAR Crypt_Blowfish module. When I decrypt the encrypted string the result is the original plus some '\ufffd' bytes. How can I get rid of those extra bytes? I've tried both trim($x,'\ufffd') and trim($x,utf8_decode('\ufffd')). trim() is meant to remove chars fr

[PHP] triming utf8 (?) a string

2007-07-08 Thread Rick Pasotto
I'm using the PEAR Crypt_Blowfish module. When I decrypt the encrypted string the result is the original plus some '\ufffd' bytes. How can I get rid of those extra bytes? I've tried both trim($x,'\ufffd') and trim($x,utf8_decode('\ufffd')). -- "Economics is extremely useful as a form of employmen

[PHP] Re: Anyone recommend a great phpmysql knowledge base?

2007-07-08 Thread Al
Search http://sourceforge.net/softwaremap/index.php There are dozens. Graham Anderson wrote: Does anyone have a positive experience with an 'out of the box' Knowledge Base system (hopefully open-source) that easily allows developers to easily share/post/publish/document their code? I know t

[PHP] Anyone recommend a great phpmysql knowledge base?

2007-07-08 Thread Graham Anderson
Does anyone have a positive experience with an 'out of the box' Knowledge Base system (hopefully open-source) that easily allows developers to easily share/post/publish/document their code? I know this question is a a bit general, but I figure a lot of you guys are on such a system at work

Re: [PHP] About PHP CMS

2007-07-08 Thread tedd
At 8:24 PM -0400 7/7/07, Nathan Nobbe wrote: kelvin, here is the example: catalog.php load('catalog.xsl'); $xsl->importStyleSheet($doc); $doc->load('catalog.xml'); echo $xsl->transformToXML($doc); ?> catalog.xml Empire Burlesque Bob Dylan USA Columbia 10.90 1985 catalog.xsl http://www.w

Re: [PHP] Where does PHP look for php.ini??

2007-07-08 Thread Mario Guenterberg
On Sat, Jul 07, 2007 at 02:08:21AM +0200, Tijnema wrote: > Hi, > > I just noted that my php (CLI and Apache2 SAPI) doesn't read my php.ini in > /etc > I have compiled php with --prefix=/usr, and my /usr/etc is symlinked > to /etc, but it doesn't read the php.ini file.. > when I use the CLI

Re: [PHP] Re: About DOM function in PHP

2007-07-08 Thread Nathan Nobbe
My appologies M. looking through the output of phpinfo() on a PHP5 install i have found a line which says dom DOM/XML enabled which would allude to an ability to disable it. also, i was looking at the XSL extension and discovered Installation PHP 5 includes the XSL extension by default

Re: [PHP] Re: About DOM function in PHP

2007-07-08 Thread M. Sokolewicz
Actually, I'll have to correct you on that. Everything in PHP is an extension, even the standard functions (which are part of the 'standard' extension). Some extensions are "built-in" while others are not (ie. standard, in PHP5, the DOM module is built-in). However, this does not mean they are

Re: [PHP] Re: About DOM function in PHP

2007-07-08 Thread Nathan Nobbe
On 7/8/07, M. Sokolewicz <[EMAIL PROTECTED]> wrote: You don't have the DOM extension installed (req. PHP5 in case you're not There is no DOM extension it is part of the PHP5 core; this from the DOM documantation in the online handbook: *Installation Th

Re: [PHP] Where does PHP look for php.ini??

2007-07-08 Thread Nathan Nobbe
On 7/6/07, Tijnema <[EMAIL PROTECTED]> wrote: Completely missed it LOL, it looks for it in /usr/lib :S Is that normal? i beleive it depends on the OS/distribution. on gentoo php.ini is located at /etc/php/apache2-php5 Here is a bit of output from phpinfo() on a gentoo box of mine [w/ no changes

RE: [PHP] How would i construct a date from year/week?

2007-07-08 Thread Chris Boget
> How on earth would I do this? How can I > construct a date only given a year and a > week number? > I hope you guys can help me here, as I > have absolutely NO idea :) // whatever week number you are working with; arbitrary value here $weekNumber = 37; // seconds * minutes * hours; $day = 6

[PHP] How would i construct a date from year/week?

2007-07-08 Thread Søren Neigaard
Hi wizards Do any of you have a good solution for me here. I would like to browse between weeks, and then based on the week and year construct a full date on the monday of that week. How on earth would I do this? How can I construct a date only given a year and a week number? I hope you

Re: [PHP] About DOM function in PHP

2007-07-08 Thread Tijnema
On 7/8/07, Kelvin Park <[EMAIL PROTECTED]> wrote: I'm getting the following fatal error message: *Fatal error*: Cannot instantiate non-existent class: domdocument in * /home/hosting/infotechnow_com/htdocs/admin/inventory/catalog.php* on line *3 * when running this code: // Initialize new object

[PHP] Re: About DOM function in PHP

2007-07-08 Thread M. Sokolewicz
Kelvin Park wrote: I'm getting the following fatal error message: *Fatal error*: Cannot instantiate non-existent class: domdocument in * /home/hosting/infotechnow_com/htdocs/admin/inventory/catalog.php* on line *3 * when running this code: // Initialize new object for DOMDocument $doc = new D

[PHP] About DOM function in PHP

2007-07-08 Thread Kelvin Park
I'm getting the following fatal error message: *Fatal error*: Cannot instantiate non-existent class: domdocument in * /home/hosting/infotechnow_com/htdocs/admin/inventory/catalog.php* on line *3 * when running this code: // Initialize new object for DOMDocument $doc = new DOMDocument(); What's