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

[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/) T

[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

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? I'v

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 se

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 fil

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 tro

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($re

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

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

[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

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

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 lik

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 TimeSta

[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

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

[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, v

[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 : $da

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.

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

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

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 d

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

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

[PHP] Re: MDB2 simple test

2006-11-11 Thread Alain Roger
Mark, this is my main_includes.php file : and in my file where i try to use MDB2.php, it's included like that : at the beginning of my file before all META Articles table exists in my database, i've checked also if i did not make some mistakes in the user name, password or dbnane in my dsn,

[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 =& MDB2::connect($