Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP script in pages?
#1
I hope this is not a really stupid question but...

Can I execute php scripts from within a page?

For (a silly) example, can I embed <? phpinfo(); ?> directly into a web page?
If not, are there a set of globals that I CAN call?

The only place I seem to be able to get scripts to work are within components, which I can only get to from themes. Seems like a long way to go for access to a variable so I'm assuming I'm missing something basic.

Thanks,
~Joe
Reply
#2
Download and install Chris's Exec PHP Plugin from

http://get-simple.info/extend/a/ccagle8

Which will allow you to use PHP within your web pages...

Mike
My Github Repos: Github
Website: DigiMute
Reply
#3
I haven't seen it in the forum, but in Extend I found an interesting plugin, RePlacer:
http://get-simple.info/extend/plugin/replacer/50/
which makes inserting php code easy.

However it seems it doesn't work when there are single quotes (') in the code. Anyway I have only done a few tests...
Reply
#4
Thanks to both of you. I am now coding again!
Reply




Users browsing this thread: 2 Guest(s)