| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Apr 2007
Location: colorado, usa
Posts: 23
|
beginner php question
Hello, I am starting to play around with PHP a little bit, but I'm having trouble with something: I would like to read a site's source line by line. I can do this fine - but apparently only when the page I'm reading lives on the same server... trying to load anything else raises a Connection refused error. Here's the code I'm using: Code:
Thanks! |
|
|
|
|
|
#2 (permalink) |
|
geek
|
"allow_url_fopen" in your ini file might have something to do with it. PHP: Filesystem Functions - Manual |
|
|
|
#6 (permalink) |
|
Registered User
Join Date: Apr 2007
Location: colorado, usa
Posts: 23
|
Well this probably isn't the best approach but... my goal was to post a counter on my project's web page showing how many downloads its had. For the files hosted at sourceforge I just grabbed the numbers from the source of the download pages and echoed them into my site. Someone packaged the program for a linux distribution though so I wanted to add another counter for how many downloads the other version had at the other site. I'm open to suggestions for how to do this though... I just kind of went at it and this was the first thing that came to mind. |
|
![]() |