Here's some more info from Peter Kwan in the ChartDirector Forums:

[quoted]
You mention the code "include("img/test.php");" works as expected. Then
you include your chart code "(<img src="/img/chart.php" />". However,
the <img> tag should have no effect at all on the server. (The <img>
tag is not PHP code. It is HTML code. It is executed on the browser
side and should have no effect on the server.)

In your case, the browser will receive the <img> tag, then it will
access the "/img/chart.php" using an independent HTTP connection
(completely separated from the one in your "include("img/test.php");"
script).

I assume what you mean is that $_SESSION does not exist in the
"/img/chart.php", which is executed in a completely different HTTP
connection not related to "include("img/test.php");".

I am not familiar with CAKE, but is it possible that it only supplies
$_SESSION to some HTTP connections? For example, is it possible the
CAKE thinks the <IMG> tag HTTP connection does not need session
variables?
[end quote]

Since my last post, I have displayed the contents of $GLOBALS in the
page that includes the chart as well as the chart itself.  Sure enough,
there are several more elements in $GLOBALS on the including file as
opposed to the included file ($_SESSION and $_ENV are two of these).

I've also moved my chart director libraries within the webroot folder
of cake, so nothing strange should be happening there.

Does cake actually strip some $GLOBAL data from files accessed via the
<img> tag?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to