php-general Digest 12 Nov 2006 17:40:42 -0000 Issue 4455

2006-11-12 Thread php-general-digest-help
php-general Digest 12 Nov 2006 17:40:42 - Issue 4455 Topics (messages 244512 through 244523): Re: How do you do the ? mark after a filename 244512 by: John Meyer Re: PEAR and MDB2 244513 by: Alain Roger 244517 by: Roman Neuhauser 244521 by: Alain Roger

php-general Digest 13 Nov 2006 05:47:23 -0000 Issue 4456

2006-11-12 Thread php-general-digest-help
php-general Digest 13 Nov 2006 05:47:23 - Issue 4456 Topics (messages 244524 through 244542): Re: spot the mistake 244524 by: Jochem Maas 244529 by: Robert Cummings 244530 by: Curt Zirzow 244531 by: Robert Cummings Re: activation through email 244525

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);

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 be

[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

[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

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

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\')';

[PHP] spot the mistake

2006-11-12 Thread Ross
echo ('a href=# onclick=window.open(\'news/old_news_list.php?month=$jamp;year='.$i.'\',\'\',\'width=700,height=500\'); return false \ $thisMonth/a'); 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.

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 format

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().brbr.$db2-getUserinfo()); } generate a : MDB2 Error: not found connect: [Error message: extension pgsql is not compiled

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: so

[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).

Re: [PHP] spot the mistake

2006-11-12 Thread Jochem Maas
Ross wrote: echo ('a href=# onclick=window.open(\'news/old_news_list.php?month=$jamp;year='.$i.'\',\'\',\'width=700,height=500\'); return false \ $thisMonth/a'); 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

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 must

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

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 -

[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

Re: [PHP] spot the mistake

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

Re: [PHP] spot the mistake

2006-11-12 Thread Curt Zirzow
On 11/12/06, Ross [EMAIL PROTECTED] wrote: echo ('a href=# onclick=window.open(\'news/old_news_list.php?month=$jamp;year='.$i.'\',\'\',\'width=700,height=500\'); return false \ $thisMonth/a'); Just remove any question on what is wrong: $thisUrl = news/old_news_list.php?month=$jamp;year=$i;

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 ('a href=# onclick=window.open(\'news/old_news_list.php?month=$jamp;year='.$i.'\',\'\',\'width=700,height=500\'); return false \ $thisMonth/a'); Just remove any question on what is

[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

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

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); I

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 success:

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' ,

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 following,

Re: [PHP] Parsing brackets in text

2006-11-12 Thread Dotan Cohen
On 13/11/06, Chris [EMAIL PROTECTED] wrote: ?php function makeLink($matches) { $returnString=b . $matches[1] . /b; return $returnString; } $articleText=This is a very [long] string.; $articleText=preg_replace_callback('/\[([a-z]+)\]/i' , makeLink, $articleText); print

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

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

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 how

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

2006-11-12 Thread J R
using form method=get..., it is automatically generated but you can also do it manually in your anchor tag like so: a href= www.domain.com/index.php?id=35format=htmlclick me/a in your php you can get its value by use of the $_GET variable. hth, john On 11/13/06, Thomas Bonham [EMAIL PROTECTED]