Jump to content

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
Link to comment
https://forums.phpfreaks.com/topic/12523-new-at-php-need-some-help/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.