|
Le 14/09/2011 17:53, Ben Walton a écrit : Thanks for yor reply.Excerpts from Claude Arnold's message of Wed Sep 14 11:06:29 -0400 2011:Hi Claude, 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) and the second a Sol10/sparc. I found two commonc.inc.php, the two in the phpmyadmin directory: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 13Is lib/common.inc.php on that system? What is the include_path from the system that works? # find / -name common.inc.php -print /opt/csw/share/www/phpmyadmin/libraries/common.inc.php /opt/csw/share/www/phpmyadmin/setup/lib/common.inc.php Your suggestion in the second post gives the same result: # cd /opt/csw/share/www/phpmyadmin/ # php ./setup/index.php 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 and the include_path (in php.ini) is: php -i phpinfo() PHP Version => 5.3.8 System => SunOS hostname Generic_144488-17 sun4v Build Date => Sep 4 2011 05:59:56 ... include_path => .:/opt/csw/php5/include => .:/opt/csw/php5/include I also do this test: 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: # pwd /opt/csw/share/www/test # ls -l total 5 -rw-r--r-- 1 root root 72 Sep 15 08:08 info.php drwxr-xr-x 2 root root 3 Sep 15 08:05 libraries # ls -l libraries/ total 2 -rw-r--r-- 1 root root 21 Sep 15 08:07 foo.php # info.php is like this: <?php require './libraries/foo.php'; echo "\n this is foo file \n" ?> and foo.php looks like this: <?php echo 'I can read foo.php'; ?> I run "php info.php" and there is no problem to go into libraries/foo.php: # php info.php this is foo file I can read foo.php # It's very strange it's sounds like that in phpmyadmin the dot for relative path is not understand. Thanks, Claude Thnks for your reply. SoThanks -Ben -- Ben Walton Systems Programmer - CHASS University of Toronto C:416.407.5610 | W:416.978.4302 _______________________________________________ users mailing list [email protected] https://lists.opencsw.org/mailman/listinfo/users -- 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 |
_______________________________________________ users mailing list [email protected] https://lists.opencsw.org/mailman/listinfo/users
