| | |||||
| ||||||||
| CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Member Join Date: Mar 2006 Location: (US) Missouri
Posts: 70
![]() | View the output of your PHP script in Internet Explorer without a server I needed to preview the output of one of my php scripts as HTML but I didn't want to download and install a server on my computer so I came up with this quick solution, hopefully it can help someone else out: PHP Code: Just save the above code to a file and include it at the top of the script you want to view in IE. Example: PHP Code: Code: php myscript.php |
| | |
| | #2 (permalink) |
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | just so you know, the command line command "php" seems like you'd already have php installed (and possibly a server). this i think is by default on macs (and possibly linux, not sure) - but it doesn't work on windows (as far as i know). if you are on windows and don't want to install a whole server, try xampp - it's a portable server app (so no installation needed), where you just run it and it creates a localhost server (accessible only to you) to run any webpages you may want.
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| | |
| | THREAD STARTER #3 (permalink) |
| NamePros Member Join Date: Mar 2006 Location: (US) Missouri
Posts: 70
![]() | No, I only have php installed on my system for debugging purposes. Normally I just upload the scripts to a web server, but sometimes I don't have access to the internet or I don't need any server functionality (If I did, chances are I would be using a remote server anyway.) |
| | |