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

Link to comment
Share on other sites

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' );

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.