Embedding a PHP script into a page
I’ve just setup wordpress on my site http://mirror.softcox.com and so far it’s working well. What I’d like to do however, is have the main page for news, and have a FAQ and downloads etc. for my files.
I intended to use php advanced transfer manager as the downloads page, how can I integrate this into the site best? A the moment its just inside an iframe in one of the pages, which seems a bad way to do it, and I cant even get the iframe to go any larger than it currently is.
I’m assuming theres a better way to do this, as they are both PHP scripts. The two scripts are working fine by themselves, I just need to make them be friends 🙂
I’ve gooogled this a bit and everything I’ve come across has involved embedding WP into other things, not vice versa.
Thank for you any help!
Thanks for that, I tried phpexec plugin and part of phpATM runs inside a page now. If you look at http://mirror.softcox.com/?page_id=7 its starting to run, but I know I’ve messed up the include statements. I just copied everything from index.php (in phpATM) into that page, but I need to tell it to look for everything else related to phpATM in a subdirectory (/downloads)
Sorry, I am not a PHP guru – but hoepfully somebody will come around. But it seems to me the script is looking for things that are not where they are supposed to be. I’d say: check the path from the Page it is displayed to the folders and files in the error messages.
I’ll have to mess around with the include stuff I guess… I ‘ve never done any PHP before only C/C++. Thanks anyway
On an unrelated note, anyone know why is the ‘home’ link on my site pointing to the wrong place?
edit: I would be happy with the iFrame if I could make it larger! The size settings seem to do nothing
- The topic ‘Embedding a PHP script into a page’ is closed to new replies.