I can't seem to figure out how to write to a file deleting the old content.
Sorry I can't find which function/functions to RTFM
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks,
Its just one of those things I miss sometimes...
Jason Perkins [EMAIL PROTECTED] wrote in message
news:r01050400-1023-A17E17A81BC511D7B4D4000393D5F61C@[192.168.1.3]...
on 12/30/02 at 6:02 PM, Noodle Snacks [EMAIL PROTECTED] wrote:
I can't seem to figure out how to write to a file
Is there a built in php function for mysql that I can use to time the last
query?
or do I have to take the microtime before and after then substract the first
from the last?
I want to time how long my queries take
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Can I do that on the fly?
Rasmus Lerdorf [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Why not just get the query times from the mysql general query log?
On Tue, 24 Dec 2002, Noodle Snacks wrote:
Is there a built in php function for mysql that I
Cool,
Just thought it might be a config / code issue or something.
Jason Wong [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Tuesday 17 December 2002 10:19, Noodle Snacks wrote:
PHP is telling me that I need GD 2.0 or later. This is on a newly
i
PHP is telling me that I need GD 2.0 or later. This is on a newly installed
mandrake 9 distro. Could this be a configuration issue? or do I need to
figure out how to update GD?
I get these errors:
Warning: imagecreatetruecolor(): requires GD 2.0 or later in
Via $_SERVER['HTTP_ACCEPT_LANGUAGE'] you can get the default language of a
browser (usually).
Does anyone know of a list that has the conversion from say: en-au to
Australia or en-us to U.S.A?
--
JJ Harrison
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Is it easy enough to change a formated IP addy (eg 192.168.0.1) to the 32bit
unsigned int that computers use?
the reason I ask is because it is alot more efficient space wise in a db to
be storing a 32bit number rather that a char or varchar field.
Or am I going to run into trouble because all
I think this group should have a regularly posted faq that outlines common
problems such as register globals.
I would be glad to help write it etc if anyone else would like an input.
I wrote this in response to the millions of register global questions and
the message with the subject Be Nice to
o:[EMAIL PROTECTED]]
Sent: Friday, November 22, 2002 6:53 AM
To: Noodle Snacks
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] FAQ a good idea?
there is a bunch of info everywhere on the web. One should have better
means to find these, but at the end, that is what others do here -
answer question
]
Noodle Snacks [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I want to get the unix timestamps of the first and last days of this
week...
Currently I have this:
echo 'Words for the week from '.date('jS F Y',strtotime(last sunday)).'
to '.date('jS F Y',s
It it better that you use a subject that is related to the problem eg.
Email Script not working after server upgrade
--
JJ Harrison
[EMAIL PROTECTED]
`Yan Grossman [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Dear Friends,
I run some PHP scripts to deal
I want to get the unix timestamps of the first and last days of this week...
Currently I have this:
echo 'Words for the week from '.date('jS F Y',strtotime(last sunday)).'
to '.date('jS F Y',strtotime (next saturday)).'.br';
on saturday this showed the 10th to 23rd... Is there a good way to do
This appears to be a register globals problem
replace switch($select) with switch($_GET['select']).
For information on register globals and why it has been turned off in later
releases see this pagee:
http://www.php.net/manual/en/security.registerglobals.php
There is nothing syntactically
Cameron Cooke [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
Hi,
I need a function to get a string in between two other strings. So you
would
give the function the string to search and then you pass the first string
and last string, and the function will return the string in
What is a good service to process credit card numbers for an E-Commerce
site?
To be specific I mean an easy interface with a PHP based system (maybe even
sample code) eg works well with curl... and second any personal
recommendations...
--
JJ Harrison
[EMAIL PROTECTED]
--
PHP General
I am just finish off a site. An of course the css rendered really badly with
netscape... Fixed that with the:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Accidently hit the send shortcut...
I am just finish off a site. An of course the css rendered really badly with
netscape... Fixed that with the:
style type='text/css' @import url(style_sheets/?=$skin[0][0]?); /style
trick. One or two of the images looks really bad with the simpler css. I am
what would be a simple regular expression for a href=anythinghere?
for future reference are there any good references for them?
--
JJ Harrison
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks.
Ns_andy [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
perl: preg_match
'/a\s*href/s*=/s*[\']?[^\']+[\']?/i'
or eregi
'a[ ]*href[ ]*=[ ]*[\']?[^\']+[\']?'
--
Regards,
Noodle Snacks [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTE
Shawn McKenzie [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Probably a question for the php dev team, but here it goes. I want to
display an external page in an iframe and have the iframe auto sized to
fit
the content without having scroll bars. I've tried
Jason Wong [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Thursday 10 October 2002 18:37, Jack wrote:
Dear all
I'm trying to make a script which will show the month before current
month!
Is there anyway i can do this?
Example :
Current
Daniel Masson [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]
...
No way man !!
hai ,
I want to create an animated line in php from (x,y) to
(x1,y1).will
php support animation.if so how do i go about in doing this.how do i
draw a char so that it
I was using a redirect using $_SERVER['PHP_SELF'] from the previous page (a
login for a site) and it didn't include this from the url: ?aid=12.
shouldn't it? It caused a SQL error. (which I have included a catch for so
the error will be friendly)
instead of the variable to be:
Erwin [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Noodle Snacks wrote:
[snipped]
It is supposed to be like that...the PHP_SELF points to this file, and the
filename has no arguments, thus the PHP_SELF variable don't have them
either.
You w
Erwin [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Noodle Snacks wrote:
Erwin [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Noodle Snacks wrote:
[snipped]
It is supposed to be like that...the
26 matches
Mail list logo