Jump to content

changing file type


dcole.ath.cx
 Share

Recommended Posts

right click on the file and click properties and see whare it says what file type or what it opens in and click change to like what ever program you want to use i like notepad but its your chose

Link to comment
Share on other sites

While true, that wasn't what he was asking. You told how to open a file with a certain program in Windows, and he was asking how to send specific file types to be executed by php.exe when they are requested on the server.

Finally, search for "AddType" in the file, and add the following line after the last "AddType" statement: AddType application/x-httpd-php .php If you need to support other file types, like ".php3" and ".phtml", simply add them to the list, like this: AddType application/x-httpd-php .php3AddType application/x-httpd-php .phtml
That type of thing doesn't work? In this example, they only have 1 file type per addtype line, as opposed to several types all on the same line, and they include the period in the extension.
Link to comment
Share on other sites

Add the desired extension(s) to this row:

AddType application/x-httpd-php .php

For example, if you want .html files to be parsed as PHP ones, you would change the above row to:

AddType application/x-httpd-php .php .html

Link to comment
Share on other sites

mikemanx2, your not on a role today... this is the php section. I ask question about php functions and theory, along with php core setup. I know how to change the default opening program and filetype. Along with that, I know how to take a Print Screen and use paint...---- ---justsomeguy and boen_robot... I see what I was doing wrong, I was putting it in a virtual host and in a Directory and not out side by it's self. I tried looking for x-httpd because I though I saw it once, but I guess not. Anyway I didn't try looking for AddType.Thanks for the help!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...