Hi,
This may exist, but I haven't been able to find it, and I think it would
be REALLY helpful and convenient.
The idea is this:
When you write a script and call a function:
PHP would automatically look for a file named
"previously_uncalled_function" in your /include/functions/ directory.
Th
Hi,
You can use the backtick operator to delete whatever you have
permissions to delete:
$directory = "path/*.*";
`rm -rf $directory`;
They aren't quotes, they are backticks (to the left of the 1 key on most
keyboards). It is very useful for any command line stuff you have
permissions to do.
B
Hi,
I was playing around with error handlers, and tried this:
Which worked just fine. A little too good, in fact.
I got over 1,200 emails in a matter of minutes (high traffic site).
I was finally able to get it to stop by re-declaring the function
without the mail() call, but how do I restor
Hi,
If you have a URL like:
http://www.whatever.com/page.php?[EMAIL PROTECTED]
Then in your script $email will already be set to "[EMAIL PROTECTED]".
This depends on register_globals being on, if I remember correctly, and
you'll want to be aware of the order for variable assignment (for POST,
GE
Hi,
I've just spent the night upgrading my RedHat 6.2 server to:
Apache1.3.27
PHP4.3.0
MySQL3.23.54a
Mod_SSL2.8.12
OpenSSL0.9.7
ZendOptimizer2.1.0
Now I'm getting (inconsistently):
PHP Fatal error: Unsupported operand types in
/web/domain/html/includes/item.inc
Hi,
Friday night I upgrade my server with the following:
Apache 1.3.27
PHP 4.3.0
MySQL 3.23.54a
Mod_SSL 2.8.12
OpenSSL 0.9.7
ZendOptimizer 2.1.0
Immediately I started having really weird problems that proved almost
impossible to debug.
I finally narrowed it down to a few lines of code that get
Which, for the list, can be number_format(), among other things.
Brian
> -Original Message-
> From: cj [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 21, 2003 5:18 PM
> To: Php-List (E-mail)
> Subject: RE: [PHP] numbers
>
>
> I just found the answer
>
> -Original Message-
Given the information below this works:
I put it between pipes to confirm the absence of spaces...
It may or may not be the best way, but it is one way.
Brian
> -Original Message-
> From: Kris [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 21, 2003 5:02 PM
> To: Jason k Larson
>
; -Original Message-
> From: Kris [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 21, 2003 6:29 PM
> To: Brian T. Allen; 'Jason k Larson'
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Re: fscanf
>
>
> Actually found a little problem
>
> I forgot to men
I think it will work if you return true, and just modify the global
variable (not try to output it).
Then output it (or capture it to begin with ($total_count =
OneHundred();) after the function is called.
You could also pass the variable, rather than making it global
(OneHundred("0") initially,
Just create it online in such a way that you can spider your whole site and
burn it to CD. Granted you will lose the searchability of the DB, but the
contents would all be there, and could easily be indexed so that you could
still find what you are looking for.
Create one page that has a link to
SELECT SUBSTRING(COL3,0,100) AS COL3 FROM TABLE
That will return the first 100 characters of your 10 pages of text...
If you want characters 200 through 299 do:
SELECT SUBSTRING(COL3,200,100) AS COL3 FROM TABLE
Untested, but I am 99.9% sure that will meet your needs.
Brian
>
> hmm...I don`
Hi,
OK, I'm totally stumped by this. This should be the simplest math
imaginable (addition and subtraction), but PHP is coming up with the
wrong answer!
I've checked on 3 different machines (all linux) running both PHP 4 and
PHP 5.
Here is the code to duplicate the problem:
-
Thomas Goyne wrote:
On Sun, 31 Oct 2004 21:52:32 -0700, Brian T. Allen
<[EMAIL PROTECTED]> wrote:
Hi,
OK, I'm totally stumped by this. This should be the simplest math
imaginable (addition and subtraction), but PHP is coming up with the
wrong answer!
[snip]
Is this legitimate
Chris Shiflett wrote:
--- Jason Wong <[EMAIL PROTECTED]> wrote:
Most computer languages handling floating point calculations
just as poorly. If accuracy is important use the BCMath
functions.
Or use Fortran and double precision. :-)
Still, testing a floating point number as a boolean is one
Chris Shiflett wrote:
--- "Brian T. Allen" <[EMAIL PROTECTED]> wrote:
Well, in fairness, it's one of the worst ideas you've ever heard
because you know of this limitation.
Of course. That wasn't a dig at you or anything - just a comment. You're
free
16 matches
Mail list logo