How to run basic php file and where to place?

machpate

New Member
Messages
2
Reaction score
0
Points
0
I am new to php development dont know how to run the newFile.php file. In which folder I should place the php file on the x10hosting ?
Below is the code written in the file.
<html>

<body>

<?php
echo "Hello World";
?>

</body>
</html>

 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Should be with .php extension.

Can be anywhere in public_html or a subdirectory ( if in public_html/scripts/test for example, the URL would be mysite.com/scripts/test/newfile.php [try not to use Capitals or special characters in file/directory names )
 

machpate

New Member
Messages
2
Reaction score
0
Points
0
Should be with .php extension.

Can be anywhere in public_html or a subdirectory ( if in public_html/scripts/test for example, the URL would be mysite.com/scripts/test/newfile.php [try not to use Capitals or special characters in file/directory names )


Thanks a lot it was such a silly mistake ...

now I am not being able to access the file using a link ... !


it gives me 404 Error ... !

---------- Post added at 04:01 PM ---------- Previous post was at 03:53 PM ----------

http://machpatel.x10.mx/

---------- Post added at 04:04 PM ---------- Previous post was at 04:01 PM ----------

I made it out thanks a lot ... !
 
Top