By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,949 Members | 1,869 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,949 IT Pros & Developers. It's quick & easy.

$_SERVER['TEMP'] variable missing (PHP 4.3.1)

P: n/a
Bob
Hello all,

I'm attempting to use JpGraph (http://www.aditus.nu/jpgraph/index.php) with
PHP (4.3.1) and Apache (1.3.26) runnning on WindowsXP. However, I receive
the following notice:

Notice: Undefined index: TEMP in
c:\apache\htdocs\cprgssp\php\lib\jpgraph\jpgraph.p hp on line 189

Lines 187-193 of jpgraph.php are:

if (!defined('CACHE_DIR')) {
if (strstr( PHP_OS, 'WIN')) {
DEFINE('CACHE_DIR', $_SERVER['TEMP'] . '/');
} else {
DEFINE('CACHE_DIR','/tmp/jpgraph_cache/');
}
}

So I'm looking for $_SERVER['TEMP'] in the output of phpinfo() and I do not
find it. Here is the output from the set command under Windows:

....
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Sys tem32\Wbem;C:\WINDOWS\syst
em32\nls;C:\WINDOWS\system32\nls\ENGLISH;C:\java\b in;C:\Perl\bin;C:\php;C:\m
ysql\bin;C:\Program Files\SSH Communications Security\SSH Secure Shell;Z:.;
....
TEMP=C:\WINDOWS\Temp
....

'TEMP' is set as a system environment variable. Several other system
environment variables appear in the output of phpinfo() such as
$_SERVER['SystemRoot'] ('C:\WINDOWS') and $_SERVER['PATH'] (which appears
exactly as it appears in the output of the set comand above.)

Any assistance you could offer would be greatly appreciated. Thanks for your
time and attention.

Regards,

Bill Barnett
billDOTbarnettATfuseDOTnet <Make the obvious changes to reply directly.>

[Disclaimer: I believe this to be a PHP configuration issue rather than an
Apache or Windows issue.]
Jul 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Fri, 15 Aug 2003 16:39:13 -0400, "Bob" <bo*@example.com> wrote:
Hello all,

I'm attempting to use JpGraph (http://www.aditus.nu/jpgraph/index.php) with
PHP (4.3.1) and Apache (1.3.26) runnning on WindowsXP. However, I receive
the following notice:

Notice: Undefined index: TEMP in
c:\apache\htdocs\cprgssp\php\lib\jpgraph\jpgraph. php on line 189

Lines 187-193 of jpgraph.php are:

if (!defined('CACHE_DIR')) {
if (strstr( PHP_OS, 'WIN')) {
DEFINE('CACHE_DIR', $_SERVER['TEMP'] . '/');
} else {
DEFINE('CACHE_DIR','/tmp/jpgraph_cache/');
}
}

So I'm looking for $_SERVER['TEMP'] in the output of phpinfo() and I do not
find it. Here is the output from the set command under Windows:


http://www.aditus.nu/bugtraq/bug.php...gid=129&pos=27

--
Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Jul 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.