phpºÍoracleµÄһЩÁ¬½ÓÎÊÌâ
2¸öÒ³Ã棺
conn.php
PHP code:
<?php
$con = oci_connect("finaltest","finaltestpw","(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.19.101.72)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = ENGDB01)
))
");
if (!$con)
{
die('Could not connect: ' . oci_error());
}
?>
login.php
PHP code:
<?php
session_start();
//session_unregister('bs_Account');
//session_unregister('bs_Role');
echo 'Login...';
if ($_POST['username'] == "")
{
echo "<Script language='JavaScript'> alert('Please enter username');</Script>";
echo "<script>location.href='index.php'</script>";
exit;
}
include('conn.php');
$sql = "SELECT * from `user` WHERE `Account`='".strtolower($_POST['username'])."' LIMIT 1";
$result = oci_parse($con,$sql);
oci_execute($result);
if (oci_num_rows($result) == 0)
{
echo "<Script language='JavaScript'> alert('Username error!');</Script>";
echo "<script>location.href
Ïà¹ØÎÊ´ð£º
ÎÒÓÃPHPÀ©Õ¹Cʱ£¬ÓõÄÊÇÔ´ÂëextĿ¼ÏµÄ./ext_skel
×îºó±àÒë×ÜÊDz»ÄÜÉú³ÉÀ©Õ¹Ä£¿éµÄ.so¶¯Ì¬¿â£¬ÎÒÓõİ汾ÊÇ5.3.0£¬
ÕâÊÇÔõô»ØÊ£¬¸ßÊÖ½â´ðÏÂ
²»ÄÜÉú³ÉʱÓÐɶÌáʾÐÅÏ¢£¿
ÔËÐÐÁË/ext_skel --extname=Ä ......
<?php
/*
¹¦ÄÜ£ºPHPα¾²Ì¬»¯Ò³ÃæµÄʵÏÖ
¾ßÌåÓ÷¨:
ÀýÈçÁ´½ÓΪ:test.php/year/2006/action/_add.html
mod_rewrite();
$yearn= $_GET["year"];//½á¹ûΪ'2006'
......
ÇëÎÊһϸ÷λ´óϺ£¬ÎÒÓÃphp×ö¸öÍøÒ³ÓÎÏ·£¬µ±È»ÊÇ×îÀ¬»øµÄÄÇÖÖhtmlµÄ£¬
ÏÖÔÚÎÒÏë°ÑËùÓÐÍæ¼ÒºÍ¹ÖÎnpcµÄÊý¾Ý´¢´æ£¬
µ±È»£¬Êý¾Ý¿âÖе±È»ÓУ¬µ«ÊÇÎÒÓÖ²»Ïë¹ý¶àµÄÈ¥²éѯÊý¾Ý¿â£¬
±ÈÈçÕ½¶·ÏµÍ³£¬¿Ï¶¨ÒªÏȳõʼ»¯Ë«·½Êý ......
¿ª·¢PHPÓÃÓÃʲôÈí¼þ£¿
¶à½éÉܼ¸ÖÖ¡£
ÎÒ¶¼²»ÏþµÃ¡£¹þ¹þ¡£ºÃ¾ÍûÓÐÉÏcsdn£¬¿´¼ûÄã·¢ÁËÌù¡£×î½üÔõôÑù£¿£¿£¿
Îı¾±à¼Æ÷¶¼¿ÉÒÔµÄ
±±¾©Î弫ÐÇÐÅϢϵͳ¼¼ÊõÓÐÏÞ¹«Ë¾ÏÖÕÐƸ5ÃûPHP³ÌÐòÔ±¡£
ְλҪÇó£º ......
ÈçÌâ
ÐÂÍøµÄ~
²»ÖªµÀÄļҺá£ÎÒÓÃÏã¸ÛÖ÷»ú»¹ÐÐ
ÒýÓÃ
ÐÂÍøµÄ~
Õâ¸öºÃÂð£¿ÓÃÆðÀ´ºÜÂý£¬ÎÒÏÖÔÚÓõİÛÍøµÄ£¬http://www.hb666.net/
DreamHost
ÃÀ¹ú£¬ÊÀ½çµÚÒ»Á÷µÄÊÕ·Ñ¿Õ¼ä
¹úÍâ¿Õ¼äµÄ»° ......