php-general Digest 11 Nov 2006 12:33:36 -0000 Issue 4453

2006-11-11 Thread php-general-digest-help
php-general Digest 11 Nov 2006 12:33:36 - Issue 4453 Topics (messages 244486 through 244492): Re: Staff log-in 244486 by: Daevid Vincent 244491 by: Jochem Maas PEAR and MDB2 244487 by: Alain Roger Re: MDB2 simple test 244488 by: Alain Roger 244489

php-general Digest 12 Nov 2006 04:00:33 -0000 Issue 4454

2006-11-11 Thread php-general-digest-help
php-general Digest 12 Nov 2006 04:00:33 - Issue 4454 Topics (messages 244493 through 244511): Re: Staff log-in 244493 by: John Nichel 244494 by: David Giragosian 244506 by: Google Kreme convert postgres date to PHP 244495 by: Alain Roger 244497 by:

[PHP] PEAR and MDB2

2006-11-11 Thread Alain Roger
Hi, As i'm new to PEAR world, i try to understand how does it work. for that i took the MDB2 and try to use it with PostgreSQL. here is a basic sample extract from PEAR help file and only modified. require_once 'Pear/MDB2.php'; $dsn = 'pgsql://login:[EMAIL PROTECTED]'; $mdb2 =

[PHP] Re: MDB2 simple test

2006-11-11 Thread Alain Roger
Mark, this is my main_includes.php file : ?php $path = 'pear'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once Structures/DataGrid.php; require_once 'MDB2.php'; ? and in my file where i try to use MDB2.php, it's included like that : ?php

[PHP] Fwd: MDB2 simple test

2006-11-11 Thread Alain Roger
-- Forwarded message -- From: Alain Roger [EMAIL PROTECTED] Date: Nov 11, 2006 12:26 PM Subject: Re: MDB2 simple test To: Mark Wiesemann [EMAIL PROTECTED] I have a main_includes.php which include_once/require_once all needed things like MDB2.php or setpath for /pear folder

[PHP] Re: MDB2 simple test

2006-11-11 Thread Alain Roger
for more information, here is the variable where points the include_path : include path = F:\My documents\Development\Website\Immense\Pear as i did not install PEAR via script, i uncompress it and copy files into Pear folder. i did this because my web hoster will not accept to install PEAR on

Re: [PHP] Staff log-in

2006-11-11 Thread Jochem Maas
Daevid Vincent wrote: -Original Message- From: Google Kreme [mailto:[EMAIL PROTECTED] Is that *really* your name?! :) The trouble comes when you need to time-out a session because someone never logged out properly. That can be hairy. Yeah, it's so hard to do that

[PHP] MDB2 and PostgreSQL

2006-11-11 Thread Alain Roger
Hi, I'm still working on the issue with MDB2. i've checked the $mdb2 object and i discover that method doQuery does not exist when i write $mdb2- So it seems that MDB2.php does not pickup the datasource package pgsql.php. Therefore i would like to know if the following folder struture is

Re: [PHP] Staff log-in

2006-11-11 Thread John Nichel
Paul Novitski wrote: At 11/10/2006 07:09 AM, tedd wrote: Lastly, I think we all know that non-profit simply means that at the end of the year you get to roll your profits over to the next year without incurring taxes on the excess. Nothing more. Plus, there's no limit or requirements as to

Re: [PHP] Staff log-in

2006-11-11 Thread David Giragosian
On 11/11/06, John Nichel [EMAIL PROTECTED] wrote: Paul Novitski wrote: At 11/10/2006 07:09 AM, tedd wrote: Lastly, I think we all know that non-profit simply means that at the end of the year you get to roll your profits over to the next year without incurring taxes on the excess. Nothing

[PHP] convert postgres date to PHP

2006-11-11 Thread Alain Roger
Hi, in my database PosgreSQL i have stored some date in the following format : -MM-DD HH:MM:SS this is a real TimeStamp without time zone field format. Under PHP i would like to display this field as text with the following format DD.MM. How can i do that ? i was thinking to do :

[PHP] PHP Source File Encoding

2006-11-11 Thread C Drozdowski
Gotta a question whose answer should be really obvious to me but, for some reason, is just eluding me. Which encodings can PHP handle for source files? I've been using iso-8859-1 but what about utf-8? Thanks, C Drozdowski -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: convert postgres date to PHP

2006-11-11 Thread M.Sokolewicz
well, I could say RTFM, but I'll help you this time with a few links: 1. date() http://www.php.net/manual/en/function.date.php 2. strtotime() http://www.php.net/manual/en/function.strtotime.php - tul P.S. RTFM! Alain Roger wrote: Hi, in my database PosgreSQL i have stored some date in the

[PHP] Re: convert postgres date to PHP

2006-11-11 Thread Alain Roger
Sorry to tell you that but that's why i ask here this question, because i get everytime 01.01.1970.. RTFM i did ! On 11/11/06, M.Sokolewicz [EMAIL PROTECTED] wrote: well, I could say RTFM, but I'll help you this time with a few links: 1. date() http://www.php.net/manual/en/function.date.php 2.

Re: [PHP] convert postgres date to PHP

2006-11-11 Thread Børge Holen
Dunno 'bout posgresql, but mysql can handle that situation quite easily with DATE_FORMAT witch is what I use. On Saturday 11 November 2006 16:59, Alain Roger wrote: Hi, in my database PosgreSQL i have stored some date in the following format : -MM-DD HH:MM:SS this is a real TimeStamp

Re: [PHP] convert postgres date to PHP

2006-11-11 Thread Børge Holen
And while on it... Explode could do the trick to. On Saturday 11 November 2006 16:59, Alain Roger wrote: Hi, in my database PosgreSQL i have stored some date in the following format : -MM-DD HH:MM:SS this is a real TimeStamp without time zone field format. Under PHP i would like to

[PHP] Re: convert postgres date to PHP

2006-11-11 Thread M.Sokolewicz
You get that because your input is not a unix timestamp, it's a RFC 3339 formatted date-/timestamp. You first need to convert it (using ie. strtotime, or explode() and feeding it to mktime()) to a unix timestamp before you can feed the unix timestamp to the date() function. Unix timestamps

[PHP] PEAR, MDB2 and MDB2_Driver_pgsql

2006-11-11 Thread Alain Roger
Hi, So i solved my problem with Pager, MDB2...therefore thanks a lot to everybody for your support. I have nevertheless still 1 question to which i need help. I would like to understand how MDB2_Driver_pgsql and MDB2 class are linked to each other ? i was thinking that the first one is derived

Re: [PHP] http_build_query ... argh

2006-11-11 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-11-10 14:08:22 +0100: Arpad Ray wrote: ~ %5[bd] # the bracket (?= # must be followed by [^]* # any characters except = # then a = ) ~eix thanks very much for the explanation! Note that it's still a

[PHP] activation through email

2006-11-11 Thread Ahmad Al-Twaijiry
Hi everyone I have a site with around 1000 new users everyday, and when every user register my scripts will send a random password to his email. the problem is that I got many users (specially hotmail users) complain that they didn't receive any email (even in the hotmail junk box). I know

Re: [PHP] PEAR and MDB2

2006-11-11 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-11-11 12:02:37 +0100: require_once 'Pear/MDB2.php'; $dsn = 'pgsql://login:[EMAIL PROTECTED]'; $mdb2 = MDB2::connect($dsn); if (PEAR::isError($mdb2)) { die($mdb2-getMessage()); } $res = $mdb2-query('SELECT * FROM articles'); if (PEAR::isError($res)) {

Re: [PHP] Staff log-in

2006-11-11 Thread Google Kreme
On 10 Nov 2006, at 19:25 , Daevid Vincent wrote: -Original Message- From: Google Kreme [mailto:[EMAIL PROTECTED] Is that *really* your name?! :) Well, I TRIED to change it, but two guys in birks, tie-dyed t-shirts, and macramé briefcases showed up with an injunction. :) The

Re: [PHP] PHP Source File Encoding

2006-11-11 Thread Google Kreme
On 11 Nov 2006, at 08:45 , C Drozdowski wrote: Gotta a question whose answer should be really obvious to me but, for some reason, is just eluding me. Which encodings can PHP handle for source files? I've been using iso-8859-1 but what about utf-8? Try it? 5.0.6 seems to work fine with

Re: [PHP] activation through email

2006-11-11 Thread Google Kreme
On 11 Nov 2006, at 12:38 , Ahmad Al-Twaijiry wrote: I know that hotmail is filtering me as a possibly a spammer (because I use a shared mail server) and there is nothing I can do about this. Sure there is, move to a better neighborhood. And hotmail will not block you for being on a shared

Re: [PHP] PHP Source File Encoding

2006-11-11 Thread M.Sokolewicz
UTF-8 works as long as you don't include a BOM (ByteOrderMark). - tul Google Kreme wrote: On 11 Nov 2006, at 08:45 , C Drozdowski wrote: Gotta a question whose answer should be really obvious to me but, for some reason, is just eluding me. Which encodings can PHP handle for source files?

[PHP] Encoder efficiency

2006-11-11 Thread Sancar Saran
Hi, What is Zend Encoder efficency. After encoding shall we assume our code was safe... Or what should we expected Regards Sancar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How do you do the ? mark after a filename

2006-11-11 Thread Thomas Bonham
Hi All, I keep seeing the ? mark after many file names index.php?id=234. So what I would like to know is how do you make them. I have heard that they can make a programs life sampler when doing somethings with a database. Thank you, Thomas -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] How do you do the ? mark after a filename

2006-11-11 Thread John Meyer
the ? is a delimiter between the url and the get variables, which are set by the script itself, either through forms or by scripts. Thomas Bonham wrote: Hi All, I keep seeing the ? mark after many file names index.php?id=234. So what I would like to know is how do you make them. I have