Re: document control system (was: Include file must be valid)

From: Date: Mon, 31 Jul 2000 15:55:17 +0000
Subject: Re: document control system (was: Include file must be valid)
Groups: php.general 
Request: Send a blank email to php-general+get-9184@lists.php.net to get a copy of this message
If I understand you correctly, aPHP-based system we have developed may be of interest: it allows users to upload arbitrary HTML to the server, and this is embedded within a template for display. There are of course worrisome security implications inherent in such a system, and one reason we want to release this into the public domain as soon as we find time to finish polishing up the docs. a bit, is to get other brighter minds in the Open Source community working on improving it. You can read just a bit about it by visiting: http://lhc.nlm.nih.gov/lhncbc/software/software.html and reading about the "ADS" system... Cheerio, Rick Rodgers > From: "Simon Biela" <s.biela@netdienste.de> > To: "Jason Stechschulte" <jpstech@nc.edu>, > "PHP - GENERAL" <php-general@lists.php.net> > Date: Sat, 29 Jul 2000 11:31:55 +0200 > > Hi again! > > Thanks for help! You guys don't seem to get the point I am making. I know > that what I write there is whacky, and I also know how to do it better. But > my customers want to use my product without having to write one line of PHP. > > Excactly I am programming a Content Management System which has to be > included in HTML Templates some way. So, the people write their HTML and > don't wanna put some while structures in there. For these non programmers, > who didn't ever see something else than the "programming language" HTML, my > solution would be much easier and friendlier. > > If you have any other suggestions how to solve this, I would appreciate your > help. > > mfG > Simon > > > > >It seems like breaking up code into incomplete > >include files is > >really bad form. It would make code next to > >impossible to debug, let > >alone read. It might make total sense the day you > >code it, but what about > >when you come back 6 months later, to update code > >or add new > >functionality, and all your code is split up into > >many includes that > >depend on the code of other includes to work > >correctly? > >Or if someone else takes over your project, will > >it be immediately obvious > >what each include does, and what dependencies they > >have on each other? > > > >I like the tighter include scheme in 4, since it > >forces you to make > >cleaner code. I think in general includes should > >be self contained, > >and not depend on you having included file A in > >the base file for file B > >to work. That way, if you come back later to add > >more functionality, or > >clean up code, you can feel safe editing an > >include as long as > >you keep the method's contract. > > >Cheers, > >Luis > > On Fri, 28 Jul 2000, Jason Stechschulte wrote: > > > I fail to see the problem. If someone doesn't > > understand how to create a while structure, > > perhaps they should learn it rather than > creating > > wacky code. > > > > Jason Stechschulte > > jpstech@nc.edu > > > > -----Original Message----- > > From: Simon Biela [mailto:s.biela@netdienste.de] > > Sent: Friday, July 28, 2000 1:36 PM > > To: Zeev Suraski; php-general@lists.php.net > > Subject: Re: [PHP] Include file must be valid > > > > > > But this issure is not really helpful for > > developers. The documentation > > says, that include just pulls the content of the > > file into the other file. I > > don't want that file to be evaluated for itself. > > > > The example I gave, is a help for people who > don't > > understand how to create > > a while structure but want to use it. > > > > Instead of writing > > while ($output[something][$i]) { > > > > or even something more complex, they just have > to > > write > > > > include(whilestart) > > > > What other possibility do I have to solve this > > problem? > > > > Thanks for answer > > Simon > > > > > > >That's true. It's an issue which should be > > documented - it's not a bug. > > > > > >Zeev > > > > On Fri, 28 Jul 2000, Simon Biela wrote: > > > > > Hi there! > > > > > > I just migrated from PHP3 to 4. In 3 it was > > possible to include a file > > which > > > wasn't really valid, for example with an > opened > > while statement, which was > > > then closed in another include file. > > > > > > It seems, that in PHP4 the code in an include > > file must be completely > > valid. > > > > > > here's an example > > > > > > file1.php > > > $i = 0; while($something[$i]) { > > > > > > file2.php > > > $i++; } > > > > > > file3.php > > > include (file1.php); > > > echo $i > > > include (file2.php); > > > > > > > > > --- > > > netdienste GbR > > > internet & multimedia > > > Geisselstrasse 19 > > > 50823 Koeln > > > > > > tel: +49 221 - 932 958 2 > > > fax: +49 221 - 932 958 5 > > > > > > s.biela@netdienste.de > > > http://www.netdienste.de > > > > > > red:pepper - das redaktionssystem > > > www.redpepper.netdienste.de > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#9184) next »