|
-
Apr 2nd, 2008, 03:53 PM
#1
Thread Starter
New Member
file_get_contents and characters in a URL problem
I use the file_get_contents function to get the html from a page. I parse through that page and get a specific url I want. It looks similar to this:
http://www.domain.com/index.cfm?action=blah&ID=5000
Now I want to file_get_contents the above url. I understand that the & is for html so I tried to convert the string to work as a url. I tryed both using urlencode function on the query of this url and just manually through php replacing with what I thought were the appropriate characters with no luck. Can anyone help, or point me in the right direction?
-
Apr 2nd, 2008, 05:39 PM
#2
Re: file_get_contents and characters in a URL problem
Is it returning an empty string? How are you getting that URL which already has the & in it?
-
Apr 2nd, 2008, 08:14 PM
#3
Re: file_get_contents and characters in a URL problem
& is the HTML equivalent of &. So why not convert & to &? Just a thought
-
Apr 3rd, 2008, 03:44 AM
#4
Re: file_get_contents and characters in a URL problem
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|