Create php file with extension

Discussion forum for Extension Writers regarding Extension Development.
Post Reply
Trubs
Registered User
Posts: 6
Joined: Thu Oct 04, 2018 7:03 pm

Create php file with extension

Post by Trubs »

I've just started creates own extensions. I have a question. Is this possible to create php file with specific code in it using phpbb extension? e.g. WIth install extension test.php will be create and I can go to: test.com/test.php. test.php contains e.g.:

Code: Select all

<?php
echo "hello world";
?>
Last edited by Kailey on Thu Oct 04, 2018 11:14 pm, edited 1 time in total.
Reason: Moved to Extension Writers Discussion
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3726
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay
Contact:

Re: Create php file with extension

Post by Kailey »

I'm not sure I follow. Can you explain a little better?
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules

If you have any questions about the rules/customs of this website, feel free to send me a PM.
User avatar
AlfredoRamos
Recognised Extension Developer
Posts: 1302
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo
Contact:

Re: Create php file with extension

Post by AlfredoRamos »

If I understood correctly you want to add a new page, right? The way you want it might not be the best choice, you should create a route.

https://area51.phpbb.com/docs/dev/3.2.x ... llers.html

Also check the official Pages extension (DuckDuckGo/Google is your friend), maybe you don't have to create an extension.
Some of my phpBB extensions:
:chart_with_upwards_trend: SEO Metadata | Image Markdown | :shield: hCaptcha
:trophy: Check out all my validated extensions :trophy:

:penguin: Arch Linux user | Linux Boards :penguin:
Post Reply

Return to “Extension Writers Discussion”