Flamez 0 Report post Posted August 10, 2008 I will start writing my php files soon and would want to know how to see my output file(what it looks like). I have installed apache and when i put in the address for it, it just shows me my coding. How can i display what i have actually done without having to use my hosting service. I want to test it first?A little confused on that. Share this post Link to post Share on other sites
Feelay 0 Report post Posted August 10, 2008 well did you make sure the php file is a php file?first rename the file, then open it in notepad, then save as, and name is whatever you want.. but make sure it ends with .php.. something like this:My_File.phpthen try. also make sure you didn't forget the <?php tag in the beginning and the?> tag in the end :mellow:one of those may be the problem. if Not, Ill try to figure out something else Share this post Link to post Share on other sites
Flamez 0 Report post Posted August 10, 2008 Done that. With my other php files the codes display and with this little php file i made earlier result in "server not found"? Share this post Link to post Share on other sites
Feelay 0 Report post Posted August 10, 2008 server not found means that something is wrong with the server. make sure you write the right adress. also . Share this post Link to post Share on other sites
Flamez 0 Report post Posted August 10, 2008 (edited) It works with another php file that i got off a friend (who makes php scrips etc)but that just shows me the whole script not the actual thing.Is there any other way of which i can perform the task?Another server or something? Edited August 10, 2008 by Flamez (see edit history) Share this post Link to post Share on other sites
Feelay 0 Report post Posted August 10, 2008 (edited) try wamp. here is the link for download Wamp 2 DownloadEdit: Warning! You must delete apache and all other servers before installing!!PS. I think this is the wrong place for this thread Edited August 10, 2008 by Feelay (see edit history) Share this post Link to post Share on other sites
Flamez 0 Report post Posted August 10, 2008 Thanks mate it seems to work.I recommend people to use wamp if apache does not work for them, as it's easy to use as well. Share this post Link to post Share on other sites
iGuest 3 Report post Posted August 10, 2008 XAMPP is another good one-click installer that supplies Apache, Mysql, Php and Perl as a single integrated package. Share this post Link to post Share on other sites
vujsa 0 Report post Posted August 11, 2008 You didn't specify if you installaed the PHP engine with Apache in your original post. If you don't, then your PHP scripts won't work. This is the reason people use package such as WAMP (Windows Apache MySQL and PHP). It is basically what you had before but with all of the required software packaged together. Anyway, I'm glad to hear that you have a working solution. vujsa Share this post Link to post Share on other sites