Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Dekaron > Dekaron Private Server
You last visited: Today at 01:10

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



I need help with this PHP script error

Discussion on I need help with this PHP script error within the Dekaron Private Server forum part of the Dekaron category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2008
Posts: 97
Received Thanks: 5
I need help with this PHP script error

this is the error im getting can neone point me in the right direction??



Warning: include(deadfront.php) [function.include]: failed to open stream: No such file or directory in /dekaron/index.php on line 329

Warning: include(deadfront.php) [function.include]: failed to open stream: No such file or directory in /dekaron/index.php on line 329

Warning: include() [function.include]: Failed opening 'deadfront.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /dekaron/index.php on line 329
dannyx12345 is offline  
Old 09/22/2010, 10:13   #2
 
pieter's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 568
Received Thanks: 176
how hard can it be?
the file /dekaron/index.php
does not exist or cannot be opened
pieter is offline  
Old 09/22/2010, 10:52   #3
 
Decima's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 1,297
Received Thanks: 928
maybe he needs to unlink his file pointers lol

or, he is directing the path to deadfront.php to a file (in this case index.php) instead of a directory, like a noob :P
Decima is offline  
Old 09/22/2010, 13:50   #4
 
҉ THT ҉'s Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 912
Received Thanks: 250
Warning: include(deadfront.php) [function.include]: failed to open stream: No such file or directory in /dekaron/index.php on line 329
҉ THT ҉ is offline  
Old 09/22/2010, 16:41   #5
 
elite*gold: 0
Join Date: Nov 2008
Posts: 97
Received Thanks: 5
ok first of all im not retarded and second i removed that part of the directory for privacy reasons so noobs like u cant read where its from u can either tell me how to fix it or gtfo my thread -.-

@THT the file is there ive double checked making sure its in the correct area. and ive checked my spelling of the files and the index.php looks good also.
dannyx12345 is offline  
Old 09/22/2010, 17:16   #6
 
҉ THT ҉'s Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 912
Received Thanks: 250
make sure index.php is in a sub map called dekaron/
҉ THT ҉ is offline  
Old 09/22/2010, 19:39   #7
 
elite*gold: 0
Join Date: Nov 2008
Posts: 97
Received Thanks: 5
the Index.php is in that directory i just double checked
dannyx12345 is offline  
Old 09/22/2010, 19:57   #8
 
HellSpider's Avatar
 
elite*gold: 20
Join Date: Aug 2008
Posts: 2,762
Received Thanks: 4,395
Do you have deadfront.php in the same directory as index.php?
HellSpider is offline  
Thanks
1 User
Old 09/23/2010, 00:00   #9
 
Decima's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 1,297
Received Thanks: 928
No such file or directory in /dekaron/index.php

he has it setup to look at that whole thing as the directory, and index.php isnt ever going to be a directory, look at the include path, u either have the path set to the path+index.php, or you have it set to look at the current page's path, which will include the page as well

i dunno if anyone is understanding what i am saying, its hard to explain, hes either using $PHP_SELF in the include path, or he has the include function jacked up

how about pasting the line of code in which the include is part of, that would help everyone here better assess the problem
Decima is offline  
Old 09/24/2010, 03:55   #10
 
elite*gold: 0
Join Date: Nov 2008
Posts: 97
Received Thanks: 5
ok so i cant find the info if ur interested in helping me out pm me i need someone who knows about php scripting and cpanel pm me and well work it out on TV or something cus i dont know what ur asking for
dannyx12345 is offline  
Old 10/02/2010, 06:35   #11
 
-8gX's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 614
Received Thanks: 151
This isnt that complicated. If your trying to include() a file you need to know the basic heirachy of your website.

so lets say this is your current setup

/html/dekaron/website/deadfront/

All the words within the slashes are their own separate folders. So opening your file uploader you should just see /html/ then clicking on it will open /dekaron/ folder. Etc etc.

So lets say you have a index.php file in the /website/ folder. Which is the root of your website. so going to will open the 'index.php' file of /html/dekaron/website/. Make sense so far?

Now. For your include() function. It looks like your including the deadfront.php from the /dekaron/ folder. Correct? So the complete file path in my example is /html/dekaron/deadfront.php ........... BUT! Your websites full path is located at /html/dekaron/website/. So this is where you need to learn hyperlinking to separate folders. As you can see from that example 'deadfront.php' is located one folder tier up from 'index.php'. This is how you include it.

'./' = same folder directory
'../' = back one folder directory (parent directory)

So. Here goes. You need to go up one tier for your deadfront.php folder. This is the code to do a include as understood from your index.php.

Code:
<?php
     include("../deadfront.php");
?>
As you can see the ../ means go up a parent level. If your deadfront.php was located in the /deadfront/ folder of the example and index.php was in the same place your php would look like this:

Code:
<?php
     include("./deadfront/deadfront.php");
?>
As lastly if your deadfront.php was in the same location in the folders as 'index.php' then your code would simply read:

Code:
<?php
     include("./deadfront.php");
?>
or

Code:
<?php
     include("deadfront.php");
?>
You can use this for multiple folder layers also such as deadfront.php being inside just the /html/ folder. Then you would use this:

Code:
<?php
     include("../../deadfront.php");
?>
As you can see it uses 2 '../' which means go up 2 parent levels. Hopefully that massive explanation helps you out. I know it did for me when I first started. Heres a briefer overview:

Relative linking always omits the
part of the URL

When referencing a location on the same Web site, it is best to use Relative Linking. The file is found based on the location current of the current file

To link to another file in the same folder as the current document, simply enter the filename.

To link to a file in a subfolder of the current document’s folder, provide the name of the subfolder, then a forward slash /, and then the filename.
Example: graphicsfolder/my.gif

To link to a file in the parent folder of the current document’s folder, precede the filename with ../
(where “..” means “up one level in the folder hierarchy”).
Example: ../index.htm



OH! I forgot to add. All included files must be inside your 'public_html' folder! You cannot include files from a resource file located in the parent directory! (I know thats atleast true for client files such as java and CSS; and yes I know that PHP is server-sided sooo.... Someone test lol.)

If you had no idea what I just typed then dont worry about it and figure it out.
-8gX is offline  
Thanks
3 Users
Reply


Similar Threads Similar Threads
MySQL error for voting script & register page
04/27/2010 - Dekaron Private Server - 2 Replies
well this just happen it was working fine then it just went bad then the register page messed up to idk why it did this it was working fine for days then it just does this
[Costantinople] Error iBOT script
03/25/2010 - SRO Hacks, Bots, Cheats & Exploits - 2 Replies
My char stopped at the stable sometimes (as a lot of people i see... all togheter stopped on a point like botters noob >_> xD) The problem was between Grocery and Stable i think. I've write that part again so now it seems to work. If you have this problem, try to go on the bot folder, than in TS folder, open Constantinople and replace it with this: This should work
Packet Error... Bypass Script
12/14/2008 - Lineage 2 - 1 Replies
Hi Guys, Been using L2Walker 10.8.6. on a private version. Tried any other version and i got the following message: 02:06:21 Link LoginServer Succeed. 02:06:25 Login LoginServer Success. 02:06:26 服务器当前在&# 32447;率:8.20%,能否登ƀ 70;:能 02:06:29 Link GameServer Succeed. 02:06:39 ->Enter Char. 02:06:41 Packet Error ...
script vessel's fatal error
02/13/2007 - Conquer Online 2 - 7 Replies
i dont know how this is "fatal" but wen i auto train with my sv, i often get this msg saying " Fatal Error: Tried to find a non-existing item" then it end's my botting as if i had low dura or low hp. maybe i get this error from putting 9 in the default pick up's. if i made my acc pick up nothing at all would i stop getting this error? maybe i get this error from making my bot have a Recorded route. so is there any way to stop getting this error? btw this is non topic , but wen i record a...



All times are GMT +2. The time now is 01:10.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.