Jump to content

include url problem ! help


why not

Recommended Posts


i have two problem with url in my code . Example :

Code:

 

<?PHP if (empty($_GET

)) $_GET

 = home; include "$svr_rootself/$_GET

.php"; ?>

 

with this method my url is www.example.com/?page=example&ex=2&exe=3 . ( example=example.php in server root and worked 100% ) now when change manually url to ?page=example.php i have two error .

 

Warning: include(htdocs/site/example.php.php) [function.include]: failed to open stream: No such file or directory in htdocs\site\index.php on line 49

Warning: include() [function.include]: Failed opening 'htdocs/site/detail.php.php' for inclusion (include_path='.;\php\pear\') in site\index.php on line 49

how to fix this error ? regards

Link to comment
https://forums.phpfreaks.com/topic/116167-include-url-problem-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.