Setup Server for Apache Tika – PDF, doc extract

Steps to install perl-HTTP-Server-Simple.noarch

Steps to install perl-HTTP-Server-Simple.noarch » Create file /etc/yum.repos.d/rpmforge.repo with contents as below

  » Install the package

 

Node URL alias from nid

How do I get the node url alias from the nid? I have the nid: 37, I don’t want: ‘node/37′ but ‘my-custom-alias’ You can use the drupal_get_path_alias function e.g.

Is easy to generate if you know the node ID, but

PHP: Find Email in String

Thank you Jonathan Sampson for posting this on http://stackoverflow.com/questions/2050789/php-search-a-string-for-a-email-address