Free Web Hosting

Control PHP Error Reporting With .htaccess

July 6th, 2008 Bala Krishna Posted in Blogging, Error Log, Linux, Linux Commands, Web Development, Web Technology No Comments »

Create .htaccess file or use existing .htaccess file in your hosting site. Add below line at the top of file content.
[sourcecode language='php']
# to stop php startup errors
php_flag display_startup_errors off
# to stop all php errors and warning
php_flag display_errors off
[/sourcecode]
You can also control level of error reporting. Here is the .htaccess syntax:
[sourcecode language='php']
# php directive for setting error level
php_value error_reporting integer
[/sourcecode]
Example:
[sourcecode language='php']
# report everything except run-time notices.
php_value error_reporting 8191
# report both fatal and non-fatal compile-time warnings by the Zend Engine
php_value error_reporting 128
# report run-time notices, compile-time parse errors, run-time errors and warnings
php_value error_reporting 8
# report fatal run-time errors and unrecoverable errors
php_value error_reporting 1
[/sourcecode]

AddThis Social Bookmark Button

CubeCart 4.x.x Cross-Site Scripting Vulnerabilities

March 27th, 2008 Bala Krishna Posted in Bug Fix, Cube Cart, Error Log, PHP Function, PHP Programming, PHP Tutorial, Remote Access, Security, Tips and Tricks, Web Technology No Comments »

Two vulnerabilities has been discoverd in CubeCart 4.xx by Russ McRee that can be use by hackers to exploit website by cross-site scripting attacks. The search input string is not properly sanitised before passed to script for execution. This behaviour can be used by attacker to execute malicious script code in the browser to affect website. This may allow to hacker to acess administration by stealing cookies-based aunthentication scheme and destroy website.

Solution:

CubeCart has been released security patch to fix this problem that can be download from following location.

Also, CubeCart user can fix this manually by editing a single file. Please follow steps described below:

Open ini.inc.php and find at around line 134:

$data[$key] = $this->safety($val);
}

return true;

Replace with:

$data[$key] = $this->safety($val);
}

All done.

 

 

AddThis Social Bookmark Button

Connect to your PC over internet with SynXro

March 12th, 2008 Bala Krishna Posted in ASP.Net, Browser Stuff, Dot.Net, Error Log, Events, General, Linux Commands, Nation, Operating System Tutorial, PHP Function, PHP Programming, PHP Tutorial, Remote Access, Tips and Tricks, Web Development, Web Hosting, Web Technology, Window Application, windows xp No Comments »

SynXro is another web based product to connect, a PC to PC; or PC to LAN connection. SynXro allows you to access all the drives of your PC and all the network drives of all PCs connected to your Local Area Network from anywhere in the world. You only need to have access of internet and modern web browser to connect to your PC. No additional software or hardware is required.

Features:

  • Navigate through your Local Area Network.
  • Remote access to LAN and/or Computer.
  • Remote upload and download capabilities.
  • Remote execution of commands.
  • Accessible from any location through the internet via any browser.

Get 7 Days SynXro Trail Version

AddThis Social Bookmark Button

Submit your website to our directory free

January 22nd, 2008 Bala Krishna Posted in Advertising, Blogging, Browser Stuff, Bug Fix, Crawler, Error Log, Firefox Add-On, General, Internet Explorer, Internet Marketing, Link Building, Linux, Linux Commands, Web Design, Web Development, Web Directory, Web Hosting, Web Technology, Window Application, Word Press, Wordpress Theme, windows xp No Comments »

Thanks for the Juan to inform me of Captcha submission error in web directory module. Due to the error people was not able to submit website to our directory. You are all welcome to submit your website to our web directory absolutely free. No reciprocal required. Website will be reviewed by editor before acceptance.

web-directory.jpg

AddThis Social Bookmark Button

Linux / Unix tar command

January 17th, 2008 Bala Krishna Posted in Blogging, Browser Stuff, Bug Fix, Crawler, Error Log, FFMPEG, FFMPEG-PHP, General, Linux, Linux Commands, Operating System Tutorial, PHP Function, PHP Programming, PHP Tutorial, Tips and Tricks, windows xp No Comments »

Tar is commonly used archive in Linux/Unix platform. Tar is capable to create new archive and can add or extract files files in a archive .

Syntax

tar c [ bBeEfFhiklnopPqvwX [ 0-7 ] ] [ block ] [ tarfile ] [ exclude-file ] {-I include-file | -C directory | file | file }

tar r [ bBeEfFhiklnqvw [ 0-7 ] ] [ block ] {-I include-file | -C directory | file | file }

tar t [ BefFhiklnqvX [ 0-7 ] ] [ tarfile ] [ exclude-file ] {-I include-file | file } …

tar u [ bBeEfFhiklnqvw [ 0-7 ] ] [ block ] [ tarfile ] file …

tar x [ BefFhiklmnopqvwX [ 0-7 ] ] [ tarfile ] [ exclude-file ] [ file ... ]

Switches

Read the rest of this entry »

AddThis Social Bookmark Button

How to extract .gz file content by gunzip utility

January 13th, 2008 Bala Krishna Posted in CentOS, Crawler, Error Log, Events, FFMPEG, FFMPEG-PHP, FLVTool, Financial, Firefox Add-On, General, Gmail Stuff, Linux, Linux Commands, Online Media, Operating System Tutorial, PHP Function, PHP Programming, PHP Tutorial, Page Rank, Tips and Tricks, Web Development, Web Technology, Window Application, windows xp No Comments »

Like the windows, gz is common compression utility in Linux. This guide is to extract content of the .gz file by gunzip utility. Here is the command to see and extract content of the gz file.

View gz file content

gunzip -c mybackup.gz

Extract file file content in another file. you can use different file extension depend on the content of file.

gunzip -c mybackup.gz > mybackup.sql

Compress the mybackup.sql file as mybackup.gz in the current directory.

gunzip -c mybackup.sql > mybackup.gz

Here is the full details of the gzip command.

Read the rest of this entry »

AddThis Social Bookmark Button

Clip-Share Upload Video Internal Server Error

December 28th, 2007 Bala Krishna Posted in Bug Fix, CentOS, Error Log, Events, FFMPEG, FFMPEG-PHP, FLVTool, Google, Linux, Linux Commands, Tips and Tricks, Web Development, Web Hosting, Web Technology, Wordpress Theme 3 Comments »

Clip-Share is mature script to run your own video sharing website like YouTube. This script is available variety of features and options at low cost. Unfortunately, they don’t have good knowledge base to short out technical problems related to script installation. The common problem with Clipshare and other video sharing script is in video upload and conversion module. Here is the error i received while i tried to upload video. The script produce error in initialization of progress bar.

Error:Â “returned status code 500 Internal Server Error”

Clip share internal server error

Possible Solution:

  • Check cgi-bin directory and files permission. In the script, upload progress monitored by perl script so that cgi-bin directory and files inside directory should have 755 permission. Make the changes if applicable.
  • Check temp and video path setting in “cgi-bin/configs/uu_default_config.pm” file. It should point to correct folder. Both these folder should be writable by webserver.
    temp_dir                => ‘/home/domain/public_html/tmp/’,
    upload_dir              => ‘/home/domain/public_html/video/’,
  • Check flvideo folder permission in your installation directory. It should be writable by webserver.
AddThis Social Bookmark Button

Permission denied error with godaddy cron job

December 4th, 2007 Bala Krishna Posted in Blogging, Bug Fix, Error Log, General, Godaddy Hosting, Linux, Operating System Tutorial, PHP Function, PHP Programming, PHP Tutorial, Security, Tips and Tricks, Web Technology, Word Press, windows xp No Comments »

Cron is a Linux command tool that allows you to schedule tasks unattended at a specified time interval. There are several ways to schedule commands to run. You can run any available command or script like php, perl and shell script as a Cron Job. It run specified command and send output to the user or email id specified in the configuration.

Read the rest of this entry »

AddThis Social Bookmark Button

Improve GMAIL Performance

November 13th, 2007 Bala Krishna Posted in Blogging, Bug Fix, Crawler, Error Log, General, Gmail Stuff, Google, Online Media, Operating System Tutorial, PHP Function, PHP Programming, PHP Tutorial, Snap Shot, Tips and Tricks, Web Technology No Comments »

It is common problem for web developers who use firebug to debug JavaScript errors. Firebug may slow down Gmail by validating each XMLHttpRequests call. This problem is same for all ajax based application have make extensive XMLHttpRequest. Firebug is highly configurable. You can turn-off firebug for specific application or you can just enable when you need to debug an application. You can disable firebug for GMail and similar application or optimize it so that it will slow down application.

Read the rest of this entry »

AddThis Social Bookmark Button

SQL Server 2005 configuration to allow remote connections

June 13th, 2007 Bala Krishna Posted in Error Log, General, Tips and Tricks No Comments »

SQL Server 2005 does not configured by default to accept remote connection. While connecting SQL Server remotely you may receive several error depending on the condition.

You may receive the following error:

Sqlcmd: Error: Microsoft SQL Native Client: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.

However, this error may occur due to other issues:

  • SQL Server not prepared to accept remote connection.
  • Firewall blocking incomming and outgoing MSSQL port.
  • SQL Server Browser service Turn Off.

Firewall blocking incomming and outgoing MSSQL port.

Windows Firewall and other firewall block incoming and outgoing MSSQL port by default. You need to unblock that port in your fireball. We are covering here how to unblock port on Windows firewall. If you are using other firewall you need to check your firewall manual to change settings.

SQL Server Browser service Turn Off

By default, SQL Server uses instance name build with pc name and SQLEXPRESS with forword slash to connect with SQL server. If SQL Browser service disabled, you many not connect to SQL server remotely. SQL Server Browser Service allow remote system to connect with SQL server.

Follow the steps to configure your server for accepting remote connection

Enable remote connections for SQL Server 2005

  • Click Start ->> Programs ->> Microsoft SQL Server 2005 ->> Configuration Tools ->> SQL Server Surface Area Configuration.
  • Now click Surface Area Configuration for Services and Connections.110.jpg
  • Now Click + sign to expand Database Engine,then click Remote Connections ->> Local and remote connections ->> Using both TCP/IP and named pipes and then22.jpg
  • Click Apply.
  • Restart MSSQLSERVER service from Start - >> Control Panel ->> Administrative Tools ->> Service ->> Select MSSQL Server ->> Restart Service from left top corner link.

Firewall blocking incoming and outgoing MSSQL port.

You need to create exception in windows firewall for SQL Server

  • Open Start ->> Control Panel ->> Windows Firewall
  • Select Exceptions tab ->> Add Program 41.jpg

  • Browse C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\sqlservr.exe and click ok. This location may change depend on your installation path. So please change path accordingly.
  • Go back to firewall window and create an exception for SQL Server Browser service. Follow the above 2 steps for this.
  • Now browse C:\Program Files\Microsoft SQL Server\90\Shared\sqlbrowser.exe and click ok. Again here to remind path may be different depending upon your instalattion.

Enable SQL Server Browser service

  • Click Start ->> Programs ->> Microsoft SQL Server 2005 ->> Configuration Tools ->> SQL Server Surface Area Configuration
  • Now click Surface Area Configuration for Services and Connections
  • Select SQL Server Browser ->> Select Startup type Automatic31.jpg
  • Click Apply.
AddThis Social Bookmark Button