Hi there, I wonder if you people can help me with a small code I'm trying to make. I'm a newbie when it comes to PHP so don't expect too much of me. Well anyway here we go, I want to make a script that can "interact" with other pages that I don't have access to, for example: there is a postcount on a forum and I wan't to have that number shown on my page or that there is a list of names on a page and I wan't to have them shown on my page. How do I do it?
I'm kinda lost when it comes to thinking up stuff like this but couldn't it be done with fopen() and file_get_contents?
[SOLVED] Page interaction
Moderator: General Moderators
Just wanted to let you know what Im doing these data grabbing stuff now and its really taking time even on servers.
Using RegExp (preg_match) will take time. Dont use ereg - it takes even more time. file_get_contents() is really fast.
Reduce the number of subpatterns () - that again increases time.
If its one page you are parsing then it'll take a sec but if crawling through many it'll take tremedous amt of time.
Using RegExp (preg_match) will take time. Dont use ereg - it takes even more time. file_get_contents() is really fast.
Reduce the number of subpatterns () - that again increases time.
If its one page you are parsing then it'll take a sec but if crawling through many it'll take tremedous amt of time.