Jump to content

Archived

This topic is now archived and is closed to further replies.

Gurzi

New at PHP , need some help

Recommended Posts

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 6

need help =D thnks

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.