Running a PHP script |
Post Reply |
Author | |
YayJoh
Newbie Joined: Feb 12 2020 Status: Offline Points: 24 |
Post Options
Thanks(0)
Posted: Aug 24 2020 at 12:04pm |
This time I have a little more advanced topic. I'm trying to write a script, but when I add one it doesn't run on the server: it just shows the <?php ?> tags in the HTML. My experience is that a PHP-script must run in a PHP file. So.. how do I create a PHP file in OpenElement? Or is it possible to run a PHP-script from a HTML-file? Myself, I'm not sure. But it would be awesome, for I know quite something about PHP.
|
|
Hobby001
Admin Group Joined: Jun 05 2018 Location: Canada, Québec Status: Offline Points: 6195 |
Post Options
Thanks(0)
|
Page tab
|
|
YayJoh
Newbie Joined: Feb 12 2020 Status: Offline Points: 24 |
Post Options
Thanks(0)
|
As far as I can see, you can't use PHP with OpenElement.
|
|
Hobby001
Admin Group Joined: Jun 05 2018 Location: Canada, Québec Status: Offline Points: 6195 |
Post Options
Thanks(0)
|
I used php without issues, configure your page as mentioned earlier.
And once done, explain your issue
|
|
YayJoh
Newbie Joined: Feb 12 2020 Status: Offline Points: 24 |
Post Options
Thanks(0)
|
Ok, I'm probably wrong here.. but I'm still having difficulties. When I include a piece of code and upload the file, the PHP-code is displayed in the HTML in stead of being run.
|
|
Hobby001
Admin Group Joined: Jun 05 2018 Location: Canada, Québec Status: Offline Points: 6195 |
Post Options
Thanks(0)
|
once you have converted your page from htm to php using given instructions, add a php code block at the required position.
Add your code and skip the <?php and ?> tags For something that execute without displaying a page, put the code at start document and put exit(); at the very last line. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |