Click here to Skip to main content
16,019,843 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi
i am using NetBeans for creating php programs. i have also installed XAMPP for apache server. i was trying to run a test program by following these instructions

https://netbeans.org/kb/docs/php/quickstart.html

now when i am executing this program this is giving me a blank page. i do not understand why? plz tell me
Posted
Comments
Peter Leow 22-Jan-15 11:34am    
show your code.
rukhs 22-Jan-15 11:37am    
This is just a one line code. m learning Php.

<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<?php
echo "this is my first program";
?>
</body>
</html>
DamithSL 22-Jan-15 12:34pm    
what is your file extension?
rukhs 22-Jan-15 12:36pm    
.php

1 solution

I see, there you are:
PHP
<?php
echo "this is my first program";
?>

remember to enclose your php code like this:
<?php 
// your php code here
?>

Refer: PHP 5 Tutorial[^]
 
Share this answer
 
v2
Comments
rukhs 22-Jan-15 11:45am    
actuly thr was a mistak... i have done tht. plz chk my code again..
Peter Leow 22-Jan-15 11:50am    
The code is fine. something else is amiss.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900