Gurzi Posted June 21, 2006 Share Posted June 21, 2006 Hy all.. [img src=\"style_emoticons/[#EMO_DIR#]/huh.gif\" style=\"vertical-align:middle\" emoid=\":huh:\" border=\"0\" alt=\"huh.gif\" /] Yesterday i bought one book called PHP 4 " A beginner's Guide from Osborne Editor , author > Bill McCarty.. my first question is, anyone knows that book ? is good ? the book talks about php 4... i know that nowadays php is running on version 5 (i think..) ..Can i have any problem learning php 4 ? At this moment i'm trying to change company web host but the server is running on Linux and the other server is running with Windows Microsoft XP (xampp) [img src=\"style_emoticons/[#EMO_DIR#]/unsure.gif\" style=\"vertical-align:middle\" emoid=\":unsure:\" border=\"0\" alt=\"unsure.gif\" /] Has you just thought the directories are different and i don't know anything of PHP.I Just programmed some C and i recognize some things..require "$_SERVER[DOCUMENT_ROOT]/Az-Auto/lib/config.obj.php";require "$_SERVER[DOCUMENT_ROOT]/Az-Auto/lib/globalserver.obj.php";require "$_SERVER[DOCUMENT_ROOT]/Az-Auto/include/topo.inc.php";require "$_SERVER[DOCUMENT_ROOT]/include/lang.$lingua.php";i tryed the _SERVER['DOCUMENT_ROOT'] with the [b]' ' [/b] and didn't work..the other question...---------------------------------[b]file: config.obj.php[/b] |-------------------------------- Class config { var $db; var $login; var $senha; var $odbc; var $driver; var $servidor; Function config () { $this->db="azauto_main"; $this->login="azauto"; $this->senha="azautosite"; $this->odbc= ""; $this->driver= ""; $this->servidor="localhost"; } }the reply from the host is :>Fatal error: Cannot redeclare class config in c:\programas\xampp\htdocs\Az-Auto\lib\config.obj.php on line 6need help =D thnks Quote Link to comment https://forums.phpfreaks.com/topic/12523-new-at-php-need-some-help/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.