Posted by spideep on November 22, 2012 at 3:41pm
I have my drupal directory here: www/ext/drupal/
I have made a index.php in : www/ext/index.php
I've made my module with these instructions:
http://www.bobbymods.com/faq/drupal-modules/how-do-i-add-my-own-php-func...
After that my ext/index.php looks like these:
<?php
$path = $_SERVER['DOCUMENT_ROOT'];
chdir($path."/drupal");
define('DRUPAL_ROOT', getcwd());
require_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
/call mymodule function/
myfunctionlibtwo("block");
After that I see:
Fatal error: Call to undefined function myfunctionlibtwo() in my index.php
Thanks for help.

Comments
Algo más...
Es DRUPAL 6
Alexis Rengifo
I think php not installed or
I think php not installed or may be directory www is not your root directory.
Hmmm
I think yes,
I test module_list() and works ok, that means bootstrapping is ok right?
But this module list is uncomplete, there is no my module and other modules I have like JS Agregator, this is strange.
Alexis Rengifo
Did you enable the module in
Did you enable the module in the drupal installation?
Yes
Yes, double checked
Alexis Rengifo
He leído esto:
http://lima2011.drupal.lat/sites/default/files/Drupal%20BootStrapping.pdf
Y ciertamente estoy haciendo buen uso del bootstrapping porque cuando hago
<?php module_list()
me aparece la lista de módulos sin embargo no todos, por ejemplo tengo el modulo JS Agregator habilitado pero tampoco aparece en esta lista.
Extraño...
Alexis Rengifo
<?php $path =
<?php
$path = $_SERVER['DOCUMENT_ROOT'];
chdir($path."/ext/drupal");
...
Right, just an example
Actually /ext/ was just an example, bootstrapping works, but my module doesn't appear.
Alexis Rengifo
How do you call the index.php
How do you call the index.php file?
Like this
I have my drupal directory here: www/ext/drupal/
I have made a index.php in : www/ext/index.php
Is the index.php in a one level superior to the drupal installation
http://mydomain.com/ext/index.php
and my drupal is here:
http://mydomain.com/ext/drupal/
Alexis Rengifo
That should normally work. I
That should normally work. I just tested it on my local machine.
Anything special about your drupal installation? Are all modules in sites/all/modules? A settings.php file in sites/default?
Modulo list
Listando module_list(TRUE,FALSE) tampoco aparece???