473,395 Members | 1,581 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Savin webpages

Hi.

I am new to php, and i would like to ask you how can i save some
webpage(source code) in a file?

I know how to do it with http sites, but i cant get it to work with https
sites
I was trying to use cURL, but for some reason i cant get whole webpage into
fil, but only a part.

So can someone write example how to catch webpage source and put it in to
file?
Feb 23 '06 #1
6 1065
Netko wrote:
Hi.

I am new to php, and i would like to ask you how can i save some
webpage(source code) in a file?

I know how to do it with http sites, but i cant get it to work with https
sites
I was trying to use cURL, but for some reason i cant get whole webpage into
fil, but only a part.

So can someone write example how to catch webpage source and put it in to
file?


Well if cURL isn't working for you then you could roll your own using
fsockopen to create a http socket, send the appropriate headers then
read the response like a normal file handle. Check fsockopen() for
examples...

Obviously this wouldn't be as good as using cURL

Al
Feb 23 '06 #2
Netko wrote:
Hi.

I am new to php, and i would like to ask you how can i save some
webpage(source code) in a file?

I know how to do it with http sites, but i cant get it to work with https
sites
I was trying to use cURL, but for some reason i cant get whole webpage into
fil, but only a part.

So can someone write example how to catch webpage source and put it in to
file?


You can't get php source via http or https - all you'll get is the
resulting html code.

To get the source you need use ftp.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Feb 23 '06 #3
Datuma Thu, 23 Feb 2006 14:41:12 -0500, Jerry Stuckle je napisao\la:
You can't get php source via http or https - all you'll get is the
resulting html code.

To get the source you need use ftp.


Well this is what i meant, i need to get resulting php code from https
site, but i donno how.
Feb 23 '06 #4
Datuma Thu, 23 Feb 2006 20:49:21 +0100, Netko je napisao\la:

Well this is what i meant, i need to get resulting php code from https
site, but i donno how.


Sorry, resulting html code, not php
Feb 23 '06 #5
I am new to php, and i would like to ask you how can i save some
webpage(source code) in a file?

I know how to do it with http sites, but i cant get it to work with https
sites


See these threads:
<http://groups.google.co.uk/group/comp.lang.php/search?group=comp.lang.php&q=fopen+SSL&qt_g=1&sear chnow=Search+this+group>

---
Steve

Feb 23 '06 #6
Datuma 23 Feb 2006 12:46:35 -0800, Steve je napisao\la:

See these threads:
<http://groups.google.co.uk/group/comp.lang.php/search?group=comp.lang.php&q=fopen+SSL&qt_g=1&sear chnow=Search+this+group>

Thank you, i found the solution, it seems i just had to make script to
emulate IE
Feb 23 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: The_Incubator | last post by:
As the subject suggests, I am interested in using Python as a scripting language for a game that is primarily implemented in C++, and I am also interested in using generators in those scripts... ...
11
by: Robert Ferber | last post by:
Hi, I'm a PHP-programmer who evaluates Python for a new project. I really like a lot of concepts of Python, especially the shell, but there is one great feature of PHP which I don't know how to...
2
by: Stas | last post by:
Hello all! I have two webpages main.asp with some codes and text.html I need joint (insert) text into main.asp. I forgotten instructions to insert first webpage into second. How I can do it?...
7
by: dow | last post by:
I'm looking for ideas or how to make webpages for members. I want a member log in and view their profiles and check boxes stating that they have completed listed instructions and waiting for the...
5
by: Michael Landberg | last post by:
Hi this may be a stupid question, but anyway! I have created a website with a few pages. I have noticed that when I change the IE browser text size ( through the view menu -> text size) to...
0
by: xmail123 | last post by:
I have written the following simple C# project in Visual studio. I am trying to see how the XML documenting works. I click Tools, Build Comment WebPages… then just click OK in the Build Comment...
3
by: Yul | last post by:
Hi, We are in the process of designing an ASP.NET app, where a user will enter some 'Customer ID' to be queried in the database. If the ID is valid, several stored procedures will be called to...
12
by: scsharma | last post by:
Hi, I am working on creating a webapplication and my design calls for creating main webform which will have menu bar on left hand side and a IFrame which will contain all the forms that are shown...
7
by: Patricia Mindanao | last post by:
I have a directory tree on my hard disc which represents all the web pages and linked stuff on my mirrored web hoster server. All web pages and files are statically linked. So dynamically...
4
lifeisgreat20009
by: lifeisgreat20009 | last post by:
I have made a dynamic website using HTML, ASP, JavaScript for my college project..... My website is running pretty well at home as well as in college...I mean linking and all, also no problem with...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.