473,378 Members | 1,578 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.

PHP is not displaying any results in the browser

i am learning PHP, i have checked 1000s of time, my php code is wrote correctly, but when i try to preview it in the browser - it shows as a blank page. If i take a look at the Page source - it shows the php code.
What do i do wrong, and how can i fix it.
Thanks.
I have windows vista and i work with cs4.

This is the code that i use:

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>Untitled Document</title>
  5. </head>
  6.  
  7. <body>
  8. <?php
  9. $name = "Tatiana";
  10.  
  11. echo "$name";
  12. ?>
  13. </body>
  14. </html>
Jan 19 '10 #1
3 6114
aktar
105 100+
Hi, this looks like a problem with your http server set up, not the actual php code.

First and foremost, I need to ask:

1) do you actually have php installed on your computer?
2) do you have a Http server such as Apach or IIS installed on your computer?
3) if so, is the Http server configured properly so that it handles php pages correctly?
Jan 19 '10 #2
Hi, Thanks for reply,
I do have Apach on my comp ( I don't know if it matters, but it says <Win32> ) and i have vista
--- I'm sorry if my questions might seem very simple to you - but I'm new to this

What do you mean when you ask me if I have Php installed on my comp?
Jan 19 '10 #3
aktar
105 100+
Php is the program that interprets your code and sends the output to the Http server, in your case, Apache, in in-turns sends it to the browser for display.

Here is a good tutorial about how to install and configure PHP and Apache on Windows:

http://www.thesitewizard.com/php/ins...-windows.shtml
Jan 19 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Woodmon | last post by:
I'm observing issue with linked images not displaying in either Firefox 1.5b2 or IE6 when running on Win XP (they display fine in either browser on W2k). Example problem HTML is: <a...
5
by: Tomaz Koritnik | last post by:
Hi I have many short HTML files stored in a binary stream storage to display descriptions for various items in application. HTML would be display inside application using some .NET control or...
3
by: Bernardo Gomes | last post by:
Hi all, I´m having trouble doing the following: I have a aspx page without any html in it, and, in the Page_Load, I call a component that returns me a XML, that I have to display in the browser. I...
7
by: Jim | last post by:
I am trying to display images that are stored in a database, and I am using a repeater control. What I still use the Response.BinaryWrite method with a binding expression, if so, what with the...
6
by: Coleen | last post by:
Hi all :-) I need to redirect to multiple pages on click of a transmit button, without redisplaying each page. This redirection is to capture session variables that are created on each page and...
20
by: Tim Reynolds | last post by:
Team, I am developing a web service. In testing in on my enw PC, I am expecting to see exceptions thrown appear on my browser. Instead I am getting an HTTP 500 Internal Server Error page and I am...
15
by: Kevin Hanken | last post by:
Hi, Pretty much a newbie to aspnet and xp -- I am using XP Pro, Service Pack 2. I installed IIS, set up a virtual directory, created an aspx file and pasted in a little code from the w3schools...
13
by: David W. Fenton | last post by:
I've been struggling the last two days with something I thought was very easy, which is to open a web page with a form on it and populate the form with data passed in a query string (either POST or...
8
by: 2good2b | last post by:
Hi, I want to build a small php application like http://webwarper.net/. I actually don't need something so sophisticated, but I do need 2 basic things: 1. Being able to display the page properly...
9
by: The Natural Philosopher | last post by:
Ok. what I want to do, is have pictures as BLOBS in a database. And show them onscreen. If I have a generic program called say - showpic.php - which is capable of spitting out an image...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: 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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.