Error : Fatal error: Cannot run code from this file in conjunction with non encoded files in /home/username/public_html/tpl_c/%%CD^CDB^CDBF33CB%%user_media_iptc_single_tag.tpl.php on line 1265 Solution : This problem is not activeCollab related, but caused by platform activeCollab is running on. From articles I read by googling for “Cannot run code from this file in conjunction with non encoded [ Read More ]
Posted by Rishikesh Vispute
Categories: How to, PHP
How to install APC on Linux ? Ans: The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. Its goal is to provide a free, open, and robust framework for caching and optimizing PHP intermediate code. Besides being a opcode cache it provides a user cache for storing application data. APC [ Read More ]
How to install propel-gen on Linux server ? Ans: Propel is an open-source Object-Relational Mapping (ORM) for PHP5. It allows you to access your database using a set of objects, providing a simple API for storing and retrieving data. Propel gives you, the web application developer, the tools to work with databases in the same [ Read More ]
Error : Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace Solution : When access the domain and the domain not shows the content and the server logs shows the above error then you need to [ Read More ]
How to enable Server Side Includes on the server ? Ans: First you can check SSI are enabled on your server or not. So create one test.html file and add the following code . <!–#ECHO var=”DATE_LOCAL” –> Then access the page by using the URL http://domain.com/test.html and it shows the current date to the screen [ Read More ]
If you want to set the expiration to your site means after some date or year your site shows custom error on the page then you can add following code in index page below the “<?php” code and set the date as per your request. ============================================ $exp_date = “2010-04-31″; $todays_date = date(“Y-m-d”); $today = [ Read More ]
How to enable mssql support on Linux server ? Ans : You need to first compile freetds and then compile PHP with freetds support. What is FreeTDS? FreeTDS is a free implementation of the TDS (Tabular Data Stream) protocol that is used by Sybase and Microsoft for their database products. It implements TDS 4.2, 5.0, [ Read More ]
Posted by Rishikesh Vispute
Categories: cpanel, PHP
SuPHP Permission Issue suPHP enhances overall server security. When migrating from a server that is not running suphp to a server running these, permission and ownership issues occur . When you access your domain you usually see Tail the Apache error logs to see what the error is # tail -f /usr/local/apache/logs/error_logs You can see [ Read More ]
If you want enable some php related setting by using php.ini file and it reflect to all other directories which is under your account. Then follow the steps.. First create php.ini file under the document root of your domain and change or add the default setting which you want or which is required for your [ Read More ]
Posted by Rishikesh Vispute
Categories: PHP
PHP Configuration Directives ========================================== output_buffering One of the newest (and greatest) features of PHP is the ability to send header lines anywhere within a script. This directive turns on output buffering for all files. You should probably leave this set to “off” because calling one of the output buffering functions of PHP will work regardless. [ Read More ]
How to compress my CSS with gZIP? To compress your CSS files with gZIP there are two things that you should do. First, add the following line to the .htaccess file in your public_html folder: AddHandler application/x-httpd-php52 .css By doing this, you allow the server to process .css files through PHP. Next, add the following [ Read More ]
Error : Fatal error: Call to undefined function: strripos() in Solution : strripos() is a working on only php5 . So you need to switch you account to php5 installed server or if php4 and php5 is installed on the same server then add the folloging code in .htaccess file to switch to php5. AddHandler [ Read More ]
You can easily install PDFlib on linux server. ========================== cd /usr/local/src/ wget ftp://ftp.free.fr/.mirrors1/ftp.netbsd.org/packages/distfiles/PDFlib-Lite-7.0.3.tar.gz or check this URL http://www.filewatcher.com/m/PDFlib-Lite-7.0.3.tar.gz.5898798.0.0.html tar -zxf PDFlib-Lite-7.0.3.tar.gz cd PDFlib-Lite-7.0.3 ./configure make make install mount -o remount rw /tmp pecl install pdflib mount -o remount noexec,nosuid,rw /tmp php -m | grep pdf ========================== Done
How to redirect index.php page to another url by using php code. If you want to redirect your index.php page to another URL or page then add the following code in your index.php page. <?php header( ‘Location: http://www.domain.com/new_page.html’ ) ; ?> Note : Replace “http://www.domain.com/new_page.html” with exact URL on which you want to redirect you [ Read More ]
Error : PHP Fatal error: Call to undefined function Solution : The server shows this warning because your script is not working on php4 version so you need to switch to php5 version for the domain who is facing the problem. If on the server both php4 and php5 installed then you can switch to [ Read More ]
Posted by Rishikesh Vispute
Categories: PHP
PHP Parse error: syntax error, unexpected T_STRING Please add the following line in the php_flag short_open_tag X in the .htaccess file and short_open_tag = X in the php.ini file under the clients folder on the suexcec server and then check .
Posted by Rishikesh Vispute
Categories: PHP
osCommerce error ‘Cannot reassign this’ The error appears because your OS Commerce is based on PHP4 rather than PHP5. To resolve the error message, you should follow the instructions below: 1. Go to your cPanel. Refer to SiteGround cPanel access guide. 2. Click on the File Manager icon. 3. Click on the folder icon next to public_html folder [ Read More ]