Advertisement

04.25.2008 at 02:51PM PDT, ID: 23355083
[x]
Attachment Details

Need Help With a PHP Script for Authorize.Net AIM

Asked by macrolific in Payment Processing Recommendation and Integrating, PHP and Databases, E-Commerce

Tags: PHP, http://www.authnetscripts.com/phpauthnet_aim_info.php, extension_dir does not exists /usr/lib/php/modules

I bought a PHP script, for processing charges via Authorize.Net, that I'm having a problem with.

I have an Authorize.Net account and an SSL certificate on my site.

I've configured the configuration file, correctly so far as I know, but the test form that comes with the script keeps returning the message, "extension_dir does not exists /usr/lib/php/modules".  I've checked the configuration of PHP on my site, and the value of extension_dir is in fact /usr/lib/php/modules.

Following is code from the file responsible for printing the error message.

Does anyone have any idea what's going on here and/or what I can do to resolve this issue?  Thanks in advance.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
<?php @SourceGuardian; 723266496; 1311780743; //v5.5
if (!function_exists('sg_load')){
	$__v=phpversion();
	$__u=strtolower(substr(php_uname(),0,3));
	$__f=$__f0='ixed.'.substr($__v,0,strpos($__v,'.',3)).'.'.$__u;
	$__ff=$__ff0='ixed.'.$__v.'.'.$__u;
	$__ed=ini_get('extension_dir');
	if (!$__e=realpath($__ed)) die('extension_dir does not exists '.$__ed);
	if (file_exists($__e.'/'.$__ff)) dl($__ff);
	else if (file_exists($__e.'/'.$__f)) dl($__f);
	else {
		$__d=getcwd();
		if (@$__d[1]==':'){
			$__d=str_replace('\\','/',substr($__d,2));
			$__e=str_replace('\\','/',substr($__e,2));
		}
		$__e.=($__h=str_repeat('/..',substr_count($__e,'/')));
		$__f='/ixed/'.$__f;
		$__ff='/ixed/'.$__ff;
		while (!file_exists($__e.$__d.$__ff) && !file_exists($__e.$__d.$__f) && strlen($__d)>1){
			$__d=dirname($__d);
		}
		if (file_exists($__e.$__d.$__ff)) dl($__h.$__d.$__ff);
		else if (file_exists($__e.$__d.$__f)) dl($__h.$__d.$__f);
	}
	if (!function_exists('sg_load')){
		die('PHP script <B>'.__FILE__.'</B> is protected by <A HREF="http://www.sourceguardian.com/">SourceGuardian</A> and requires the SourceGuardian loader <B>'.$__f0.'</B>. The SourceGuardian loader has not been installed, or is not installed correctly. Please visit the <A HREF="http://www.sourceguardian.com/ixeds/">SourceGuardian php encoder</A> site to download required loader.');
		exit();
	}
}
return sg_load(tons_of_gibberish_code);
?>
[+][-]04.26.2008 at 01:20AM PDT, ID: 21444887

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Payment Processing Recommendation and Integrating, PHP and Databases, E-Commerce
Tags: PHP, http://www.authnetscripts.com/phpauthnet_aim_info.php, extension_dir does not exists /usr/lib/php/modules
Sign Up Now!
Solution Provided By: evll
Participating Experts: 1
Solution Grade: A
 
 
[+][-]04.26.2008 at 11:19AM PDT, ID: 21446362

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628