Heim >Backend-Entwicklung >PHP-Tutorial >在本站内可以直接用URI跳转吗

在本站内可以直接用URI跳转吗

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 20:21:561205Durchsuche

在PHP中可以直接使用URI进行在本站中各个文件夹中进行跳转吗?还是非得使用URL呢?

回复内容:

在PHP中可以直接使用URI进行在本站中各个文件夹中进行跳转吗?还是非得使用URL呢?

可以使用URI跳转,
eg:

<code>//跳转到相同目录3.php
header("Location:3.php");
//跳转到上一目录1219文件夹1.php
header("Location:../1219/1.php");</code>

在本站内可以直接用URI跳转吗

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn