Creating a PHP page with PHP

From: Tom West (brain_at_psynet.net)
Date: 12/30/03


Date: Tue, 30 Dec 2003 16:47:53 GMT

I'm devloping a CMS in which I want the ability for it to create php
pages from content that's entered. I've got a php page template where
I can insert the information entered using variables but I've got
other php code on the page which I need to keep as code and not be
processed. The whole lot then needs to be saved as a php file on the
server.

So my questions are:

How can I get the information entered in a form into a PHP page yet
still keep other php code as code?

and

How do I get PHP to save a file onto a server?

TIA.

---
Tom
(anti-spam measures: remove brain before replying)


Relevant Pages

  • Re: permission denied - PHP code
    ... >>I write a short PHP code that works fine on my own apache server, ... >> doesn't work after I upload it to the university server. ... also write PHP code to access MySQL database successfully. ... same code works well on my own apache server. ...
    (alt.os.linux)
  • Re: .php files - permissions are set public readable - so can public get to see actual raw file?
    ... > their own PHP code on the same server would likely be able to access ... or something) would be able to gain access to my raw php files. ... "Maybe easy - securing php files containing DB access passwords etc.") ...
    (comp.lang.php)
  • Re: Help in trying to make a web page counter
    ... This image is a php file. ... The problem is that for the referring server, ... assuming its because this is the server that calls the php code on my ...
    (comp.lang.php)
  • Re: [PHP] Protecting individual files/dirs from access
    ... A deadbolt may look secure from the outside, ... I realize that if the server is breached then nothing is safe, ... somehow manages to not install PHP. ... PHP code is executed completely out of context, ...
    (php.general)
  • Re: PHP/MySQL oldies
    ... secure when you leave it lying around in a PHP file on your web server? ... if everything on the server is run via suexec then it's safe provided the file has filesystem permissions set to user-readable only. ... if every bit of dynamic scripting on the server is via PHP, and PHP safe mode is always enabled, then provided the filesystem permissions are set to only allow user+webserver to read, it's fine. ...
    (uk.net.web.authoring)