Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Warning Include Paths...
Old 02-16-2008, 08:47 PM Warning Include Paths...
xkaosx's Avatar
Experienced Talker

Posts: 31
Name: Junior
Location: East LA
Trades: 0
Well im making my website PHP. So I made some PHP files and all that and used the code

<?php include("filename.php"); ?>

So first what I did was create new PHP file in dreamweaver and added

<?php include("navheader"); ?>
<?php include("latestreviews"); ?>
<?php include("content"); ?>
<?php include("sidebar.php"); ?>
<?php include("footer.php"); ?>

I have all these pages in the same folder/directory

I uploaded my whole site all php files even including the CSS and images EVERYTHING!

So I go and check and i keep getting that warning thingy!

Check it out
www.dslegends.net

What am I doing wrong??!
I dont understand I uploaded everything
and this keeps happening??!!

Please help.
__________________

Please login or register to view this content. Registration is FREE

Great new Bux site!
xkaosx is offline
Reply With Quote
View Public Profile Visit xkaosx's homepage!
 
 
Register now for full access!
Old 02-16-2008, 09:12 PM Re: Warning Include Paths...
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
At first glance it looks like your missing the extensions on some of your includes. Post your entire soure using the PHP BBcode if you still have problems.

Also... why are you using the php declaration so many times. Why not just do the following:
PHP Code:
<?php
//code
//code
//code
//code
?>
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 02-16-2008, 09:30 PM Re: Warning Include Paths...
xkaosx's Avatar
Experienced Talker

Posts: 31
Name: Junior
Location: East LA
Trades: 0
what do you mean by "post entire source using the PHP BBcode"
I dont get that??! What do you mean by that?

Also thanks for replying!
__________________

Please login or register to view this content. Registration is FREE

Great new Bux site!
xkaosx is offline
Reply With Quote
View Public Profile Visit xkaosx's homepage!
 
Old 02-16-2008, 09:34 PM Re: Warning Include Paths...
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
I meant post your source code and use PHP tags like this:
\[PHP\]

code goes here

\[PHP\]


Without the slashes. It really improves readibility
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 02-16-2008, 10:15 PM Re: Warning Include Paths...
xkaosx's Avatar
Experienced Talker

Posts: 31
Name: Junior
Location: East LA
Trades: 0
Huh?? I have never heard of that? So you want me to put like [php-] HTML SOURCE [/php-] (without the -)

??? or like [PHP FILE NAME HERE][/PHPFILENAME]

Also i have nothing to put like TEXT cuz my content part and everything are all in the PHP files so i just edit the PHP files

so how do you want me to do this again???

please explain thxs!
__________________

Please login or register to view this content. Registration is FREE

Great new Bux site!

Last edited by xkaosx; 02-16-2008 at 10:19 PM..
xkaosx is offline
Reply With Quote
View Public Profile Visit xkaosx's homepage!
 
Old 02-16-2008, 10:28 PM Re: Warning Include Paths...
carloncho's Avatar
Skilled Talker

Posts: 80
Name: Carlos
Trades: 0
Test first if the files you have included have the same name that the names you have write in the code.

Warning: include(navheader)
Warning: include(latestreviews)
and
Warning: include(content)

are the errors. There is no extension in the three files. Are you sure that are the correct names?
__________________
-----------------------

Please login or register to view this content. Registration is FREE
carloncho is offline
Reply With Quote
View Public Profile Visit carloncho's homepage!
 
Old 02-16-2008, 10:38 PM Re: Warning Include Paths...
xkaosx's Avatar
Experienced Talker

Posts: 31
Name: Junior
Location: East LA
Trades: 0
Yea Im pretty sure now if you go to www.dslegends.net this shows

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/dslegend/public_html/index.php on line 3

what does that mean??
__________________

Please login or register to view this content. Registration is FREE

Great new Bux site!
xkaosx is offline
Reply With Quote
View Public Profile Visit xkaosx's homepage!
 
Old 02-16-2008, 11:51 PM Re: Warning Include Paths...
xkaosx's Avatar
Experienced Talker

Posts: 31
Name: Junior
Location: East LA
Trades: 0
also the names are correct!
__________________

Please login or register to view this content. Registration is FREE

Great new Bux site!
xkaosx is offline
Reply With Quote
View Public Profile Visit xkaosx's homepage!
 
Old 02-17-2008, 12:41 AM Re: Warning Include Paths...
ry60003333's Avatar
Novice Talker

Posts: 5
Name: Ryan
Trades: 0
Your not using inlcude right.
Its:
include "FILEPATH";

So use this:
<?php
include "navheader";
include "latestreviews";
include "content";
include "sidebar.php";
include "footer.php";
?>

Last edited by ry60003333; 02-17-2008 at 12:43 AM.. Reason: Added the code he should use.
ry60003333 is offline
Reply With Quote
View Public Profile Visit ry60003333's homepage!
 
Old 02-17-2008, 06:40 AM Re: Warning Include Paths...
Novice Talker

Posts: 8
Name: Kitty
Trades: 0
is that the whole of the php?

also all your extensions are .php
I tried without and it said those didn't exist

<?
include("navheader.php");
include("latestreviews.php");
include("content.php");
include("sidebar.php");
include("footer.php"); ?>

Last edited by RunicKitty; 02-17-2008 at 06:44 AM..
RunicKitty is offline
Reply With Quote
View Public Profile
 
Old 02-17-2008, 01:32 PM Re: Warning Include Paths...
xkaosx's Avatar
Experienced Talker

Posts: 31
Name: Junior
Location: East LA
Trades: 0
Crap man I keep getting

Parse error: syntax error, unexpected T_STRING in /home/dslegend/public_html/navheader.php on line 1

what does that mean????!!!!
__________________

Please login or register to view this content. Registration is FREE

Great new Bux site!
xkaosx is offline
Reply With Quote
View Public Profile Visit xkaosx's homepage!
 
Old 02-17-2008, 01:34 PM Re: Warning Include Paths...
xkaosx's Avatar
Experienced Talker

Posts: 31
Name: Junior
Location: East LA
Trades: 0
You know what forget it i quit....ima request it...
__________________

Please login or register to view this content. Registration is FREE

Great new Bux site!
xkaosx is offline
Reply With Quote
View Public Profile Visit xkaosx's homepage!
 
Old 02-17-2008, 01:45 PM Re: Warning Include Paths...
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
unexpected T_String usually means you forgot a semicolon. You should probably post your entire source for more help as it will be easier to show you where you made a mistake.
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 02-17-2008, 01:48 PM Re: Warning Include Paths...
xkaosx's Avatar
Experienced Talker

Posts: 31
Name: Junior
Location: East LA
Trades: 0
what do you mean by the whole source??? read my other Post called Please!

I hope you can hope!
__________________

Please login or register to view this content. Registration is FREE

Great new Bux site!
xkaosx is offline
Reply With Quote
View Public Profile Visit xkaosx's homepage!
 
Old 02-17-2008, 01:59 PM Re: Warning Include Paths...
Novice Talker

Posts: 8
Name: Kitty
Trades: 0
Parse error: syntax error, unexpected T_STRING in /home/dslegend/public_html/navheader.php on line 1


okay, now your problem is in the nav header file, so show us the first two lines of that one
RunicKitty is offline
Reply With Quote
View Public Profile
 
Old 02-17-2008, 02:02 PM Re: Warning Include Paths...
xkaosx's Avatar
Experienced Talker

Posts: 31
Name: Junior
Location: East LA
Trades: 0
Okay my nav header is this

Quote:
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="en" />
<meta name="robots" content="all,follow" />

<meta name="author" lang="en" content="All: Your website name [www.your-website.com]; e-mail: info@your-website.com" />


<meta name="description" content="..." />
<meta name="keywords" content="..." />

<link rel="stylesheet" media="screen,projection" type="text/css" href="css/main.css" />
<link rel="stylesheet" media="screen,projection" type="text/css" href="css/scheme.css" />
<link rel="stylesheet" media="print" type="text/css" href="css/print.css" />

<title>DS Legends| Home</title>
</head>

<body>

<div id="main">

<!-- Header -->
<div id="header">

<!-- Your logo -->
<h1 id="logo"><a href="#"><span>DS Legends </span></a></h1>
<hr class="noscreen" />

<!-- Your slogan -->
<div id="slogan">Ultimate Souce for the DS </div>
<hr class="noscreen" />

<!-- Hidden navigation -->
<p class="noscreen noprint"><em>Quick links: <a href="#content">content</a>, <a href="#nav">navigation</a>.</em></p>
<hr class="noscreen" />

</div> <!-- /header -->

<!-- Navigation -->
<div id="nav">

<ul class="box">
<li id="nav-active"><a href="#">Home</a></li>
<!-- Active page (highlighted) -->
<li><a href="#">Forums</a></li>
<li><a href="#">Oekaki</a></li>
<li><a href="#">DS System </a></li>
<li><a href="#">Reviews</a></li>
<li><a href="#">Previews</a></li>
<li><a href="#">Get Connected </a></li>
<li><a href="#">Wi-Fi Games </a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact Us</a></li>

</ul>

<hr class="noscreen" />
</div> <!-- /nav -->
__________________

Please login or register to view this content. Registration is FREE

Great new Bux site!
xkaosx is offline
Reply With Quote
View Public Profile Visit xkaosx's homepage!
 
Old 02-17-2008, 02:10 PM Re: Warning Include Paths...
Novice Talker

Posts: 8
Name: Kitty
Trades: 0
take out the <?xml version="1.0"?>, it should work without that. I can't really give any more suggestions than that as I don't know about that
RunicKitty is offline
Reply With Quote
View Public Profile
 
Old 02-17-2008, 02:12 PM Re: Warning Include Paths...
xkaosx's Avatar
Experienced Talker

Posts: 31
Name: Junior
Location: East LA
Trades: 0
huh? by the first thing you mean the first line of code witch is
<?xml version="1.0"?>

if you mean that ill try it and tell you what happens
__________________

Please login or register to view this content. Registration is FREE

Great new Bux site!
xkaosx is offline
Reply With Quote
View Public Profile Visit xkaosx's homepage!
 
Old 02-17-2008, 02:15 PM Re: Warning Include Paths...
xkaosx's Avatar
Experienced Talker

Posts: 31
Name: Junior
Location: East LA
Trades: 0
it Worked
Look At My Website!!!!

Thank You!!!!
__________________

Please login or register to view this content. Registration is FREE

Great new Bux site!
xkaosx is offline
Reply With Quote
View Public Profile Visit xkaosx's homepage!
 
Reply     « Reply to Warning Include Paths...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.53167 seconds with 12 queries