Loading...
Flex

Un proxy PHP pour flash FLEX Silverlight

Si vous développez des applications  flash, vous avez du vous confronter aux problèmes de cross domain. Pour des raisons de sécurité le plugin flash player bloque la lecture de données d’autres sites.

Voici un script PHP qui agit comme proxy et qui récupère les data du site, il nécessite la librairie CURL de PHP :

<?php
$ch = curl_init();
$timeout = 30;
$userAgent = $_SERVER[‘HTTP_USER_AGENT’];

curl_setopt($ch, CURLOPT_URL, $_REQUEST[‘url’]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
curl_setopt($ch, CURLOPT_USERAGENT, $userAgent);

$response = curl_exec($ch);

if (curl_errno($ch)) {
echo curl_error($ch);
} else {
curl_close($ch);
echo $response;
}
?>

Pour CURL:

93 comments
  1. supreme hoodie

    I am also commenting to let you understand what a great encounter my daughter encountered visiting your blog. She noticed numerous things, with the inclusion of what it’s like to have a wonderful coaching mood to let other people easily comprehend some tricky subject matter. You actually did more than our own desires. Thanks for giving these essential, dependable, revealing and in addition unique guidance on your topic to Evelyn.

  2. golden goose sneakers

    I am also commenting to make you know what a remarkable encounter my daughter had viewing the blog. She discovered a good number of details, not to mention how it is like to have a marvelous teaching nature to let the others just fully understand certain multifaceted things. You really surpassed visitors’ expected results. Thank you for presenting the warm and friendly, healthy, revealing as well as unique guidance on that topic to Evelyn.

  3. bape clothing

    I would like to convey my respect for your generosity for all those that have the need for guidance on this particular idea. Your very own dedication to getting the solution all-around ended up being rather important and has continually helped most people much like me to get to their ambitions. Your own important suggestions entails a great deal to me and much more to my office workers. Thanks a lot; from all of us.

  4. off white outlet

    I would like to voice my love for your kindness supporting those individuals that have the need for guidance on this one concept. Your personal dedication to passing the solution all over came to be quite functional and has in every case made people just like me to achieve their pursuits. Your own informative help and advice means much a person like me and still more to my peers. With thanks; from all of us.

  5. off white outlet

    I simply desired to thank you so much yet again. I’m not certain what I could possibly have done in the absence of the tips discussed by you directly on such a area. It was actually a very horrifying situation in my opinion, but being able to see this well-written avenue you resolved it made me to jump with joy. I’m just grateful for the advice as well as wish you really know what an amazing job you are carrying out teaching some other people with the aid of your blog. Most likely you have never met all of us.

  6. kyrie irving shoes

    I simply needed to say thanks once more. I am not sure the things I would have worked on in the absence of the actual recommendations shown by you concerning such theme. It was actually the challenging dilemma for me, nevertheless discovering your expert style you managed that forced me to cry for happiness. Now i’m thankful for the advice and thus have high hopes you find out what an amazing job that you’re carrying out instructing the others all through your site. I am sure you haven’t met any of us.

  7. westbrook shoes

    I must convey my passion for your kind-heartedness giving support to those individuals that need help with in this issue. Your very own commitment to passing the solution around came to be extremely helpful and has in every case permitted girls much like me to reach their dreams. This informative instruction indicates so much to me and additionally to my peers. Thank you; from all of us.

  8. supreme new york

    Needed to compose you one very little remark to finally say thanks a lot over again just for the pleasant suggestions you’ve shown on this page. This has been so particularly open-handed with you to offer freely just what a number of people could have advertised for an electronic book to generate some profit for their own end, most importantly now that you could have tried it in case you wanted. Those strategies additionally worked as the fantastic way to comprehend the rest have the identical passion much like my very own to learn somewhat more regarding this matter. I’m sure there are several more fun occasions up front for people who check out your website.

  9. golden goose

    Thanks for your entire hard work on this site. Betty loves working on investigation and it’s simple to grasp why. A number of us know all about the compelling manner you convey helpful guidelines on the blog and as well boost contribution from other ones on the area then my simple princess is certainly understanding a lot of things. Have fun with the remaining portion of the new year. You are always doing a pretty cool job.

  10. golden goose

    I have to get across my appreciation for your kindness in support of those people that have the need for help on this matter. Your special commitment to getting the solution across turned out to be extraordinarily significant and have specifically empowered individuals like me to attain their aims. Your new insightful help means a lot to me and substantially more to my colleagues. Regards; from everyone of us.

  11. bape clothing outlet

    I want to express some appreciation to you just for rescuing me from this type of predicament. Because of browsing through the the net and coming across principles which are not helpful, I assumed my life was done. Being alive devoid of the approaches to the difficulties you have fixed as a result of this site is a critical case, as well as those that might have in a negative way affected my career if I had not come across the blog. Your actual talents and kindness in touching all the details was important. I don’t know what I would have done if I hadn’t come upon such a point like this. I’m able to at this point relish my future. Thanks a lot so much for the specialized and amazing guide. I won’t think twice to endorse your site to any person who wants and needs tips on this area.

  12. off white clothing outlet

    I wish to point out my love for your generosity giving support to those people that really need guidance on this important subject matter. Your very own dedication to getting the solution around has been unbelievably informative and have without exception made folks just like me to reach their desired goals. This valuable key points indicates much to me and much more to my office colleagues. Regards; from all of us.

  13. kd 12

    I wish to express my gratitude for your generosity supporting women who need help with the topic. Your real dedication to passing the solution up and down was exceedingly practical and have truly encouraged workers like me to realize their aims. This interesting useful information can mean a whole lot a person like me and additionally to my colleagues. Thanks a ton; from each one of us.

  14. pg 4

    I wish to convey my passion for your kind-heartedness giving support to those people that actually need assistance with this important field. Your very own dedication to getting the solution all around ended up being unbelievably useful and have continually helped women like me to attain their endeavors. The warm and friendly publication signifies this much to me and even more to my colleagues. Thanks a lot; from all of us.

  15. golden goose

    I wanted to post you a very small observation to thank you so much again with your pleasant thoughts you’ve contributed on this page. It’s so remarkably open-handed with you to offer openly all that many people would’ve marketed for an e-book to help make some money for themselves, most notably considering that you might have done it in the event you decided. Those tricks also served to be a good way to comprehend most people have the same passion the same as my own to figure out very much more around this condition. I believe there are lots of more enjoyable sessions up front for individuals that scan your website.

  16. supreme clothing

    Needed to draft you one very little note to finally say thanks over again with the lovely things you’ve documented on this page. It is so particularly generous of you giving extensively all that many people would have marketed for an e book to help make some dough on their own, chiefly now that you might well have tried it in the event you desired. Those things also acted to provide a good way to be certain that someone else have the identical eagerness the same as my own to learn more with regard to this condition. I’m certain there are lots of more pleasurable sessions up front for those who read through your site.

  17. bape hoodie

    I simply wanted to thank you very much yet again. I am not sure what I would’ve tried without the actual tricks contributed by you about such subject matter. It had become the hard condition in my view, however , encountering your specialised manner you treated that forced me to leap with gladness. Now i am thankful for your service and then have high hopes you really know what a great job you are undertaking instructing some other people with the aid of your website. I am sure you haven’t met any of us.

  18. kawhi leonard shoes

    I precisely needed to say thanks once more. I’m not certain the things that I could possibly have taken care of without the concepts documented by you on my situation. It previously was an absolute horrifying problem in my position, nevertheless being able to view this specialised tactic you processed that forced me to jump with delight. Extremely thankful for your information as well as hope you are aware of an amazing job you are doing teaching people today thru your website. I am certain you haven’t got to know any of us.

  19. golden goose

    I would like to voice my love for your kindness giving support to those people who should have help on this one area of interest. Your real dedication to passing the solution throughout became remarkably helpful and has consistently made somebody just like me to arrive at their dreams. Your entire warm and helpful recommendations implies a great deal to me and far more to my peers. Warm regards; from each one of us.

  20. supreme

    I’m writing to make you understand of the excellent experience our child went through studying your site. She mastered so many details, with the inclusion of what it’s like to possess an amazing giving mindset to have certain people with ease know a number of impossible subject areas. You really exceeded our own expected results. Thanks for distributing these interesting, trustworthy, explanatory not to mention unique thoughts on this topic to Gloria.

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée.