Support » Fixing WordPress » Embedding a PHP script into a page

  • I’ve just setup wordpress on my site 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!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Well, you can put the php code/script in a template (e.g. a Page template file), or if you want to run PHP in a post or a Page content, see this topic – it has several solutions:

    Thanks for that, I tried phpexec plugin and part of phpATM runs inside a page now. If you look at 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)

    Any ideas?

    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Embedding a PHP script into a page’ is closed to new replies.