FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


could you please advise me.





jossylala
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
AftershockVibe
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.
albuferque
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.
Related topics
Can we request 1 more cpanel hosting with same account?
Please Advise.
Is it possible to...
Does FRIHOST support .xml?
prefix www doesn't work.
Podcasting
MySQL issues on Frih.net server
Frihost posting points and Donation
Site Showing Error.
Server Status.
Please Help me to configure Outlook Through Proxy
Browsers are showing the wrong website! Help Please
PLEASE CLOSE - Open Letter of Invitation to FriHost Staff...
html tags please help
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.