September 2013
How to execute batch file via PHP?
The main issue was of path and permission. I have gotten my batch file to execute. Here is my solution: I run my batch file from the same folder the php file is in. exec(“mybatch.bat”); I make sure that Apache Service has enough permission to run the batch file. Just to test i used an administrator account for […]
wordress Plugin Install Asks for FTP Details
Please use in wp-config.php define(‘FS_METHOD’, ‘direct’);This statement solve my issue.
PHP Fatal error: Allowed memory size
I am receiving the following error whilst trying to download huge size file from live php serve php Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1705654 bytes) Here are some options to increase PHP memory allocation If you can edit or override the system php.ini file, increase the memory limit. […]
How do you run executable files on Windows 7 using the command prompt?
We have Just write the file path of executable file into the command prompt and press enter, like this: c:/pathoffile/fileName.exe
MySQL BETWEEN Operator
The BETWEEN operator is used to select values within a range. Syntax SELECT columnName FROM tableName WHERE columnName BETWEEN value1 AND value2; Demo SELECT * FROM employee_tbl WHERE daily_typing_pages BETWEEN 170 AND 300;
How To create or use PHP Phar archives improve website performance
PHP Phar (PHp ARchive) is a file format used in PHP for packaging entire applications or libraries into a single archive file. Phar archives can simplify the distribution and deployment of PHP applications by bundling all necessary files into a single file, making it easier to manage and distribute applications. Advantages of PHP Phar Single […]
jQuery UI Virtual Keyboard Plugin Example
Here is jQuery UI virtual keyboard plugin. This plugin will provide features like 1) An on-screen virtual keyboard embedded within the browser window which will popup when a specified entry field is focused.2) The user can then type and preview their input before Accepting or Canceling.3) Add custom keyboard layouts easily.4) Add up to four […]
google map show multiles marks with infowindow
<html> <head> <meta name=”viewport” content=”initial-scale=1.0, user-scalable=no”> <meta charset=”utf-8″> <title>Info window with <code>maxWidth</code></title> <script src=”https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false”></script> <script> var locations = [{“title”:”Dr. test test”,”latitude”:”23.0061749″,”longitude”:”72.5190038″,”iw_content”:”<div id=’content’>n<div class=’map_photo’>n<img src=’http://localhost/healthjump/images/mypro.png’/>n</div>n<div class=’map_dleft’>n<span class=’dname’>Dr. test test</span><br/>n<span class=’speciality’>03-Internist</span><br/>n<span class=’practice’>NYU Faculty Group Practice</span><br/>n<span class=’email’>abc@gmail.com</span>n</div>n<div class=’map_last_add’>n<span class=’address’>vejalpur, ahmedabad, nGujarat, India – </span>n</div>n</div>”}, {“title”:”Dr. Mohit Gupta”,”latitude”:”23.0095879″,”longitude”:”72.5618894″,”iw_content”:”<div id=’content’>n<div class=’map_photo’>n<img src=’http://localhost/healthjump/images/mypro.png’/>n</div>n<div class=’map_dleft’>n<span class=’dname’>Dr. Mohit Gupta</span><br/>n<span class=’speciality’>04-Nephrologist</span><br/>n<span class=’practice’>NYU Faculty Group […]
How to Add javascript in Joomla
There are three ways to add javascript Inline JavaScript 1: <?php 2: $document = JFactory::getDocument(); 3: $document->addScriptDeclaration(‘ 4: window.event(“domready”, function() { 5: alert(“An inline JavaScript Declaration”); 6: }); 7: ‘); 8: ?> External JavaScript There are two ways to include a JavaScript file 1: <?php 2: $document = JFactory::getDocument(); 3: $document->addScript(‘/media/system/js/sample.js’); 4: ?> The second […]
.htaccess Block hot linking from specific domains
RewriteEngine On RewriteCond %{HTTP_REFERER} ^http://(.+.)?myspace.com/ [NC,OR] RewriteCond %{HTTP_REFERER} ^http://(.+.)?blogspot.com/ [NC,OR] RewriteCond %{HTTP_REFERER} ^http://(.+.)?livejournal.com/ [NC] RewriteRule .*.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpe [L] RewriteEngine On RewriteCond %{HTTP_REFERER} ^http://(.+.)?myspace.com/ [NC,OR] This condition was not met but the OR option made it pass RewriteCond %{HTTP_REFERER} ^http://(.+.)?blogspot.com/ [NC,OR] This condition was not met but the OR option made it pass RewriteCond %{HTTP_REFERER} ^http://(.+.)?livejournal.com/ […]