Basically it is just a lean and mean content editor I wrote that saves anything (html, php, yada yada-you-name-it) to a database. I use it inside an "environment framework" system I created which controls logging in and using the editor. So you go to the 'site', log in, and then you can run the editor and whatever other apps you have been given user-level access to. Your access level also determines what content you can access. Low level access users can edit only their own content. "Super elite" users can view/edit all content of all users, and as well can edit the HTML/PHP, etc. of the site itself. As "super user elite", you can also select the content editor and edit the source code (PHP) of the content editor. Really, you can edit any application that is inside the environment framework system. ...hmmm.. Based on a setting defined for each peice of content in the database, when you click 'render', some PHP files may be written to a specified file system while other content 'chunks' stay in the database and never rendered out as files. These chunk files can but do not contain PHP... this is used for just content or referencing actual content chunks.. so I created a very basic macro psuedo language using PHP.. I call it metaChunk but I imagine the name may already be taken, otherwise this email acts as my copyright to that name according to the Berne Copyright convention. :) LOL ... An example of a content 'chunk' as seen in the editor (just an example that does not *really* exist - just typing junk from my head that would parse):Kris Yates <mailto:[EMAIL PROTECTED]> on Friday, August 15, 2003 11:55 AM said:
However, I also have a PHP program which you can run and edit the
source code for the program inside the program itself, hit render and
all of a sudden you are running the new version of the program. It is
so cool that it is just plain sick. I use this methodology all the
time - every day, everyone loves it, and my fridge has good food in
it as a result.
Hhmmm... tell us more.
c.
<b>Hello !!$:varuser!!<b><br> You have logged in !!$:logins!! times<br><br> !!displayChunk:menu.js!! !!displayChunk:userscreen!! !!includefile:funk.php!!
The output is of course an HTML document that the end-user sees in ye olde browser.
This is all a couple of years old and since then I have found others that have developed similar things.. lots of CMS systems and macro languages..... someone said my metaChunk psuedo lang looks like "struts", which I have yet to see for myself or bother to read about. So Chunks can include and run PHP, display and render other chunks, and display variables. One day I may expand it. I'd like to release all this to open source but I just cant afford to do that yet, and a contract with my employer is another deterent. I am guessing others out there are in the same boat. I have been PHP'ing since late 98 but working on this stuff specifically since 2k. In my 3 years of developing this stuff, I have made a point to not examine open source code so as to keep everything 'original'. I am just an old school programmer/ex hacker from the 80's that refuses to rip others off as I have already been ripped off a time or two in the past both in the music biz and the technology biz, including *major* media companies to say the least....
If you were to put <? echo "Hello, World!"; ?> inside the database as a content 'chunk', it will just display the PHP to the web-browser instead of actually executing the code. All in all this whole deal just makes my life easier since I dont need my users being able to exec any code.
Just FYI, this project started in late 2000 after my return from Los Angeles where I was recording at Paramount. I bought a Commodore 64 SX at a yard sale for $5.00 US. I got a copy of CNET 10.0 BBS out of a dusty old box and set it up for fun. It became my reference point for the first few months to create a BBS like system for the web which was similar to the old days of BBS, unlike the majority of BBS type systems on the web today. Just trying to be unique and different in my own old-school way. I blab about all of this vaguely at my doomstar.com site, which implements these tools and my employer is also allowing me to reuse my codeBase in applications I develop for their clients.
Note to all: please send private replies as any further discussion could quickly become 'off topic' for the php-general list. I am interested in meeting other like minded people whom already know how to code and just want to throw ideas around for fun and inspiration.
Thanks for you interest in my work! It is greatly appreciated.
Kris http://doomstar.com/?target=me
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php