+ 3
Please help . No output .
<?php echo "hello"; // this is not showing to #hello to my screen ?> Hii. // I get this output if I write anything outside the PHP tag.
6 Réponses
+ 8
Are You trying this in SL or somewhere else? In the second way, where?
+ 9
Appache - php insert to C: / xampp / htdocs / HelloWorldinPHP/index.php
then you find it in localhost in your browser
php starts <?php and may end ?> if there is not end of file and follow next html
+ 3
I guess this is related with earlier one. You should open the file via a PHP enabled server. I guess you are having a .html file and trying to open that in your browser. But it doesn't work. PHP files must be served via a PHP enabled server. A browser cannot interpret PHP.
+ 3
Try accessing php file as a web page rather than accessing it as a file. Like this,
http://localhost/{yourfilepathinhtdocsfolder}.php
+ 2
reinstall your Local server software
+ 1
guys I am using xampp sever , html is working but PHP having problems.....