Just wondering if anyone can give me a push in the right direction, I have a sort of bbcode system but as well as generic codes it has what i call system codes.
These codes are stored in a database and relate to a page, so if a system code is found it looks in the data base for the code and find the page it needs to call to get information out of. For example if the system finds %FanName% it knows that this is a system code and the database tells it should go to "/backend/FanName.php", FanName.php calls a class function to return the name from Facebook.
But thats the problem I'm not to sure how without using javascript, to tell it to the system during the execution of php code to look at another page and return the value of that page, can anyone help?
I don't want to use ajax or javascript as all of this is happening inside a class, and hopefully I wont need to reload the page as information at this point has already been generated that is needed later on in the execution schedule.
Question
TrickierStinky
Hi guys,
Just wondering if anyone can give me a push in the right direction, I have a sort of bbcode system but as well as generic codes it has what i call system codes.
These codes are stored in a database and relate to a page, so if a system code is found it looks in the data base for the code and find the page it needs to call to get information out of. For example if the system finds %FanName% it knows that this is a system code and the database tells it should go to "/backend/FanName.php", FanName.php calls a class function to return the name from Facebook.
But thats the problem I'm not to sure how without using javascript, to tell it to the system during the execution of php code to look at another page and return the value of that page, can anyone help?
I don't want to use ajax or javascript as all of this is happening inside a class, and hopefully I wont need to reload the page as information at this point has already been generated that is needed later on in the execution schedule.
hope you guys can help thanks matt.
Link to comment
Share on other sites
5 answers to this question
Recommended Posts