/    Sign up×
Community /Pin to ProfileBookmark

What does this mean

I have a terms of agreement script. If the user clicks on the link downloads.php, TOA page pops up first so they can agree.

the error:

[code=php]
Warning: main(/home/esctonli/public_html/djshawnmhttp://djshawnmichaels.com/html/terms.php) [function.main]: failed to open stream: No such file or directory in /home/esctonli/public_html/djshawnm/html/downloads.php on line 8

Fatal error: main() [function.require]: Failed opening required ‘/home/esctonli/public_html/djshawnmhttp://djshawnmichaels.com/html/terms.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/esctonli/public_html/djshawnm/html/downloads.php on line 8
[/code]

to post a comment
PHP

9 Comments(s)

Copy linkTweet thisAlerts:
@comptech520authorOct 08.2005 — Here are the files I am working with. Can you please help me take care of the errors. The errors are happening at http://djshawnmichaels.com/test123/downloads.php


Thank you
Copy linkTweet thisAlerts:
@comptech520authorOct 08.2005 — sry heres the files

[upl-file uuid=fbc34b76-56d3-4f34-a4c6-1501dbed1e9e size=4kB]files.zip[/upl-file]
Copy linkTweet thisAlerts:
@chazzyOct 08.2005 — shawn:

i haven't looked at the code, but you're trying to include a file using 'http://...' when you need to include it via unix/linux path.
Copy linkTweet thisAlerts:
@NogDogOct 08.2005 — This line...
[code=php]
require($_SERVER['DOCUMENT_ROOT'].'http://djshawnmichaels.com/test123/terms.php');
[/code]

...is concatenating a local file system directory (the document root) with a http url. You either want...
[code=php]
require($_SERVER['DOCUMENT_ROOT'] . '/test123/terms.php');
[/code]

...or...
[code=php]
require('http://djshawnmichaels.com/test123/terms.php');
[/code]
Copy linkTweet thisAlerts:
@comptech520authorOct 08.2005 — so far its better ? Thank you. Now I get this error:

Parse error: parse error, unexpected $ in /home/esctonli/public_html/djshawnm/html/terms.php on line 53

What does that mean?
Copy linkTweet thisAlerts:
@comptech520authorOct 08.2005 — How should I go about fixing this?
Copy linkTweet thisAlerts:
@comptech520authorOct 08.2005 — Here are the updated files. The files in the html dir are main files, the files in the content folder, are being accesed by an incluse statement from files in the html dir.


THANK YOU ?

[upl-file uuid=0a65f2f8-1de0-4041-96be-2d0f55e325c7 size=5kB]files_updated.zip[/upl-file]
Copy linkTweet thisAlerts:
@NogDogOct 08.2005 — I got confused going through those files. terms.php has this line:
[code=php]
echo <<<_HTML_
[/code]

...but I do not see a [b]_HTML_;[/b] anywhere to end the echo. Then, the last line appears to be an include statement calling itself, which would tend to lead to an infinite loop it would seem.
Copy linkTweet thisAlerts:
@comptech520authorOct 08.2005 — Hi NogDog!!

Well, here is what I was doig. I have a website djshawnmichaels.com

I had a 100% flash site, so between yestarday and today I made a html site as well.

I have a folder called "content". In this folder I have the content for my site, so if I update I dont update a file for html, then one for flash. Just 1 file.

On the flash part, say booking.php

I would do this

<head>

INCLUDE flashheader.php from content folder

INCLUDE booking.php from content folder

If I were going to do it for the html site, I would change the flashheader.php and make it htmlheader. As again, so I only update 1 file, instead of 2.

I was trying to do that with the terms, I wound up just leaving 2 individule files for that. I am happy I sort of figured it out myself.

Have a nice day ?
×

Success!

Help @comptech520 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...