|
-
May 20th, 2006, 04:55 AM
#1
Thread Starter
Fanatic Member
Requesting a URL from within code
what is the best way to request a url from within a php code without changing the page url and without using ajax.
i don't need to return any parameter(s) back to my page.
-
May 21st, 2006, 05:22 AM
#2
Re: Requesting a URL from within code
What do you want to use it for then?
Most of the file system functions support the URL wrappers, so you can use things like file_get_contents() to retrieve a page.
-
May 21st, 2006, 05:19 PM
#3
Thread Starter
Fanatic Member
Re: Requesting a URL from within code
actually i used the file() function but i was thinking there should be a better way.
-
May 22nd, 2006, 02:44 AM
#4
Re: Requesting a URL from within code
You can use CUrl if it has been enabled on your hosting server. You cna check by making a file which callls phpinfo() and search for curl.
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
|