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

2006-11-12 Thread J R
using "click me in your php you can get its value by use of the $_GET variable. hth, john On 11/13/06, Thomas Bonham <[EMAIL PROTECTED]> wrote: Thank you for that, it was a big help. Can I also call function that way? Again thank you for your help. Thomas Tom Chubb wrote: > On 12/11/06, T

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

2006-11-12 Thread Thomas Bonham
Thank you for that, it was a big help. Can I also call function that way? Again thank you for your help. Thomas Tom Chubb wrote: On 12/11/06, Thomas Bonham <[EMAIL PROTECTED]> wrote: Hi All, I keep seeing the ? mark after many file names index.php?id=234. So what I would like to know is ho

Re: [PHP] Mysql strategy

2006-11-12 Thread Chris
Dotan Cohen wrote: If I have to perform 30 LIKE searches for different keywords in a varchar field, which strategy would be recommended: 1) 30 searches, one for each keyword No. Horribly inefficient. 2) To select the varchar field from all the rows, and search through them with php's array fu

[PHP] Mysql strategy

2006-11-12 Thread Dotan Cohen
If I have to perform 30 LIKE searches for different keywords in a varchar field, which strategy would be recommended: 1) 30 searches, one for each keyword 2) To select the varchar field from all the rows, and search through them with php's array functions? There are about 500 rows in the table, a

Re: [PHP] Parsing brackets in text

2006-11-12 Thread Dotan Cohen
On 13/11/06, Chris <[EMAIL PROTECTED]> wrote: " . $matches[1] . ""; return $returnString; } $articleText="This is a very [long] string."; $articleText=preg_replace_callback('/\[([a-z]+)\]/i' , "makeLink", $articleText); print $articleText . "\n"; ?> The callback takes whatever the reg

Re: [PHP] Parsing brackets in text

2006-11-12 Thread Chris
Dotan Cohen wrote: On 13/11/06, Chris <[EMAIL PROTECTED]> wrote: Dotan Cohen wrote: > On 12/11/06, Chris <[EMAIL PROTECTED]> wrote: >> Dotan Cohen wrote: >> > I need to replace text enclosed in brackets with links. How can I get >> > that text, though? I've tried numerous variations of the fol

Re: [PHP] Parsing brackets in text

2006-11-12 Thread Chris
Dotan Cohen wrote: On 12/11/06, Chris <[EMAIL PROTECTED]> wrote: Dotan Cohen wrote: > I need to replace text enclosed in brackets with links. How can I get > that text, though? I've tried numerous variations of the following, > with no success: > $articleText=preg_replace('/\[[a-z]]/i' , makeLin

Re: [PHP] Parsing brackets in text

2006-11-12 Thread Dotan Cohen
On 13/11/06, Chris <[EMAIL PROTECTED]> wrote: Dotan Cohen wrote: > On 12/11/06, Chris <[EMAIL PROTECTED]> wrote: >> Dotan Cohen wrote: >> > I need to replace text enclosed in brackets with links. How can I get >> > that text, though? I've tried numerous variations of the following, >> > with no s

Re: [PHP] Parsing brackets in text

2006-11-12 Thread Dotan Cohen
On 12/11/06, Chris <[EMAIL PROTECTED]> wrote: Dotan Cohen wrote: > I need to replace text enclosed in brackets with links. How can I get > that text, though? I've tried numerous variations of the following, > with no success: > $articleText=preg_replace('/\[[a-z]]/i' , makeLink($1), $articleText)

Re: [PHP] Parsing brackets in text

2006-11-12 Thread Chris
Dotan Cohen wrote: I need to replace text enclosed in brackets with links. How can I get that text, though? I've tried numerous variations of the following, with no success: $articleText=preg_replace('/\[[a-z]]/i' , makeLink($1), $articleText); I cannot get the text between the brackets send to

[PHP] Parsing brackets in text

2006-11-12 Thread Dotan Cohen
I need to replace text enclosed in brackets with links. How can I get that text, though? I've tried numerous variations of the following, with no success: $articleText=preg_replace('/\[[a-z]]/i' , makeLink($1), $articleText); I cannot get the text between the brackets send to the makeLink functio

Re: [PHP] spot the mistake

2006-11-12 Thread Robert Cummings
On Sun, 2006-11-12 at 11:36 -0800, Curt Zirzow wrote: > On 11/12/06, Ross <[EMAIL PROTECTED]> wrote: > > > > echo (' > onclick="window.open(\'news/old_news_list.php?month=$j&year='.$i.'\',\'\',\'width=700,height=500\'); > > return false \" >$thisMonth'); > > Just remove any question on what is wro

Re: [PHP] spot the mistake

2006-11-12 Thread Curt Zirzow
On 11/12/06, Ross <[EMAIL PROTECTED]> wrote: echo ('$thisMonth'); Just remove any question on what is wrong: $thisUrl = "news/old_news_list.php?month=$j&year=$i"; ?> $thisMonth I am trying to get this to open in a popup however it doess not open and I cannot work out why. Must be a syntax a

Re: [PHP] spot the mistake

2006-11-12 Thread Robert Cummings
On Sun, 2006-11-12 at 15:21 +, Ross wrote: > echo (' onclick="window.open(\'news/old_news_list.php?month=$j&year='.$i.'\',\'\',\'width=700,height=500\'); > return false \" >$thisMonth'); > > > I am trying to get this to open in a popup however it doess not open and I > cannot work out why. M

[PHP] Re: PEAR::MDB2 andquery

2006-11-12 Thread Alain Roger
I'm still debugging the MDB2 issue that i have. in fact, my problem comes from : if (!PEAR::loadExtension($this->phptype)) { return $this->raiseError(MDB2_ERROR_NOT_FOUND, null, null, 'extension '.$this->phptype.' is not compiled into PHP', __FUNCTION__); } from c

Re: [PHP] Encoder efficiency

2006-11-12 Thread Jochem Maas
Sancar Saran wrote: > Hi, > > What is Zend Encoder efficency. dunno, ask Zend. ;-) > After encoding shall we assume our code was > safe... well safety != efficiency for one, secondly it depends on you definition of safe. it's fairly safe from people trying to read/understand the source code

Re: [PHP] PHP product licensing...

2006-11-12 Thread Rory Browne
Google for ASP Loophole. On 11/12/06, Jon Anderson <[EMAIL PROTECTED]> wrote: I'll get right to the point, then explain after... I'm looking to release some PHP code as partially open-source. Basically a GPL-like license for non-commercial use, and proprietary license for anyone else. I'm won

Re: [PHP] activation through email

2006-11-12 Thread Jochem Maas
Ahmad Al-Twaijiry wrote: > 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. that many users everyday? might be time to invest in a programmer or 2? even if your site generates no income there mus

Re: [PHP] spot the mistake

2006-11-12 Thread Jochem Maas
Ross wrote: > echo (' onclick="window.open(\'news/old_news_list.php?month=$j&year='.$i.'\',\'\',\'width=700,height=500\'); > return false \" >$thisMonth'); > t my first guess is that you've back-slashed something you shouldn't have - try breaking it down (and/or looking at the html source) ... $

[PHP] PHP product licensing...

2006-11-12 Thread Jon Anderson
I'll get right to the point, then explain after... I'm looking to release some PHP code as partially open-source. Basically a GPL-like license for non-commercial use, and proprietary license for anyone else. I'm wondering about people's experience with various licenses (open-source or not). I'

Re: [PHP] PEAR and MDB2

2006-11-12 Thread Alain Roger
it does not matter, query or exec produce the same error message : Error connection : MDB2 Error: not found connect: [Error message: extension pgsql is not compiled into PHP] :-( On 11/12/06, Roman Neuhauser <[EMAIL PROTECTED]> wrote: # [EMAIL PROTECTED] / 2006-11-12 09:46:34 +0100: >

Fwd: [PHP] PEAR and MDB2

2006-11-12 Thread Alain Roger
but the problem is before: $mdb2 =& MDB2::connect($dsn); if (PEAR::isError($mdb2)) { die($mdb2->getMessage()."".$db2->getUserinfo()); } generate a : MDB2 Error: not found connect: [Error message: extension pgsql is not compiled

Re: [PHP] convert postgres date to PHP

2006-11-12 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-11-11 16:59:19 +0100: > 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 > f

[PHP] spot the mistake

2006-11-12 Thread Ross
echo ('$thisMonth'); I am trying to get this to open in a popup however it doess not open and I cannot work out why. Must be a syntax arror as the page displays ok. Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PEAR and MDB2

2006-11-12 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-11-12 09:46:34 +0100: > so when i have this code : > $options = array('debug' => 2, >'portability' => > MDB2_PORTABILITY_ALL, >); > >$query = 'SELECT * from sp_u_001(\'all\')';

Re: [PHP] Max File Upload Size

2006-11-12 Thread T.Lensselink
Have a look on this page for all the ini settings.. It will also say if it is changeable http://nl2.php.net/manual/en/ini.php#ini.list Tom Chubb wrote: > This is a really stupid question, but I've not been able to find an > answer for it. > I have always thought that your max upload size is limi

[PHP] Max File Upload Size

2006-11-12 Thread Tom Chubb
This is a really stupid question, but I've not been able to find an answer for it. I have always thought that your max upload size is limited to the value in the php.ini file. However I recently changed a site to a new server which had problems with memory on one of the image resizing scripts. I m

[PHP] PEAR::MDB2 andquery

2006-11-12 Thread Alain Roger
Hi, I'm still wondering how are linked MDB2 class and MDB2_Driver_pgsql class. when i analyze the code of DB.php and pgsql.php, it's clear that DB.phpcheck a class based on phptype and therefore include the pgsql.php file. But i did not find something similar in MDB2.php. i would like to underst

Re: [PHP] Staff log-in

2006-11-12 Thread IMADICA_MOKULEN
Hello, everybody, I read about the staff log-in interestingly. > I need a little php script. Staff log in by entering username and password > and then the next time they enter their username and password they log out. > The script has to take down the time they log in and log out. Then I should >

Re: [PHP] PEAR and MDB2

2006-11-12 Thread Alain Roger
so when i have this code : $options = array('debug' => 2, 'portability' => MDB2_PORTABILITY_ALL, ); $query = 'SELECT * from sp_u_001(\'all\')'; $db2 = & new MDB2_Driver_pgsql(); $db2->connect($dsn);