Re: using echo but need something to execute php code




"Toby A Inkster" <usenet200703@xxxxxxxxxxxxxxxxx> wrote in message
news:d50eg4-q7c.ln1@xxxxxxxxxxxxxxxxxxxx
Jon Slaughter wrote:

That is, I have an html file with some php code in it similar to the
example but just more complex.

Let me get this straight... you have an HTML+PHP file. You want your
script to open this file, run the PHP code inside and echo the whole thing
out to the client?

include 'file.php';

You obviously didn't read what I said... Sometimes simple answers are not
the correct ones.


.



Relevant Pages

  • Re: [PHP] Deny processing of non included files
    ... One simple way to be sure it's not access directly by the browser is ... Then it can't be surfed to AT ALL, much less executed as PHP code. ... files generates a hash, stores it in the db for the length of the ... For that matter, your script should error out gracefully if, in the ...
    (php.general)
  • Re: 2 x quad-core system is slower that 2 x dual core on FreeBSD
    ... what, script or static html? ... In this thread, it's always PHP code, with database backends. ... pecl-APC) and of data (eAccelerator, ... and IPC). ...
    (freebsd-stable)
  • Re: from mysql to php
    ... the generated php code I have in mind would be used, e.g., in an installation procedure to generate the tables of the database. ... You could use phpMyAdmin to dump your existing structure into a file, incorporating it into your install script, using your text editor's search & replace capabilities to wrangle the dump into shape. ...
    (alt.php)
  • Is there any sort of preprocessor functionality in PHP4?
    ... I have a big tree of "if" statements (imagine the PHP code ... If I insert a new end-branch, ... script that would occur prior to execution. ...
    (comp.lang.php)
  • Re: [PHP] file_get_contents
    ... BTW, Brad, I was stripping the HTML tags around the object ok, but I'm ... but it's still showing php code in the text area! ... php is transparently making a http request to the webserver there is no ... way the webserver will differentiate between your script and every other request ...
    (php.general)