Please ask the php directory to directly read the title of the static web page in the current direct

Updated on technology 2024-02-09
9 answers
  1. Anonymous users2024-02-05

    If your html name is as regular as you say, you can write it smartly.

    if ($handle = opendir('a'))num=0;

    while (false !== ($file = readdir($handle)))

    num++;

    closedir($handle);

    Calculate how many files there are in directory a, that is, how many htmlfor($i=1,$<=$num,$i++) Write the regular here, I'm not very good Khan I'm embarrassed, you can initialize an empty array in front of the for loop, and put the value of each match into that array, and finally this big array is the value you want to get.

  2. Anonymous users2024-02-04

    Read the contents of the file and extract it between.

  3. Anonymous users2024-02-03

    1.How do I call an HTML file randomly?

    Iterate through the folder and take out the file name.

    2.How do I get a title?

    Use the same method as reading a text file to find the contents between tags.

  4. Anonymous users2024-02-02

    If you want to open the file in the zip archive directly, you can't do it, you need to unzip the zip file first.

    pclzip is a very powerful php class for compressing and decompressing zip files, pclzip library can compress and decompress zip files in zip format (winzip, pkzip); And it can process such files, including generating compressed files, listing the contents of compressed files, and decompressing files.

  5. Anonymous users2024-02-01

    This is not possible with PHP.

    The reason is that PHP is a server language, and what is done is to convert ** into HTML and transmit it to the client computer over the network.

    You can write client software to other methods, such as C.

  6. Anonymous users2024-01-31

    Don't change the path so troublesomely, just change the name of the root directory to a different one, so that entering admin again does not work, only enter the file name you changed can enter.

  7. Anonymous users2024-01-30

    Your ** has been hacked This php file is outgoing with the fsockopen function of php.

    That is, this program is used by hackers to DDOS others.

  8. Anonymous users2024-01-29

    See if there are any of the following documents.

    I really can't find it.,Open the index file with a notepad.,See what files are included in the first few lines.,Look at them all.。

  9. Anonymous users2024-01-28

    You should be prompted when you install the program.

Related questions
12 answers2024-02-09

Variables can be included in double quotes, where $str reads look at the sea"$str";It will recognize that $str is a variable and explain the contents of the variable to get it"look at the sea", and single quotes'$str'It is to output the string $str, depending on the situation. Sometimes you need to make up a SQL statement with some variables, and double quotation marks are useful. >>>More

15 answers2024-02-09

You put $mysql=mysql query("select * from user where name='$name'");Change to $mysql=mysql query("select * from user where name='”.$name."'");Then print it in the update file to see if there is a value. >>>More

11 answers2024-02-09

In fact, there are a lot of integrated installation packages that can put everything in place for you at once, but it is not recommended to do that. >>>More

8 answers2024-02-09

Error file, basically useless, so don't open it.

10 answers2024-02-09

Write by yourself You can create different tables in the database.