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,
Quoting Vasileios Lourdas lourdas_v@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/