Problems integrating script into PHP Nuke

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Problems integrating script into PHP Nuke
cgarlick
CZ Newbie
cgarlick has been a member for over 10 year's 10 Year Member
Status: Offline
Joined: Nov 06, 2007
0.00 posts per day
Posts: 1
Points: 0
   
I am trying to integrate something into phpnuke, going well till I hit this error...

Warning: main(db/mysql.php): failed to open stream: No such file or directory in /home/www/zacsart.net/db/db.php on line 53

Now if I am understanding this db.php is looking for db/mysql.php
(Line 53 of db.php)
include("".$the_include."/mysql.php");
Now if I change that phpnuke breaks, so why is it jumping to a working db.php and saying it cant find a file???




Back to top Reply with quote
#2   
Telli
Site Admin
Telli has been a member for over 15 year's 15 Year Member
Occupation: Self Employed
Age: 40
Fav. Sports Team: Detroit Red Wings
Website: www.codezhost.com
Status: Offline
Joined: May 26, 2003
1.45 posts per day
Posts: 8090
Points: 494,345
   
Are making a module? Or trying to use it from another directory?

PHP Nuke doesnt use absolute paths so anything included will throw up an error unless you use it from the root directory.

Can you explain more about what your trying to integrate?

You could set an absolute path in your config file:


define('SITE_ROOT_PATH', 'home/www/zacsart.net/');


Then to use it:


include(SITE_ROOT_PATH . 'db/mysql.php');




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum