pls help me to solve this!!!!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
luvcat79
Forum Newbie
Posts: 4
Joined: Thu Nov 16, 2006 10:59 pm

pls help me to solve this!!!!

Post by luvcat79 »

hi..
anyone out there can help me..
does anyone knows how i get these errors and what the solution for these?
Warning: include(include/locale.php) [function.include]: failed to open stream: No such file or directory in C:\Documents and Settings\User\Desktop\penaltySys\include\dbcommon.php on line 18

Warning: include() [function.include]: Failed opening 'include/locale.php' for inclusion (include_path='.;C:\php5\pear') in C:\Documents and Settings\User\Desktop\penaltySys\include\dbcommon.php on line 18

Warning: include(include/events.php) [function.include]: failed to open stream: No such file or directory in C:\Documents and Settings\User\Desktop\penaltySys\include\dbcommon.php on line 19

Warning: include() [function.include]: Failed opening 'include/events.php' for inclusion (include_path='.;C:\php5\pear') in C:\Documents and Settings\User\Desktop\penaltySys\include\dbcommon.php on line 19

Warning: include(include/commonfunctions.php) [function.include]: failed to open stream: No such file or directory in C:\Documents and Settings\User\Desktop\penaltySys\include\dbcommon.php on line 20

Warning: include() [function.include]: Failed opening 'include/commonfunctions.php' for inclusion (include_path='.;C:\php5\pear') in C:\Documents and Settings\User\Desktop\penaltySys\include\dbcommon.php on line 20

Warning: include(include/dbconnection.php) [function.include]: failed to open stream: No such file or directory in C:\Documents and Settings\User\Desktop\penaltySys\include\dbcommon.php on line 21

Warning: include() [function.include]: Failed opening 'include/dbconnection.php' for inclusion (include_path='.;C:\php5\pear') in C:\Documents and Settings\User\Desktop\penaltySys\include\dbcommon.php on line 21

Warning: set_error_handler() expects the argument (error_handler) to be a valid callback in C:\Documents and Settings\User\Desktop\penaltySys\include\dbcommon.php on line 110

Warning: include(libs/Smarty.class5.php) [function.include]: failed to open stream: No such file or directory in C:\Documents and Settings\User\Desktop\penaltySys\libs\Smarty.class.php on line 5

Warning: include() [function.include]: Failed opening 'libs/Smarty.class5.php' for inclusion (include_path='.;C:\php5\pear') in C:\Documents and Settings\User\Desktop\penaltySys\libs\Smarty.class.php on line 5


Actually these errors happened when i try to share the web through other pc..
anyway thank you in advance..
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

Your include files aren't being found. Without seeing some code it'll be tricky to work out why.
luvcat79
Forum Newbie
Posts: 4
Joined: Thu Nov 16, 2006 10:59 pm

Post by luvcat79 »

onion2k | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


thank u for ur reply..
is it sumthin wrong wit tihs code?

Code: Select all

<?php

session_cache_limiter("none");
session_start();

$dsn="penaltyDB";
$user="";
$pwd="";


$cCharset = "Windows-1252";

header("Content-type: text/html; charset=".$cCharset);

$dDebug=false;
$dSQL="";

include("include/locale.php");
include("include/events.php");
include("include/commonfunctions.php");
include("include/dbconnection.php");


define("FORMAT_NONE","");
define("FORMAT_DATE_SHORT","Short Date");
define("FORMAT_DATE_LONG","Long Date");
define("FORMAT_DATE_TIME","Datetime");
define("FORMAT_TIME","Time");
define("FORMAT_CURRENCY","Currency");
define("FORMAT_PERCENT","Percent");
define("FORMAT_HYPERLINK","Hyperlink");
define("FORMAT_EMAILHYPERLINK","Email Hyperlink");
define("FORMAT_FILE_IMAGE","File-based Image");
define("FORMAT_DATABASE_IMAGE","Database Image");
define("FORMAT_DATABASE_FILE","Database File");
define("FORMAT_FILE","Document Download");
define("FORMAT_LOOKUP_WIZARD","Lookup wizard");
define("FORMAT_PHONE_NUMBER","Phone Number");
define("FORMAT_NUMBER","Number");
define("FORMAT_HTML","HTML");
define("FORMAT_CHECKBOX","Checkbox");
define("FORMAT_CUSTOM","Custom");

define("EDIT_FORMAT_NONE","");
define("EDIT_FORMAT_TEXT_FIELD","Text field");
define("EDIT_FORMAT_TEXT_AREA","Text area");
define("EDIT_FORMAT_PASSWORD","Password");
define("EDIT_FORMAT_DATE","Date");
define("EDIT_FORMAT_TIME","Time");
define("EDIT_FORMAT_RADIO","Radio button");
define("EDIT_FORMAT_CHECKBOX","Checkbox");
define("EDIT_FORMAT_DATABASE_IMAGE","Database image");
define("EDIT_FORMAT_DATABASE_FILE","Database file");
define("EDIT_FORMAT_FILE","Document upload");
define("EDIT_FORMAT_LOOKUP_WIZARD","Lookup wizard");
define("EDIT_FORMAT_HIDDEN","Hidden field");
define("EDIT_FORMAT_READONLY","Readonly");

define("EDIT_DATE_SIMPLE",0);
define("EDIT_DATE_SIMPLE_DP",11);
define("EDIT_DATE_DD",12);
define("EDIT_DATE_DD_DP",13);

define("MODE_ADD",0);
define("MODE_EDIT",1);
define("MODE_SEARCH",2);
define("MODE_LIST",3);
define("MODE_PRINT",4);
define("MODE_VIEW",5);

define("LOGIN_HARDCODED",0);
define("LOGIN_TABLE",1);

define("ADVSECURITY_ALL",0);
define("ADVSECURITY_VIEW_OWN",1);
define("ADVSECURITY_EDIT_OWN",2);
define("ADVSECURITY_NONE",3);

define("ACCESS_LEVEL_ADMIN","Admin");
define("ACCESS_LEVEL_USER","User");
define("ACCESS_LEVEL_GUEST","Guest");

define("DATABASE_MySQL","0");
define("DATABASE_Oracle","1");
define("DATABASE_MSSQLServer","2");
define("DATABASE_Access","3");
define("DATABASE_PostgreSQL","4");

$strLeftWrapper="[";
$strRightWrapper="]";

$cLoginTable				= "register";
$cUserNameField			= "ipOwner";
$cPasswordField			= "password";
$cUserGroupField			= "type";
$cEmailField			= "";


$cFrom 					= "";
if($cFrom)
	ini_set("sendmail_from",$cFrom);

if(!@$_SESSION["UserID"])
{
	$_SESSION["UserID"]="Guest";
	$_SESSION["GroupID"]="<Guest>";
	$_SESSION["AccessLevel"]=ACCESS_LEVEL_GUEST;
}

set_error_handler("error_handler");

?>
or any other code..
i dun have any idea about this problem..
anyway thank u in advance.


onion2k | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

By the look of it your script doesn't have access to the files that are being included in the block of 4 include statements. There could be lots of reasons for that, but the most likely is that you don't have the files.

On another note, we don't like AOL speak here. The word "you" has a "y" and an "o" in it. Use them.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Some rules to be aware of for future posting.
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:11. Please use proper, complete spelling when posting in the forums. AOL Speak, leet speak and other abbreviated wording can confuse those that are trying to help you (or those that you are trying to help). Please keep in mind that there are many people from many countries that use our forums to read, post and learn. They do not always speak English as well as some of us, nor do they know these aberrant abbreviations. Therefore, use as few abbreviations as possible, especially when using such simple words.

Some examples of what not to do are ne1, any1 (anyone); u (you); ur (your or you're); 2 (to too); prolly (probably); afaik (as far as I know); etc.
check what getcwd() tells you when using your file. Your paths may need adjusting.
Post Reply