Solved

Turning on base64 encode/decode via php.ini

Posted on 2010-08-25
3
1,718 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

911 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now