Jump to content
MakeWebGames

Wierd LAMP issue...


AlabamaHit

Recommended Posts

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?

Link to comment
Share on other sites

  • 1 month later...
  • 4 weeks later...

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:

Link to comment
Share on other sites

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