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 ArticleCannot 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 ArticleFind 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 ArticleYii 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 ArticleRelative 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 ArticleExecuting 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 ArticleSending 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 ArticleBye 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 ArticleAutomated 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 ArticleRunning 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