BOARDS

planetluc.com discussion board

all about the planetlu.com scripts

You are not logged in.

Announcement

I had to clean the boards due to massive spam. Actually i deleted everything /-one after 1st Oct 2008. It was the only way to get this spam out of the boards. So i'm sorry for all serious users who registered/posted meanwhile.

#1 03-01-2008 16:14:35

zeta1600
New member
Registered: 31-12-2007
Posts: 5

Failed to open stream error

I am getting an error somewhere. I have uploaded all my files... the path to my form is
mysite.com/formpro_10/index.php

what do I need to change where?
And Here is what my index.php looks like... and I'm getting errors...


<html>
<head>
  <title>PHP Test</title>
</head>
<body>
<?PHP session_start();?>
<?PHP include_once($_SERVER['DOCUMENT_ROOT']."/formpro_10/formpro.php"); ?> </body>
</html>

Here are the errors:
Warning: include_once(/usr/local/apache/htdocs/formpro_10/formpro.php) [function.include-once]: failed to open stream: No such file or directory in /home/moodypro/public_html/formpro_10/index.php on line 6

Warning: include_once() [function.include]: Failed opening '/usr/local/apache/htdocs/formpro_10/formpro.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/moodypro/public_html/formpro_10/index.php on line 6


Formpro 10; Local: OS 10.4.11; Firefox 2.0.0.11; Server: Apache 1.3.37

Offline

 

#2 03-01-2008 16:23:15

admin
Administrator
From: Winterhur, Zurich, Switzerland
Registered: 25-11-2004
Posts: 462
Website

Re: Failed to open stream error

hmmm. Try to include the form script relatively, like so:

Code:

<?PHP include_once(formpro.php"); ?>

and also, put

Code:

<?PHP session_start();?>

at the very top of your page, before HTML statement!

Offline

 

#3 03-01-2008 16:36:20

sidtheduck
Moderator
From: down by the water
Registered: 14-07-2006
Posts: 515
Website

Re: Failed to open stream error

Try Lukas' ideas first, but if you are still having problems, try replacing your $_SERVER['DOCUMENT_ROOT'] with /home/moodypro/public_html/

Code:

<?PHP include_once("/home/moodypro/public_html/formpro_10/formpro.php"); ?>

It looks like your $_SERVER variable may be messing up because you are on a shared server?  Yes?

Last edited by sidtheduck (05-01-2008 10:38:23)


If it looks like a duck, and quacks like a duck, we have at least to consider the possibility that we have a small aquatic bird of the family anatidae on our hands.                ~Douglas Adams~

Offline

 

#4 05-01-2008 05:13:55

zeta1600
New member
Registered: 31-12-2007
Posts: 5

Re: Failed to open stream error

Thanks Lukas and sidtheduck... I'll give it a try...


Formpro 10; Local: OS 10.4.11; Firefox 2.0.0.11; Server: Apache 1.3.37

Offline

 

#5 05-01-2008 17:31:44

admin
Administrator
From: Winterhur, Zurich, Switzerland
Registered: 25-11-2004
Posts: 462
Website

Re: Failed to open stream error

any luck?

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

 
 
© 2003-2010 by planetluc.com · Bachtelstrasse 104 · CH-8400 Winterthur | Support | Login |