0
How php program saved and run in notepad
I didn't get any information how to save php code ... How it run... How can I see result in lap
3 odpowiedzi
+ 1
Just click File->Save in Notepad to save it. To run it, double click the file that you saved. That what you're asking?
I would download something like WebMatrix 3. It'll install your database and function as a web server (you need PHP installed for PHP to work) from your localhost. It's great when you're learning or creating a website you want to test offline before you upload it into production.
0
In html we r saving by file name. Html na... Same as in php I did file name. Php .. But it not display anything
0
Where are you running the website from? Your computer or a server?
Does it generate errors or just a blank white screen?
What is the purpose of your code? (what are you trying to accomplish/display)
Have you turned on error display in PHP?
Did you install PHP onto the web server?
If you've installed PHP properly, then turn on errors so you can see if it's generating an error. Also, check console for errors. If you're still having issue, post your code and lets take a look at it. (post any errors with it)
TO TURN ON PHP ERRORS - PUT THIS AT TOP OF YOUR DOCUMENT:
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
?>