fatyas Posted January 30, 2015 Share Posted January 30, 2015 Hi, I need some expert help. My server is in Iran where facebook is filtered (i.e. it is not possible to access it, unless you use a vpn) I am trying to implement a module that needs to communicate with facebook to create photo Albums for my prestashop installation (v. 1.6.0.6). But it does work because the server (being in Iran) cannot connect to facebook. Of course, I could move the website on a server outside the country, but then the performance really suffers from it. If I could have just this module run from a server outside the country it would work great! Can I use a cdn, to run/serve this module? (I know that cdns are for serving static content but I was wondering if I could use it to bypass the filters!). Would that work? if yes, what are the steps to implement it! Is there any other solution? Any help is really welcome! Thanks! Link to comment Share on other sites More sharing options...
bellini13 Posted January 30, 2015 Share Posted January 30, 2015 CDN's are meant to be used for static assets (images, css, javascript). They cannot execute php code. But really you should address your question to the provider of the CDN and see if they have a solution for you. Alternatively, you can locate another hosting company, install PHP code that you need to execute remotely, and then do a server to server call from your module to the remote server. The remote server should return the content you need to your module. 1 Link to comment Share on other sites More sharing options...
fatyas Posted January 30, 2015 Author Share Posted January 30, 2015 Thank you for your help Bellini, it is very much appreciated. I actually do have a server abroad where I could install the php code So how can I do a server to server call from my module to the remote server? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now