Re: [PHP] php accelorator

2010-06-02 Thread Nilesh Govindarajan
On Thu, Jun 3, 2010 at 6:01 AM, Ashley Sheridan wrote: > On Wed, 2010-06-02 at 22:38 +0100, Lester Caine wrote: > >> Robert Cummings wrote: >> > Lester Caine wrote: >> >> Robert Cummings wrote: >> >>> I use FastCGI and the NTS version of PHP in Windows because that is the >> >>> configuration reco

Re: [PHP] php accelorator

2010-06-02 Thread Ashley Sheridan
On Wed, 2010-06-02 at 22:38 +0100, Lester Caine wrote: > Robert Cummings wrote: > > Lester Caine wrote: > >> Robert Cummings wrote: > >>> I use FastCGI and the NTS version of PHP in Windows because that is the > >>> configuration recommended by PHP on their website. After experiencing > >>> the in

Re: [PHP] Set up MySQL + Apache 2.2.4 on Win XP

2010-06-02 Thread shiplu
Actually you just restore your NS schema in the new EasyPHP stack. Shiplu Mokadd.im My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest) -- PHP General Mailing

Re: [PHP] Set up MySQL + Apache 2.2.4 on Win XP

2010-06-02 Thread Shreyas
All, Finally, the 28th reply seems to have brought this thread to an end. Yes, persistence finally got me there! Special thanks to Ash. I am able to run both my Java code and php code on the same port (though nothing database conversations are happening) from the same machine. Here's the set-up

[PHP] Re: preg_replace insert newline

2010-06-02 Thread Shawn McKenzie
On 06/02/2010 04:28 PM, Sam Smith wrote: > $string = 'text with no newline'; > $pattern = '/(.*)/'; > $replacement = '${1}XX\nNext line'; > $string = preg_replace($pattern, $replacement, $string); > echo $string; > > Outputs: > text with no newlineXX\nNext line > Instead of: > text with no newline

Re: [PHP] php accelorator

2010-06-02 Thread Lester Caine
Robert Cummings wrote: Lester Caine wrote: Robert Cummings wrote: I use FastCGI and the NTS version of PHP in Windows because that is the configuration recommended by PHP on their website. After experiencing the instability of PHP as relates to the module version in Windows (using eAccelerator

[PHP] preg_replace insert newline

2010-06-02 Thread Sam Smith
$string = 'text with no newline'; $pattern = '/(.*)/'; $replacement = '${1}XX\nNext line'; $string = preg_replace($pattern, $replacement, $string); echo $string; Outputs: text with no newlineXX\nNext line Instead of: text with no newlineXX Next line How does one insert a newline with preg_replace

Re: [PHP] php accelorator

2010-06-02 Thread Robert Cummings
Lester Caine wrote: Robert Cummings wrote: I use FastCGI and the NTS version of PHP in Windows because that is the configuration recommended by PHP on their website. After experiencing the instability of PHP as relates to the module version in Windows (using eAccelerator at the time), I switched

Re: [PHP] php accelorator

2010-06-02 Thread Lester Caine
Robert Cummings wrote: I use FastCGI and the NTS version of PHP in Windows because that is the configuration recommended by PHP on their website. After experiencing the instability of PHP as relates to the module version in Windows (using eAccelerator at the time), I switched to FastCGI NTS as re

Re: [PHP] Parse info from 1,000 files to file

2010-06-02 Thread Andre Polykanine
Hello Sam, Consider using opendir(), readdir(), fopen(), file_get_contents(), fwrite(). -- With best regards from Ukraine, Andre Skype: Francophile; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952 Twitter: m_elensule - Origin

Re: [PHP] Inserting, storing, outputting dates and selections

2010-06-02 Thread Andre Polykanine
Hi Dave, Let's look and see) 1. You can re-format your date so that it will fit the needed format for MySql: $_POST['EndDate']=date("Y-m-d", $_POST['EndDate']); 2. There's a PHP function called

Re: [PHP] Inserting, storing, outputting dates and selections

2010-06-02 Thread Shreyas
I can try to answer the second one but would wait for the PHP gurus to chime in. Can't you have Choice=1 with selected="true" by default? On the PHP end, you can get the value of whatever was selected. Regards, Shreyas On Thu, Jun 3, 2010 at 1:50 AM, David Mehler wrote: > Hello, > I've got two

[PHP] Inserting, storing, outputting dates and selections

2010-06-02 Thread David Mehler
Hello, I've got two questions which are probably fairly simple, my issue is i'm staring at this so long it's blurring together. I'm working on a form to insert data in to a mysql database. I've got a startdate and and enddate field in the database both of type DATE, i'm needing this as i'm

Re: [PHP] Set up MySQL + Apache 2.2.4 on Win XP.

2010-06-02 Thread Shreyas
Bob, That was a separate installer. It was nothing to do with another software. --Shreyas On Wed, Jun 2, 2010 at 7:19 PM, Bob McConnell wrote: > From: Shreyas > > > What would be the exact installer which will let me have the MySQL > Server > > and the Query browser? I know this is the wrong f

Re: [PHP] php accelorator

2010-06-02 Thread Robert Cummings
Lester Caine wrote: Robert Cummings wrote: Lester Caine wrote: Robert Cummings wrote: Dan Joseph wrote: Hi, Are any of you using any of the php accelorators such as Zend, Ioncube, or any others? Any idea which is the "best"? I am partial to eAccelerator for *nixes. And wincache for Windows.

Re: [PHP] php accelorator

2010-06-02 Thread Lester Caine
Robert Cummings wrote: Lester Caine wrote: Robert Cummings wrote: Dan Joseph wrote: Hi, Are any of you using any of the php accelorators such as Zend, Ioncube, or any others? Any idea which is the "best"? I am partial to eAccelerator for *nixes. And wincache for Windows. eAccelerator works

[PHP] Parse info from 1,000 files to file

2010-06-02 Thread Sam Smith
Can someone briefly point me to the functions I'll need to parse some information from thousands of files in a single directory and then prepare the extracted info into a single file for SQL import? Like file() or readfile() and some regex and writefile?? Thanks -- PHP General Mailing List (htt

Re: [PHP] php accelorator

2010-06-02 Thread Robert Cummings
Lester Caine wrote: Robert Cummings wrote: Dan Joseph wrote: Hi, Are any of you using any of the php accelorators such as Zend, Ioncube, or any others? Any idea which is the "best"? I am partial to eAccelerator for *nixes. And wincache for Windows. eAccelerator works fine for me ... on linu

RE: [PHP] Preg Match Problem

2010-06-02 Thread Alice Wei
> From: peter.e.l...@gmail.com > Date: Wed, 2 Jun 2010 18:17:00 +0200 > Subject: Re: [PHP] Preg Match Problem > To: aj...@alumni.iu.edu > CC: php-general@lists.php.net > > On 2 June 2010 18:14, Alice Wei wrote: > > > > Hi, > > > > I have a code snippet here as in the following: > > > > [CODE] >

Re: [PHP] Preg Match Problem

2010-06-02 Thread Peter Lind
On 2 June 2010 18:14, Alice Wei wrote: > > Hi, > > I have a code snippet here as in the following: > > [CODE] > $keywords = preg_split("/[\s,]+/", $day); > $count = count($keywords); >  if(preg_match("(Mon|Tue|Wed|Thu|Fri)/i", $keywords[$i])) { //line 40 You're lacking the starting delimiter '/'

[PHP] Preg Match Problem

2010-06-02 Thread Alice Wei
Hi, I have a code snippet here as in the following: [CODE] $keywords = preg_split("/[\s,]+/", $day); $count = count($keywords); if(preg_match("(Mon|Tue|Wed|Thu|Fri)/i", $keywords[$i])) { //line 40 $day_query ="start_time.day='12345' AND end_time.day='12345'"; } if(preg_match("Sat

Re: [PHP] regular expression

2010-06-02 Thread Richard Quadling
On 2 June 2010 16:35, Jan G.B. wrote: > 2010/6/1 Peter Lind : >> On 1 June 2010 17:33, Ashley Sheridan wrote: >>> On Tue, 2010-06-01 at 16:31 +0100, Richard Quadling wrote: >>> $re1 = '/^[a-z]++$/i'; $re2 = '/^[a-z ]++$/i'; -- - Richard Quadling "S

Re: [PHP] regular expression

2010-06-02 Thread Jan G.B.
2010/6/1 Peter Lind : > On 1 June 2010 17:33, Ashley Sheridan wrote: >> On Tue, 2010-06-01 at 16:31 +0100, Richard Quadling wrote: >> >>> $re1 = '/^[a-z]++$/i'; >>> $re2 = '/^[a-z ]++$/i'; >>> >>> >>> >>> -- >>> - >>> Richard Quadling >>> "Standing on the shoulders of some very clever giants!"

Re: [PHP] strange problem of mysql_query

2010-06-02 Thread Jim Lucas
I am on the top of the world! Borlange University wrote: hey, i have a sql string like below: select szs_content from szs_gy_ca where szs_shengchanhao='09-s525' and szs_guige='48B32/14-1 1/8"' and szs_tuhao='48B32 1 1/8' the problem is that using mysql_query to run this sql string returns nothin

RE: [PHP] Set up MySQL + Apache 2.2.4 on Win XP.

2010-06-02 Thread Bob McConnell
From: Shreyas > What would be the exact installer which will let me have the MySQL Server > and the Query browser? I know this is the wrong forum but I am just giving > it a shot. When I do Start -> All Programs -> MYSQL, I used to get only > above options. I have lost the installer and the actual

Re: [PHP] php accelorator

2010-06-02 Thread Nilesh Govindarajan
If you're looking out for an accelerator then it means that you have a custom server. Then I suggest, you use mod_fcgid with php-fcgi. mod_fcgid uses the fastcgi protocol and also it serves the caching part (that's the biggest difference between mod_fcgid and mod_fastcgi). -- Nilesh Govindarajan

Re: [PHP] php accelorator

2010-06-02 Thread Dan Joseph
Cool, thanks for the tips, I am going to check them out. -- -Dan Joseph www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo Code "NEWTHINGS" for 10% off initial order http://www.facebook.com/canishosting http://www.facebook.com/originalpoetry

Re: [PHP] strange problem of mysql_query

2010-06-02 Thread Ashley Sheridan
On Wed, 2010-06-02 at 17:36 +0800, I am on the top of the world! Borlange University wrote: > hey, i have a sql string like below: > select szs_content from szs_gy_ca where szs_shengchanhao='09-s525' and > szs_guige='48B32/14-1 1/8"' and szs_tuhao='48B32 1 1/8' > > the problem is that using mysql

[PHP] strange problem of mysql_query

2010-06-02 Thread I am on the top of the world! Borlange University
hey, i have a sql string like below: select szs_content from szs_gy_ca where szs_shengchanhao='09-s525' and szs_guige='48B32/14-1 1/8"' and szs_tuhao='48B32 1 1/8' the problem is that using mysql_query to run this sql string returns nothing,however, i can get one record through mysql query tool.

Re: [PHP] Credit Card encryption

2010-06-02 Thread Ashley Sheridan
On Tue, 2010-06-01 at 19:39 -0700, Michael Shadle wrote: > Is this a joke? > > Better hope your merchant provider isn't lookin... > > > On Jun 1, 2010, at 7:17 PM, Brandon Rampersad > wrote: > > > I store CC # in plain text on my custom ecommerse website script so > > i can > > compare it

Re: [PHP] regular expression

2010-06-02 Thread Richard Quadling
On 2 June 2010 06:12, Peter wrote: > Hi  Tanel, > > 1. only letters > > $str = 'helloworld'; > > if(preg_match("/^[a-zA-Z]*$/",$str)) > echo "only letters"; > else > echo "failed"; > > 2. only letters and spaces > > $str = 'hello world'; > > if(preg_match("/^[a-zA-Z\s]*$/",$str)) > echo "only lett