如何使用PHP获取网络上的文件
<!– generateindex.php –>
<?php
//设置我们将要使用的文件
$srcurl = “http://localhost/index.php”;
$tempfilename = “tempindex.html”;
$targetfilename = “index.html”;
?> 继续阅读 »
<!– generateindex.php –>
<?php
//设置我们将要使用的文件
$srcurl = “http://localhost/index.php”;
$tempfilename = “tempindex.html”;
$targetfilename = “index.html”;
?> 继续阅读 »
1:连接数据库:
<?php
$conn = mysql_connect(“localhost”,”root”,”www.xunjobs.com”) or die(“数据库连接失败”.mysql_error());
mysql_select_db(“db_pursey”,$conn) or die(“数据库访问失败”.mysql_error());
mysql_query(“set names gb2312″);
?>
2:插入数据: 继续阅读 »
近期评论