Viewing .php files locally
Thanks..
Powerbook 15" 1.25, Mac OS X (10.4.8)
Powerbook 15" 1.25, Mac OS X (10.4.8)
Did not know it was possible to view .php files
locally by browser.
If you have apache and php (both installed by
default), why not put the files in you web server
folder and view them through the web server?
If you look inside Safari.app: Show Package
Contents/Contents/Info.plist, then look under
Root:CFBundleDocumentTypes:8:CFBundleTypeExtensions,
you can see a list of supported protocols (maybe if
you add php?)
<key>CFBundleTypeExtensions</key>
<array>
<string>html</string>
<string>htm</string>
<string>shtml</string>
<string>jhtml</string>
</array>
If you look inside Safari.app: Show Package
Contents/Contents/Info.plist, then look under
Root:CFBundleDocumentTypes:8:CFBundleTypeExtensions,
you can see a list of supported protocols (maybe
if
you add php?)
<key>CFBundleTypeExtensions</key>
<array>
<string>html</string>
<string>htm</string>
<string>shtml</string>
<string>jhtml</string>
</array>
Yeah, that would work, but I was hoping for a
solution that wouldn't call for changing the file
names...
Does anyone know a
workaround for this?
Viewing .php files locally