Upgrade the performance of an HTTP GET

I am using an http get to perform routing and billing.[url removed, login to view];receiver=%P&time=%t

[url removed, login to view]:


$sender = $_GET["sender"];

$receiver = $_GET["receiver"];

if (preg_match('/^39/', $receiver)) {

$smsc_id = 'route_italy';

$price = '0.025';


else if (preg_match('/^1/', $receiver)) {

$smsc_id = 'route_usa';

$price = '0.03';


else if (preg_match('/^242/', $receiver)) {

$smsc_id = 'route_route3';

$price = '0.025';


else {

$smsc_id = 'route_uk';

$price = '0.025';


header("price: ".$price);

header("route: ".$smsc_id);



The problem i experience, is that i must perform routing and billing via HTTP api and do that EXTREMELY FAST and without expensive resources.

Some data to think of before bidding.

a) The values are static.

b) The values are more than 16.000 ( 16.000 different preg_match)

c) I want to evaluate your suggestion before i choose a supplier. ( If you bid with answers like - i can do it choose me - !!! don't bid)

d) I suggest you to read [url removed, login to view]

e) I need a high quality solution for this situation.

Thank you for reading my project,

Bid only if you are experienced.

Taidot: C-ohjelmointi, Linux, PHP, SQL, Järjestelmänvalvoja

Näytä lisää: http linux, the data supplier, get a supplier, api, answers com api, _get, linux http, memcached api, i want answers, upgrade php, supplier quality, http://, http, HIGH performance, api supplier, using http, situation, want upgrade, fast performance, sender receiver, price billing, performance problem, using billing, upgrade problem, billing data

Tietoa työnantajasta:
( 4 arvostelua ) UK, United Kingdom

Projektin tunnus: #467047

11 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


Please, send me these "16.000 different preg_match" or database with data. I will write special script and publish it on my own server. You will be able to test original script (slow) and my script (fast). Next - you Lisää

$100 USD 2 päivässä
(1270 arvostelua)

I am able to fix your problem

$250 USD 1 päivässä
(86 arvostelua)

lets start now

$200 USD 6 päivässä
(29 arvostelua)

Hi if the data is static, so it will come from a text file or csv? Please See PMB, thanks.

$96 USD 1 päivässä
(3 arvostelua)

Please check my PM for details.

$250 USD 9 päivässä
(4 arvostelua)

Please check PM. Thanks.

$250 USD 5 päivässä
(1 arvostelu)

I have an idea how to implement this using Memcache. See PM.

$70 USD 1 päivässä
(8 arvostelua)

1) send me your data. 2) i will code the script. (10-15 lines, not more) 3) You will test it on my server. (with benchmarks) I'll release the script after payment. (I've been tricked too many times) Regards

$50 USD 1 päivässä
(3 arvostelua)

I can handle this by using arrays. I should be fast enough for your needs while using (just an estimation) a maximum of 3 to 4 steps to obtain the data.

$30 USD 0 päivässä
(1 arvostelu)

For maximum performance, you would use a specific-purpose web server, instead of general-purpose server and a scripting language, such as Apache and PHP. The application would listen directly to the port rather than b Lisää

$50 USD 3 päivässä
(0 arvostelua)

With the help of simple modifications the execution time was cut 5-9 times. There can be done a lot more, i can explain it later and there are more many ways to solve your problem, but i need more information for that. Lisää

$50 USD 1 päivässä
(0 arvostelua)