Optimization 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 - !!! dont bid)

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

e) I need the BEST 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ää: get get get, get a supplier, api, answers com api, http php, memcached api, i want answers, project optimization, optimization project, http://, http, best route, api supplier, using http, situation, sender receiver, suggest optimization, price billing, using billing, solution optimization, billing data, bid billing, bid price optimization, sender api, http api

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

Projektin tunnus: #467044

Myönnetty käyttäjälle:


hello, please check PM, Regards Jacek

$100 USD 1 päivässä
(15 Arvostelua)

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


let starts........ regards soNiamit

$100 USD 0 päivässä
(159 arvostelua)

hello, Please check PMB

$50 USD 2 päivässä
(72 arvostelua)

$50 for 3 days

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