[development] Using l() function from external script

Jeff Hartman lists at jeffhartman.com
Tue Jul 5 22:11:17 UTC 2011

In Drupal 6 I have an external script to create some nodes. I would like to use the l() function to create links to other nodes using 'node/n' as the path. However, since my script is running at doc root*, the l function (actually the url() function) is prepending the current directory to the url.

So instead of:


I'm getting:




* later this script will move outside of doc root

More information about the development mailing list