Solved

Turning on base64 encode/decode via php.ini

Posted on 2010-08-25
3
1,664 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
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.

743 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

17 Experts available now in Live!

Get 1:1 Help Now