Jump to content
MakeWebGames

Recommended Posts

Posted

I'm having a hard time figuring this out. I have searched and search and couldn't figure it out. I have LAMP installed. (Ubuntu 9.10). PhpMyadmin is installed.

I keep getting this error only on my register page.

 

Warning:  include_once(/../includes/functions.php) [function.include-once]: failed to open stream: No such file or directory in /home/alabamahit/Projects/My Codes/pages/register.php on line 28

Warning:  include_once() [function.include]: Failed opening '/../includes/functions.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/alabamahit/Projects/My Codes/pages/register.php on line 28

 

The page is in the right place. I know it is not that.

What is really odd. It don't do this on my web host...

The line is

include_once("/../includes/functions.php");

 

There is nothing specail on the page. Just a very basic register page i made..

Any ideas? Or ever ran into this before?

Posted

well what would be the "root" directory? and then go up? That's certainly a wrong path.

include_once("../includes/functions.php");

This one may work if your file is in the directory above and then inside includes.

Posted

Yeah the file has to go up a directory and then into includes.

I have tried what you gave also. I have tried what i posted first and these

./../includes/functions.php

and

../includes/functions.php

It really has me mind boggled. It is only doing this on LAMP lol. Which really sucks lol

  • 1 month later...
Posted

That didn't help either. Sorry never posted back, I just stopped working on my codes for awhile. Now I'm starting back.

Still have same issue. It is very odd. If I put it online, it don't do this. It is only on LAMP lol.

  • 4 weeks later...
Posted

I'm guessing that your running a Linux distro, if so complete the following tasks and it should resolve the problem your facing :

Open up a terminal and type in the following ( modify directory tree as required )

sudo chmod 777 /var/www/PATH_TO_PHP_FILE/ ( Assuming your website directory is located at var/www/ ofcourse. )

Enter root password if needed and

press enter, if you don't receive a response message then everything went fine, if you receive an error about the file not being found then check your directory tree.

Sorry for lame ass explanation :thumbup:

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.   Paste as plain text instead

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