Current location: Hot Scripts Forums » Programming Languages » PHP » what am i doing wrong?


what am i doing wrong?

Reply
  #1 (permalink)  
Old 01-02-06, 07:21 AM
mixx mixx is offline
Newbie Coder
 
Join Date: Dec 2005
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
what am i doing wrong?

Quote:
Warning: main(): open_basedir restriction in effect. File(../settings-data.php) is not within the allowed path(s): (/home/freehost/scripts/:.) in /home/freehost/t35.com/d/a/dakelder/kelderboek/admin/index.php on line 18

Warning: main(../settings-data.php): failed to open stream: Operation not permitted in /home/freehost/t35.com/d/a/dakelder/kelderboek/admin/index.php on line 18

Warning: main(): Failed opening '../settings-data.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/freehost/t35.com/d/a/dakelder/kelderboek/admin/index.php on line 18

Warning: main(): open_basedir restriction in effect. File(../lib.php) is not within the allowed path(s): (/home/freehost/scripts/:.) in /home/freehost/t35.com/d/a/dakelder/kelderboek/admin/index.php on line 19

Warning: main(../lib.php): failed to open stream: Operation not permitted in /home/freehost/t35.com/d/a/dakelder/kelderboek/admin/index.php on line 19

Warning: main(): Failed opening '../lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/freehost/t35.com/d/a/dakelder/kelderboek/admin/index.php on line 19

Fatal error: Call to undefined function: checkpermissions() in /home/freehost/t35.com/d/a/dakelder/kelderboek/admin/index.php on line 20
Im 100% sure i set the CHMOD properties the right way; these are lines 18,19 and 20:


PHP Code:

include("lib.php");

    include(
"settings-data.php");
    if (
file_exists("content-data.php")) 
i have php in safe mode, could that be the problem?? Else i don't know.. can you guys help me out? thank you for reading!
__________________
Still Learning
Reply With Quote
  #2 (permalink)  
Old 01-02-06, 10:36 AM
Richard's Avatar
Richard Richard is offline
Wannabe Coder
 
Join Date: Sep 2005
Location: Oxford, UK
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
Should the 'BEGIN__VBULLETIN__CODE__SNIPPET' text be within comment tags?
Reply With Quote
  #3 (permalink)  
Old 01-02-06, 02:13 PM
mixx mixx is offline
Newbie Coder
 
Join Date: Dec 2005
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
yeah i changed it into this:

PHP Code:

include("../settings-data.php");

    include(
"../lib.php");
    
checkPermissions($login$password); 
but it still doens't work i get exactly the same message as i described above
__________________
Still Learning

Last edited by mixx; 01-02-06 at 02:15 PM.
Reply With Quote
  #4 (permalink)  
Old 01-02-06, 06:47 PM
eq1987 eq1987 is offline
Wannabe Coder
 
Join Date: Dec 2003
Posts: 216
Thanks: 0
Thanked 0 Times in 0 Posts
try this

PHP Code:

$Path 'path_to_file__FROM__this_script.php';

if(
fopen($Path'w+')) {
  echo 
'File opened';
} else {
 echo 
'File could not be opened';

Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Whats wrong with this query? FiRe PHP 5 11-07-04 10:26 AM
what am i doing wrong? CrAzY_CuStoMs PHP 5 11-01-04 11:42 PM
What is wrong with this script donkon PHP 3 10-28-04 02:36 AM
PHP email script problems (bounces go to wrong address). MTO PHP 1 04-28-04 11:13 PM
something wrong with this code superman PHP 3 07-06-03 10:55 PM


All times are GMT -5. The time now is 06:24 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.