roonnyy Posted February 18, 2009 Share Posted February 18, 2009 Hi guys is it possible to include php script with this path: menu.php?id=6 I've got CMS (joomla) inside one page I need to include php script with this path so I made file called script.php inside this file I want to put php include and load content from other location and then insert this content into joomla. I don't want to use hypertex link. Just put in page content like shows menu.php?id=6 when is it open in browser. I'll appreciate any help Link to comment https://forums.phpfreaks.com/topic/145768-solved-include-page-content/ Share on other sites More sharing options...
medaswho Posted February 18, 2009 Share Posted February 18, 2009 your question is hard to read? are you saying you just want to use variables from another page in the current script? if so you just need an include statement and use the variables as if they were defined in the current script. again, i am not intirely sure what you are asking. Link to comment https://forums.phpfreaks.com/topic/145768-solved-include-page-content/#findComment-765328 Share on other sites More sharing options...
milesap Posted February 18, 2009 Share Posted February 18, 2009 PHP will include the entire file menu.php, not just a section of code within that file based on the superglobal "id". That said, a case statement could be used to only run a certain portion of code within that file. Link to comment https://forums.phpfreaks.com/topic/145768-solved-include-page-content/#findComment-765331 Share on other sites More sharing options...
roonnyy Posted February 18, 2009 Author Share Posted February 18, 2009 it's pity for me but thank you very much for your answer Link to comment https://forums.phpfreaks.com/topic/145768-solved-include-page-content/#findComment-765343 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.