473,404 Members | 2,195 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,404 software developers and data experts.

Echo statement doesn't display in PHP

Hi
This is probably the most basic question out there and I apologize before hand.
None the less here goes. I am running Windows and ammplite package as server. Just doing simple programming- TOTAL NEWBIE! But I can't get the echo statement to display anything unless use <p> and then it ignores the ending </p> and prints down to ?>. Also the variable name is showing up not the value. I think it may be in the setup of xampplite or something. I have checked various syntax alternatives and even copied and pasted straight from a working program and still the same. HELP
Sep 10 '07 #1
3 2211
gregerly
192 Expert 100+
Hi
This is probably the most basic question out there and I apologize before hand.
None the less here goes. I am running Windows and ammplite package as server. Just doing simple programming- TOTAL NEWBIE! But I can't get the echo statement to display anything unless use <p> and then it ignores the ending </p> and prints down to ?>. Also the variable name is showing up not the value. I think it may be in the setup of xampplite or something. I have checked various syntax alternatives and even copied and pasted straight from a working program and still the same. HELP
I think I might know what's going on, but need to see your code before I can diagnose it properly.

Post some code and I think I might be able to help you.

Thanks,

Greg
Sep 10 '07 #2
Atli
5,058 Expert 4TB
Hi, and welcome to The Scripts!

Like Greg, I could think of a few reasons, but like he says it would help to see your code.

I will make one suggestion tho.
If you are using '<? ... ?>' tags, try changing them to '<?php ... ?>'.
Sep 10 '07 #3
pbmods
5,821 Expert 4TB
Heya, Cinaritst.

What's the extension of this file? Is it .html or .php? Your server likely will only parse PHP in a file whose name ends with .php.
Sep 11 '07 #4

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

Similar topics

4
by: entoone | last post by:
I have a form that has a text box, i.e. text area that takes 200 characters max. When I use my update script and it brings up the information in the database, it displays as a single line. How can...
10
by: M | last post by:
Hi, Suppose you have the situation where you have say 20 blocks of text (~250 chars each) in a MySQL db that you need to display, but each has a condition to check to see whether you should...
21
by: comp.lang.tcl | last post by:
set php {<? print_r("Hello World"); ?>} puts $php; # PRINTS OUT <? print_r("Hello World"); ?> puts When I try this within TCL I get the following error:
2
by: peridian | last post by:
I've gotten a really weird result crop up on my site, and I can't find any information on the web that it has been seen elsewhere. Given how weird this is, I guess it's probably a symptom of either...
3
by: Doug (dtism) | last post by:
Hello **newbie alert** <-- that's me btw, but you might have guessed that by my topic title. I have an html page that submits a name and email address by a form to a page called preview.php ...
3
by: den5385 | last post by:
<?php echo "bbb"; include("common/funcs.php"); echo "a"; ?> When accessing the above test code from a browser it prings 'bbba.' When accessing the page from a MFC app, it just prints 'bbb.'...
2
by: L. Berger | last post by:
Hi, I am working on an HTML template which has a lot of html tags, with PHP data shown in the middle of these tags -- you know, the usual. Currently, I have HTML as is, and many many "echo...
1
by: whiteyoh | last post by:
hi all, im trying to get the following line to display a link to a URL which is stored in a MySql database, but its not! $djname $genre and $biography all work fine..........what have i...
32
by: Request-1 | last post by:
hi folks, html coder here, new and terrified * of php!! aaaaaa! i'm trying to bury a JS script to rotate a photo, in a page i converted from html to php. the conversion went well, it was to...
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: 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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.