How does PHP implement such a requirement, about the URL of the

Source: Internet
Author: User
For example, there are several columns

PHP Programming Basics php daniel php Great God

list/phpjichu.html list/phpdaniu.html list/phpdashen.html

Corresponding links

How to control the jump link by letter display

How to correspond to the data that the link and program calls

Super rookie asking for help


Reply to discussion (solution)

Ask for help

Array (' Phpjichu ' =>array (' name ' = ' PHP programming basics ', ' url ' = = ' list/phpjichu.html '), ' Phpdaniu ' =>array (' name ' = > ' php Daniel ', ' url ' = ' list/phpdaniu.html '), ' Phpdashen ' =>array (' name ' = ' php great god ', ' url ' = ' + ' list/ Phpdashen.html '))

Write an array like this, you should understand.

It means I can't read your description.

It means I can't read your description.

Daniel, or so.
I don't want to use Urlwrite to do pseudo static pseudo-static is to turn those. PHP and parameters into friendly links, such as. html with no parameters for that kind of link

To control the URL specification of a PHP program directly

How to do PHP novice do not know whether that Daniel upstairs can give an example to run

Array (' Phpjichu ' =>array (' name ' = ' PHP programming basics ', ' url ' = = ' list/phpjichu.html '), ' Phpdaniu ' =>array (' name ' = > ' php Daniel ', ' url ' = ' list/phpdaniu.html '), ' Phpdashen ' =>array (' name ' = ' php great god ', ' url ' = ' + ' list/ Phpdashen.html '))

Write an array like this, you should understand.

Well, the correspondence is clear.

I don't want to use Urlwrite to do pseudo static pseudo-static is to turn those. PHP and parameters into friendly links, such as. html with no parameters for that kind of link

To control the URL specification of a PHP program directly
Can you run for an example?

No URL rewrite is not perfect for list/phpxxxxx.html such pseudo-static.

You simply do not pseudo-static, and want to achieve this effect, you can only generate the corresponding file, so that the file can be parsed with PHP, and then in the file according to the filename $_server[' script_name ' to get the parameters you want.


Array (' Phpjichu ' =>array (' name ' = ' PHP programming basics ', ' url ' = = ' list/phpjichu.html '), ' Phpdaniu ' =>array (' name ' = > ' php Daniel ', ' url ' = ' list/phpdaniu.html '), ' Phpdashen ' =>array (' name ' = ' php great god ', ' url ' = ' + ' list/ Phpdashen.html '))

Write an array like this, you should understand.

Well, the correspondence is clear.

I don't want to use Urlwrite to do pseudo static pseudo-static is to turn those. PHP and parameters into friendly links, such as. html with no parameters for that kind of link

To control the URL specification of a PHP program directly
Can you run for an example?
Do not want to use pseudo-static, then you only have to open support HTML to run PHP program, but this is not safe

There is the generation of static pages, but this will not be able to execute PHP code, but can borrow JS do bridge to Ajax to execute PHP

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.