php-general Digest 14 Jul 2007 17:57:44 - Issue 4903
Topics (messages 258843 through 258867):
Re: preg_replace() help
258843 by: Richard Lynch
Re: Alter an Array Key
258844 by: Richard Lynch
258855 by: Craige Leeder
258857 by: Stut
258863 by: Robert
On Fri, July 13, 2007 9:48 am, Daniel Brown wrote:
Fork!
Good luck!
And, really, nothing is to stop you from running PHP4 for as long as
you want...
I mean, if they haven't found a critical security issue by 8/8/2008,
they probably never will find it...
--
Some people have a gift link
You can't even be guaranteed to GET the client's IP address in their
request, much less assume that it's going to be the same when you want
to push data out to it!!!
So any Xaja-like technology has to rely on keeping the HTTP connection
open, really...
Does seem pretty cool, though probably not
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:
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
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
[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
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
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
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. Maybe I'm
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 -
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 keys to
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
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
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
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
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 have
What am I doing wrong?
Using regular expressions when you don't need to:
$txt = str_replace(' ', 'nbsp;', 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
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
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.
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
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 at these
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
23 matches
Mail list logo