Jump to content

FOPEN - I have access to the php.ini file in my root. What should the FOPEN statement look like?


lateral

Recommended Posts

I'm not trying to do anything.

 

I recently moved my entire Prestashop environment to a new domain and was going through checking everything prior to going live and check the Configuration and noted that there we errors relating to fopen...(see attached screenshot)

 

I also have no idea what fopen does...

post-831791-0-03653700-1411648941_thumb.png

Link to comment
Share on other sites

allow_url_fopen = On

 

 

I would not advise doing that.  If you look more closely at your screen shot, the required parameters is empty.  fopen is under optional parameters.

 

fopen is typically only required when the CURL extension is not available on your server.  unless you require fopen because a third party module is not functioning properly, leave it disabled.  And if you do have a third party module using fopen, then you might consider changing that code to use CURL instead.

 

For some background discussion on fopen, you can do a google search.  Here is one thread on the topic of fopen being secure or not.

http://stackoverflow.com/questions/127534/should-i-allow-allow-url-fopen-in-php

 

Do some research and then decide for yourself if you believe your should allow it.  I however would suggest leaving it off.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...