why your PHP files remove line breaks when you upload the file?

As I am using NetBeans and get following problem. So, I tried malware software. But it didnt solve my problem. Then I found,the solution. NetBeans transfers all the files using BINARY mode so no changes in new lines should be done (these changes can be done if using ASCII mode AFAIK). Why this problem arise: … More why your PHP files remove line breaks when you upload the file?

why your PHP files adds extra lines when you upload the file?

As I am using NetBeans and get following problem. So, I tried malware software. But it didnt solve my problem. Then I found,the solution. NetBeans transfers all the files using BINARY mode so no changes in new lines should be done (these changes can be done if using ASCII mode AFAIK). Why this problem arise: … More why your PHP files adds extra lines when you upload the file?

yii,load by a grid data on dropdown ajax call

———————————————————– _form.php—————————       <div class=”row”>         <?php echo $form->labelEx($model,’ActivityTypeId’); ?>         <?php                 $condition = ”;                 $list = CHtml::listData(ActivityType::model()->findAll(array(“condition” => $condition, ‘order’ => ‘ActivityType ASC’)), ‘ActivityTypeId’, ‘ActivityType’);                 echo $form->dropDownList($model, ‘ActivityTypeId’, $list, array(                     ’empty’ => ‘—Select  Activity Type—‘,                     ‘onchange’=>’javascript:serviceClientDivShow(this);’,                     ‘ajax’ => array(                             ‘type’=>’POST’, //request type ‘url’=>CController::createUrl(‘TimeSheet/loadActDtls’), //url to … More yii,load by a grid data on dropdown ajax call

cron job command

Command to run a PHP5 cron job: php /home/username/public_html/cron.php /usr/bin/php -f /home1/ncbetane/public_html/lead/cron.php  php -q /home/username/public_html/cron.php /usr/local/php4/bin/php /home/strong>username/public_html/cron.php /usr/bin/php -q /home/username/public_html/filename.php Command to use a specific php.ini file: php -c /home/username/public_html/php.ini /home/username/public_html/myscript.php

​​yii dropdown list can be selected in update mode

​if you search on net you will find following link describe how to make the multiple  dropdown list can be selected in update option . http://www.yiiframework.com/forum/index.php/topic/9693-cactiveform-dropdownlist-selectedselected/ but, as I am geting the value dynamical, So, I have to make the list dynamically according to databased saved id and following yii convention… $result = Product::model()->findAllBySql($query); $selectedlist = … More ​​yii dropdown list can be selected in update mode