473,725 Members | 2,281 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1440
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********@yah oo.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.newsread er.com...
<comp.lang.ph p , Jeff B , bi**********@ho tmail.com>
<dn**********@n rc-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.ph p , Jeff B , bi**********@ho tmail.com>
<dn**********@n rc-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******** *****@individua l.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.goo glegroups.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
569
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 simple example will help. I created a simple web project that contains two simple forms ... WebForm1 and WebForm2. WebForm1 has a button which when clicked simply does a Response.Redirect("WebForm2.aspx"). When I run the program and click the...
1
1028
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 syncronization with remote database using merge replication. I found contradictory results while installing the application. I will mention here all the steps that I done while creating and installing setups. Result: Case 1: worked fine. ...
5
2020
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 Office app on either of his machines (One running W98 the other XP). However, he does have MS Works and MS Money on both machines. I sent him a CD with runtime setup package and my app. Runtime would
1
1935
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 seems to go fine, but Windows Update keeps telling me I need to install Service Pack 2. I have had this happen on other computers. Has anyone else experienced this? I'm wondering if it is installing it or not. I am investigating this, as I am...
11
1557
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 except one worked normally. This application is different from other as it is distributed (uses .Net Remoting), uses Crystal Reports 9 for web reports, uses Infragistics NetAdvantage suite controls and windows integrated authetication. The good...
0
2645
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 any method or component to wrote registry) After I used "InstallUtil" to registry Enterprise Library (those DLLs) to the deployment server, the application runs smoothly. Now I wonder why i need to registry those Enterprise Library DLLs into
0
5777
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 future upgrade, and this module won't work (other Perl scripts in IIS6 are OK, just not this Interbase module, which is critical). The error comes from Dynaloader.pm file, which I've read through, and it says that it's a generic message about external...
1
2479
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 working. i have tried different mirrors also. I tried different modules also. ===========================================================
5
2209
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 fine in Outlook. However if I use the setup generated in the setup project Release folder then even though setup runs and finishes, the Outlook Add-in does not appear in Outlook. What is the problem and how can I fix it? Thanks
0
2157
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 env New python executable in env/bin/python Installing setuptools........... Complete output from command env/bin/python -c "#!python
0
8752
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9257
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9179
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9116
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6702
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4784
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2157
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.