<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
<br>
<br>
<br>
Le 14/09/2011 17:53, Ben Walton a écrit :
<blockquote
cite="mid:1316015541-sup-4056@pinkfloyd.chass.utoronto.ca"
type="cite">
<pre wrap="">Excerpts from Claude Arnold's message of Wed Sep 14 11:06:29 -0400 2011:
Hi Claude,
</pre>
</blockquote>
Thanks for yor reply. <br>
First of all I forgot to say that the first server is Sol10/x86
(where all works fine with php 5.2.9 and phpmyadmin 3.4.1) <br>
and the second a Sol10/sparc.<br>
<blockquote
cite="mid:1316015541-sup-4056@pinkfloyd.chass.utoronto.ca"
type="cite">
<pre wrap=""></pre>
<blockquote type="cite">
<pre wrap="">PHP Fatal error: require(): Failed opening required
'./lib/common.inc.php' (include_path='.:/opt/csw/php5/include') in
/opt/csw/share/www/phpmyadmin/setup/index.php on line 13
</pre>
</blockquote>
<pre wrap="">
Is lib/common.inc.php on that system? What is the include_path from
the system that works?
</pre>
</blockquote>
I found two commonc.inc.php, the two in the phpmyadmin directory:<br>
<br>
# find / -name common.inc.php -print<br>
/opt/csw/share/www/phpmyadmin/libraries/common.inc.php<br>
/opt/csw/share/www/phpmyadmin/setup/lib/common.inc.php<br>
<br>
Your suggestion in the second post gives the same result:<br>
<br>
# cd /opt/csw/share/www/phpmyadmin/<br>
# php ./setup/index.php<br>
PHP Warning: require(./lib/common.inc.php): failed to open stream:
No such file or directory in
/opt/csw/share/www/phpmyadmin/setup/index.php <br>
<br>
and the include_path (in php.ini) is: <br>
<br>
php -i<br>
phpinfo()<br>
PHP Version => 5.3.8<br>
<br>
System => SunOS hostname Generic_144488-17 sun4v<br>
Build Date => Sep 4 2011 05:59:56<br>
...<br>
<b>include_path => .:/opt/csw/php5/include =>
.:/opt/csw/php5/include</b><br>
<br>
<br>
I also do this test:<br>
in /opt/csw/share/www/ I create a directory test in which I put a
file named info.php and a directory named libraries in which I put
foo.php:<br>
<br>
<br>
# pwd<br>
/opt/csw/share/www/test<br>
# ls -l<br>
total 5<br>
-rw-r--r-- 1 root root 72 Sep 15 08:08 info.php<br>
drwxr-xr-x 2 root root 3 Sep 15 08:05 libraries<br>
# ls -l libraries/<br>
total 2<br>
-rw-r--r-- 1 root root 21 Sep 15 08:07 foo.php<br>
#<br>
<br>
info.php is like this:<br>
<?php<br>
require './libraries/foo.php'; <br>
echo "\n this is foo file \n"<br>
?><br>
<br>
and foo.php looks like this:<br>
<br>
<?php<br>
echo 'I can read foo.php';<br>
?><br>
<br>
I run "php info.php" and there is no problem to go into
libraries/foo.php:<br>
<br>
<br>
# php info.php <br>
this is foo file<br>
I can read foo.php <br>
# <br>
<br>
It's very strange it's sounds like that in phpmyadmin the dot for
relative path is not understand.<br>
<br>
Thanks,<br>
<br>
Claude<br>
<br>
<br>
<blockquote
cite="mid:1316015541-sup-4056@pinkfloyd.chass.utoronto.ca"
type="cite">
<pre wrap="">Thanks
-Ben
--
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302
_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.opencsw.org">users@lists.opencsw.org</a>
<a class="moz-txt-link-freetext" href="https://lists.opencsw.org/mailman/listinfo/users">https://lists.opencsw.org/mailman/listinfo/users</a>
</pre>
</blockquote>
Thnks for your reply. So<br>
<br>
<pre class="moz-signature" cols="72">--
Claude Arnold
Responsable Informatique
IM2NP - UMR 6242 CNRS
Universités P.Cézanne, Provence & SudToulon-Var
Site Polytech'Marseille
C/O IMT - Technopôle de Chateau-Gombert
13451 Marseille Cédex 20
Tél : 04 91 05 47 25
Fax : 04 91 05 47 82
Site SAINT-JEROME
Faculté des Sciences et Techniques
Avenue Escadrille Normandie Niemen
Case 151
13397 Marseille Cedex 20
Tél: 04.91.28.81.20
</pre>
</body>
</html>