Jump to content


Photo

New at PHP , need some help


  • Please log in to reply
No replies to this topic

#1 Gurzi

Gurzi
  • Members
  • PipPip
  • Member
  • 23 posts

Posted 21 June 2006 - 09:28 AM

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 ' ' and didn't work..

the other question...
---------------------------------
file: config.obj.php |
--------------------------------

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 6

need help =D thnks




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users