Discussion:
The php file type
(too old to reply)
Edward
2007-01-13 18:38:11 UTC
Permalink
*
*|Hello, I need to ask a question regarding the note below:|*
*

/**Stewart*
05-Jan-2007 02:55
<http://www.php.net/manual/en/tutorial.firstpage.php#72181>*|* No
need to go through these contortions each time to make sure the file
is properly saved with the .php extension. Just register .php as a
file type in Windows, and then saving as hello.php without the
quotes will work fine.*|//|
|/

|I need to know how I can 'register' the .php file type in Windoze so
that this OS can recognize it automatically in the future.

Thanks,

Edward|
||
Carl Pearson
2007-01-15 01:03:31 UTC
Permalink
Post by Edward
*
*|Hello, I need to ask a question regarding the note below:|*
*
/**Stewart*
05-Jan-2007 02:55
<http://www.php.net/manual/en/tutorial.firstpage.php#72181>*|* No
need to go through these contortions each time to make sure the file
is properly saved with the .php extension. Just register .php as a
file type in Windows, and then saving as hello.php without the
quotes will work fine.*|//|
|/
|I need to know how I can 'register' the .php file type in Windoze so
that this OS can recognize it automatically in the future.
Thanks,
Edward|
||
This is not *exactly* a PHP question, but...

They're talking about file associations, a method WinDoze uses to
determine what program to use for opening a particular file based on its
extension (the letters after the dot in the file name). Often when you
install a program it will make the associations for you (Office, for
example, associates 'doc' with Word, 'xls' with Excel, and so on).

How you associate any file depends on what app you want to open it. For
these php files, do you want them to open in the browser (for which
you'd need Apache running PHP, or - ghu forbid - IIS), or do you want to
edit them in Notepad, DreamWeaver, TextPad, HotDog, Eclipse, WhateverPad...

If there's no current association for the php extension, the easiest way
to make one is to right-click on any php file, choose "Open With", and
if you don't see your app listed, choose "Browse" and find it (i.e.,
c:\program files\mozilla firefox\firefox.exe or c:\windows\notepad.exe
or whatever you want to use.

Continue reading on narkive:
Loading...