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

PHP Code being output to the browser

1
<?php

echo "Hello World!";



?>

I write as above but the browser not read the script.Instead of reading the script,show me blank page in the firefox browser and in the Chrome browser show me the original script as above. please help me solve!
Apr 14 '15 #1
2 1342
Dormilich
8,658 Expert Mod 8TB
use http:// not file://
Apr 15 '15 #2
Hii Mrwinh,
Php is the server side scripting language. if you want to execute it fisrt of all you will have to install wamp or xammp after that put your code in wamp/www/flename.php and paste your code in filename.php. If it does not work then turn on your browser buffer using ob_start(); ie predefied function of php. second possiblity check your port number whether it has been assigned to other services or not.By deafult port no supported by apche is 80.
Apr 15 '15 #3

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

Similar topics

3
by: billium99 | last post by:
Hello - I'm a newbie and I've been bashing my brain against IIS for about 5 hours now. I'm just trying to set up a testing server via Dreamweaver that is my local box. HTML works fine and ASP...
1
by: Nathan DeBardeleben | last post by:
This may seem wierd, and I know someone asked this question before but was told they were doing it the hard way. Unlike them, I do not have shell access to the machine where this javascript runs....
0
by: Derek | last post by:
Hi All, I am trying to build a web based application using ASP.NET that I can use to store and retrieve source code samples. The question I have is what is the best way to store information that...
1
by: news.austin.rr.com | last post by:
hi im using the following code below to gain access to a browser control document. mshtml.IHTMLDocument2 doc = axWebBrowser1.Document as mshtml.IHTMLDocument2; can i use the "doc" object...
1
by: Ryan Rife | last post by:
I'm trying to return a 401 statuscode to the client browser on my web site, however whenever I do this I get a 302 statuscode redirecting me to my login page. Any ideas on how to prevent the...
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...
2
by: jeffcbr | last post by:
I am very new to programming and do not know what is wrong with this code... project due soon. need feedback asap please... #include <stdio.h> // Constant #define COST_OF_GLASS .02
7
by: amanda22 | last post by:
I know this is probably something silly, but I am missing something. I put the following into my compiler and I am not getting it. I know I need something to make this work, because everyone else...
1
by: marmar12 | last post by:
int a = 17, b; 59. 60. b = a; 61. printf ("b = %d\n", b); 62. 63. b = b + 1; 64. printf ("b = %d\n", b); 65. 66. b = a / b; 67. printf ("b = %d\n\n\n", b);
2
by: adri00713 | last post by:
import java.util.ArrayList; import java.util.List; public class CombinationApp { private static int numbers= {1,2,3,4,5,6,7,8,9,10}; private static int sumsum= new int; ...
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: 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
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
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...
0
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...

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.