LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   echo does not work in php code (https://www.linuxquestions.org/questions/programming-9/echo-does-not-work-in-php-code-245413/)

suchi_s 10-21-2004 02:48 AM

echo does not work in php code
 
it works till half of the code..
after two blocks stop givin output on the screen..
echo value of some variable.. that is global..
reason not giving its output

darthtux 10-21-2004 03:01 AM

You will need to show the code.

suchi_s 10-21-2004 03:29 AM

if i print echo "hi" also within php tag it does not print

rkmalik 10-21-2004 03:39 AM

are you using php tags ?

<?php

echo "Hello world" ;

?>


Name the above file as hello.php run following command.

php hello.php


If still doesn't work, then let me know how did you install your php, was it a compiled (rpm) or you did all compiling stuff.


All times are GMT -5. The time now is 08:56 PM.