Thread: PHP help needed
View Single Post
Old 07-03-2007, 10:17 AM   #11 (permalink)
kaktusan
Blog Automation Software, Check My Sig!
 
kaktusan's Avatar
 
Join Date: May 2004
Location: Bulgaria
Posts: 4,671
Points: 0
Send a message via ICQ to kaktusan Send a message via AIM to kaktusan
Quote:
Originally Posted by SabrinaDeep
uhm i just realised now that you probably meant to store the whole source code of an html filer inside a variable...i didnt have much sleep last night sorry eheheh.


If you want to open an html file, and put all its source content inside a variable, you need to use the file_get_content function like this:


$url = "http://www.example.net/somepage.html";
$input = @file_get_contents($url) or die('Could not access file: $url');


Now, if the file exists, the whole source content of
somepage.html is stored inside the
$input variable


xoxoxo

Sabrina
you are getting on the right track

just the die('Could not access file: $url'); won't be working normally, since you have put variable inside single quot symbol
__________________


#1 Mass Blogging Script: Blogs Organizer | #1 Mass RSS Feeder Script Blogs Automater
#1 Multidomain Hardlink Trade Script : Links Organizer | #1 Blog Posts Builder Script: Gallery Scraper
Complete List of Affiliate RSS Feeds! | A-B-C Blog Linktrades
kaktusan is online now   Reply With Quote Send a private message to kaktusan