/    Sign up×
Community /Pin to ProfileBookmark

problem in require in my website

hello
i work on a web site as a practice when i test this web site on my local host it works fine but when i upload it to my host it display a fatal error :
[COLOR=”red”]
Fatal error: require_once() [function.require]: Failed opening required ‘webmastring.olympe-network.comincludesconnect.inc.php’ (include_path=’.:/usr/share/php/ezc:/usr/share/php’) in /dns/com/olympe-network/webmastring/index.php on line 3[/COLOR]

here is code of the page

[code=php]
<?php

require_once(“includesconnect.inc.php”);
include(“includeshead.inc.php”);
?>

<title>tire-je-sort</title>
</head>

<body>
<div id=”container”>
<div id=”header”>
<h1>Bienvenue au jeu tiraje sort</h1>
</div><!–#header–>
<div id=”body”>
<table id=”all”>
<tr><td>
<p>Quam ob rem vita quidem talis fuit vel fortuna vel gloria, ut nihil posset accedere,
moriendi autem sensum celeritas abstulit; quo de genere mortis difficile dictu est; quid homines suspicentur,
videtis; hoc vere tamen licet dicere, P. Scipioni ex multis diebus, quos in vita celeberrimos laetissimosque
viderit, illum diem clarissimum fuisse, *** senatu dimisso domum reductus ad vesperum est a patribus conscriptis
, populo Romano, sociis et Latinis, pridie quam excessit e vita, ut ex tam alto dignitatis gradu ad superos
videatur deos potius quam ad inferos pervenisse.Verum ad istam omnem orationem brevis est defensio.
Nam quoad aetas M. Caeli dare potuit isti suspicioni locum, fuit primum ipsius pudore, deinde etiam patris
diligentia disciplinaque munita. Qui ut huic virilem togam deditšnihil dicam hoc loco de me; tantum sit,
quantum vos existimatis; hoc dicam, hunc a patre continuo ad me esse deductum; nemo hunc M. Caelium in illo
aetatis flore vidit nisi aut *** patre aut mecum aut in M. Crassi castissima domo, *** artibus honestissimis
erudiretur.</p>
<td></tr>
<tr><td>
<p>
<form name=”inscript” method=”post” action=”<?php echo $_SERVER[‘PHP_SELF’]?>”>
<a href=”/tiraje/inscription.php”><input type=”button” name=”inscript” value=”inscription” /></a></P>
</form>
</td></tr>
</table>
<?php
include(‘includesend.inc.php’);
?>
[/code]

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@chrisecclesJun 12.2011 — Is your "includes" directory [B]in[/B] the same directory

as that PHP script ?

Try specifying absolute file paths from the document root

in all your "require" and "include" statements.

Not sure how your remote host might feel about the two

periods in your file names.

My 2¢

Chris
Copy linkTweet thisAlerts:
@NogDogJun 12.2011 — When using a file system path, starting it with a slash means relative to the root directory of the current logical disk, which is probably not what you want. Also, you're probably better off using "/" for the directory separator, as "" within double quotes may be interpreted as an escape character sequence. PHP is smart enough to convert "/" to "" when on a Windoze system.
Copy linkTweet thisAlerts:
@chrisecclesJun 12.2011 — Smooth, NogDog.

My brain didn't actually *see* the backslashes ! ! !

(Early morning syndrome)

:eek:

Chris
×

Success!

Help @channark 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.20,
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,
)...