Page 1 of 1

New Welcome XAMPP and docs

PostPosted: 05. January 2016 00:46
by Zah
Windows 7 Enterprise
32 bit OS

Hi I am new to php I have installed xamppp and have check the status in the control panel for apache and mysql both are running as shwon in below screen shot. However when I create a small php program like this
Code: Select all
<?
echo "Hello from php";


and then I saved this at this location as per the book I am following titled "PHP for Absolute Beginners 2nd Edition"
C:\xampp\htdocs\ch1\test.php

When I run this in my google chrome browser It simply displays blank page without the echo output "Hello from php"

Please let me know what needs to be done.

Thank You

Re: New Welcome XAMPP and docs

PostPosted: 05. January 2016 01:02
by Altrea
Hi,

I have splitted your post from the original topic. How do you think is that topic related to "New Welcome XAMPP and docs"?

Related to your issue: Don't use short open tags <? use the full version of it <?php

best wishes,
Altrea

First Php Program

PostPosted: 05. January 2016 01:17
by Zah
Hi,
Thanks for that, I have now included both tags as in below saved the file and again run it on the chrome browser as http://localhost/ch1/test.php but still it is blank

Code: Select all
<?
echo "Hello from php";
?>

Re: New Welcome XAMPP and docs

PostPosted: 05. January 2016 01:34
by Altrea
You did not changed what i suggested.
Maybe you should reread my post again.