Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 4th, 2005, 3:24 AM   #1
Jygzy
Newbie
 
Join Date: Apr 2005
Posts: 13
Rep Power: 0 Jygzy is on a distinguished road
problem

i saved a file on a note pad...

<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>









and then tried opening the file and "Print master" came up, its something my mom installed for like addresses and stuff.. i dont know why it came up though, i saved the file with a .php extension under all files, then opended it in my browser with all files selected, why did print master come up?
Jygzy is offline   Reply With Quote
Old May 4th, 2005, 5:01 AM   #2
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 6 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
no idea but first do you have a web server running on the computer you are trying to run the file on?
Berto is offline   Reply With Quote
Old May 4th, 2005, 9:55 AM   #3
big_k105
PFO Founder

 
big_k105's Avatar
 
Join Date: Mar 2004
Location: Fargo, ND
Posts: 1,628
Rep Power: 10 big_k105 is on a distinguished road
Send a message via AIM to big_k105 Send a message via MSN to big_k105 Send a message via Yahoo to big_k105
yeah the problem must be you dont have a web server running on your computer. thats all i can think of.

if you need a webserver for windows use this it comes with apache for windows and php and mysql all in one easy to install .exe
http://apache2triad.net/
__________________
BIG K aka Kyle
Programming Forums
Kyle K Online

Please do not PM or email me programming questions. Post them in the forums instead.
big_k105 is offline   Reply With Quote
Old May 4th, 2005, 10:37 AM   #4
java_roshan
Professional Programmer
 
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4 java_roshan is on a distinguished road
Well, if u have Windows 2000 or XP try configuring IIS. You might have IIS installed by default.
You can start the server by the following steps

Right Click on My Computer, you wud see a menu....
Left click on Manage -> Services And Applications -> Internet Information Services

Then Left Click on Default Web Site and u wud see a button similar to "play" on winamp. Click on that ...That will start the server.

Then put the following address in your browser. http://127.0.0.1/<filename.php>

It shud run....

In case you are practising PHP for learning purpose and not able to configure IIS then you can do the following in Windows 2K or XP.

You have to go to the cmd prompt.

Type "php filename.php > filenameforview.html"

at the command prompt. Be sure to add them to the existing path in your Environment variables.
__________________
Visit: http://www.somaiya.edu
java_roshan is offline   Reply With Quote
Old May 4th, 2005, 10:38 AM   #5
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Please, for the love of God, don't use IIS.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old May 4th, 2005, 10:38 AM   #6
java_roshan
Professional Programmer
 
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4 java_roshan is on a distinguished road
But what is the "print master" all abt in this ????
__________________
Visit: http://www.somaiya.edu
java_roshan is offline   Reply With Quote
Old May 4th, 2005, 10:38 AM   #7
java_roshan
Professional Programmer
 
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4 java_roshan is on a distinguished road
Why not use IIS??

Difficult to configure or bugs??
__________________
Visit: http://www.somaiya.edu
java_roshan is offline   Reply With Quote
Old May 4th, 2005, 10:52 AM   #8
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
1. It's buggy.
2. It's slightly slower than Apache.
3. I just don't like it.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old May 4th, 2005, 2:58 PM   #9
Jygzy
Newbie
 
Join Date: Apr 2005
Posts: 13
Rep Power: 0 Jygzy is on a distinguished road
Quote:
Originally Posted by java_roshan
But what is the "print master" all abt in this ????
im not sure, but im using apache now and everything is working fine thanks guys.
Jygzy is offline   Reply With Quote
Old May 4th, 2005, 3:14 PM   #10
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Congrats. BTW, Print Master probably just registered the .php extension. God knows why...
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:50 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC