Jump to content

werner

Members
  • Posts

    4
  • Joined

  • Last visited

werner's Achievements

Newbie

Newbie (2/6)

0

Reputation

  1. On a normal page with html code created by the processwire cms I would like to execute an external developed php file. If this page is called by a nav bar, then the php file should be loaded and executed. On a standard html page it could look like: <hr> <p> <?php require("readsql.php"); ?> </p> <hr> If I type this code on the backend, the commands are interpreted as pur text and they are not executed on the fronted.
  2. I wrote some special php scripts to communicate with a sql data base (readsql.php, writesql.php, ...) and now I would like to call the scripts between normal html commands. I tried with the readsql.php script like this: <?php require("readsql.php"); ?> but only this text code was shown on the fronted. In which directory should I move this readsql.php file to locate it without a path in the require call ? Or is there a better way to handle site content that should perform calculations?
  3. How can I execute a php script like echo "hallo world"; within a process-wire site. I copied the php script, but only the text command of the php scripts was displayed on the fronted.
×
×
  • Create New...