[support] require_once question inside a new node

Earnie Boyd earnie at users.sourceforge.net
Thu Dec 6 14:02:27 UTC 2007


Quoting Vasileios Lourdas <lourdas_v at yahoo.gr>:

>
> Fatal error: require_once() [function.require]: Failed opening
> required '/~lourdas/dpot/alitalk/functionz/first_process.php'

This should read 
'~/lourdas/public_html/dpot/alitalk/functionz/first_process.php' or 
'/home/lourdas/public_html/dpot/alitalk/functionz/first_process.php' or 
perhaps just './alitalk/functionz/first_process.php'.

> (include_path='.:/usr/share/php5:/usr/share/php')
> in /home/lourdas/public_html/dpot/includes/common.inc(1343) : eval()'d code
> on line 8
>
> (dpot is the Drupal root dir inside public_html)
>
> There are a few include directives before that which seem to execute 
> fine. So,
> the question comes up: Is there a problem using require_once in PHP mode
> during a new node creation?
>

The require_once must be in the code you inserted in the node, what 
exactly is it?

You would be better served creating a module from this.  See 
http://drupal.org/node/32178 for pointers.

Earnie -- http://for-my-kids.com/
-- http://give-me-an-offer.com/



More information about the support mailing list