Log In
Sign Up
Why Join Hot Scripts?
Hot Scripts
All Categories
PHP
Python
Tools & Utilities
XML
Ruby on Rails
Ajax
Web Hosting
ASP
ASP.NET
C & C++
CFML
Flash
Java
JavaScript
CGI & Perl
HTML5
Forums
Blog
Scripts
Hosted Apps
Plugins
Design Templates
Forum
Blog
Advertise
Contact Us
Register
FAQ
Rules
Calendar
Search
Today's Posts
Mark Forums Read
RSS Feeds
Current location:
Hot Scripts Forums
»
Programming Languages
»
PHP
» Retrieving HTML source code using PHP?
Retrieving HTML source code using PHP?
LinkBack
Thread Tools
Display Modes
#
1
(
permalink
)
12-30-05, 10:16 PM
1jetsam
Wannabe Coder
Join Date: Apr 2004
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Retrieving HTML source code using PHP?
Is it possible to retrieve the source code of a remote file using PHP? For example; a code that retrieves the HTML souce code from a website such as
dogpile
(or any site).
__________________
Quate CMS 0.3.3 Released
- A simple, fast Content Management System.
1jetsam
View Public Profile
Find all posts by 1jetsam
#
2
(
permalink
)
12-31-05, 12:34 AM
mab
Community VIP
Join Date: Oct 2005
Location: Denver, Co. USA
Posts: 2,674
Thanks: 0
Thanked 0 Times in 0 Posts
Yes - here is a link to an example -
http://www.zend.com/manual/function.file.php
mab
View Public Profile
Find all posts by mab
#
3
(
permalink
)
12-31-05, 04:43 AM
Richard
Wannabe Coder
Join Date: Sep 2005
Location: Oxford, UK
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
I think you're looking for the
file_get_contents()
function. This will assign the source code of the given URL to the specified string.
Richard
View Public Profile
Visit Richard's homepage!
Find all posts by Richard
Bookmarks
Digg
del.icio.us
StumbleUpon
Google
«
Script - Purchase form
|
Php Nuke users to PHP users
»
Currently Active Users Viewing This Thread: 1
(0 members and 1 guests)
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
Off
HTML code is
Off
Trackbacks
are
On
Pingbacks
are
On
Refbacks
are
On
Forum Rules
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
General Community
Announcements
Polls
The Lounge
New Members & Introductions
Script Requests
HotScripts.com Discussion
Hot Scripts Forum Questions, Suggestions and Feedback
General HotScripts Site Discussion
HotScripts Site Bug Reports
General Web Coding
HTML/XHTML/XML
HTML5
JavaScript
CSS
Flash & ActionScript
Programming Languages
PHP
Perl
ASP
ASP.NET
C/C++
Visual Basic
Windows .NET Programming
Everything Java
Other Languages
Other Discussions
Web Servers
Database
Other Topics
Web Design
API
Frameworks
AJAX
Security
Server Administration
Portable Device Programming
Cloud Computing
Ruby on Rails
CFML
Python
Tools and Utilities
Remotely Hosted
Web Hosting
Advertising Forums
General Advertisements
Job Offers & Assistance
Traffic Exchange
Website Reviews
Web Hosting Talk
DBForums.com
Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
html tutoral
thefrtman
HTML/XHTML/XML
5
04-27-09
10:25 AM
Is there a way to hide source code in browsers?
dunmore
HTML/XHTML/XML
43
11-15-06
03:02 PM
Storing PHP code in mysql
perleo
PHP
1
09-17-05
11:40 AM
HELP hide data from appearing in html source code generated by perl
redd218
Perl
2
03-01-05
03:03 AM
Source Code
Bravi
JavaScript
6
02-09-05
05:03 AM
All times are GMT -5. The time now is
06:24 AM
.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Digg this Thread!
Add Thread to del.icio.us
Bookmark in Technorati
Share on Facebook
Share on Stumble Upon
Share on Twitter