473,386 Members | 1,694 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,386 software developers and data experts.

Php page does not load after installing PHPTriad?

Hi there,

I just installed PHPTriad all went good. I started Apache and MySql
services.

If i do http://127.0.0.1. (same as: C:\apache\htdocs) in by browser i get
the welcome page of PHPTriad so this looks good.

Now i want to open a php file so i do this: C:\apache\htdocs\firstphp.php

What happens next: Homesite opens and shows me the code:

<?php
echo "Hello World!";
?>
and
<?php
print ("Hello World!");
?>

If i want to open this in IE i also just see the code, does anyone know what
i did wrong and why the php file is not loading properly? What did i miss?
Thanks for responding.
Jack.


Jul 17 '05 #1
2 2016

"Jack" <no@mail.com> wrote in message
news:cj**********@news3.zwoll1.ov.home.nl...
Hi there,

I just installed PHPTriad all went good. I started Apache and MySql
services.

If i do http://127.0.0.1. (same as: C:\apache\htdocs) in by browser i get
the welcome page of PHPTriad so this looks good.

Now i want to open a php file so i do this: C:\apache\htdocs\firstphp.php

What happens next: Homesite opens and shows me the code:

<?php
echo "Hello World!";
?>
and
<?php
print ("Hello World!");
?>

If i want to open this in IE i also just see the code, does anyone know
what
i did wrong and why the php file is not loading properly? What did i miss?
Thanks for responding.
Jack.


If you access http://127.0.0.1 in your browser and the "Welcome to Apache"
page shows up, then you have set everything up correctly.

If you then want to access a PHP script in you C:\apache\htdocs folder what
you do NOT do is enter the address "C:\apache\htdocs" in your browser as
this will not go through Apache. The correct address is
http://127.0.0.1/script.php If your script exists in
C:\apache\htdocs\folder1 then you access it using
http://127.0.0.1/folder1/script.php.

Simply pointing your browser at a PHP file will not get it executed - you
must go through the Apache web server via http://127.0.0.1. The web server
will then process it before passing the results to the web browser.

HTH.

--
Tony Marston

http://www.tonymarston.net


Jul 17 '05 #2

"Tony Marston" <to**@NOSPAM.demon.co.uk> wrote in message
news:cj*******************@news.demon.co.uk...

"Jack" <no@mail.com> wrote in message
news:cj**********@news3.zwoll1.ov.home.nl...
Hi there,

I just installed PHPTriad all went good. I started Apache and MySql
services.

If i do http://127.0.0.1. (same as: C:\apache\htdocs) in by browser i get the welcome page of PHPTriad so this looks good.

Now i want to open a php file so i do this: C:\apache\htdocs\firstphp.php
What happens next: Homesite opens and shows me the code:

<?php
echo "Hello World!";
?>
and
<?php
print ("Hello World!");
?>

If i want to open this in IE i also just see the code, does anyone know
what
i did wrong and why the php file is not loading properly? What did i miss? Thanks for responding.
Jack.
If you access http://127.0.0.1 in your browser and the "Welcome to Apache"
page shows up, then you have set everything up correctly.

If you then want to access a PHP script in you C:\apache\htdocs folder

what you do NOT do is enter the address "C:\apache\htdocs" in your browser as
this will not go through Apache. The correct address is
http://127.0.0.1/script.php If your script exists in
C:\apache\htdocs\folder1 then you access it using
http://127.0.0.1/folder1/script.php.

Simply pointing your browser at a PHP file will not get it executed - you
must go through the Apache web server via http://127.0.0.1. The web server
will then process it before passing the results to the web browser.

HTH.

--
Tony Marston

http://www.tonymarston.net


Thanks thats it! :-)
Jul 17 '05 #3

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

Similar topics

5
by: Jaunty Edward | last post by:
Hi, can anybody tell me what is happening with phptriad. I dont find new versions coming up. PHP 5 has come. Thanks Jaunty
1
by: jmdeschamps | last post by:
Hello Having cx_Oracle (an Oracle database connector for Python) used it here where I teach for the last couple of years, and finding it so easy to use (and install) I was taken aback when I got...
0
by: Decio Alexandre | last post by:
------=_NextPart_000_003E_01C34D83.A02DB370 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi!! I had once installed PHPTriad, a package which...
2
by: Sam | last post by:
I have a custom control (MyTextBox - taken from Microsoft website) that implements the IPostBackDataHandler interface. It is added to the controls collection of a placeholder control during the...
2
by: John Lau | last post by:
Hi, Is there documentation that talks about the page lifecycle, the lifecycle of controls on the page, and the rendering of inline code, in a single document? Thanks, John
7
by: sammy | last post by:
ok... so i restarted my server and i get a "Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh"...
3
by: Markus Kling | last post by:
Hi, I have a rich Forms UserControl which is embedded into a web page. Since installing .NET 2.0 on the clients, the control stopped loading completly. - I disabled security completly using...
4
by: Garry Jones | last post by:
I have recently constructed a website using a lot of php script (self taught). I now wonder if I should have construted the site in a different way. The page contains a header (a.php) and left...
3
by: scotp | last post by:
Does anyone know what would cause excessive page faults running the js function below? The most common browser used is IE 6. The page has records that include text & checkbox inputs. Each...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...

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.