|
|
|||||||
| Register | FAQ | Calendar | Radio and TV | NP Shop | Search | Today's Posts | Mark Forums Read |
| Adult Webmasters Main Forum Friendly adult web master chat, help and information |
![]() |
![]() |
![]() |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Is Aga really Little Buddha?
|
PHP help needed
i need to somehow load the contents of a URL into a variable
so i can later use string replace to work with the contents of the variable i tried <?php $a = http://www.myurl.com ?> but this doesn't work i am guessing there must be come sort of function to request the url contents can anyone help me out? |
|
|
|
|
|
#2 (permalink) | |
|
and the award for the most annoying avatar...
Join Date: Feb 2006
Posts: 3,736
Points: 1,620
|
php.net/file_get_contents (if you have url wrappers enabled)
this is basic stuff, spend some time on php.net to help yourself instead of being spoonfed on here - it'll be faster ![]() __________________
Quote:
|
|
|
|
|
|
|
#3 (permalink) | |
|
Is Aga really Little Buddha?
|
Quote:
i do use php.net , it's just hard to find things when you are not a programmer |
|
|
|
|
|
|
#4 (permalink) |
|
Chelsea 4 Ever
|
but i do get a little problem. when using this if the page has a link /img/abc.jpg then it copies it as the same instead of site.ext/img/abc.jpg
__________________
Blue is the colour, football is the game======We're all together, and winning is our aim So cheer us on through the sun and rain======'cause Chelsea, Chelsea is our name If any one ever needs any knid of help then pm me. i will try my best to help. |
|
|
|
|
|
#5 (permalink) | ||
|
and the award for the most annoying avatar...
Join Date: Feb 2006
Posts: 3,736
Points: 1,620
|
Quote:
or maybe wget would be better suited to your needs? __________________
Quote:
|
||
|
|
|
|
|
#6 (permalink) |
|
Chelsea 4 Ever
|
ues i did. but i was thinking of a traffic exchange site (long story why i was not using a ready made script). so basicly i didn't knew what to replace for example if i put to replace /image/ but user's site had /img/ and same goes for links.
__________________
Blue is the colour, football is the game======We're all together, and winning is our aim So cheer us on through the sun and rain======'cause Chelsea, Chelsea is our name If any one ever needs any knid of help then pm me. i will try my best to help. |
|
|
|
|
|
#8 (permalink) | ||
|
and the award for the most annoying avatar...
Join Date: Feb 2006
Posts: 3,736
Points: 1,620
|
Quote:
![]() __________________
Quote:
|
||
|
|
|
|
|
#9 (permalink) |
|
Chelsea 4 Ever
|
well i dumped that idea and about to put that domain for a adsense based website.
__________________
Blue is the colour, football is the game======We're all together, and winning is our aim So cheer us on through the sun and rain======'cause Chelsea, Chelsea is our name If any one ever needs any knid of help then pm me. i will try my best to help. |
|
|
|
|
|
#10 (permalink) |
|
Im addicted to Netpond
|
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 |
|
|
|
|
|
#11 (permalink) | |
|
Kaktusan Corp taking over the Coding biz
|
Quote:
![]() 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 |
|
|
|
|
|
|
#13 (permalink) | |
|
Kaktusan Corp taking over the Coding biz
|
Quote:
![]() currently my icq is off. I have some important work to finish..should turn it on in couple of hours.. leave me a message there and i will get back to you ![]() __________________
![]() #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 |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
![]() |
![]() |