php-general Digest 16 Jul 2008 07:23:32 -0000 Issue 5571

2008-07-16 Thread php-general-digest-help

php-general Digest 16 Jul 2008 07:23:32 - Issue 5571

Topics (messages 276878 through 276901):

Re: Advice on a radar chart
276878 by: Richard Heyes
276880 by: tedd
276881 by: Richard Heyes

Re: Math Weirdness
276879 by: tedd

is there a problem with php script pulling HTML out of database as it writes 
the page??
276882 by: Rod Clay
276883 by: Stut
276884 by: Alex Chamberlain
276885 by: dg
276886 by: Rod Clay
276887 by: dg
276888 by: Rod Clay

Re: Warning:Cannot modify header information - Error
276889 by: Daniel Brown

Changing PHP.ini
276890 by: Adam Gerson
276891 by: bruce
276897 by: Thorsten Suckow-Homberg

Re: is there a problem with php script pulling HTML out of database as it 
writes the page??]
276892 by: Rod Clay

Lookimg for a script
276893 by: Pete Holsberg
276899 by: Daniel Brown

Re: DB search and case sensitive comparison
276894 by: Chris

test
276895 by: Børge Holen

Re: is there a problem with php script pulling HTML out of database as it 
writes the page??]]
276896 by: Rod Clay

Downloading a file
276898 by: Robbert van Andel

Your Event T's
276900 by: Jeff Saxby

How can i get the location of an exit()/die() from within 
register_shutdown_function()?
276901 by: Mathijs van Veluw

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]


--
---BeginMessage---

If you are willing to use googles chart api ..

http://code.google.com/apis/chart/#radar


Nope. It's not something I need to implement, mmore a personal (albeit 
with this lists help) project.


--
Richard Heyes

Employ me:
http://www.phpguru.org/cv
---End Message---
---BeginMessage---

At 8:26 PM +0100 7/15/08, Richard Heyes wrote:

If you are willing to use googles chart api ..

http://code.google.com/apis/chart/#radar


Nope. It's not something I need to implement, mmore a personal 
(albeit with this lists help) project.


--
Richard Heyes


Richard:

What do you want to implement as a radar chart?

Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com
---End Message---
---BeginMessage---

What do you want to implement as a radar chart?


Nothing in particular. Just a generic radar chart for representing data.

--
Richard Heyes

Employ me:
http://www.phpguru.org/cv
---End Message---
---BeginMessage---

At 8:21 PM +0200 7/15/08, Jochem Maas wrote:

Robert Cummings schreef:

On Tue, 2008-07-15 at 12:37 -0400, tedd wrote:

At 12:31 PM -0400 7/15/08, Robert Cummings wrote:

Umm... here it is to unlimited precision: 1Ž4

Cheers,
Rob.

Yeah and here's Ÿ

Like or not, that's all there is to it.


Weird... you're client bastar-dized my beautiful pi symbol.


no it's the worst round error ever. how exactly do you go
from 3.1 to .25 :-P


Well, someone's client took infinity and turned it into an integral.

tdd



--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com
---End Message---
---BeginMessage---
Hello.  Again, I'm fairly new to php so please forgive me if my question 
is a very simple or obvious one.


I've just tried testing for the first time some php code that is pulling 
text out of a database to print it on the webpage.  Some of this text 
includes HTML, specifically in this case an img src=x 
statement.  Much to my surprise, this is not working.  Is there a 
problem with pulling HTML out of a database like this as the page is 
being written? 

There's no problem of course if my php code is writing the HTML to the 
page - in this case, the img src=xx statement works fine and the 
image is displayed.  Why is it a problem when my php script pulls the 
HTML code out of a database and writes it to the page from there??


It would appear that when my php script writes HTML to the page a 
process of some kind is executed to, in this case, get the image and put 
it on the page.  Apparently this same process is NOT executed if the 
HTML is retrieved from a database and simply written to the page from 
there.  Is this correct?  And, if it is, can anyone suggest a 
workaround, another way to get done what I'm trying to do here?


Thanks for any help you can give me.

Rod Clay


---End Message---
---BeginMessage---

On 15 Jul 2008, at 22:36, Rod Clay wrote:
Hello.  Again, I'm fairly new to php so please forgive me if my  
question is a very simple or obvious one.


I've just tried testing for the first time some php code that is  
pulling text out of a database to print it on the webpage.  Some of  
this text includes HTML, specifically in this case an img  
src=x statement.  Much to my surprise, this is not  
working.  Is there a problem 

php-general Digest 16 Jul 2008 19:26:05 -0000 Issue 5572

2008-07-16 Thread php-general-digest-help

php-general Digest 16 Jul 2008 19:26:05 - Issue 5572

Topics (messages 276902 through 276930):

Re: How can i get the location of an exit()/die() from within 
register_shutdown_function()?
276902 by: Chris
276904 by: Mathijs van Veluw
276908 by: Thijs Lensselink
276909 by: tedd
276911 by: Eric Butera
276912 by: Mathijs van Veluw
276913 by: Eric Butera
276914 by: Mathijs van Veluw
276915 by: Mathijs van Veluw
276925 by: tedd
276929 by: Eric Butera
276930 by: tedd

Re: Downloading a file
276903 by: Tom Chubb
276910 by: Robbert van Andel

ÂÅÓÅÄËÉ Ó ÕÎÉËÁÌØÎÙÍ ×ÓÔÒÏÅÎÎÙÍ ÇÒÉÌÅÍ ÄÌÑ ÄÁÞÉ á
276905 by: ïÔ ïïï äÁÞÎÙÊ ÄÏÍ ñ

Re: Changing PHP.ini
276906 by: Jay Blanchard

Re: Byte range support
276907 by: Manuel Vacelet

Re: Freelance PHP development in India
276916 by: Ryan S
276919 by: Manuel Lemos

Re: Math Weirdness
276917 by: Shawn McKenzie
276918 by: Jason Pruim
276920 by: Jay Blanchard
276922 by: Daniel Brown

implementing a website search feature using php
276921 by: Sudhakar
276923 by: Robert Cummings
276926 by: tedd
276927 by: Eric Butera

Copying Multiple Files from One Server to Another Server
276924 by: Wei, Alice J.

Re: is there a problem with php script pulling HTML out of database as it 
writes the page??
276928 by: Daniel Brown

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]


--
---BeginMessage---
Mathijs van Veluw wrote:
 Hello there,
 
 I have an shutdown function to catch fatal-errors etc..
 Now when there is an exit() somewhere i get an empty message from
 get_last_error().
 I want to know the location of this exit() or die().
 
 Is there a way to get the file and line-number from where the exit/die
 originated?

debug_backtrace ?

-- 
Postgresql  php tutorials
http://www.designmagick.com/
---End Message---
---BeginMessage---

Chris wrote:

Mathijs van Veluw wrote:

Hello there,

I have an shutdown function to catch fatal-errors etc..
Now when there is an exit() somewhere i get an empty message from
get_last_error().
I want to know the location of this exit() or die().

Is there a way to get the file and line-number from where the exit/die
originated?


debug_backtrace ?



This won't work from within the register_shutdown_function() function.
This because the scope is cleared, and the debug_backtrace starts from within 
the register_shutdown_function() function.
---End Message---
---BeginMessage---

Quoting Mathijs van Veluw [EMAIL PROTECTED]:


Hello there,

I have an shutdown function to catch fatal-errors etc..
Now when there is an exit() somewhere i get an empty message from
get_last_error().
I want to know the location of this exit() or die().

Is there a way to get the file and line-number from where the exit/die
originated?

Thx in advance.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


I don't think this is possible in PHP. When exit(0); is called. PHP  
execution stops. In the manual there is a small comment about exit  
inside a register_shutdown_function


[snip]
Multiple calls to register_shutdown_function() can be made, and each  
will be called in the same order as they were registered. If you call  
exit() within one registered shutdown function, processing will stop  
completely and no other registered shutdown functions will be called.

[/snip]
---End Message---
---BeginMessage---

At 9:23 AM +0200 7/16/08, Mathijs van Veluw wrote:

Hello there,

I have an shutdown function to catch fatal-errors etc..
Now when there is an exit() somewhere i get an empty message from 
get_last_error().

I want to know the location of this exit() or die().

Is there a way to get the file and line-number from where the 
exit/die originated?


Thx in advance.


Mathijs:

For MySQL failures I use:

$result = mysql_query($query) or die(report($query,__LINE__ ,__FILE__));


function report($query, $line, $file)
{
	echo($query . 'br' .$line . 'br/' . $file . 'br/' . 
mysql_error());

}

Perhaps you can modify that for your use.

Cheers,

tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com
---End Message---
---BeginMessage---
On Wed, Jul 16, 2008 at 3:23 AM, Mathijs van Veluw
[EMAIL PROTECTED] wrote:
 Hello there,

 I have an shutdown function to catch fatal-errors etc..
 Now when there is an exit() somewhere i get an empty message from
 get_last_error().
 I want to know the location of this exit() or die().

 Is there a way to get the file and line-number from where the exit/die
 originated?

 Thx in advance.

The way I handle this is by