PDA

View Full Version : Is this OLD php and no longer used?


JVRudnick
12-10-2002, 03:01 PM
Hello all..

I'm working with a php/mySQL contractor right now...but I want to check on his claim about a clients files.

FYI..I'm an ASP/MS guy...and have NO exp in php!

So...the files are as follows...using the following...

PHP/4.0.4pl1

mysql Ver 11.12 Distrib 3.23.33, for pc-bsdi4.3 (i386)

==========

there are files that are using the .phtml extension, as well as in the mySQL folder there are sets of 3 files as follows (for each diff item)
content.frm, content.ISD and content.ISM

==========

what can you all tell me about these files? I can find NO mention of any of this anywhere in phpLand...except that I did find the following at www.computeruser.com...

"...Pre-HTML).Some HTML documents have embedded equations or other material not expressible in HTML.To embed the non-HTML data, preprocessing instructions (PPIs) are used.Using a program called phtml, the document is then translated into a new HTML document with the equations included as inline pictures.These HTML documents with PPIs have the file extension .PHTML..."

Can anyone here enlighten me? Are these obsolescent files, tho they work just fine? Help here guys...I gotta price this and can't find ANYONE who can give me some background on this...and what it might take to "update" all the files to current php/mySQL files???

Jim Rudnick

Kiwi
12-10-2002, 03:14 PM
They're both fairly recent. Not the latest versions of either, but the latest generation and still supported (PHP is now on version 4.3; mySql is on version 2.23.53). I don't think there are any significant changes that would mean code tested on 4.0 should work on 4.3.

If you are asking if they should upgrade the php engine, then it probably wouldn't hurt (someone else can tell you the exact differences between them). But I'm not sure that it's necessary.

Geoff.

firepages
12-10-2002, 05:59 PM
Originally posted by JVRudnick

"...Pre-HTML).Some HTML documents have embedded equations or other material not expressible in HTML.To embed the non-HTML data, preprocessing instructions (PPIs) are used.Using a program called phtml, the document is then translated into a new HTML document with the equations included as inline pictures.These HTML documents with PPIs have the file extension .PHTML..."


lol thats surreal !

.phtml files are files that will be passed by the apache/IIS webserver to PHP for processing.

Apache/IIS etc recognise the extension .phtml (and more commonly .php .php3 .php4 .htm) and knows to send those file extensions to PHP for processing, PHP spits back HTML to your browser. (Telling apache to parse .phtml as .php is a one-liner in a .htaccess file)

the extension itself makes no difference though .phtml files are more likely to have been written for php3 there are some minor differences between php3 & php4 but unlikely to cause any problems.

"content.frm, content.ISD and content.ISM" are MySQL data & index files and are useless to anything but MySQL, & even really old MySQL files should work with the current versions, its strange however to actually have these files knocking around especially on *NIX.

any php version < 4.2 has known exploits out in the wild so upgrading to 4.2 is highly recommended for a production machine.

you don't tell us what your contracter is telling you that you are unsure of so its hard to tell you any more until we know what they are saying.