frescos wholesale jewelry High score: PHP program realizes pseudo static static

frescos wholesale jewelry

2 thoughts on “frescos wholesale jewelry High score: PHP program realizes pseudo static static”

  1. wholesale teen jewelry Look at the following example:

    :

    /soft.php/1,100,8630

    Copy code code as follows:

    u003C? PHP
    // Use the server variable to obtain path_info information. This example is/1,100,8630, which is the part of the execution of the script name
    if (@$ PATH_INFO = $ _ server ["path_info" ] {
    // regular matching parameters
    if (preg_match ("// (d ), (d ), (d )/si, $ path_info, $ arr_path)) {
    $ gid = intval ($ arr_path [1]); // Get value 1
    $ sign = intval ($ arr_path [2]); // Get value 100
    $ softid = intval ($ arr_path [[$ arr_path [[$ arr_path [ 3]); // Get the value 8630
    } else Die ("PATH: error!"); DIE (PATH: Nothing!);
    // That's that simple. ~)

    Methods 2 Similar:

    PHP support files directly/, and still access source files, so it is easy to achieve PHP pseudo -static
    key Words: pHP, pHP pseudo -static, pHP pseudo -static, pHP realizes pseudo -static
    u003C? PHP
    echo "to return array parameters"; n $ url = str_replace ("/", "", $ url);
    $ temp_str = strplace ("", "", ", $ url); Necho Change_url_canshu ($ _ server [query_string]); // This is the parameter or obtained parameter
    ?>
    n The code above is stored at index.php
    and then runs. PHP/1 will obtain parameters 1
    The run index.php/1-2-3 will get parameters 1-2-3
    and then query the data through the parameters obtained. This is PHP pseudo-static static static static Implementation method

  2. wholesale jewelry display cases This effect can only be implemented using URL REWRITE.

    "/Text.php?id=89 is changed to Text/89". It cannot be used to use pHP program to achieve pseudo -static. Of course Static page "89".

    "/Text.php?id=89 is changed to text/? 89", which can be achieved. You change the text.php to index.php, and then analyze the parameter "89" to get "ID" Essence

    These are theoretical things,

Shopping Cart