Re: [PHP] acerca de extensiones SQL Server

2007-07-14 Thread Paul Scott
On Sat, 2007-07-14 at 19:57 +0200, M. Sokolewicz wrote: > That's assuming he wanted specifically MySQL. The OP's post did not > actually state _which_ extension he wants to use, nor to which RDBMS he > wants to connect (at all). To the OP: SQL is simply a language, what you > want is a database

Re: [PHP] Unlink file older then 7 days

2007-07-14 Thread Ray
On Saturday 14 July 2007 9:16:06 pm [EMAIL PROTECTED] wrote: > I have a directory with .txt and .txt.asc files. > > What I want to do is.. > > Check the age of all files ending in .txt.asc > > and if the file *.txt.asc is older then 7 days > > delete thatfile.txt.asc and also thatfile.txt > look a

[PHP] Unlink file older then 7 days

2007-07-14 Thread chris
I have a directory with .txt and .txt.asc files. What I want to do is.. Check the age of all files ending in .txt.asc and if the file *.txt.asc is older then 7 days delete thatfile.txt.asc and also thatfile.txt Thanks Chris -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] acerca de extensiones SQL Server

2007-07-14 Thread Stut
Robert Degen wrote: I think you should install at least php5-mysql and if you're using PEAR's db connection you'll need php-db too. "SQL Server" usually means "Microsoft SQL Server". There is plenty of documentation on the PHP website regarding getting the MSSQL extension installed.

[PHP] I am lost

2007-07-14 Thread Grant
Previously I had PHP on my older computer using IIS 5.1 it worked fine. But I'm on my new computer using IIS 7 and features like include or completely normal scripts that use to work no longer work. I have try to see if it's the web server and some of the times for the exception of the include

Re: [PHP] preg_replace() help

2007-07-14 Thread Richard Heyes
What am I doing wrong? Using regular expressions when you don't need to: $txt = str_replace(' ', ' ', substr($txt, strpos($txt, --))); Might be a few typos in there. And I may have mixed up the args. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and

[PHP] Re: preg_replace() help

2007-07-14 Thread Al
What do you want out? $txt = 'A promise is a debt. -- Irish Proverb'; => [1] $txt = 'A promise is a debt. --Irish Proverb'; OR [2] $txt = 'A promise is a debt. --IrishProverb'; for [1] $txt= preg_replace("%--\x20+%", '--', $txt); //The \x20+ is one or more spaces Rick Pasotto wrote: I hav

[PHP] Re: Multiple Session Buffers

2007-07-14 Thread Al
You guys confirmed my understanding, it can't be done in a reasonable manner. I'm adding a simple CAPTCHA to an existing page and don't want to bother tracing the code that modifies the session buffer. It's obvious that the code is resetting the buffer, so it messes up my saving of the securit

Re: [PHP] acerca de extensiones SQL Server

2007-07-14 Thread M. Sokolewicz
That's assuming he wanted specifically MySQL. The OP's post did not actually state _which_ extension he wants to use, nor to which RDBMS he wants to connect (at all). To the OP: SQL is simply a language, what you want is a database-system which works with that language. There are a lot of good

[PHP] Re: Multiple Session Buffers

2007-07-14 Thread Tony Marston
The only way to do that is for each session to use a different session name other than the default PHPSESSID as a session_id is tied to a particular session_name, but then you would have to include a method of propagating this new session name between pages in the same session, either through th

Re: [PHP] acerca de extensiones SQL Server

2007-07-14 Thread Robert Degen
Hi, I think you should install at least php5-mysql and if you're using PEAR's db connection you'll need php-db too. Robert On Sa, Jul 14, 2007 at 10:39:40 -0400, Lic. Eduardo R. Hern?ndez Osorio wrote: > > > Hi: > > I need use the SQL extension on PHP to connect to any SQL Server d

Re: [PHP] Alter an Array Key

2007-07-14 Thread Robert Cummings
On Sat, 2007-07-14 at 14:09 +0100, Stut wrote: > > > 3. I'm not sure Roberts solution would work. I think it might result > > in an endless loop, and timeout your script. > > I always worry about adding or removing elements while iterating through > an array. I generally build up an array of key

Re: [PHP] Alter an Array Key

2007-07-14 Thread Robert Cummings
On Sat, 2007-07-14 at 01:57 -0400, Craige Leeder wrote: > > 3. I'm not sure Roberts solution would work. I think it might result > in an endless loop, and timeout your script. It works fine. Cheers, Rob. -- ... SwarmBuy.com - http://www.swa

Re: [PHP] Array Question

2007-07-14 Thread Robert Cummings
On Sat, 2007-07-14 at 00:55 -0500, Richard Lynch wrote: > On Fri, July 13, 2007 2:15 am, Richard Lynch wrote: > > On Thu, July 12, 2007 8:29 am, Robert Cummings wrote: > >> Hmmm, I thought using an explicit cast was very self explanatory -- > >> especially when the name of the cast is "array". Mayb

RE: [PHP] Time formatting issues

2007-07-14 Thread Melissa W. Dickens
Thank you, Jay, that is interesting. I am looking for the am / pm denomination, which I do not see in mktime() I am essentially trying to have the TIME type which is a 24 hour clock display instead as a 12 hour clock with am and pm. I AM A TOTAL NEWBIE, (2ND DAY ever) so if I misunderstood the

[PHP] acerca de extensiones SQL Server

2007-07-14 Thread Lic. Eduardo R. Hernández Osorio
Hi: I need use the SQL extension on PHP to connect to any SQL Server database. How I configure PHP on Linux to use that extension? I use debian with apache2 and PHP5 installed on it. Waiting for your help, Richard Eduardo Ricardo Hernández Osorio Téc

RE: [PHP] Time formatting issues

2007-07-14 Thread Jay Blanchard
[snip] I have a DB with a field type DATE (called TideDATE) and a field type TIME (one of which is called highFIRST) How can I format the time fields from displaying 00:00:00 (a 24 hour clock) to HH:MM am/pm format? [/snip] Have a look at http://www.php.net/mktime -- PHP General Mailing Lis

[PHP] Time formatting issues

2007-07-14 Thread Melissa
I have a DB with a field type DATE (called TideDATE) and a field type TIME (one of which is called highFIRST) How can I format the time fields from displaying 00:00:00 (a 24 hour clock) to HH:MM am/pm format? The DATE function has all kinds of neat formatters, but I do not find any for TI

Re: [PHP] Alter an Array Key

2007-07-14 Thread Stut
Craige Leeder wrote: 1. Don't modify $_POST Why not? 2. You controll the name of the array keys with the form. Why is there any need to change them form PHP's side of things? That's an assumption. A reasonable one in most cases, but not necessarily the case. 3. I'm not sure Roberts solu

Re: [PHP] Re: Announcing Xaja, a PHP Reverse Ajax framework

2007-07-14 Thread David Négrier
Indeed, Xaja relies on the keeping of an open connexion between the server and the browser. In fact, it uses, the Comet approach (which is a pain to implement in Javascript because the IE code and the Firefox code are completely different). (more information here: http://www.thecodingmachine.com/cm