Exforsys
+ Reply to Thread
Results 1 to 5 of 5

Sample PHP code shows Blank Page

This is a discussion on Sample PHP code shows Blank Page within the PHP forums, part of the Programming Talk category; Hello, I wrote one of the Sample PHP code in the following way... <? echo "hi"; ?> and also i ...

  1. #1
    Guptha_S is offline Member Array
    Join Date
    Jan 2006
    Answers
    47

    Sample PHP code shows Blank Page

    Hello,

    I wrote one of the Sample PHP code in the following way...

    <?
    echo "hi";
    ?>

    and also i tried with

    <?php
    echo "hi";
    ?>

    I tried with these simple example...but the output is blank page.
    Any Help...

    Regards
    Guptha


  2. #2
    chowsys is offline Junior Member Array
    Join Date
    Jul 2006
    Answers
    17

    blank in browser

    <?php
    echo "hi";
    ?>


    this is correct..


  3. #3
    sammy is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    145
    The syntax used in second option namely
    <?php
    echo "hi";
    ?>

    Is absolutely right. Just make a cross check on your configuration settings.


  4. #4
    Quozty is offline Junior Member Array
    Join Date
    Dec 2006
    Answers
    26
    try <?php

    phpinfo();

    ?>

    see if that outputs anything? if not make sure PHP is running


  5. #5
    Rahulbatra is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    124
    Gupta there are quite a lot of suggestions posted by our friends. Just kindly update whether you have tried and what you tried and the output of same so that we could know about it and if needed we could give out few more suggestions.


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...