Schalk wrote:
Greetings Everyone,
What in the piece of code below might be causing the headers for from
and reply-to to be set incorrectly?
'
$headers = "MIME-Version: 1.0\r\n".
"Content-type: text/html; charset=iso-8859-1\r\n".
"From: ".$email."\r\n".
"Reply-to: ".$email."\r\n".
"Date: ".dat
I have googled around a bit, but not really found anything useful...
Which is more efficient? A case switch or a $$method style method?
An example:
switch($action) {
case 'edit':
//do some stuff
...
return "edit_tpl.php";
case 'whatever':
//blah
..
At 10:55 AM -0400 7/25/06, tedd wrote:
At 12:46 AM -0400 7/25/06, Michael B Allen wrote:
Ok, I've been tinkering a little. This isn't "simple" but it's not a
lot of code either.
Granted, and no offense, it isn't simple the way you've attempted it.
You simply have three columns with these cond
Well, we figured out. Jochem, thanks for your input... a few minutes
too late! =D We discovered that it *was* timing out at 30 seconds,
which is how it was set in the php.ini file. We upped that and now it
works.
THANKS!!
~Philip
On Jul 25, 2006, at 3:34 PM, Jochem Maas wrote:
Philip Th
Greetings Everyone,
What in the piece of code below might be causing the headers for from
and reply-to to be set incorrectly?
'
$headers = "MIME-Version: 1.0\r\n".
"Content-type: text/html; charset=iso-8859-1\r\n".
"From: ".$email."\r\n".
"Reply-to: ".$email."\r\n".
"Date: ".date("r")."\r\n";
Philip Thompson wrote:
> Hi all.
>
> I have a list of people in a database who live in particular rooms. Next
lucky them, back when I was a kid you were lucky if you had a cardboard box,
and a wet one at that ok let's not go down that road ;-)
> semester, they may live somewhere else, so I n
>
> On Tue, July 25, 2006 3:15 pm, Kevin Waterson said:
> > This one time, at band camp, Larry Garfield <[EMAIL PROTECTED]>
> > wrote:
> >
> >> The correct answer is (b). (PHP 6 won't even have short
> tags, so get
> >> used to
> >> not having them.)
> >
> > ummm, I think it was decided to stay
On Tue, July 25, 2006 3:15 pm, Kevin Waterson said:
> This one time, at band camp, Larry Garfield <[EMAIL PROTECTED]>
> wrote:
>
>> The correct answer is (b). (PHP 6 won't even have short tags, so get
>> used to
>> not having them.)
>
> ummm, I think it was decided to stay in php6. I could be mild
This one time, at band camp, Larry Garfield <[EMAIL PROTECTED]> wrote:
> The correct answer is (b). (PHP 6 won't even have short tags, so get used to
> not having them.)
ummm, I think it was decided to stay in php6. I could be mildly/wildly mistaken
Kevin
--
"Democracy is two wolves and a
Hi all.
I have a list of people in a database who live in particular rooms.
Next semester, they may live somewhere else, so I need to update my
database. (I know the data becomes stale, but not that often.) Here's
what I'm doing to update:
1. Pull list of IDs from database A - store in ar
James Nunnerley wrote:
>> [snip]
>> When the script tries to delete a file, we always check (using
>> file_exists) to see whether the file exists before it's deleted.
>>
>> The check comes back true, but the unlink then fails, saying no file or
>> directory there!
>> [/snip]
>>
>> Could you please
> [snip]
> When the script tries to delete a file, we always check (using
> file_exists) to see whether the file exists before it's deleted.
>
> The check comes back true, but the unlink then fails, saying no file or
> directory there!
> [/snip]
>
> Could you please post the code you are using to c
You could try prefixing the unlink function call with an @:
if (file_exists($fn)) {
@unlink($fn);
}
The @ should suppress any errors.
jon
James Nunnerley wrote:
We've created a file manager which allows users to access their web space on
a server. It's working brilliantly, except that it
We've created a file manager which allows users to access their web space on
a server. It's working brilliantly, except that it would seem there are
some caching issues, either by the system cache or the web server cache that
are causing us a headache.
When the script tries to delete a file, we a
So you want a blacklist that bans IPs for some amount of time, and
that's capable of sharing the blacklist between multiple HTTP servers...
Seems to me that you need some sort of central or shared database...I'm
not quite sure why SQL wouldn't be an option, but it seems to me that it
should be
At 12:46 AM -0400 7/25/06, Michael B Allen wrote:
Ok, I've been tinkering a little. This isn't "simple" but it's not a
lot of code either.
Granted, and no offense, it isn't simple the way you've attempted it.
You simply have three columns with these conditions:
1. Is gray if odd;
2. Is a time
>Hi,
> We r using the paypal secure transaction.if u want i will send u the code
> and the tutorials
Hi Suresh Kumar,
I'm sorry I don't reply email directly. I've been a kind of busy lately...
If you want to send the code and tutorial of pay pal secure transaction, I will
love to.
And thank you
weetat escreveu:
Hi all ,
I have data which have value in bytes for example ,
$bytes = 33554432;
How to convert this to MB ?
THanks
Please see:
http://www.unc.edu/~rowlett/units/index.html
http://www.unc.edu/~rowlett/units/dictM.html
-
zerof
--
PHP General Mailing List (h
At 11:01 PM -0500 7/24/06, Larry Garfield wrote:
Disable short tags.
If short tags are enabled, the PHP parser sees the and freaks out.
You can:
Bingo !
That works : )
Apparently the "better" minds are on this list.
Thanks very much.
tedd
--
---
http://sperling.com http://ancientst
Larry Garfield wrote:
> Disable short tags.
>
> If short tags are enabled, the PHP parser sees the mode. It then starts parsing the "xml" and sees that it's not proper PHP,
> and freaks out.
>
> You can:
>
> a) Use PHP to print out the XML declaration as a string:
> '; ?>
>
> b) Disable sh
> markw@mohawksoft.com wrote:
>> [snip]
>>> seems the perceived problem is being caused by something else?
>>>
>>
>> Sorry, I have to respectfully disagree.
>
> ok :-).
Men of integrity must be able to disgree peacefully. :-)
>
>>
>> I was converting all indexes to string indexes, and simply usin
markw@mohawksoft.com wrote:
> [snip]
>> seems the perceived problem is being caused by something else?
>>
>
> Sorry, I have to respectfully disagree.
ok :-).
>
> I was converting all indexes to string indexes, and simply using
> "zend_hash_update" to re-constitute the objects and they simply di
weetat wrote:
> Hi Jay ,
>
>I am not in the javascript group.
'the javascript group' ??
> document.forms['listfrm'].submit;
document.forms['listfrm'].submit();
^^--- i.e. actually call the method
--
PHP General Mailing List (http://www.php.net/)
To unsub
Andrei wrote:
> So what u'r trying to say is that we should use KiB and not KB for
> kilobytes? That's funny!
I know a lot of people who do just that.
Regards,
Austin.
signature.asc
Description: OpenPGP digital signature
So what u'r trying to say is that we should use KiB and not KB for
kilobytes? That's funny!
Andrei
Andrew Brampton wrote:
> Divide by 1024 and you get KiB
> Divide by 1000 and you get KB
>
> Read: http://physics.nist.gov/cuu/Units/binary.html
>
> Andrew
>
> - Original Mess
weetat wrote:
> Hi all ,
>
> I have data which have value in bytes for example ,
>
>$bytes = 33554432;
>
> How to convert this to MB ?
how to read the manual thanks.
http://php.net/filesize
no doubt you won't bother to read any of the user notes and therefore
miss *at least*
weetat wrote:
> Hi all ,
>
> I have data which have value in bytes for example ,
>
>$bytes = 33554432;
>
> How to convert this to MB ?
>
> THanks
>
> - weetat (PHP Novice)
>
1GB = 1024 * 1MB = 1024 * (1024 * 1KB) = 1024 * (1024 * (1024 * 1byte))
--
PHP General Mailing List (http://
Divide by 1024 and you get KiB
Divide by 1000 and you get KB
Read: http://physics.nist.gov/cuu/Units/binary.html
Andrew
- Original Message -
From: "André Medeiros" <[EMAIL PROTECTED]>
To: "weetat" <[EMAIL PROTECTED]>
Cc:
Sent: Tuesday, July 25, 2006 12:41 PM
Subject: Re: [PHP] conver
divide by 1024, and you'll get KB
divide again by 1024 and you'll get MB
same for GB, TB, etc
On 7/25/06, weetat <[EMAIL PROTECTED]> wrote:
Hi all ,
I have data which have value in bytes for example ,
$bytes = 33554432;
How to convert this to MB ?
THanks
- weetat (PHP Novice)
Hi all ,
I have data which have value in bytes for example ,
$bytes = 33554432;
How to convert this to MB ?
THanks
- weetat (PHP Novice)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I'd like to set a captcha on my web server(s).
The code works quite fine, but I'd like to blacklist (for an amount of
time) the ips that failed
with the captcha x times.
The web server works with an SQL server, but I cannot ask the page to
check for each IP
with a request to the databas
Nils Holland wrote:
My guess is that PHP only sees / compares the strings up to a
certain position. Is this possible? And if so, is there any way
around this, so that my whole string is seen?
Greetings and thanks in advance,
Nils
Maybe it's interpreting something as a number somewhere. Did
32 matches
Mail list logo