Stories
Slash Boxes
Comments

News for nerds, stuff that matters

PHP3/4 as Web Development Platform?

Posted by Cliff on Wed Sep 22, 1999 11:24 AM
from the using-the-right-tool dept.
Erestar asks: "I work for a small network integration company that also handles a good bit of web application design and hosting. Right now we're running 2 clustered NT servers along with Cold Fusion. Since my introduction to PHP3 I have been strongly pushing to run it in conjunction with IIS while still keeping the Cold Fusion server active. What I need are any comments or suggestions as to the validity of my cause. Will PHP3, running as a module for IIS, seamlessly fail over? Has anyone encountered any problems when running PHP3 and Cold Fusion Server at the same time? How limited is PHP3 as far as script size is concerned? Another issue that has arisen is the practicality of doing this. Are there any benefits to running PHP3 that Cold Fusion cannot provide (aside from "its just so damn cool")? Would I be better off committing myself to writing custom CF tags and COM objects with VB or C++? Would I be better off waiting to for a new release of PHP4?" Erestar goes on to describe his applications. Click below for more.

"We work with practically anyone; our clients range from Used Car dealerships to billion dollar banking firms. Nearly all of the sites are database driven, most with ODBC to Access databases (we're planning on turning MS SQL Server on any day now, though). We're also developing a tracking application that will manage most of our business requests and anything else we can toss in. It is this application that I would like to code with PHP3. Any information that you could supply would be greatly appreciated. "

This discussion has been archived. No new comments can be posted.
PHP3/4 as Web Development Platform? | Log In/Create an Account | Top | 204 comments (Spill at 50!) | Index Only | Search Discussion
Display Options Threshold:
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
(1) | 2 | 3
  • Zope by Anonymous Coward (Score:1) Wednesday September 22 1999, @02:37AM
  • Well, maybe. by Anonymous Coward (Score:1) Wednesday September 22 1999, @02:39AM
  • ASP and PHP by Anonymous Coward (Score:1) Wednesday September 22 1999, @03:17AM
  • WARNING: PHP with IIS sucks, with Linux okay... by Anonymous Coward (Score:1) Wednesday September 22 1999, @03:23AM
  • Re:ASP for mission critical by Anonymous Coward (Score:1) Wednesday September 22 1999, @04:05AM
  • Re:I've used PHP a fair amount... by Anonymous Coward (Score:1) Wednesday September 22 1999, @04:18AM
  • Re:CGI by Anonymous Coward (Score:1) Wednesday September 22 1999, @06:32AM
  • Re:Don't try this at home! by Pierce (Score:1) Wednesday September 22 1999, @03:23AM
  • PHP by drwiii (Score:1) Wednesday September 22 1999, @03:12AM
  • PHP and fhttpd by Alex Belits (Score:1) Wednesday September 22 1999, @04:36AM
  • Re:Silly argument by Rasmus (Score:1) Wednesday September 22 1999, @07:17AM
  • Re:Unmentioned options by Rasmus (Score:1) Wednesday September 22 1999, @01:51PM
  • Re:WebDAV client (besides IE) today by Rasmus (Score:1) Wednesday September 22 1999, @02:04PM
  • Re:Silly argument (Score:3)

    by Rasmus (740) on Wednesday September 22 1999, @05:47AM (#1667084) Homepage
    Well, you are wrong. Rasmus on Slashdot does actually == Rasmus from PHP devel.

    The note you quoted from Bruce was written in July. He says right there that we agreed to fix those issues back in July. Being September now, that has obviously been done. And they were just slight wording changes.

    As for your CGI thing. You are being silly. You quoted a CERT advisory from 1996. Being September 1999, that has obviously been addressed as well.

    -Rasmus
  • Re:CGI (Score:5)

    by Rasmus (740) on Wednesday September 22 1999, @03:17AM (#1667085) Homepage
    You are misinformed here. PHP 4 is very much Open Source and it has been run by Bruce Perens. The Zend component is under the QPL which has been deemed to be Open Source compliant and the rest of PHP is under an Apache/BSD style license.

    And your cgi concerns aren't too well-founded. The thing you can do with the cgi version, at least under Unix, is to run it as your own user id through suExec which is quite safe. Under NT, who knows, but then I don't think IIS has .htaccess files anyway.

    Also, ODBC support is not new to PHP 4. It was in PHP 3 as well and it hasn't changed much.

    And finally, PHP 4 has an ISAPI version coming so from a performance perspective it should be quite competitive, and most likely quicker than CF on NT.

    -Rasmus
  • Re:coldfusion by kris (Score:1) Wednesday September 22 1999, @03:45AM
  • Re:PHP is good by kris (Score:1) Wednesday September 22 1999, @03:55AM
  • by kris (824) on Wednesday September 22 1999, @03:13AM (#1667088) Homepage
    I have never used CF in a project, but have evaluated it before committing ourselves to PHP.

    We are currently using Solaris [sun.com] as a server platform, with Apache [apache.org] or phttpd [signum.se] as a webserver and we are using Oracle [oracle.com] and MySQL [mysql.com] as databases. We are running PHP [php.net] as scriping engine as CGI version and as Apache module in some instances.

    You seem to come from a mostly Microsoft background, which is not where PHP is at home. PHP3 does not run as an IIS module, as far as I know, but only as a CGI version. This will make it perform much worse that for example CF or ASP on IIS, due to the abysmal performance of the NT platform and IIS as a CGI host - NT just doesn't fork. PHP4 will be running as an IIS module, but is in beta now and I would not build any production code on it - yet. As soon as PHP4 proves to be stable under load, it should outperform PHP3 by a factor of 5-10, though, plus the speed gain coming from being able to use it as a module on IIS.

    On a Unix system (Linux, Solaris, doesn't matter) with Apache, PHP3 performs excellently as a module and can take any reasonable amount of load, provided you have enough RAM. We already know this from the Mindcraft benchmark - Apache must not swap and you must tune your MaxClients to match your RAM size to avoid performance degradation under high load. Many sites are parsing all pages, including their regular HTML, through PHP3 for convenience and the performance overhead is neglegible - if Apache can take it, Apache and mod_php can usually take it as well.

    PHP excels in portability, support and in connectivity when benchmarked against CF. PHP will run on any old server platform and will talk to almost anything, and natively, where CF will most probably talk through an ODBC adapter. PHP includes some 10+ native database interfaces, including all major database vendors, and does LDAP, SNMP, SMTP, NNTP, IMAP4, POP3, some OODB and fulltext database protocols, can generate pictures on the fly, can generate PDF on the fly and so on. Writing extensions for PHP is trivial, if you can do reasonable PHP programming.

    One point must not be left out of the equation when talking about PHP, and that is the online support. There are many large PHP mailing lists, including THE [mailto] PHP3 mailing list, which are extremely friendly and efficient and usually generate correct and useful answers within 15 minutes. Also, the annotated online manual [php.net] is a unique ressource for help, because it is learning and growing, incorporating user annotations. I have nowhere experienced anything that comes close to this kind in support, commerical or not.

    My recommendation: PHP on IIS on Windows works, but will most likely not perform as exspected. It is nice for testing, but I won't go productive in this configuration. PHP on Apache on Windows works better, but will still not use PHP to it's fullest advantage. Also, you will make installation and maintentance unnecessarily difficult for you. PHP on Apache on any Unix will perform extremely satisfactorily, generate only minimal TCO, and is supported excellently. If you have at least minimal Unix knowhow inhouse, I suggest that you go for the full plunge in a test installation instead of an incremental migratory approach, because this way you will maximize the advantages of PHP and your server platform.

    Re the migration from version 3 to version 4: PHP4 and PHP3 are drop-in compatible. There is no need to "port" from 3 to 4, because both languages are virtually identical. The differences are extremely minimal and well documented, also the development team is working on closing these final gaps between versions. Changes between version 3 and 4 are completly internal, switching from a fully interpreted system to a byte-code compiler/interpreter hybrid for speed reasons. Also, some language features have been added in an upward compatible and transparent way. We have tested the beta and found it to be living up to its promises in speed _and_ compatibility. Waiting for PHP4 won't pay: You can use PHP3 to learn just now and all this knowledge as well as your code will be valid and valueable on PHP4.

    If you'll be using the CGI version of PHP3, please be sure that you

    • set up a chroot() running environment for your CGI (phttpd does this by default, Apache does this with a modified suexec - ask me if you need it).
    • compile a version of PHP with --enable-force-cgi-redirect or you'll be opening a great security hole.

    If you have any further questions, please subscribe to the php3@lists.php.net [mailto] mailing list or have a look at the PHP Knowledge base [e-gineer.com]. These are great ressources.

  • Counterpoints (Score:3)

    by jabbo (860) <jabbo@yahoLAPLACEo.com minus math_god> on Wednesday September 22 1999, @05:41AM (#1667089) Homepage
    Perl is a lot faster to develop in than Java. Really. I've done complicated stuff in both. When you really push the envelope, Java's standard API abstraction barriers don't go far enough.

    JSPs are okay, but so is embedded Perl or VBasic.

    Cocoon is very unwieldy right now, and probably not yet worth the effort unless you are a huge shop with lots of Java and XML devotees. The examples assume an Oracle backend. That should tell you something. (Yes, I've played with Cocoon as well. Cocoon 2 may inded be revolutionary...)

    I have never heard of Midgard and I've been around for a while now. This indicates to me that it could be difficult to hire someone quickly and get them up to speed on it. OTOH, if it's just like PHP only better, I could be quite wrong.

    Just my experiences and thoughts.

    Personally, I don't mind servlets, mod_perl, OR mod_php. They're popular for different things, so for maximum code reuse (laziness) I choose whichever gets the job done fastest.

    (Zope, incidentally, is quite cool and OO, and would be great for a new installation, but too much of a transition IMHO for a preexisting site)

  • PHP runs as a seperate process under IIS... by bkosse (Score:1) Wednesday September 22 1999, @07:49AM
  • Re:PHP vs Cold Fusion by Mouse (Score:1) Wednesday September 22 1999, @04:07AM
  • Re:PHP vs Cold Fusion by Mouse (Score:1) Wednesday September 22 1999, @06:46AM
  • PHP good for small things; Servlets+JSP for big by zipwow (Score:1) Wednesday September 22 1999, @03:15AM
  • Re:PHP vs Cold Fusion by Jason Earl (Score:1) Wednesday September 22 1999, @05:08AM
  • PHP, Zope, and CF (Score:3)

    by citmanual (2002) on Wednesday September 22 1999, @03:06AM (#1667095)
    I have personally not used Cold Fusion or Zope. But, I require *nix based solutions doing basically the same stuff you have done.

    I think PHP is great. Its fast, it works well and is very well featured. I think that it works best statically built into apache, and I have only used it with Linux and FreeBSD. I think you are best off to wait on PHP4. Just start with 3, and then migrate as needed. I don't forsee too much incompatibility between the two, and as someone who gets way to many "Its broke" phone calls, I can't imagine delivering a beta backend for an important app.

    As for Zope, it looked to me to be a simpler language than PHP, although powerful. I think it is good for dynamic web pages, but big web apps (such as the sort I create) are out of its scope.

    I think that sticking with NT and CF is a poor choice. My firm almost always either hosts the web app for the client (we have one client that is a conglomerate of 300 companies nationwide) or delivering an inexpensive unix (linux, freebsd) dedicated server. I think that web apps are so easy to decompile, or just yank the source, that clients think they can edit it, and you have to fix it. I prefer to lock them out unless I truly feel they know how to code at all. I think NT is a terrible OS and that you need to get away from that, fast.

    But, I suppose I am a bit of a zealot. grin....
  • This isn't to say anything bad about PHP, though. by Bruce Perens (Score:2) Wednesday September 22 1999, @03:34AM
  • Re:WebDAV client (besides IE) today by Bruce Perens (Score:2) Wednesday September 22 1999, @07:25AM
  • My take on Zope (Score:5)

    by Bruce Perens (3872) <bruce@p e r e ns.com> on Wednesday September 22 1999, @03:22AM (#1667098) Homepage Journal
    I'd like to chime in regarding Zope. The scope of the problems it solves is simply awesome, and it's got an Open Source license approved by yours truly. The feature-list is quite impressive:

    • PHP-like language (called DTML), with new experimental XML-compliant form of DTML as well which can be handled by XML editors.
    • Managed via your web browser, there is no need to have a shell account to maintain a web site, and no need to be in the /etc/passwd file.
    • Access control including user-defined roles.
    • User information, roles, and permissions can be local to a sub-tree of a larger site, and can override what is defined higher in the tree.
    • Object persistence.
    • Content management with session control. You can join a session to test new content without having that content appear to anyone who has not joined that session. Commit or discard the session when you are done.
    • WebDAV (drag-and-drop management of web sites) works today. Too bad the only WebDAV client you can get is IE5, but that'll change - it's an open standard.
    • FTP access to your web site and its dynamic methods.
    • Database integration with built-in query system and sophisticated search interface.
    • No need for CGI. Export methods of classes via the web. Persistent program rather than CGI which restarts an executable with every call.
    • Transaction processing transparent to the programmer. If an uncaught error is posted during a transaction, the entire transaction is backed out of the database cleanly. Data is never left in an inconsistent state. There is also a programatic interface to transactions, but you don't generally have to use it.
    • It's pretty fast and low-overhead, too. My Pentium III 450 running Linux and Zope has survived being slashdotted many times. Sure, my Pentium 120 does that using just Apache, for static files. My Zope site, on the other hand, is very dynamic.
    • Web-based definition of classes, or you can use python.
    • Call from Apache, or run it as its own web server. If your site is entirely Zope, you can turn off Apache and save the overhead.
    • Multi-threaded.
    • Written in Python, with a tiny bit of C.
    It takes a few days to learn everything that's in there, there's so much. I suggest you go over to zope.org and get started.

    Thanks

    Bruce

  • php3 under NT? mod_perl, HTML::Mason by synaptic (Score:2) Wednesday September 22 1999, @05:34AM
  • Using PHPfi/PHP3 for 2 years by Flammon (Score:1) Wednesday September 22 1999, @03:11AM
  • Re:Reason for switching? by An Ominous Cowherd (Score:1) Wednesday September 22 1999, @04:24AM
  • PHP3 does well by turb (Score:1) Wednesday September 22 1999, @04:29AM
  • forget PHP by ZxCv (Score:2) Wednesday September 22 1999, @02:52AM
  • Re:Silly argument by Signal 11 (Score:1) Wednesday September 22 1999, @05:11AM
  • Re:Silly argument by Signal 11 (Score:1) Wednesday September 22 1999, @06:00AM
  • Re:CGI by Signal 11 (Score:1) Wednesday September 22 1999, @06:08AM
  • Re:CGI by Signal 11 (Score:1) Wednesday September 22 1999, @06:52AM
  • Re:Silly argument by Signal 11 (Score:1) Wednesday September 22 1999, @07:26AM
  • Re:CGI by Signal 11 (Score:2) Wednesday September 22 1999, @04:26AM
  • CGI (Score:3)

    by Signal 11 (7608) on Wednesday September 22 1999, @02:44AM (#1667110)
    I'm sure that other people will give you the scoop on all the advantages of php3/4/zend and the usual recommendations, so this post is dedicated to informing you of the disadvantages and shortfalls of your implimentation. Likely this post will be -1'd, but I feel it important to mention.

    I would seriously recommend using the mod_php3 modules under Apache due to performance and security. If you run PHP as a CGI script, you can do nasty-evil things like read the .htaccess files under apache. There is also no "safe mode" for the CGI module (I haven't verified this, however).. which means one coding slip-up and you hand the remote user all the priveledges the webserver has on the system (which given that you'd be running NT, is probably full access). Even with safe mode, you will still have some additional security concerns that the apache module doesn't have. :(

    The other problem with PHP4 is the licensing - it is not open source. Bruce Perens and the OSI have been working on it for awhile now (a long while ago *muttering*) but it isn't fixed yet. Go over the license and see if you can live with it.. otherwise stick with PHP3 (which meets the OSD).

    The single compelling reason to use PHP over third-party or Microsoft offerings is the database support. You should know that PHP4 brings ODBC driver support (via iodbc under linux, YMMV under NT) so that you can access alot more RDBMS systems than before. This is a definate consideration when looking at the client's needs. I will again reiterate that NT isn't the best platform for serving dynamic content from.. and would urge you to consider using a unix-based solution.. it's more scaleable, easier to maintain, and more reliable than it's NT counter-parts.

    --

  • Perl, PHP, CF by Woodie (Score:1) Wednesday September 22 1999, @03:56AM
  • Go three-tier (Score:4)

    by hatless (8275) on Wednesday September 22 1999, @03:49AM (#1667112)
    PHP's nifty, but the trend is away from loading business logic and presentation logic onto the same layer, as PHP and Cold Fusion both generally do. Cold Fusion has been moving toward a 3-tier approach with the addition of a separate app server, but it's not really there yet in terms of being able to run on separate hardware and having intelligent failover at the middle tier.

    This is where in the NT world the typical scenario of hosting COM objects on something like MTS comes in, and ASP or Cold Fusion in front of it.I've heard it doesn't work thrillingly well in some cases, especially when you're trying to host Java COM objects, but the approach is right and there are ways to make this work well.

    The usual platform-independent approach is to use a CORBA (for C++ or Java) or EJB (Java) app server, or at least plain old Java Servlets, which does essentially the same thing, typically with JSP for the presentation scripting layer. One nice thing about JSP is that they compile to Java bytecode and run very fast indeed.

    Yes, you can run ASPs on a number of Unixes, Cold Fusion on Solaris (and gosh, don't they have a Java implementation of their server piece now?). And a number of Unix-family OSes can also host and/or access COM objects, though they won't magically have access to Win32 APIs.

    And yes, the JSP/Servlet/EJB/CORBA approaches work very well indeed on NT as well as Unixes, with most of the higher-end app server vendors all abandoning their proprietary technologies and standardizing on this set of technologies these days.. See Broadvision, BEA Weblogic, ATG, Sun NetDynamics, Netscape Appserver, and IBM WebSphere for just some examples of the vendors doing this. It's mighty compelling.

    On the low-end, getting started with the JSP/servlet combo can be very inexpensive and very stable indeed on any OS. There are free servlet engines (which you can use to connect to CORBA and COM objects without much fuss) for all the popular webservers, free JSP environments that can sit on the servlet engines, and many choices for getting into EJB and CORBA, from free (albeit sometimes not ready for wide use) to commercial (industrial strength). The great part about this is that you end up with code at each layer that runs fast and is extremely portable to and between the most scalable and bulletproof app servers around.

    As for commercial RAD tools, you may want to look into a new version of Drumbeat that generates JSP instead of ASP. And most modern Java IDEs make for great EJB and servlet development environments.

    Can't speak for the forthcoming PHP4. It may come closer to this sort of thing.

    One thing to say in PHP3's favor is that some pretty large and high-volume sites do use it, though the heavy-traffic ones probably have the nastier logic on a middl tier or as stored procedures in the database.
  • OT: Moderation and Comment motion.... by kuro5hin (Score:1) Wednesday September 22 1999, @11:15PM
  • Re:OT: Moderation and Comment motion.... by kuro5hin (Score:1) Thursday September 23 1999, @12:31PM
  • Good for lightweight web stuff... by kuro5hin (Score:2) Wednesday September 22 1999, @02:36AM
  • Re:WARNING: PHP with IIS sucks, with Linux okay... by kuro5hin (Score:2) Wednesday September 22 1999, @03:47AM
  • Re:Has anyone ever been to his One-day Web Course by Speed Racer (Score:1) Wednesday September 22 1999, @10:05AM
  • Is speed a concern? by Trixter (Score:1) Wednesday September 22 1999, @02:49AM
  • ISS and ODBC by MaggieL (Score:1) Wednesday September 22 1999, @02:56AM
  • Re:Stay Away from IDC/HTX by MaggieL (Score:1) Wednesday September 22 1999, @06:03AM
  • Re:Stay Away from IDC/HTX by MaggieL (Score:1) Wednesday September 22 1999, @06:18AM
  • Re:Stay Away from IDC/HTX by MaggieL (Score:1) Thursday September 23 1999, @07:43AM
  • Re:WARNING: PHP with IIS sucks, with Linux okay... by KyleCordes (Score:1) Wednesday September 22 1999, @04:32AM
  • Re:Research Other Alternatives aswell.. by KyleCordes (Score:1) Wednesday September 22 1999, @04:34AM
  • Re:asp2php by KyleCordes (Score:1) Wednesday September 22 1999, @04:38AM
  • Re:To script or not.. by KyleCordes (Score:1) Wednesday September 22 1999, @04:42AM
  • Re:Midgard by KyleCordes (Score:1) Wednesday September 22 1999, @04:52AM
  • Re:Unmentioned options - more info on cocoon by Donald Ball (Score:1) Wednesday September 22 1999, @03:22PM
  • Re:My take on Zope - Zope.org is slow by Shadowlore (Score:1) Wednesday September 22 1999, @02:31PM
  • To script or not.. by Lysol (Score:1) Wednesday September 22 1999, @03:17AM
  • Re:PHP good for small things; Servlets+JSP for big by Mad Browser (Score:1) Wednesday September 22 1999, @07:48AM
  • Re:Counterpoints by Mad Browser (Score:1) Wednesday September 22 1999, @07:50AM
  • Hyper Builder by Azul (Score:1) Wednesday September 22 1999, @06:41AM
  • Re:OT: Moderation and Comment motion.... by doom (Score:1) Thursday September 23 1999, @11:54AM
  • Wait for PHP4. by sammy baby (Score:2) Wednesday September 22 1999, @02:41AM
  • Roxen Challenger by kinkie (Score:1) Wednesday September 22 1999, @06:03PM
  • Re:asp2php by SoftwareJanitor (Score:2) Thursday September 23 1999, @05:45AM
  • Re:CF Experiences by SoftwareJanitor (Score:2) Friday September 24 1999, @12:09PM
  • Re:asp2php (Score:3)

    by SoftwareJanitor (15983) on Wednesday September 22 1999, @07:42AM (#1667139)
    I have corresponded with the author of ASP2PHP (which did seem to do a good job of converting some ASP code a friend of mine had -- I don't use ASP, so I can't give that much of a testimonial there).
    Although some people will probably not like his (definitely not open source) licensing for ASP2PHP, he did release the source a while back, so it may be possible for you to fix the problems you encountered. Getting him to accept the changes back may be somewhat more problematic, as he is a bit picky about how he will take things (he doesn't like diffs). Also the code isn't commented as well as I'd like to see for other people to work with it (something the author did not dispute, as he hadn't intended originally to release the source).
    He also offered to look at ASP code that wasn't converting properly, so if you are willing to send him examples, he may be able to enhance the product so it would work better for you.

  • WebDAV client (besides IE) today by Zach Frey (Score:1) Wednesday September 22 1999, @04:38AM
  • Re:ColdFusion by datajack (Score:1) Wednesday September 22 1999, @06:03PM
  • Re:Cold Fusion is RAD... by senzuri (Score:1) Wednesday September 22 1999, @02:57AM
  • coldfusion by sar-fu (Score:1) Wednesday September 22 1999, @03:32AM
  • PHP vs Cold Fusion by moron (Score:1) Wednesday September 22 1999, @03:04AM
  • Re:PHP vs Cold Fusion by moron (Score:1) Wednesday September 22 1999, @06:25AM
  • Re:PHP vs Cold Fusion by moron (Score:1) Wednesday September 22 1999, @02:12PM
  • Go for Zope 2.x! (Score:3)

    by CAB (19473) on Wednesday September 22 1999, @07:14AM (#1667147) Homepage
    Compared to Zope, PHP is merely a very nice scripting language you can embed in your pages, so to speak. I really dig PHP for it's own uses, though.

    Zope, on the other hand, is very impressive!
    Object Oriented, tight, finegrained security model, very dynamic, runs on several platforms, Python, connects nicely to databases.... OpenSource!!!

    Zope has an extremely high Feel Good Factor(tm) (a Jamiroquai term); in fact, it's very addictive!

    Once in a while you come by a ware and this strange, warm feeling fills you up... these people have created a product with a lot of brains in it and behind it... everything is good!

    Zope is of this kind.

    Btw. you can get nice commercial support from the creators at http://www.digicool.com/


    Best regards,
    Steen Suder
  • JRun by urizen (Score:1) Wednesday September 22 1999, @03:56AM
  • Phil Greenspun's book by Bardad (Score:1) Wednesday September 22 1999, @03:38AM
  • I've used PHP a fair amount... by dfallon (Score:1) Wednesday September 22 1999, @02:50AM
  • Midgard by JohnZed (Score:2) Wednesday September 22 1999, @02:57AM
  • PHP is the solution by Spooker (Score:1) Wednesday September 22 1999, @05:24AM
  • Re:Has anyone ever been to his One-day Web Course by gruntvald (Score:1) Wednesday September 22 1999, @06:12AM
  • Stay Away from IDC/HTX by irix (Score:1) Wednesday September 22 1999, @04:14AM
  • Re:Stay Away from IDC/HTX by irix (Score:1) Thursday September 23 1999, @04:37AM
  • Re:Stay Away from IDC/HTX by irix (Score:1) Thursday September 23 1999, @05:09AM
  • Re:coldfusion by jedimaster (Score:1) Wednesday September 22 1999, @07:23AM
  • Re:ColdFusion for Linux/Unix by Stenad (Score:1) Wednesday September 22 1999, @10:52AM
  • Re:Has anyone ever been to his One-day Web Course by pangloss (Score:1) Wednesday September 22 1999, @03:52AM
  • Whatcha smokin man? by Pengo (Score:1) Wednesday September 22 1999, @04:18AM
  • Why I love PHP3 by handorf (Score:1) Wednesday September 22 1999, @03:12AM
  • Re:Why I love PHP3 by handorf (Score:1) Wednesday September 22 1999, @04:24AM
  • Re:Why I love PHP3 by handorf (Score:1) Monday September 27 1999, @06:50AM
  • Re:Midgard by bergie (Score:1) Wednesday September 22 1999, @06:13AM
  • Re:Reason for switching? by fornix (Score:1) Wednesday September 22 1999, @01:29PM
  • Re:PHP, Zope, and CF by duplicateAccount (Score:2) Wednesday September 22 1999, @04:19AM
  • PHP or PERL?? by 1nterMod (Score:1) Wednesday September 22 1999, @03:23AM
  • Feasability of large programs in PHP3/4 by frohike (Score:1) Wednesday September 22 1999, @04:14AM
  • Id have to disagree by EL_CID (Score:2) Wednesday September 22 1999, @01:18PM
  • Re:My take on Zope - Zope.org is slow by synced (Score:1) Wednesday September 22 1999, @09:44AM
  • Why not stay... by .pentai. (Score:1) Wednesday September 22 1999, @03:56AM
  • Re:Wait for PHP4. by sprag (Score:1) Wednesday September 22 1999, @04:28AM
  • Cold Fusion is RAD... by jake01 (Score:1) Wednesday September 22 1999, @02:47AM
  • Re:PHP vs Cold Fusion by Malcontent (Score:1) Wednesday September 22 1999, @03:55PM
  • Re:Reason for switching? by Malcontent (Score:1) Wednesday September 22 1999, @04:03PM
  • Re:Wait for PHP4. (Score:3)

    by pdstrnad (42215) on Wednesday September 22 1999, @04:00AM (#1667177) Homepage
    If you can't wait for PHP4, then check out PHPLIB [netuse.de], which is one of the session management libraries for PHP3. Besides the session management class, PHPLIB also offers other classes for things like authentication, permissions, building forms and validating input, and a ton of other stuff I can't think of now.

    Yes, it does take a while to figure out how PHPLIB works, but once you've figured it out you'll be hooked. I highly recommend it.

    As far as Cold Fusion goes, I wouldn't recommend the Solaris version. We developed one of our sites in CFML and we had nothing but problems with the CF server. Hopefully the Linux version will be more stable.

    -Philip
    http://www.buymp3.com/ [buymp3.com]
  • Has anyone ever been to his One-day Web Course ?? by cleeb (Score:1) Wednesday September 22 1999, @03:00AM
  • separation of app logic from presentation by payam (Score:1) Wednesday September 22 1999, @04:01AM
  • Cold Fusion on UNIX by PosterChild (Score:1) Wednesday September 22 1999, @06:24AM
  • Re:PHP vs Cold Fusion by Desert Raven (Score:1) Wednesday September 22 1999, @10:10AM
  • Re:Cold Fusion on UNIX by Desert Raven (Score:1) Wednesday September 22 1999, @10:15AM
  • Re:Use PHP4!! by Tom Christiansen (Score:2) Thursday September 23 1999, @08:03AM
  • Perl is too easy (Score:3)

    by Tom Christiansen (54829) <tchrist@perl.com> on Wednesday September 22 1999, @10:34AM (#1667184) Homepage
    I've had to deal with nasty CGI Perl code written by other people that I was barely able to read, much less figure out how to change without breaking the whole thing.
    It's a shame that this is true, but you're right. Perl is so easy to use that people who have no experience in designing programs for long-term maintainability can just crank out any old thing. And most of the CGI world falls into that category. I don't know a solution beyond making a programming language too hard to use for people who don't know much about programming. And that won't win you any friends.

    On the other hand, many of the mod_perl applications I've looked at have been sophisticated and clean. They've actually been designed and structured. They're a pleasure to read and to maintain. And they're written in the same language as those CGI scripts from hell that the script kiddies mutilate. Yet it seems like it's galaxies far removed.

    Interesting, eh?

    I believe this is saying more about the average CGI script kiddie versus Apache mod_perl hacker than it is saying about Perl. But yes, it's easy to write bad perl code. I guess it's easy to write bad C++ code too, but the barrier to entry is higher.

    I don't know that there's ever been a language written in which it's been the least bit hard to write bad code. If you outlaw bad code, only outlaws will code badly. :-)

  • PHP4 *is* open source. by Jim Winstead (Score:1) Wednesday September 22 1999, @03:10AM
  • Homesite is awesome... by Felius (Score:1) Wednesday September 22 1999, @02:28PM
  • by Earlybird (56426) <slashdot.purefiction@net> on Wednesday September 22 1999, @05:28AM (#1667187) Homepage
    As for Zope, it looked to me to be a simpler language than PHP, although powerful. I think it is good for dynamic web pages, but big web apps (such as the sort I create) are out of its scope.

    Certainly not. First of all, Zope isn't a language -- Zope's DTML language is just a small component in a large system. You don't even need to use DTML in order to reap Zope's benefits.

    Secondly, Zope's strength is its open-ended, object-oriented nature. Comparing Zope to PHP is largely meaningless. PHP is a preprocessor; Zope is a middleware platform. Zope has been specifically tailored for enormous, complex, high-volume web systems.

    With the recent introduction of the Zope Enterprise Objects [digicool.com] (ZEO), which will let you set up multiple object database servers that may mirror their data through replication, Zope grows to even higher planes of scalability and capacity. Combine ZEO with round-robin DNS and you have a good load-balanced failover solution.

    A little research into what Zope really is might have helped. You're just spreading disinformation.

  • Use Apache JServ, JSP and JavaBeans by warum (Score:1) Wednesday September 22 1999, @03:20AM
  • Lots of choices out there... by TurkishGeek (Score:2) Wednesday September 22 1999, @04:09AM
  • Re:asp2php by PrinceOfChaos (Score:1) Wednesday September 22 1999, @12:39PM
  • Re:Unmentioned options by PrinceOfChaos (Score:1) Wednesday September 22 1999, @12:46PM
  • CF and PHP by garster (Score:1) Wednesday September 22 1999, @03:41AM
  • Web server platforms by Buschman (Score:1) Wednesday September 22 1999, @03:10AM
  • Re:My take on Zope by phutureboy (Score:1) Thursday September 23 1999, @12:49PM
  • Using PHP, Zope, CF etc with LDAP authentication by PGillingwater (Score:1) Wednesday September 22 1999, @06:44AM
  • by RickyRay (73033) on Wednesday September 22 1999, @03:15AM (#1667196)
    Everybody seems to be focusing just on Zope, PHP, Perl, and ColdFusion. What about:

    (1) Midgard (www.midgard-project.org). It layers on top of PHP, adding functionality, remote administration, more code generation, etc. They plan to do an NT version soon (might be more a matter of just compiling it than doing any coding).

    (2) Java Server Pages. They let you embed code into pages the way you do with PHP, ASP, and the rest. But since they're Java, you don't need to learn a new syntax, and you're guaranteed to be able to do anything (remember: Java can also use Perl and C/C++ modules, so anything is fair game). And apache.org supplies a free engine for it. I use JSP's regularly, and they're great.

    (3) Servlets. Yes, they're useful and powerful, and standard syntax.

    (4) Cocoon (ava.apache.org/cocoon/). It's a project using COM, XML, and XSL, and will probably be the most powerful framework around (but I want to wait to see anybody use it before I try; it's difficult to be first, since there's nobody to ask how to do it!).
  • Re:Go three-tier by egghat (Score:1) Wednesday September 22 1999, @09:40PM
  • Use PHP4!! (Score:3)

    by andyschm (74188) on Wednesday September 22 1999, @07:52AM (#1667198)
    PHP is a great concept for a language - being entirely internet oriented it makes code more compact than, say perl CGI.

    I use PHP very seriously. I also use a Linux platform, and would strongly recommend that.

    PHP3 has some big problems. 1) effeciency is not very good, especially noticeable on a large website. As I understand it, PHP3 has no capacity to cache the result of parsing code. Thus everytime a function is called or a file included, the parser must re-check the code. 2) OOP sucks! Reference support is extremely bad. Be prepared to undergo major hacks to get OOP working with PHP3.

    I have used PHP4 beta 2 for over a month now with no glitches. It is a wonderful thing. OOP actually works great! And the parsing engine caches results (similar to Perl). Also lots of other handy stuff has been added... including output buffering (enables you to send HTTP headers even after HTML output) and a bunch of other functions that you will see in the PHP3 manual that look great and have a footnote saying "added to PHP version 4".

    As I understand the licencing for PHP4, PHP4 itself is open source and free. Something called "Zend" is the parsing engine for PHP4, which you must pay for if you intend to take the Zend code and use it within a commercial application.

    There is something called PHPLIB available for PHP3 which takes care of a lot of web authentication, page rendering, etc with some high-level object code. I looked at PHPLIB and decided not to use it because use PHP4, and I prefer to know every little detail of how my code behaves. However, PHPLIB gives a good structure for how a complex PHP-driven website can be built, so it is a good starting point for anyone.

  • lack of information by sevenseven (Score:1) Wednesday September 22 1999, @02:50PM
  • features in CF by sevenseven (Score:1) Wednesday September 22 1999, @03:46PM
  • no PERL/DBI by sevenseven (Score:1) Wednesday September 22 1999, @10:49PM
  • do not Go for Zope 2.x! by sevenseven (Score:1) Wednesday September 22 1999, @10:52PM
  • Re:Options + CF by sevenseven (Score:1) Wednesday September 22 1999, @10:59PM
  • Re:CF Experiences + xml by sevenseven (Score:1) Wednesday September 22 1999, @11:01PM
  • Re:Zope, PHP, Jserv, Roxen by Cos (Score:1) Wednesday September 22 1999, @03:37AM
  • by Cos (75890) on Wednesday September 22 1999, @03:29AM (#1667206) Homepage
    We developed our sites in PHP3 with MySQL on FreeBSD, and we're very happy with them. However, we've recently been playing with a couple other tools that have really piqued our interest.

    ZOPE: Very nice development interface, easy to add functionality using python, XML support, good cross-platform ability. The object-based development platform takes a little getting used to, but is extremely powerful and convenient.

    See An Introduction to Zope [devshed.com] for a very good overview.

    PHP: Can do just about anything. Great database support. We've had no performance problems due to php at all. Run it as an apache module, of course. I have not used it much on Windows, but PHP4 promises to have excellent Windows support.

    We have a number of articles, tutorials and docs about PHP at DevShed [devshed.com].

    APACHE JSERV: Efficient, powerful, mature. Apache talks to "Servlets" that do most of the work. The servlets stay in memory, no new processes are forked. Multiple servlets may be used, I believe across multiple servers if necessary. Session management is included. It's all Java. Apache Jakarta will also include Java Server Pages (JSP), a strong competitor to PHP and ASP.

    ROXEN: Similar to PHP, written in Pike, a C-like object oriented language. Easy separation of layout and content, easy database integration, very efficient. This one includes its own multipurpose server (web/proxy/ssl/ftp).
    See Introduction to Roxen by Kai Voigt [devshed.com] for more information.

    We're still sticking with PHP for now, but looking most seriously at Jserv for the future.
    Our #1 qualifier:

    OPEN SOURCE - all of the above solutions are!
  • ColdFusion by jheinen (Score:2) Wednesday September 22 1999, @02:32AM
  • Silly argument by Ledge Kindred (Score:1) Wednesday September 22 1999, @04:50AM
  • by Ledge Kindred (82988) on Wednesday September 22 1999, @03:12AM (#1667209)
    Is there a reason why you want to use PHP on an NT/IIS platform for any reason other than "it's just too damn cool"? I've used PHP on Linux with Apache and have had lots of luck with it, but that's because it's designed to work on UNIX-y boxes with Apache, for the most part. Trying to wedge it into an NT/IIS situation is, IMHO, Not A Good Idea. If you're using Cold Fusion and comfortable with it, keep using it. Don't switch for any "Cool Factor."

    If you wanted to switch, I would highly recommend switching over full-scale and rebuild those NT boxes as Linux boxes, use Apache and PHP or mod_perl or what have you.

    You might also look into doing servlet programming with Java. JDBC offers an excellent interface to databases and the advantage of going Java is that, at least with JDK 1.1, you really can move your code from the NT box to a Linux box when NT buckles under the load, and from there to a huge 64-processor Solaris box when the Linux box can't take it any more and it will all work essentially unchanged. (Write-once-run-anywhere works for the most part as long as you stick with straight JDK1.1 stuff and don't use too many third-party add-ins, or at least stick to add-on libraries that are 100% java.) IBM's JDK for Linux is quite high-performance and remarkably stable for what they call an "Alpha" version. (You can find it at www.alphaworks.ibm.com)

    A warning about Java servlet programming -- Java is a highly structured language and if you're into the kind of "quick kluge" that languages like Perl seem to be designed to handle, or the "quick one-off" that PHP excels at, you're going to have some problems moving to Java servlets which requires a lot more thought and "engineering" to get a good design. The advantage is, at least in my experience, going the Java route winds up with much more maintainable and extensible codebase.

    This is not intended as a poke at PHP or Perl, just that those two languages are really designed to do stuff "quick-and-dirty" and therefore are very easy to write nasty code -- lots easier than it is with Java. (although you can still write nasty code in Java.) I'm speaking from experience as I've written nasty code in PHP and had to try to clean it up into some sort of maintainable form without a lot of luck once the codebase gets to a certain size, and I've had to deal with nasty CGI Perl code written by other people that I was barely able to read, much less figure out how to change without breaking the whole thing.

    -=-=-=-=-

  • What about Lotus Domino? by RobNich (Score:1) Wednesday September 22 1999, @03:40AM
  • Re:Whatcha smokin man? by FooBarSmith (Score:1) Wednesday September 22 1999, @07:05AM
  • Re:Cold Fusion is RAD... by FooBarSmith (Score:1) Wednesday September 22 1999, @07:07AM
  • NT 3.5 was great by FooBarSmith (Score:1) Wednesday September 22 1999, @07:11AM
  • Re:Reason for switching? by FooBarSmith (Score:1) Wednesday September 22 1999, @07:15AM
  • Re:Some PHP experience by FooBarSmith (Score:1) Wednesday September 22 1999, @07:18AM
  • Re:PHP good for small things; Servlets+JSP for big by FooBarSmith (Score:1) Wednesday September 22 1999, @07:22AM
  • Re:PHP good for small things; Servlets+JSP for big by FooBarSmith (Score:1) Wednesday September 22 1999, @07:23AM
  • DO DISCOUNT DOMINO by FooBarSmith (Score:1) Wednesday September 22 1999, @07:28AM
  • Re:ASP for mission critical (MY ARSE) by FooBarSmith (Score:1) Wednesday September 22 1999, @07:32AM
  • Re:Developer vs. platform... you're confused (not) by FooBarSmith (Score:1) Wednesday September 22 1999, @03:45PM
  • GD and PNGs by Duncan Kinder (Score:1) Wednesday September 22 1999, @02:50PM
  • ASP v. PHP 4 by jagular (Score:2) Wednesday September 22 1999, @08:04AM
  • Re:PHP is good by Sascha Schumann (Score:1) Wednesday September 22 1999, @03:37AM
  • Re:PHP vs Cold Fusion by larryClyons (Score:1) Wednesday September 22 1999, @12:43PM
  • Re:PHP vs Cold Fusion by larryClyons (Score:1) Thursday September 23 1999, @04:51AM
  • Re:ColdFusion by hawkbug (Score:1) Wednesday September 22 1999, @05:17AM
  • Options. by dianos (Score:1) Wednesday September 22 1999, @08:36AM
  • Take a look at PSX by ahd (Score:1) Wednesday September 22 1999, @12:10PM
  • Re:Cold Fusion? scary by Sebo (Score:1) Wednesday September 22 1999, @12:00PM
  • Re:Using PHP, Zope, CF etc with LDAP authenticatio by Sebo (Score:1) Wednesday September 22 1999, @12:46PM
  • Re:PHP vs Cold Fusion by Michael Widenius (Score:1) Thursday September 23 1999, @05:23AM
  • 44 replies beneath your current threshold.
(1) | 2 | 3