Connecting Tech Pros Worldwide Forums | Help | Site Map

Problem installing PHP

Jeff B
Guest
 
Posts: n/a
#1: Dec 15 '05
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.



Billy Hates
Guest
 
Posts: n/a
#2: Dec 15 '05

re: Problem installing PHP


On Thu, 15 Dec 2005 16:49:21 -0500, Jeff B wrote:
[color=blue]
> 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.[/color]
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

Jeff B
Guest
 
Posts: n/a
#3: Dec 15 '05

re: Problem installing PHP


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" <billyhates@yahoo.com.com.com> wrote in message
news:pan.2005.12.15.22.11.03.551143@yahoo.com.com. com...[color=blue]
> On Thu, 15 Dec 2005 16:49:21 -0500, Jeff B wrote:
>[color=green]
>> 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.[/color]
> 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
>[/color]


Jeff B
Guest
 
Posts: n/a
#4: Dec 15 '05

re: Problem installing PHP


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" <krusty@krustov.co.uk.INVALID> wrote in message
news:MPG.1e0bfac9eada8d7298a9ce@no-cancel.newsreader.com...[color=blue]
> <comp.lang.php , Jeff B , bigtagREMOVE@hotmail.com>
> <dnsod2$q94$1@nrc-news.nrc.ca>
> <Thu, 15 Dec 2005 16:49:21 -0500>
>[color=green]
>> Any help on this would be great.
>>[/color]
>
> Something like XAMPP is a easy install as it configures everything for
> you and everything works straight off the button ..... usually :-)[/color]


MaKroZ
Guest
 
Posts: n/a
#5: Dec 15 '05

re: Problem installing PHP


On Thu, 15 Dec 2005 22:30:58 +0000, Krustov wrote:
[color=blue]
> <comp.lang.php , Jeff B , bigtagREMOVE@hotmail.com>
> <dnsq9t$rd5$1@nrc-news.nrc.ca>
> <Thu, 15 Dec 2005 17:21:47 -0500>
>[color=green]
>> My plan is to code the website on my pc and then transport to host on the
>> internet. Is this practical
>>[/color]
>
> Unless somebody says different - its usually the best way to do it .[/color]

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

Default User
Guest
 
Posts: n/a
#6: Dec 15 '05

re: Problem installing PHP


Jeff B wrote:
[color=blue]
> 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.[/color]

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

Jeff B
Guest
 
Posts: n/a
#7: Dec 16 '05

re: Problem installing PHP


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" <defaultuserbr@yahoo.com> wrote in message
news:40e9t3F1aabhlU1@individual.net...[color=blue]
> Jeff B wrote:
>[color=green]
>> 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.[/color]
>
> 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
>[/color]


Conrad
Guest
 
Posts: n/a
#8: Dec 17 '05

re: Problem installing PHP


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

Jeff B
Guest
 
Posts: n/a
#9: Dec 19 '05

re: Problem installing PHP


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" <conradwt@gmail.com> wrote in message
news:1134779599.320463.206950@z14g2000cwz.googlegr oups.com...[color=blue]
> 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
>[/color]


Closed Thread