LOCALHOST-PHP in browser

Reply

Join Date: Feb 2007
Posts: 20
Reputation: wavyaquaeyes is an unknown quantity at this point 
Solved Threads: 0
wavyaquaeyes wavyaquaeyes is offline Offline
Newbie Poster

LOCALHOST-PHP in browser

 
0
  #1
Mar 1st, 2007
HELP- I need to view my php files in the browser. I am running Apache server.

I know only this much to put in the browser
http://localhost/ /filename.php

thanks
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,273
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 543
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: LOCALHOST-PHP in browser

 
0
  #2
Mar 1st, 2007
umm do you have PHP installed and configured?
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 20
Reputation: wavyaquaeyes is an unknown quantity at this point 
Solved Threads: 0
wavyaquaeyes wavyaquaeyes is offline Offline
Newbie Poster

Re: LOCALHOST-PHP in browser

 
0
  #3
Mar 1st, 2007
yes to both
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,273
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 543
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: LOCALHOST-PHP in browser

 
0
  #4
Mar 1st, 2007
so the files are in the directory on the web server? (usually /var/wwwroot on linux)

if so you should just do:

http://localhost/pagename
or

http://127.0.0.1
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 59
Reputation: desiguru is an unknown quantity at this point 
Solved Threads: 1
desiguru desiguru is offline Offline
Junior Poster in Training

Re: LOCALHOST-PHP in browser

 
0
  #5
Mar 4th, 2007
Install wamp server and then try it. WAMP is really easy to use.
--
Share files up to 1Gb - FileOP.com
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 20
Reputation: wavyaquaeyes is an unknown quantity at this point 
Solved Threads: 0
wavyaquaeyes wavyaquaeyes is offline Offline
Newbie Poster

Re: LOCALHOST-PHP in browser

 
0
  #6
Mar 5th, 2007
thanks a;; appreciate it
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 59
Reputation: desiguru is an unknown quantity at this point 
Solved Threads: 1
desiguru desiguru is offline Offline
Junior Poster in Training

Re: LOCALHOST-PHP in browser

 
0
  #7
Mar 5th, 2007
Originally Posted by wavyaquaeyes View Post
thanks a;; appreciate it
Also if you want to learn more about php you should watch Lynda.com's php beginner's tutorial. It's amazing.
--
Share files up to 1Gb - FileOP.com
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 20
Reputation: omesa is an unknown quantity at this point 
Solved Threads: 0
omesa omesa is offline Offline
Newbie Poster

Re: LOCALHOST-PHP in browser

 
0
  #8
Mar 6th, 2007
Hello, Concerning the files, you need to put your files in a folder called "htdocs" where you installed the apache webserver
for example my files are in c:/program files/apache group/apache2/htdocs/folder name/
so I on my browser I type
http://localhost/foldername/filename

but first check if the server is running.
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,273
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 543
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: LOCALHOST-PHP in browser

 
0
  #9
Mar 6th, 2007
or if its linux then its usually /var/www
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 1
Reputation: 2easy4bee is an unknown quantity at this point 
Solved Threads: 0
2easy4bee 2easy4bee is offline Offline
Newbie Poster

Re: LOCALHOST-PHP in browser

 
0
  #10
Apr 19th, 2009
I have my index.php file in folder aldo on drive D. here is the detail
D:\PHP\www\aldo\index.php. what should i write on address browser to run this index, or should I need to create new folder ?? should I set the server (appserv) ??
Your assistance really much appreciated

Regards
Leonardo
<EMAIL SNIPPED>
Last edited by peter_budo; Apr 19th, 2009 at 5:15 am. Reason: Emails in the post are not allowed
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 15944 | Replies: 14
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC