Jump to content

Taking a PHP page from a website


JamieLee2k

Recommended Posts

There is a website that I know of that uses PHP to display some webpages and I was looking to get a few of them but since they are displayed as a webpage and not a .php file in the url I have no way of accessing the file to download, can anyone tell me if there is a way to somehow download the webpage as a .php in which it is on the server?

Thanks
JamieLee2k
Link to comment
Share on other sites

[quote author=JamieLee2k link=topic=110583.msg447194#msg447194 date=1160060567]can anyone tell me if there is a way to somehow download the webpage as a .php in which it is on the server?[/quote]

So you want to get the source code of the PHP script!? If so, ask the webmaster to hand it to you - fortunately there is no other way.
Link to comment
Share on other sites

Welcome to the forums.

The only way to really do what you're after is:

1) Contact the webmaster and ask for the file to be sent to you
2) If the files are publicly accessable, write a script that will get the content of the file and output it to the screen or save it to a file for you.

Either way, you've got to have permission from the server it is residing on to get at the file contents. That's the beauty of PHP: without server access, I can keep my code to myself.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.