[support] require_once question inside a new node

Vasileios Lourdas lourdas_v at yahoo.gr
Wed Dec 5 20:30:53 UTC 2007


Hi all,

I want to integrate Alitalk, a free PHP-AJAX web based chat solution 
(http://www.alilg.com/software/free-php-ajax-chat/) with Drupal. Alitalk 
comes in a zip file with a bunch of directories and a index.php file in its 
root. This index.php file contains a few php directives and the necessary 
javascripts. So, to start, I create a new page in Drupal and paste the 
contents of the index.php there. I've put alitalk's files inside a directory 
called alitalk in the Drupal root. I changed all paths using base_path() and 
the alitalk prefix. When I click on Submit to create the page, I get the 
error:

Fatal error: require_once() [function.require]: Failed opening 
required '/~lourdas/dpot/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?

TIA,
-- 
# Vasileios Lourdas,
# Informatics Engineer, Thessaloniki (Greece)
# http://www.lourdas.name


More information about the support mailing list