Jump to content

Problem with the directory


anushka

Recommended Posts

 

include('../affiliate/users/groups.php' );

when u this function i am getting all this errors

Warning: include(../affiliate/users/groups.php) [function.include]: failed to open stream: No such file or directory in /home/mailsrig/public_html/mycity/listing/index.php on line 7

 

Warning: include(../affiliate/users/groups.php) [function.include]: failed to open stream: No such file or directory in /home/mailsrig/public_html/mycity/listing/index.php on line 7

 

Warning: include() [function.include]: Failed opening '../affiliate/users/groups.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mailsrig/public_html/mycity/listing/index.php on line 7

 

Warning: Cannot modify header information - headers already sent by (output started at /home/mailsrig/public_html/mycity/listing/index.php:7) in /home/mailsrig/public_html/mycity/layout/header.php on line 21

 

Warning: Cannot modify header information - headers already sent by (output started at /home/mailsrig/public_html/mycity/listing/index.php:7) in /home/mailsrig/public_html/mycity/layout/header.php on line 22

 

Warning: Cannot modify header information - headers already sent by (output started at /home/mailsrig/public_html/mycity/listing/index.php:7) in /home/mailsrig/public_html/mycity/layout/header.php on line 23

 

Warning: Cannot modify header information - headers already sent by (output started at /home/mailsrig/public_html/mycity/listing/index.php:7) in /home/mailsrig/public_html/mycity/layout/header.php on line 24

 

Warning: Cannot modify header information - headers already sent by (output started at /home/mailsrig/public_html/mycity/listing/index.php:7) in /home/mailsrig/public_html/mycity/layout/header.php on line 25

you will need two ../ so instead of include('../affiliate/users/groups.php' );

 

you need:

 

include('../../affiliate/users/groups.php' );

 

 

because: index.php

is two directories from the public_html

 

remember ../ means go back one directory.

 

putting include('../affiliate/users/groups.php' ); means you are looking for a file on the /home/mailsrig/public_html/mycity/affiliate/users/groups.php

 

which ofcourse it isnt there so jus put this line on line seven

 

include('../../affiliate/users/groups.php' );

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.