RE: [PEAR] Re: PEAR_Info - undefined function getconfig()?
| From: | Ben Lake | Date: | Mon, 12 May 2003 14:03:07 +0000 |
| Subject: | RE: [PEAR] Re: PEAR_Info - undefined function getconfig()? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-5328@lists.php.net to get a copy of this message | ||
I did your suggestion and I get pages full of this:
Warning: file_exists() [function.file-exists]: SAFE MODE Restriction in
effect. The script whose uid/gid is 500/500 is not allowed to access /
owned by uid/gid 0/0 in /usr/local/lib/php/PEAR/Config.php on line 413
Warning: file_exists() [function.file-exists]: SAFE MODE Restriction in
effect. The script whose uid/gid is 500/500 is not allowed to access
/usr/local/etc owned by uid/gid 0/0 in
/usr/local/lib/php/PEAR/Config.php on line 416
Warning: file_exists() [function.file-exists]: SAFE MODE Restriction in
effect. The script whose uid/gid is 500/500 is not allowed to access
/usr/local/lib/php/.filemap owned by uid/gid 0/0 in
/usr/local/lib/php/PEAR/Registry.php on line 101
Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The
script whose uid/gid is 500/500 is not allowed to access /usr owned by
uid/gid 0/0 in /usr/local/lib/php/System.php on line 236
Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The
script whose uid/gid is 500/500 is not allowed to access /usr/local
owned by uid/gid 0/0 in /usr/local/lib/php/System.php on line 236
Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The
script whose uid/gid is 500/500 is not allowed to access /usr/local/lib
owned by uid/gid 0/0 in /usr/local/lib/php/System.php on line 236
Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The
script whose uid/gid is 500/500 is not allowed to access
/usr/local/lib/php owned by uid/gid 0/0 in /usr/local/lib/php/System.php
on line 236
Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The
script whose uid/gid is 500/500 is not allowed to access
/usr/local/lib/php/.registry owned by uid/gid 0/0 in
/usr/local/lib/php/System.php on line 236
Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The
script whose uid/gid is 500/500 is not allowed to access /usr owned by
uid/gid 0/0 in /usr/local/lib/php/System.php on line 236
Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The
script whose uid/gid is 500/500 is not allowed to access /usr/local
owned by uid/gid 0/0 in /usr/local/lib/php/System.php on line 236
Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The
script whose uid/gid is 500/500 is not allowed to access /usr/local/lib
owned by uid/gid 0/0 in /usr/local/lib/php/System.php on line 236
Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The
script whose uid/gid is 500/500 is not allowed to access
/usr/local/lib/php owned by uid/gid 0/0 in /usr/local/lib/php/System.php
on line 236
Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The
script whose uid/gid is 500/500 is not allowed to access
/usr/local/lib/php/.registry owned by uid/gid 0/0 in
/usr/local/lib/php/System.php on line 236
Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The
script whose uid/gid is 500/500 is not allowed to access /usr owned by
uid/gid 0/0 in /usr/local/lib/php/System.php on line 236
With the first PEAR info block and some more of ^^^^ that ^^^^.
Why is this thing doing a mkdir at all? Especially in /usr?
-----Original Message-----
From: alain petignat [mailto:pear@sequenz.ch]
Sent: Monday, May 12, 2003 8:45 AM
To: pear-general@lists.php.net
Subject: [PEAR] Re: PEAR_Info - undefined function getconfig()?
Hi
i tried a while and now it is working with the following code:
<?php
include_once("PEAR/Info.php"); // or path absolute
$info = new PEAR_Info;
print $info->info;
?>
This may not be the proper way (?), but it generates the wanted page :)
hth
alain
---------- your code:
"My Code", you say this as if I had to do something. Heh.
require_once("PEAR/Info.php"); PEAR_Info::PEAR_Info("/path/to/pear");
PEAR_Info::show();
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php