Following are the steps to add an external link to menu in Drupal:
This function takes two parameters: integer value for password length and optional boolean value true if you want to include special characters in your generated passwords.
To detect the iPad, search for the word iPad in the User Agent of super-global variable $_SERVER. Below a very useful snippet of PHP code that detects whether the person viewing your website is on an iPad.
I want to convert URL in $string into link, that is convert the URL http://avinash6784.wordpress.com to <a href=”http://avinash6784.wordpress.com”>http://avinash6784.wordpress.com</a>. For achive this I have written following helpful PHP code.
$string = “This is my PHP blog http://avinash6784.wordpress.com”;
Following are the few Tips to optimize and to increase the speed/performance of Drupal based website:
1. Uninstall unneeded modules.
2. Remove unnecessary content.
3. In admin/settings/performance change the Caching Mode to Normal.
If you want to know how much memory PHP script uses, then in this case in PHP there is a great in-built function that is memory_get_usage().
memory_get_usage() — Returns the amount of memory allocated to PHP
int memory_get_usage ([ bool $real_usage = false ] )
Returns the amount of memory,