Zoom
March 15th, 2001, 03:50
well...
i have script:
<HTML>
<HEAD>
</HEAD>
<BODY>
<?php
function foo ($in) {
if ($in != "") {$out=$in;}
else {$out="main";} return $out;}?>
<center><font color=gold size=+3>HEADER</font></center><br>
<?php include (foo($QUERY_STRING)); ?>
<br><center><font color=gold size=+3>FOOTER</font></center>
</BODY>
</HTML>
i input in browser index.php?123.txt and 123.txt will be included into my page... if i input index.php?123/234.txt - 234 will be too...
But how have i edit this script to make it do so:
if i input 123.txt it finds file in folder qwerty
index.php?123.txt --> qwerty/123.txt
Sorry for me ugly english......
HELP PLEASE!!!!!!!
[Edited by Zoom on 03-15-2001 at 04:54 AM]
i have script:
<HTML>
<HEAD>
</HEAD>
<BODY>
<?php
function foo ($in) {
if ($in != "") {$out=$in;}
else {$out="main";} return $out;}?>
<center><font color=gold size=+3>HEADER</font></center><br>
<?php include (foo($QUERY_STRING)); ?>
<br><center><font color=gold size=+3>FOOTER</font></center>
</BODY>
</HTML>
i input in browser index.php?123.txt and 123.txt will be included into my page... if i input index.php?123/234.txt - 234 will be too...
But how have i edit this script to make it do so:
if i input 123.txt it finds file in folder qwerty
index.php?123.txt --> qwerty/123.txt
Sorry for me ugly english......
HELP PLEASE!!!!!!!
[Edited by Zoom on 03-15-2001 at 04:54 AM]