473,378 Members | 1,421 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Problem installing PHP

Hello,

Im learning PHP along with MySql. I installed MySql with no problem and
have completed several tutorials to learn it. Now when trying to use PHP
code within an html page it dosn't display anything,even with a simple
display command.

I installed the newest version of PHP(windows installer) and MySql on my
home PC to do these tutorials and connect seem to get PHP working. Im sure
its just a setting that im not properly configuring upon install of PHP or
perhaps i have to install another piece of software to act as a webserver?
is this needed even for pc testing?

Any help on this would be great.

Thanx.
Jeff.
Dec 15 '05 #1
8 1425
On Thu, 15 Dec 2005 16:49:21 -0500, Jeff B wrote:
Hello,

Im learning PHP along with MySql. I installed MySql with no problem and
have completed several tutorials to learn it. Now when trying to use PHP
code within an html page it dosn't display anything,even with a simple
display command.

I installed the newest version of PHP(windows installer) and MySql on my
home PC to do these tutorials and connect seem to get PHP working. Im sure
its just a setting that im not properly configuring upon install of PHP or
perhaps i have to install another piece of software to act as a webserver?
is this needed even for pc testing?

Any help on this would be great.

Thanx.
Jeff.

PHP is just a component of a web-server. PHP generates an HTML output that
should be viewed in a web browser. You certainly may redirect all PHP
output in a file, then open it with Mozilla as a local file. But it's much
easier and convenient to use some web server as a medium between PHP and
your browser. So it's true that you have to install a webserver even for
pc testing. Seek the Web. There should be a number of free simple web
servers for windows. At least you can use Apache from apache.org

Dec 15 '05 #2
My plan is to code the website on my pc and then transport to host on the
internet. Is this practical or is there a better way to do it for
maintenance and so on. As you can probably tell my experience with websites
is limited but i do have a programming background.
"Billy Hates" <bi********@yahoo.com.com.com> wrote in message
news:pa****************************@yahoo.com.com. com...
On Thu, 15 Dec 2005 16:49:21 -0500, Jeff B wrote:
Hello,

Im learning PHP along with MySql. I installed MySql with no problem and
have completed several tutorials to learn it. Now when trying to use PHP
code within an html page it dosn't display anything,even with a simple
display command.

I installed the newest version of PHP(windows installer) and MySql on my
home PC to do these tutorials and connect seem to get PHP working. Im
sure
its just a setting that im not properly configuring upon install of PHP
or
perhaps i have to install another piece of software to act as a
webserver?
is this needed even for pc testing?

Any help on this would be great.

Thanx.
Jeff.

PHP is just a component of a web-server. PHP generates an HTML output that
should be viewed in a web browser. You certainly may redirect all PHP
output in a file, then open it with Mozilla as a local file. But it's much
easier and convenient to use some web server as a medium between PHP and
your browser. So it's true that you have to install a webserver even for
pc testing. Seek the Web. There should be a number of free simple web
servers for windows. At least you can use Apache from apache.org

Dec 15 '05 #3
My plan is to code the website on my pc and then transport to host on the
internet. Is this practical or is there a better way to do it for
maintenance and so on. As you can probably tell my experience with websites
is limited but i do have a programming background.
"Krustov" <kr****@krustov.co.uk.INVALID> wrote in message
news:MP************************@no-cancel.newsreader.com...
<comp.lang.php , Jeff B , bi**********@hotmail.com>
<dn**********@nrc-news.nrc.ca>
<Thu, 15 Dec 2005 16:49:21 -0500>
Any help on this would be great.


Something like XAMPP is a easy install as it configures everything for
you and everything works straight off the button ..... usually :-)

Dec 15 '05 #4
On Thu, 15 Dec 2005 22:30:58 +0000, Krustov wrote:
<comp.lang.php , Jeff B , bi**********@hotmail.com>
<dn**********@nrc-news.nrc.ca>
<Thu, 15 Dec 2005 17:21:47 -0500>
My plan is to code the website on my pc and then transport to host on the
internet. Is this practical


Unless somebody says different - its usually the best way to do it .


Yes, it's a good way. I used to use similar before. But then had to change
my methods. It's actually too hard to keep both (local and remote) servers
in the identical configuration, so I had to test my projects again on the
remote server before I could put them in public. Now I develop right on
the remote machine under a virtual host or in a "secret" directory.

--
nn = MaKroZ =
(oo) My bookmarks:
| | http://www.theisplist.com
|/\| http://www.10pieces.com

Dec 15 '05 #5
Jeff B wrote:
My plan is to code the website on my pc and then transport to host on
the internet. Is this practical or is there a better way to do it
for maintenance and so on. As you can probably tell my experience
with websites is limited but i do have a programming background.


Yes, it is practical. As mentioned above, you'll need a webserver on
your PC. I installed the EasyPHP package, which bundles Apache, PHP,
and MySQL into a single download/installation. There are other similar
packages.

Brian

Dec 15 '05 #6
Hi Brian,

thanx for helping out... I installed version 1.8 of EasyPHP... it installed
properly and seems to be running.

Now the problem because i have never done this before, where do i go from
here... I tried creating a simple PHP file called test.php with a simple
echo script... but didn't work... am i missing something??? also I tried it
in an HTML file also didn't work... I know its probably something easy and
stupid that im missing... but please help..

Thank You.
jeff.

"Default User" <de***********@yahoo.com> wrote in message
news:40*************@individual.net...
Jeff B wrote:
My plan is to code the website on my pc and then transport to host on
the internet. Is this practical or is there a better way to do it
for maintenance and so on. As you can probably tell my experience
with websites is limited but i do have a programming background.


Yes, it is practical. As mentioned above, you'll need a webserver on
your PC. I installed the EasyPHP package, which bundles Apache, PHP,
and MySQL into a single download/installation. There are other similar
packages.

Brian

Dec 16 '05 #7
Hi, you can verify that your webserver is actually running by creating
an .html and/or .php file and putting it in your document root folder.
Then from your web brower, perform the following:

http://localhost/<the name of the .php or .html>

Now, if you're not seeing anything and typing the URL doesn't produce
errors, then you'll need to start your webserver and try again.

Good luck,

-Conrad

Dec 17 '05 #8
Thanx Conrad... Ill give it a try... get a feeling it will work as i wasn't
doing this... I automatically assumed it would work no matter where the file
was on my pc.

Jeff.

"Conrad" <co******@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi, you can verify that your webserver is actually running by creating
an .html and/or .php file and putting it in your document root folder.
Then from your web brower, perform the following:

http://localhost/<the name of the .php or .html>

Now, if you're not seeing anything and typing the URL doesn't produce
errors, then you'll need to start your webserver and try again.

Good luck,

-Conrad

Dec 19 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: fripper | last post by:
I posted this problem a couple of days ago but felt I might have better luck re-stating the problem. Apparently I messed up IIS (v. 5) somehow because I am suddenly unable to load web forms! A...
1
by: santhosh_176 | last post by:
:I Created a Pocket PC application for iPAQ 5450. Every thing went fine even installer creation. I could run the setup and install it into the actual device and worked fine. The application enables...
5
by: summerwind | last post by:
I have distributed my app to a few users without problems (Not too many anyway) using the packaging wizard. I now have a problem that it causing me a great deal of concern. My client has no MS...
1
by: AspDotNetDeveloper | last post by:
Hello, I have Windows 2003 Server with .Net Framework 1.1 installed (part of the OS), and have used Windows Update to install the Service Pack 2 (the only way you can install it). The install...
11
by: Magdelin | last post by:
Hi, I accidently uninstalled IIS 5.1 on my XP Pro workstation and I think I messed up my .Net framework. Then, I reinstalled IIS and ran aspnet_regiis -i. After this, all asp.net applications...
0
by: Benny Ng | last post by:
Hi,All, When i deploy Enterprise library with my application ,i used XCOPY to deploy it into my test server. But when application runs, shown some error related registry. (But actually I haven't...
0
by: OverTheTop | last post by:
All the usual Newbie stuff applies... I have a Windows2000 Server with ActivePerl and a module (DBD-Interbase) that worked fine. Trying to duplicate the environment on Windows2003 Server for...
1
by: sureshbup | last post by:
Hi to all, I am trying to install CPAN modules using the command perl -MCPAN -e 'install qw (Text::CSV_XS)' but i get the problem like this even i changed the working proxies but none is...
5
by: John | last post by:
Hi I have an Outlook add-in solution which includes a setup project. If I install the Outlook add-in by right clicking on the setup project and sleeting Install then the add-in gets installed...
0
by: trihaitran | last post by:
I am reading chapter two of the Pylons book. In the text I am told to run: $ python virtualenv.py --no-site-packages env This is what I got back: $ python virtualenv.py --no-site-packages...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.