PHP url参数有关问题
PHP url参数问题
zhidao.baidu.com/new?fix=&ct=17
这个new是什么,为什么会是这样,怎么得到它,(还是访问的index页吗)详解一下
如何让别人访问本地文件时跳到404你知道的
例如:www.mydomain.com/abc.txt跳到error.html(404你知道的)
谢谢
------解决方案--------------------
new 可以是自定义的任何一个东西,可以是参数也可以是其他的,用$_SERVER['REQUEST_URI']分解字符串就可以得到。如果你自己编写网址解析脚本,并且开启了rewrite功能,就非常容易这是怎么来,怎么用的了
------解决方案--------------------
new?后面直接跟?,一般是使用了框架技术,比如thinkphp,zend framework;或者在apache中配置了url规则,隐去了扩展名。
abc.txt直接跳转到404,是因为该文件在服务器上不存在,之所以跳出“你知道的”,是因为自定义了404.html页面,这个页面一般也在aphche中指定。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Guide to Table Border in HTML. Here we discuss multiple ways for defining table-border with examples of the Table Border in HTML.

This is a guide to Nested Table in HTML. Here we discuss how to create a table within the table along with the respective examples.

Guide to HTML margin-left. Here we discuss a brief overview on HTML margin-left and its Examples along with its Code Implementation.

Guide to HTML Table Layout. Here we discuss the Values of HTML Table Layout along with the examples and outputs n detail.

Guide to the HTML Ordered List. Here we also discuss introduction of HTML Ordered list and types along with their example respectively

Guide to HTML Input Placeholder. Here we discuss the Examples of HTML Input Placeholder along with the codes and outputs.

Guide to Moving Text in HTML. Here we discuss an introduction, how marquee tag work with syntax and examples to implement.

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an
