mistero mistero mistero almeno per me.
A casa funziona tutto... in ufficio no!!!
A casa ho php 4.qualcosa... in ufficio php 5
cmq nella mia mappaCliente.php ho:
Codice PHP:
<?
include_once 'include/config.php';
include_once 'include/function.php';
intestazione();
?>
<body onLoad="loadCli()">
<form name="frmCliente" method="post" action="" >
<table width="100%" border="0" >
<tr>
ecc...
il file config.php è:
Codice PHP:
<?php
$_CONFIG['host'] = "localhost";
$_CONFIG['user'] = "root";
$_CONFIG['pass'] = "";
$_CONFIG['dbname'] = "gestione";
$conn = mysql_connect($_CONFIG['host'], $_CONFIG['user'], $_CONFIG['pass']) or die('Impossibile stabilire una connessione');
mysql_select_db($_CONFIG['dbname']);
?>
il file function.php :
Codice PHP:
<?
function intestazione() {
?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" lang="it" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Gestionale Incas Viaggi</title>
<script type="text/javascript" src="./js/script.js"></script>
<link rel="stylesheet" type="text/css" href="./css/GestStyle.css">
<style type="text/css">
.BSotto {
border-bottom: 1px solid Black;
}
</style>
</head>
<?
}
function fine() {
?>
</body>
</html>
<?
}
?>
mi sembra proprio che non prenda le include, perchè appena apro la pagina mappaCliente.php ricevo un errore javascript con scritto "Previsto oggetto" e se incollo direttamente l'html funziona tutto.
Il percorso è corretto...
ho provato con solo include, poi require... require_once
non so più che pensare.
Php funziona xè se no non vedrei nemmeno PhpAdmin
Grazie