?php include ?>? Topic is solved

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
Gilead
Joomla! Apprentice
Joomla! Apprentice
Posts: 27
Joined: Fri Aug 04, 2017 7:38 pm

?php include ?>?

Post by Gilead » Tue Feb 12, 2019 8:42 pm

I was trying to do a php include in one of the articles, from the toggle off mode, only it made it a comment instead. Is there a way to display another page inside an article without using iframe?

User avatar
AMurray
Joomla! Exemplar
Joomla! Exemplar
Posts: 9739
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: ?php include ?>?

Post by AMurray » Tue Feb 12, 2019 9:34 pm

There are several plugins on the JED that allow insertion of such code, but also make sure your text filtering is not barring such code / tags.

Sourcerer from Regluar Labs might help: https://extensions.joomla.org/extension/sourcerer/.

I don't know what sort of page you're trying to insert but the 'include' tag in PHP is generally used to include one script into another for the purpose of programming, not for necessarily displaying another page directly; I think the iframe would be the way to go if it's just an external website that you want displayed in your site e.g. a wikipedia page displayed directly in your site. But it's hit or miss with iframes, especially if the target site bars inclusion by iframe by third-parties.

There is the HTML include tag (not to be confused with the PHP include): https://www.w3schools.com/howto/howto_html_include.asp as opposed to PHP include: https://www.w3schools.com/php/php_includes.asp
Regards - A Murray
General Support Moderator

Gilead
Joomla! Apprentice
Joomla! Apprentice
Posts: 27
Joined: Fri Aug 04, 2017 7:38 pm

Re: ?php include ?>?

Post by Gilead » Wed Feb 13, 2019 4:40 pm

Parsec is a measure of distance not velocity.
Thanks A Murray!


Locked

Return to “General Questions/New to Joomla! 3.x”