27
May

How do you take the whole php file from a site and save it to your personal. I can for html, but how do you do it for the actual php (the script before it is run through the server and changed into html)!

First one to answer successfully gets ideal answer.

All help appreciated.


Answer:
You cannot retrieve raw PHP code from a server via an HTTP request.

Why don't you just send a polite e-mail to the site owner, explain that you’re learning PHP, like what his site does, and would like to use his code?

Alternatively, there is very tiny new under the sun. Probably, any code you want to accomplish a task is out on the Web. Common places to find free PHP code include http://www.php.net (the comments section for most functions include user-submitted code, and the function references almost always provide sample code)

http://www.phpbuilder.com

http://www.devguru.com

http://www.sourceforge.net


Answer:
The answer will never good appreciated - because that is impossible to get php file from server. PHP is serve-side technlogy and the server send you just “pure” html answer.

You can not download php code from every site*

One option is (hacking) and shotdown PHP interpret on serverside, but without other part of apache/server


Answer:
That is not possible. PHP scripts resides on the server side and HTML pages are in your web browser cache. That’s why you can view the source.

Answer:
You connect to the site by FTP and download it. (It has to be your site - you can't download files from someone else's site.)

Book Mark it-> del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Netscape | Yahoo | BlinkList

This entry was posted on Tuesday, May 27th, 2008 at 2:11 am and is filed under Programming. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or TrackBack URI from your own site.

Leave a reply

Name (*)
Mail (*)
URI
Comment