On 20.06.2011 08:11, Beauregard T. Shagnasty wrote: --- Original Message ---
> Jay Garcia wrote: > >> On 20.06.2011 04:54, Beauregard T. Shagnasty wrote: >> <snippage> >>> I'd agree that's the case ... but ya never know. I have a site or two >>> that are completely done in PHP, but all display the pages' >>> filenames as "example.html". It's a simple matter to add a command >>> to the .htaccess file to process .html files as PHP. Visitors can't >>> tell. <g> >>> >>> # Process .html files as php >>> AddHandler application/x-httpd-php5 .html .php .htm >> >> The only problem one will run into with that htaccess entry is if you >> access a MySQL database from your PHP page(s). > > Why would that be? I use MySQL on most of my sites and there is nary a > glitch. If yours give problems, there must be something amiss with your > code. Are your files HTML pages with some embedded PHP, or are they PHP > scripts that have embedded/outputted HTML? Mine are all the latter. What > I mean is, the first line of them all is: <?php What I'm getting at is that the htaccess entry is faking the system which does not make the actual PHP => MySQL compliant. There is nothing wrong with the code and it is all 100% PHP not embedded. A good example is Wordpress. Some older WP does not run well on PHP 5 but at the same time some WP that runs on PHP 4 actually runs better on PHP 5. >> All 30+ domains on my servers run the latest PHP 5 and MySQL 5.x with >> only some minor adjustments to the DB's as well as the PHP. But there >> can be major problems when running very old PHP/MySQL when upgrading >> to the 5's. > > Of course. But it depends. I started using PHP with the earliest of > version 4, and some scripts from a decade ago are still running > unchanged. And those scripts may actually run better on 5. ;-) -- *Jay Garcia - Netscape Champion* www.ufaq.org Netscape - Firefox - SeaMonkey - Thunderbird _______________________________________________ support-seamonkey mailing list support-seamonkey@lists.mozilla.org https://lists.mozilla.org/listinfo/support-seamonkey