Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Parse PHP And Display PHP Generated Output, How do you display your php output?
Flamez
post Aug 10 2008, 06:52 PM
Post #1


Newbie [ Level 2 ]
Group Icon

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.
Go to the top of the page
 
+Quote Post
Feelay
post Aug 10 2008, 07:51 PM
Post #2


Kinda N00B
Group Icon

Group: Members
Posts: 230
Joined: 13-January 08
From: Sweden
Member No.: 27,579



well tongue.gif

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 wink.gif

one of those may be the problem. if Not, Ill try to figure out something else tongue.gif
Go to the top of the page
 
+Quote Post
Flamez
post Aug 10 2008, 08:06 PM
Post #3


Newbie [ Level 2 ]
Group Icon

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"?


Go to the top of the page
 
+Quote Post
Feelay
post Aug 10 2008, 08:18 PM
Post #4


Kinda N00B
Group Icon

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 .
Go to the top of the page
 
+Quote Post
Flamez
post Aug 10 2008, 08:21 PM
Post #5


Newbie [ Level 2 ]
Group Icon

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
Go to the top of the page
 
+Quote Post
Feelay
post Aug 10 2008, 08:37 PM
Post #6


Kinda N00B
Group Icon

Group: Members
Posts: 230
Joined: 13-January 08
From: Sweden
Member No.: 27,579



try wamp. here is the link for download wink.gif

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 tongue.gif

This post has been edited by Feelay: Aug 10 2008, 08:47 PM
Go to the top of the page
 
+Quote Post
Flamez
post Aug 10 2008, 09:04 PM
Post #7


Newbie [ Level 2 ]
Group Icon

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.
Go to the top of the page
 
+Quote Post
jlhaslip
post Aug 10 2008, 11:23 PM
Post #8


Advanced Member
Group Icon

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.
Go to the top of the page
 
+Quote Post
vujsa
post Aug 11 2008, 07:18 AM
Post #9


Absolute Newbie
Group Icon

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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Do I Need To Do Any Extra Setup For Audio / Video Output?(1)
  2. Using Regular Expressions To Parse Functions(6)
  3. IE6 display:block hides other image BUG(1)
  4. How To Connect Ps2 Output To Pc / Monitor?(4)
  5. New Nvidia Display Driver Was Released On 1/6(2)
  6. Disable Display Properties Tabs(3)
  7. How To: Display A Members/user List.(3)
  8. New Video Output. :)(1)
  9. MySQL Output Database Question(18)
  10. Bash Script To Display Your Ip(9)
  11. Volume Control icon disappeared(6)
  12. Question About Asp Now() Function(6)
  13. Live Messenger Display Pic Problem(5)
  14. Flash Pic Problems(7)
  15. Not Sure How To Interpret The Output Of The Rootkit Revealer(3)
  1. Wordpress Url Display Problem(2)
  2. (help With Sql And Php)retrive Datas From Realted Tables And Display Them!(4)
  3. How To Display Subtitles(1)
  4. Pascal For Beginners - Part One(7)
  5. How To Show Serial Nums In PHP Table For Contents Of MySQL DB(4)
  6. My Secret Admirer(8)
  7. Obtain The Audio Output From iTunes(1)
  8. Faq Section Error(2)
  9. How To Change My Display Name?(4)
  10. C++ Dos Graphics(8)
  11. Help: Smf Sources.php File Producing Parse Error(5)
  12. Display Text If Line Not Empty In Config File(8)
  13. Sweet Titles(0)
  14. How To Display XX Users Online On Your Site ?(5)
  15. To Display Images With Links In A Rotating Sequence Without Refreshing The Page!(0)


 



- Lo-Fi Version Time is now: 22nd November 2008 - 02:42 PM