Phpnow php probe environment detection code, phpnow Probe
<? Php/* http://phpnow.org YinzCN_at_Gmail.com */error_reporting (E_ALL); define ('timezone ', + 8.0); function _ GET ($ n) {return isset ($ _ GET [$ n])? $ _ GET [$ n]: NULL;} function _ SERVER ($ n) {return isset ($ _ SERVER [$ n])? $ _ SERVER [$ n]: '[undefine]';} if (_ GET ('act ') = 'phpinfo') {if (function_exists ('phpinfo ')) phpinfo (); else echo 'phpinfo () has been disabled. '; exit;} $ Info = array (); $ Info ['php _ ini_file'] = function_exists ('php _ ini_loaded_file ')? Php_ini_loaded_file (): '[undefine]'; if (_ GET ('act ') = 'getip') {$ I = _ SERVER ('server _ name '). '| '. _ SERVER ('remote _ ADDR '). '| '. _ SERVER ('server _ soft '). '| '. (function_exists ('mysql _ close ')? Mysql_get_client_info (): ''). '|'. _ SERVER ('document _ root'); $ c = @ file_get_contents ('HTTP: // phpnow.org/myip.php? '. Base64_encode ($ I); if (preg_match ('/^ \ d ++ \. \ d + \. \ d + \. \ d + $/', $ c) = 1) echo $ c; else echo 'false'; exit;} function colorhost () {$ c = array ('# 87cefa', '# ffa500', '# ff6347', '#9acd32', '#32cd32', '# ee82ee '); $ a = str_split (_ SERVER ('server _ name'); $ k = $ l = 0; foreach ($ a as & $ d) {while ($ k = $ l) $ k = array_rand ($ c); $ d = '<B style = "color :'. $ c [$ k]. '; "> '. $ d. '</B>'; $ l = $ k;} return implode ('', $) ;} Function get_ea_info ($ name) {$ ea_info = eaccelerator_info (); return $ ea_info [$ name];} function get_gd_info ($ name) {$ gd_info = gd_info (); return $ gd_info [$ name];} define ('yes', '<span style = "color: #008000; font-weight: bold; "> Yes </span> '); define ('no',' <span style =" color: # ff0000; font-weight: bold; "> No </span> ');?> <! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Strict // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Set up a php environment with phpnow, from where to open the Database List
Enter 127.0.0.1/phpmyadmin in the browser
Enter the root password and the mysql password you set during installation to log on to the management database.
If the phpmyadmin folder is deleted or you have not downloaded one from phpmyadmin and put it in the htdocs directory
After the PHP environment is built, where are the written code?
The htdocs folder in the root directory of phpnow is the root directory of your web page (that is, your site. When you enter "localhost" or "http: // your IP address" in the address bar of the browser, the browser enters the htdocs folder. Hosts file. When you enter "localhost" or "http: // your IP address in the browser's address bar for the first time, the browser will view the page index.html. You need to test whether the database is OK on this page. Then you can change the name of index.html in the htdocsfolder or move it to another place. Then, you can put your php file in this folder. Enter "localhost", "http: // container", and "index. php" in the address bar of your browser. The browser reads the HTML file first and then the index.html file first. You can also create another folder in the htdocs folder. For example, if your file is a chat room, create a folder named chat. Then you put your php file in the chat folder. Enter "localhost/chat" or "http: // your IP address/chat" in the browser and your php homepage will be displayed. You can also use the address bar to not browse the home page. For example, you have a php file named top. php. You can enter "localhost/chat/top. php" or "http: // your IP address/chat" in the address bar. Php ", that's OK. Should you make it clear ?? Too long.