On 20.06.2011 10:49, Beauregard T. Shagnasty wrote: --- Original Message ---
> Jay Garcia wrote: > >> Beauregard T. Shagnasty wrote: >>> Jay Garcia wrote: >>>> Beauregard T. Shagnasty wrote: >>>>> 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 > > Sort of true. :-0 Akin to editing the UA string to make sites "believe" you're running that which is required. >> which does not make the actual PHP => MySQL compliant. > > I've not heard that. Do you have a reference? It only makes the site(s) believe you're running PHP 5 but the actual programming isn't PHP 5 compliant and "may" cause compatibiity issues, rare yes, but still happens at times. I have one client that had to restructure his PHP slightly to NOT have MySQL errors display on the page(s) of his site. >> 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. > > Oh. WordPress. "All Bets Are Off!!" Yup >>>> 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. ;-) > > Some do, I think, but I'd have to be using a pretty slow processor to > notice. But it's not really about speed; it is more about using old > function calls, now obsolete and removed from the newer version. > -- *Jay Garcia - Netscape Champion* www.ufaq.org Netscape - Firefox - SeaMonkey - Thunderbird _______________________________________________ support-seamonkey mailing list [email protected] https://lists.mozilla.org/listinfo/support-seamonkey

