|
|
|
|
![]() ![]() |
Aug 10 2008, 06:52 PM
Post
#1
|
|
|
Newbie [ Level 2 ] Group: Members Posts: 29 Joined: 9-August 08 Member No.: 31,963 |
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. |
|
|
|
Aug 10 2008, 07:51 PM
Post
#2
|
|
|
Kinda N00B Group: Members Posts: 230 Joined: 13-January 08 From: Sweden Member No.: 27,579 |
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.php then try. also make sure you didn't forget the <?php tag in the beginning and the ?> tag in the end one of those may be the problem. if Not, Ill try to figure out something else |
|
|
|
Aug 10 2008, 08:06 PM
Post
#3
|
|
|
Newbie [ Level 2 ] Group: Members Posts: 29 Joined: 9-August 08 Member No.: 31,963 |
Done that. With my other php files the codes display and with this little php file i made earlier result in "server not found"?
|
|
|
|
Aug 10 2008, 08:18 PM
Post
#4
|
|
|
Kinda N00B Group: Members Posts: 230 Joined: 13-January 08 From: Sweden Member No.: 27,579 |
server not found means that something is wrong with the server. make sure you write the right adress. also .
|
|
|
|
Aug 10 2008, 08:21 PM
Post
#5
|
|
|
Newbie [ Level 2 ] Group: Members Posts: 29 Joined: 9-August 08 Member No.: 31,963 |
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? This post has been edited by Flamez: Aug 10 2008, 08:21 PM |
|
|
|
Aug 10 2008, 08:37 PM
Post
#6
|
|
|
Kinda N00B Group: Members Posts: 230 Joined: 13-January 08 From: Sweden Member No.: 27,579 |
try wamp. here is the link for download
Wamp 2 Download Edit: Warning! You must delete apache and all other servers before installing!! PS. I think this is the wrong place for this thread This post has been edited by Feelay: Aug 10 2008, 08:47 PM |
|
|
|
Aug 10 2008, 09:04 PM
Post
#7
|
|
|
Newbie [ Level 2 ] Group: Members Posts: 29 Joined: 9-August 08 Member No.: 31,963 |
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. |
|
|
|
Aug 10 2008, 11:23 PM
Post
#8
|
|
|
Advanced Member Group: Members Posts: 189 Joined: 15-November 05 From: Inland from the Left Coast of Canada Member No.: 9,627 myCENTs:62.43 |
XAMPP is another good one-click installer that supplies Apache, Mysql, Php and Perl as a single integrated package.
|
|
|
|
Aug 11 2008, 07:18 AM
Post
#9
|
|
|
Absolute Newbie Group: Admin Posts: 888 Joined: 20-February 05 From: Indianapolis, Indiana, USA (Midwest) Member No.: 2,714 myCENTs:35.43 |
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 |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 22nd November 2008 - 02:42 PM |