PDA

View Full Version : need PHP help


Dawgy
01-31-2002, 09:42 AM
i need some help writing a simple php script... or just someone to do it for me... here's the general idea:

1. hits come in to a url like this: mydomain.com/in.php?source=acct

2. script decides which of my sites to send the hit to (the target), based on a percent that i have set. so like if i have 3 sites in the script, i can have it send 50% to one 25% to another, 25% to the third, etc.

3. info is logged: unique or raw, source of hit, target of hit

4. hit is sent to the target.

sounds pretty simple, but i need this to be able to handle about 200,000 hits a day to start... and not kill my server...

hit me up on icq or post here if you know a good solution :)

MiOb
01-31-2002, 04:37 PM
Hi there !

Then You have only one solution

Try programm it with using text files, don't use MySQL or any free DB...

Mogul
01-31-2002, 08:39 PM
"Try programm it with using text files, don't use MySQL or any free DB..."

Um what?

If you know how to code php and understand DB optimization, you can use mysql just fine. 200,000 hits a day is not much for any server past 4 megs of ram and 12 mhz processor.

I would recommend you either:

1. Hire a programmer to do it.
2. Go to Amazon.com and buy php books.
3. Hit sites like phpbuilder.com and read up. Lots of info there and even some post boards.

Make sure you are using PHP4. I only say this because I notice some people still using 3. PHP 4 was written by Zend. While it was a basic re-write of the php3 engine, it added more functions and also is about 300% faster. Plus you can encode/optimize your code, use their superior server caching products and more.

Mogul

michaelw
01-31-2002, 10:16 PM
check your ICQ dawgy

146423631

Ride
01-31-2002, 11:37 PM
Try some #php in the bigger irc servers, there are usually a lot of really good coders who will do cheap work. Let me know if you have any luck.

Ride
ICQ:42015495