file_get_contents?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
NightCoder
Forum Newbie
Posts: 1
Joined: Wed Sep 22, 2010 6:20 pm

file_get_contents?

Post by NightCoder »

Hi, I run a voting site with incentives.

I am having problems using file() and file_get_contents() to hit the other websites voting reward script. It works, it just lags.. takes awhile for the page to load and this can be annoying for people voting.

I did try to setup a cron, and to use file_get_contents() to hit these files so it doesn't lag the user but now it's kinda killing my server.
buckit
Forum Contributor
Posts: 169
Joined: Fri Jan 01, 2010 10:21 am

Re: file_get_contents?

Post by buckit »

are these websites on the same server? some code examples would help. impossible to even give suggestions without knowing what you are doing.
Post Reply