after upgrading, i ended up with this error: Site error: the file /homepages/43/d336566432/htdocs/administration/includes/init.php requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator. After searching around here and google, i emailed 1and1.com and they wrote back: Thank you for contacting us. Thank you so much for providing us that site error. Please create a php.ini on your file, inside the php.ini file, please put the following: zend_optimizer.optimization_level=15 zend_extension=/homepages/43/d336566432/htdocs/ioncube/ioncube_loader_lin_5.2.so Thank you and have a great day! If you have any further questions please do not hesitate to contact us. So here is my big question now: where do i put that file and in what folder in the 68classifieds script?
No. Your php.ini file sits in the root directory of your system or at the level of your domain home directory. Have they given you a php.ini file or do you see one already?
Actually, this is dependent on the how the server has their host server set up. Most that do limit and allow separate php.ini files set it to be directory dependent. As the ion cube is actually only needed in Administration and the host sets this up as a per directory basis, then it will ONLY work if the client php.ini file is in the administration folder.
Don't think so and you must have come across some strange set ups. There is a hierarchy. The best solution is to have php 5 and ioncube loaders set above your root directory. There is no reason or excuse a hosting provider can to do that. Its bull if they won't and you should dump them immediately. Why are they fostering PHP4 onto people which is not even supported by PHP themselves. Second best option. Put that code in the bottom of your php.ini file which sits in your root directory. 3rd best option (rubbish solution) Put it in your domain root directory 4th best solution Put in in your admin folder.
I didnt read all the responses, but I can attest to the fact that you simply create a php.ini file in your admin folder with those lines of code inside. thats the way 1and1 is. There are other ways to do it, if I remember correctly, but if you are using 1and1 shared hosting, you have no way that I know of to change the root php.ini file.
1and1 is just a little weird, at least was a few months ago when I had them. Here is the code from my htaccess in the index Code: Options All -Indexes AddType x-mapp-php5 .php AddHandler x-mapp-php5 .php Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC] RewriteRule ^(.*) http://www.example.com/$1 [QSA,L,R=301] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) /error.php RewriteCond %{QUERY_STRING} (.*)(http|https|ftp):\/\/(.*) RewriteRule ^(.+)$ - [F] <FilesMatch "\.(jpg|jpeg|png|gif|swf)$"> Header set Cache-Control "max-age=604800, public" </FilesMatch> Note error.php, you can create your own error document Here is what is in my php.ini file in the index folder Code: allow_url_fopen = On Here is what is inside the php.ini file located in the admin folder Code: zend_extension=/homepages/43/d336566432/htdocs/ioncube/ioncube_loader_lin_5.2.so I used 1and1's cheap shared hosting while developing and That is what I needed (amongst other things) to work out a few bugs that would pop up.