Solved

Turning on base64 encode/decode via php.ini

Posted on 2010-08-25
3
1,852 Views
Last Modified: 2013-12-13
Hey,

I am trying to find a way to turn on base64 encode/decode via php.ini. I am trying to work with the platform BluDomain. I moved it to another server and am now getting this error:

Warning: base64_decode() has been disabled for security reasons in /data/21/2/98/29/2098192/user/2300870/htdocs/bluadmin/index.php(2) : eval()'d code on line 1

It worked fine on their old server. I called Network Solutions and they said that we needed to add it to the php.ini file.

Any ideas on how I can fix this error?

Thanks,

Ryan
0
Comment
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 3

Expert Comment

by:SuchetaL
ID: 33528710
Check for the disable_functions directive in your php.ini.
This directive allows you to disable certain functions for security reasons.
It receives a comma-delimited list of function names. This directive is
*NOT* affected by whether Safe Mode is turned On or Off.
So, you will need to remove the base64_ function from that list for it to work
Let me know if that helps
0
 
LVL 1

Author Comment

by:catonthecouchproductions
ID: 33534832
Thanks!

I created a php.ini file. And in that file i put:

disable_functions

Now when I go to the main URL: http://www.waynefoster.com/ - I get 403.

But when I go to the login page: http://www.waynefoster.com/bluadmin/login.php

I DO NOT get the error I first posted, but other errors which I can figure out later. But any ideas why the home page is a 403 now?

Thanks,

Ryan
0
 
LVL 3

Accepted Solution

by:
SuchetaL earned 500 total points
ID: 33538864
Hi Ryan

 Seems that your 403 issue is solved & login page errors are also solved. Cool!
 
 If you think adding the solution helped you - please mark it as useful :)
 
All the best
Sucheta
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question