Results 1 to 10 of 10
Thread: PHP - url
Hybrid View
-
22nd January 2015 17:10 #1
PHP - url
index.php. literature literature.php. .
<li><a href="<?php $_SERVER['DOCUMENT_ROOT'].'index.php'; ?>">INdex</a></li>
<li><a href="<?php $_SERVER['DOCUMENT_ROOT'].'literature/literature.php'; ?>">Second</a>
. index.php index.php. literature.php literature.php. 2- footer.php index.php.
-
22nd January 2015 17:19 #2Mire-x
Join Date: Apr:2005
Location: Sofia
Posts: 763
"echo" , .

<?php echo $_SERVER...; ?>
( PHP 5.4.0 short_open_tag ):
<?= $_SERVER...; ?>(10b) || !(10b)
-
22nd January 2015 17:21 #3Registered User
Join Date: Dec:2003
Posts: 2,817
,
Gigabyte DS3P, E4400@9x333, 2x2Gb Super T@1000Mhz, Gigabyte GTX460OC 768Mb
-
22nd January 2015 17:21 #4
<?php echo $_SERVER...; ?> C:/wamp/www/ !
.
-
22nd January 2015 18:05 #5Registered User
Join Date: Aug:2009
Location: ,
Posts: 191
, URL...
-
22nd January 2015 18:15 #6Registered User
Join Date: Nov:2012
Location:
Posts: 92
index.php
<li><a href="./">INdex</a></li>
<li><a href="literature/literature.php">Second</a></li>
literature.php
<li><a href="../index.php">INdex</a></li>
<li><a href="./literature">Second</a></li>
$_SERVER['DOCUMENT_ROOT'] -
P.S. html
-
22nd January 2015 18:22 #7
-
27th January 2015 22:41 #8?Code:
<li><a href="/index.php">INdex</a></li> <li><a href="/literature/literature.php">Second</a></li>
-
11th February 2015 18:26 #9Registered User
Join Date: Feb:2015
Location: Varna
Posts: 1
root-relative : http://www.motive.co.nz/glossary/linking.php
$_SERVER['DOCUMENT_ROOT'] base http://www.w3schools.com/tags/tag_base.asp
-
11th February 2015 20:29 #10




Reply With Quote

Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in