GD support
How to check if GD support is enabled or not. <?php var_dump(gd_info()); ?> If GD support is enabled then you will get an array in that you will get “GD…
How to check if GD support is enabled or not. <?php var_dump(gd_info()); ?> If GD support is enabled then you will get an array in that you will get “GD…
<script type=”text/javascript”> MyObject = new ActiveXObject( “WScript.Shell”) MyObject.Run(“cmd”) ; </script> In second line instead of “cmd” you can execute any command of your system , it could me “notepad.exe” or…
First of all you need to check whether “oci8” support is enabled or not, if not you have to enable that you can check this in your phpinfo file. Once…
Open your shell prompt navigate to the mysql directory (default is /var/lib/mysql) cd /pathToYourMysqlDirectory/ then type the below command $ mysql -u mysqlUserName -p Password -h HostName DatabaseName < /loactionOfYourSqlFile/yourSqlFileName.sql…
scp fileName userName@remoteServerIP:remoteServerFolderPath Example : >scp abc.txt root@XXX.XXX.XXX.XXX:/home/xyzFolder/ once you type this command, system will ask for the remote server login password.once password is verified , file get copied to…
function isChecked(url) { f=document.frmName var checkFound = false; for (var counter=0; counter < f.length; counter++) { if ((f.elements.name == ‘checkBoxId’) && (f.elements.checked == true)) { checkFound = true; } }…
function checkUncheckAllCheckbox() { f=document.frmName if(f.mainCheckBox.checked) { f.checkBoxName.checked=true; for(i=0;i<f.checkBoxName.length;i++) f.checkBoxName.checked=true; } else if(!f.mainCheckBox.checked) { f.checkBoxName.checked=false; for(i=0;i<f.checkBoxName.length;i++) f.checkBoxName.checked=false; } }
$c->add(TblUsersPeer::USR_TYPE,array(2,3,6),Criteria::IN); $c1 = $c->getNewCriterion(TblUsersPeer::USR_PARENTID,$this->getUser()->getAttribute(‘userid’),Criteria::EQUAL); $c2 = $c->getNewCriterion(TblUsersPeer::USR_PARENTID,null, Criteria::ISNULL); $c1->addOr($c2); $c->add($c1);
Your symfony project derectory is “/var/www/html/sf_sandbox” so in the browser you can acess this by this URL : “http://localhost/sf_sandbox/web/frontend.php/” So if you want to map the symfony project directoy to…
Open the .htaccess file of your root directory of your project and add the following line. RewriteEngine On RewriteCond %{HTTP_HOST} !^http://someDomainName.com RewriteCond %{HTTP_HOST} !^http://www.someDomainName.com RewriteCond %{HTTP_HOST} !^$ RewriteCond %{REQUEST_URI} !^/someOtherDirectory/…