<?php // smarty.php$path = $_SERVER['DOCUMENT_ROOT'];require "$path/Smarty/Smarty.class.php";$smarty = new Smarty();$smarty->template_dir = "$path/temp/smarty/templates";$smarty->compile_dir = "$path/temp/smarty/templates_c";$smarty->cache_dir = &quo Read More
posted @ 2013-02-12 22:59
findumars
Views(2389)
Comments(0)
Diggs(0)
<?php // formtest2.phpif (isset($_POST['name'])) $name = $_POST['name'];else $name = "(Not entered)";echo <<<_END<html> <head> <title>Form Test</title> </head> <body> Your name is: $name<br /> <form method="post& Read More
posted @ 2013-02-12 22:50
findumars
Views(1028)
Comments(0)
Diggs(0)
第十章<?php // login.php$db_hostname = 'localhost';$db_database = 'publications';$db_username = 'username';$db_password = 'password';?><?phprequire_once 'login.php';$db_server = mysql_connect($db_hostname, $db_username, $db_password);if (!$db_server) die Read More
posted @ 2013-02-12 22:36
findumars
Views(299)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号