I will like to konw to i will view a websites php codes. anybody to help me?
I will like to konw to i will view a websites php codes. anybody to help me?
You can use this view only once PHP program along with your current PHP log-in program. This code will allow you to restrict access to a particular file. The user can view the resource only once within a pre-set ammount of time. The username, password, date and the users IP address are written to a logfile. The code compares the username and password combonations for a match and determines if the alloted time limit has expired. If all is well the function returns back to your actual log-in program. There is a few configuration options like if you want to be notified if the user attempts to log-in a second time. The ipLogFile.txt file will need to have writable permissions in order for the program to write the users data to the logfile.
try this surely helpful to you Web developers text editor
Here is an example:
We can see that the PHP code is echoing the line My PHP Page, however, it is the server that reads this code and then knows to send My PHP Page to your browser. Since the rest of the code is just instructions for the server, it doesn't send anything else. So a view source or a save will simply be the text My PHP Page, that was sent to the browser from the server when it read our file.PHP Code:
<?php
Echo "My PHP Page";
?>
And to view source of any PHP build web site is not possible until an unless you have the privileges to work on its backend, but you are able to see the page source where you could find on which PHP version it is based on.
Like many other languages, PHP is executed server side so your code never actually gets to the user's browser. Instead, the results of your PHP are sent to the user's browser. For this reason, if you try to view the source from your browser, or if you try to save the file from your browser, it just won't work. The browser never actually gets any PHP code.
Bookmarks