Home > Paid Traffic Sources > Mobile

Dynamic PHP Landers and CDN? (9)


03-01-2015 07:48 AM #1 ckb1979 (Member)
Dynamic PHP Landers and CDN?

Hey guys

Recently I migrated from Cloudflare CDN to Edgecast however I think I have found some issues with Edgecast...

In some of my PHP landing pages I use

<?
$region=@$_GET['c1'];$device=@$_GET['c2'];
?>

and then use <?=$device?> to call out the information (pretty standard stuff)

When I was using cloudflare this was working fine, since i switched to edgecast its now bringing back {device} into the page. Im sure it has something to do with the edgecast caching....

anyways have you guys experienced similar?

Jim


03-01-2015 07:55 AM #2 archieaff (Member)

CDN is for static files only (no PHP).
You can replace your PHP code with Javascript alternative to call out the parameters.


03-01-2015 08:01 AM #3 ckb1979 (Member)

Thanks, do you know the JS code to call out the parameters?


03-01-2015 08:04 AM #4 ckb1979 (Member)

Hmm, its strange that it works on Cloudflare though?


03-01-2015 08:24 AM #5 kingkong1000 (AMC Alumnus)

That sounds a bit odd - please post if you figure out how that was possible

As far as i know if you have the parameter in the Voluum link for example you can use getURLParameter to grab it with js.


03-01-2015 08:28 AM #6 french813 (Member)

Curious what made you switch...were you unhappy with CloudFlare? I was just about to sign up with them.


03-01-2015 11:01 AM #7 deedsmedia (Member)

Have a look for some sample code here:

http://stmforum.com/forum/showthread.php?t=21846


03-03-2015 08:47 AM #8 ocean25 (Member)

Cloudflare does not cache php or html. You may be able to get html cached (they have article on that), but if any url strings are added, it will pull from server, not cache.


03-03-2015 10:27 AM #9 ckb1979 (Member)

Ah thats interesting, so all along Cloudflare probably wasnt accellerating my content then...

I have now added Javascript to my pages and EdgeCast seems to be working great Thanks guys


Home > Paid Traffic Sources > Mobile