Ciao a tutti,
premetto che ho iniziato stamattina ad usare php ... installando
Apache 1.3.33
PHP 5.0.3
x configurare il server ho aggiunto queste 3 righe
LoadModule php5_module c:/.../php5apache.dll
AddModule mod_php5.c
AddType application/x-httpd-php .php
In pratica nn restituisce niente... why??Codice PHP:
<?
class pippo
{
private $name;
public function _contruct($s)
{
$this->name= $s;
}
public function get()
{
return $this->name;
}
}
?>
<html>
<head>
<Title> HOLA</title>
</head>
<body>
<?
$usr = new pippo("pippo");
print("test: " . $usr->get());
?>
</body>
</html>
Devo configurare qualcosa??
Ciao e grazie