Home > Backend Development > PHP Tutorial > PHP auxiliary attack_[Learning materials collection] PHP connection to SQLServer2005 method_PHP tutorial

PHP auxiliary attack_[Learning materials collection] PHP connection to SQLServer2005 method_PHP tutorial

WBOY
Release: 2016-07-13 17:17:16
Original
753 people have browsed it

1.

php.in changed mssql.secure_connection = Off to mssql.secure_connection = On.

Connect 2005 ntwdblib.dll (2000.80.194.0)

X:AppServphp5ext,

service

<?<span php
 </span><span $conn</span>=mssql_connect('59.173.xxxxxx.xxxxxx,1468','sa','xxxxxx'<span ); 
   mssql_select_db(</span>'HR',<span $conn</span><span ); 
 
 </span><span $Query</span>="select * from Class"<span ; 
 </span><span $Result</span>=mssql_query(<span $Query</span><span ); 

 </span><span $Number</span>=mssql_num_rows(<span $Result</span><span ); 
 </span><span for</span>(<span $i</span>=0;<span $i</span><<span $Number</span>;<span $i</span>++<span ) 
   { 
 </span><span $Row</span>=mssql_fetch_array(<span $Result</span><span ); 
 </span><span echo</span>(<span $Row</span>[1<span ]); 
 </span><span echo</span>("<br/>"<span ); 
   }   
</span>?>
Copy after login

Source: http://blog.csdn.net/gumanren/article/details/4673674

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/626592.htmlTechArticle1. Change mssql.secure_connection = Off to mssql.secure_connection = On in php.in. Connect 2005's ntwdblib.dll (2000.80.194.0)
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template