there is this site that i want to take a look at one of its files, its home.php file and i don't know how to get it.How do i access the source codes for this php file? as i said,do advise me on the road to take. thanks
could you please advise me.
Short Answer: You can't through HTTP (i.e your web browser) because the whole point of PHP is that it is processed before a page is sent to the client.
Longer Answer: If their PHP parser isn't configured within the HTTP server then the file will be spat out. This isn't ever likely to be the case though. Unless you have FTP or direct file access through a control panel somehow, you can't.
Longer Answer: If their PHP parser isn't configured within the HTTP server then the file will be spat out. This isn't ever likely to be the case though. Unless you have FTP or direct file access through a control panel somehow, you can't.
If it's a development server you can turn on php-source in config file.
If you're using .htaccess. Put the following code in the file:
AddType application/x-httpd-php-source .phps
then you can point to home.phps to see the code.
Hope it helps.
If you're using .htaccess. Put the following code in the file:
AddType application/x-httpd-php-source .phps
then you can point to home.phps to see the code.
Hope it helps.
Related topics
