Quantcast
Channel: Anil Konsal
Browsing all 10 articles
Browse latest View live

iTextSharp issue, That assembly does not allow partially trusted callers

iTextSharp issue, That assembly does not allow partially trusted callers 2. Then you have to modify the AssemblyInfo.cs file by adding these references and attribute: 1 2 3 using System.Security; using...

View Article



Cannot add foreign keys in table – Mysql

While creating the mysql database, I received an error that that fallback script failed and obviously the foreign key was not added. So here’s the solution: Mysql expects every foreign key in database...

View Article

Image may be NSFW.
Clik here to view.

Find and Replace text in multiple files in Linux

Its quite easy for finding and replacing some text contained in the editable files in Linux with ‘sed’ command. Below is a case to replace some text in all the php files on the server containing text...

View Article

Yii Casts Series – Creating your first application with Yii Framework 1.13

Hey folks, I am starting a series of videos for Yii development from beginning to Intermediate! Coming Soon..

View Article

Relative URLs for images in TinyMCE – Not Good for sending Newsletters

If you are planning to use TinyMCE for the HTML content of a Newsletter Module, keep in mind that any images you put in the editor will bear the relative URL by default. The relative URLs work ok when...

View Article


Executing PHP script from shell using exec() in a PHP script

If you are trying to execute a php script from shell using exec() or passthru() functions within a php script then you may end up with a hung apache thread or non-execution of the to be executed...

View Article

Sending Emails from RoR Application hosted on Site5 Shared server

Use this code: 1 2 3 4 5 6 7 8 9 10 11 12 default :from => "noreply@domain.com" config.action_mailer.delivery_method = :smtp   config.action_mailer.smtp_settings = {   :address =>...

View Article

Bye Bye ugly Content Disposition Attachment with Yii

Hi, With Yii Framework, you can say good bye to ugly header code for forcing download a file on client side (I usually used for pdf files download forcibly) so that client browser should not try to...

View Article


Automated testing with Yii – Resolving Fixtures issue

Hi, If you are starting using PHPunit testing with Yii, chances are there that you may encounter an error which drove me crazy. This error occurs when you are using the fixtures to test the CRUD...

View Article


Running Zend Framework Project from a subfolder

Lets say you want to run your project from a subfolder (in my case ‘xproject’) in your document root (in my case ~/Sites). So you want it to access via http://localhost/xproject and you do not want to...

View Article
Browsing all 10 articles
Browse latest View live


Latest Images