php-windows Digest 30 May 2006 22:11:16 -0000 Issue 2972
Topics (messages 26934 through 26937):
Re: php displays nothing
26934 by: Alf Stockton
26935 by: M. Sokolewicz
26936 by: M. Sokolewicz
Finding a percentage
26937 by: Daniel Anderson
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
Luis Moreira wrote:
>Personally, I do it the hard way :
>Beginning at the very first line of code, a message saying something like
>"just got in", and then lots, and lots and lots and lots of echo messages
>throughout the code, including messages on the procedures and functions,
>saying that you got in, and that you are leaving. May seem strange, but
>these let you know if you have a loop inside a function, for instance.
>
>As soon as you stop seeing the messages, you know the error is between the
>missing message and the last one you got.
>
>Painful, but it works...
>
>
>
Correct me if I am wrong but if php fails, because of the error, to
produce the html page nothing is going to display whether you do echo or
prints or not.
--
Regards,
Alf Stockton www.stockton.co.za
You will be surrounded by luxury.
My email disclaimer is available at www.stockton.co.za/disclaimer.html
--- End Message ---
--- Begin Message ---
Alf Stockton wrote:
Luis Moreira wrote:
Personally, I do it the hard way :
Beginning at the very first line of code, a message saying something like
"just got in", and then lots, and lots and lots and lots of echo messages
throughout the code, including messages on the procedures and functions,
saying that you got in, and that you are leaving. May seem strange, but
these let you know if you have a loop inside a function, for instance.
As soon as you stop seeing the messages, you know the error is between the
missing message and the last one you got.
Painful, but it works...
Correct me if I am wrong but if php fails, because of the error, to
produce the html page nothing is going to display whether you do echo or
prints or not.
it will parse and execute the script all the way up to the fatal error
(unless you have a parse error, which just means you need to find it
manually without any help), so you'll get all echos, prints, etc. even
if you have an E_FATAL_ERROR.
- tul
--- End Message ---
--- Begin Message ---
Alf Stockton wrote:
Luis Moreira wrote:
Personally, I do it the hard way :
Beginning at the very first line of code, a message saying something like
"just got in", and then lots, and lots and lots and lots of echo messages
throughout the code, including messages on the procedures and functions,
saying that you got in, and that you are leaving. May seem strange, but
these let you know if you have a loop inside a function, for instance.
As soon as you stop seeing the messages, you know the error is between the
missing message and the last one you got.
Painful, but it works...
Correct me if I am wrong but if php fails, because of the error, to
produce the html page nothing is going to display whether you do echo or
prints or not.
it will parse and execute the script all the way up to the fatal error
(unless you have a parse error, which just means you need to find it
manually without any help), so you'll get all echos, prints, etc. even
if you have an E_FATAL_ERROR.
- tul
--- End Message ---
--- Begin Message ---
Hi,
Does anyone know how to find the progress percentage (%) between one number to
the next?
For example:
I have a minimal number of 0
I have a maximum number of 77
I have a current number of 9
Does anyone know how I may find the percentage of this number from the minimal
number, to the maximum number?
EXAMPLE:
The Mininimum Number is 0, the Maximum Number is 50, the Current Number is 25.
This would mean the percentage of this would be 50%. It's that "progress"
output I'm looking to obtaining.
Unfortunately I cannot work with whole multiples of ten (10, 50, 100), I am
limited to erratic number placements.
This is very urgent, please, does anyone know a solution?
Many thanks!
Dan
--- End Message ---