Tuesday, July 19, 2016

Working with 32-BIT ODBC drivers in 64 bit O/S classic ASP




ADODB.Connection error '800a0e7a'
Provider cannot be found. It may not be properly installed.




Working with 64-bit Systems

Unfortunately there are no 64-bit ODBC drivers, so on 64-bit systems you will have to run your applications in 32-bit mode. To do so, use the following steps:
  1. On the taskbar, click Start, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.
  2. In the Connections pane, click Application Pools.
  3. Highlight the application pool for your application, then click Advanced Settings... in the Actions pane.
  4. In the Advanced Settings dialog, specify True for Enable 32-Bit Applications.
  5. Click OK to close the Advanced Settings dialog.

Monday, September 10, 2012


JFolder::create: Could not create directory

  1. Goto your Hosting panel >> File Manager >> Select your Domain/Sub-Domain and then open the configuration.php file.
  2. Find var $log_path, it will contain the Directory path of your Old Server. Just replace the whole line with the code var $log_path = './logs';
  3. Find var $tmp_path, it will also have the Directory path of your Old Server. Replace the whole line with the code var $tmp_path = './tmp';

Wednesday, August 22, 2012

BLUEHOST: WP_MAIL ISSUE


BLUEHOST: WP_MAIL ISSUE

The default mailing behavior for WordPress typically fails based on the fact that it does not provide an appropriate From: header, which is a strict requirement in our hosting. The simple and effective work around is to install the MailFrom WordPress plugin (http://wordpress.org/extend/plugins/mail-from/) which gives you simple control over the formatting of the From: header and allows you to set the mail as being sent from any user you wish rather than the default WordPress user which will often not exist in the cPanel email accounts, resulting in yet another point of failure for proper mail delivery in our hosting. I've yet to encounter anyone who has not been able to get WordPress sending mail with ease after having installed the MailFrom plugin.

Thursday, August 9, 2012

Disallowed Path Characters in IIS7


This error is often seen in classic ASP when the site is loaded for the first time,
 
Server.MapPath() error 'ASP 0175 : 80004005'
Disallowed Path Characters

To resolve this error

1) To see the real error, go to MMC and load the IIS Manager snap-in and go to your website. Double click on "ASP" in the Features View tab, drill down.

2) Expand the ' Behaviour'  section and set the value of ' Enable parent paths' to 'true'.


 
 

Friday, June 1, 2012

PHP CAPTCHA Not working in Ubuntu

PHP CAPTCHA Not working in Ubuntu PHP captcha blank in ubuntu can be solved by following ways.

 Solutions :
1. Check for GD library in phpinfo(). It must be as below The output of phpinfo(); ---------------------------------------------------------------------
GD Support enabled GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with free type
 FreeType Version 2.3.5
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled

 2. Make sure that the font is in the same dir, and it is readable and executable. The path to the file in the script might need to be changed to ./filename.ttf instead of filename.ttf.

Saturday, April 7, 2012

JQuery illegal characters

The Jquery illegal characters are caused by the quote marks incompatibility, The single quotes are to be converted into double quote and parsed. This sorts the problem.

Monday, February 28, 2011

Using LIMIT with SUBQUERY

$squerystring="";
SUBQUERY is a powerful to extract a subset of data from a set but there is a restriction for the usage of LIMIT. Database users are not unknown to the function of "LIMIT" in queries. It extracts the data range with a starting and ending position.

e.g "SELECT * FROM <tablename> order by <columnname> LIMIT 0,5"
Which means to fetch the first five records starting from position 0.

This statement can be used in SUBQUERY as

SELECT <columnname> FROM <tablename> where <columnname1> in ("SELECT <columnname3> from <tablename2> order by <columnname3> LIMIT 5")

The above Query gives error:

<span style="font-weight:bold;">#1235 - This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
</span>

To resolve the above error the SUBQUERY i.e query within parenthesis above is first executed and the output from it is stored into String and the String is concatenated in forthcoming query.

Soln: in PHP

$query1= SELECT <columnname3> from <tablename2> order by <columnname3> LIMIT 5
$squerystring="";
$result_squery=mysql_query($squery);
if(!$result_squery)
die(mysql_error());
$num_rows=mysql_num_rows($result_squery);
for($i=0;$i<=$num_rows;$i++)
{
$sqrow=mysql_fetch_array($result_squery,MYSQL_BOTH);
$squerystring.=$sqrow["tg_id"].",";
}
$squerystring= substr($squerystring, 0, (strlen($squerystring)-2));

Now the final Query becomes:

SELECT * FROM <tablename1> WHERE <columnname1> in(".$squerystring.") order by <columnname1> LIMIT 10