Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #31  
Old February 21st, 2002, 10:53 PM
Decoder Decoder is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Location: New Brunswick
Posts: 35 Decoder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
<html>
<head>
<title>DecodethisDOTcom Revised</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="site.css" type="text/css">
</head>

<body bgcolor="1563B2" text="#000000">

<center>
<table width="966" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="15" height="55"></td>
<td width="98"></td>
<td width="23"></td>
<td width="102"></td>
<td width="17"></td>
<td width="515"></td>
<td width="14"></td>
<td width="182"></td>
</tr>
<tr>
<td height="19"></td>
<td valign="top">
<table width="100%" border="1" bordercolor="black" bgcolor="52AFDA" cellpadding="0" cellspacing="0" class="smalltext">
<tr>
<td width="94" height="19" valign="top">Decodethis Nav</td>
</tr>
</table>
</td>
<td></td>
<td valign="top">
<table width="100%" border="1" bordercolor="black" bgcolor="52AFDA" cellpadding="0" cellspacing="0" class="smalltext">
<tr>
<td width="102" height="17">Clan [SRT]</td>
</tr>
</table>
</td>
<td></td>
<td valign="top">
<table width="100%" border="1" bordercolor="black" bgcolor="52AFDA" cellpadding="0" cellspacing="0" class="smalltext">
<tr>
<td width="515" height="17">Todays News</td>
</tr>
</table>
</td>
<td></td>
<td valign="top">
<table width="100%" border="1" bordercolor="black" bgcolor="52AFDA" cellpadding="0" cellspacing="0" class="smalltext">
<tr>
<td width="182" height="19"><center>Pic Of The Day</center></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="10"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="150"></td>
<td valign="top">
<table width="100%" border="1" bordercolor="black" bgcolor="52AFDA" cellpadding="0" cellspacing="0">
<tr>
<td width="98" height="148">
<?
include("includes/links.php");
?>

</td>
</tr>
</table>
</td>
<td></td>
<td valign="top">
<table width="100%" border="1" bordercolor="black" bgcolor="52AFDA" cellpadding="0" cellspacing="0">
<tr>
<td width="102" height="148">&nbsp;</td>
</tr>
</table>
</td>
<td></td>
<td rowspan="5" valign="top">
<table width="100%" border="1" bordercolor="black" bgcolor="52AFDA" cellpadding="0" cellspacing="0">
<tr>
<td width="515" height="335">
<?
if ( $link ) {
include($link . ".php");
} else {
?>
<p>Please pick a person</p>
<?
}
?>


</td>
</tr>
</table>
</td>
<td></td>
<td valign="top">
<table width="100%" border="1" bordercolor="black" bgcolor="52AFDA" cellpadding="0" cellspacing="0">
<tr>
<td width="182" height="150"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="14"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="19"></td>
<td valign="top">
<table width="100%" border="1" bordercolor="black" bgcolor="52AFDA" cellpadding="0" cellspacing="0" class="smalltext">
<tr>
<td width="98" height="17"></td>
</tr>
</table>
</td>
<td></td>
<td valign="top">
<table width="100%" border="1" bordercolor="black" bgcolor="52AFDA" cellpadding="0" cellspacing="0">
<tr>
<td width="98" height="18"></td>
</tr>
</table>
</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="9"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="157"></td>
<td valign="top">
<table width="100%" border="1" bordercolor="black" bgcolor="52AFDA" cellpadding="0" cellspacing="0">
<tr>
<td width="98" height="155"></td>
</tr>
</table>
</td>
<td></td>
<td valign="top">
<table width="100%" border="1" bordercolor="black" bgcolor="52AFDA" cellpadding="0" cellspacing="0">
<tr>
<td width="102" height="155"></td>
</tr>
</table>
</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="24"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</center>
</body>
</html>

Reply With Quote
  #32  
Old February 21st, 2002, 10:55 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 9
Send a message via AIM to bricker42
do <?include( "include/" . $person . ".php" );?>

don't put a / in front, that makes php look in the root directory for your files ( it's like putting c:\include\file.php ).

Reply With Quote
  #33  
Old February 21st, 2002, 10:58 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 9
Send a message via AIM to bricker42
try replacing

if ( $link ) {

with

if ( isset( $link ) ) {

Reply With Quote
  #34  
Old February 21st, 2002, 10:59 PM
Decoder Decoder is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Location: New Brunswick
Posts: 35 Decoder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
i replaced $person with $link
cause i changed that in my links.php too
but the page doesnt display when i do that
or with the original one either i just get
"Parse error: parse error in /home/sites/site138/web/new.php on line 95"

Reply With Quote
  #35  
Old February 21st, 2002, 11:03 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 9
Send a message via AIM to bricker42
can you post your links.php too?

your file is working fine for me. no errors.

Reply With Quote
  #36  
Old February 21st, 2002, 11:04 PM
Decoder Decoder is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Location: New Brunswick
Posts: 35 Decoder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
this is the line cause all the probs
"do <?include( "include/" . $link . ".php" );?> "

Reply With Quote
  #37  
Old February 21st, 2002, 11:05 PM
Decoder Decoder is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Location: New Brunswick
Posts: 35 Decoder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="site.css" type="text/css">
</head>

<body bgcolor="52DA7C" text="#000000">
<p class="smalltext">->testing out links.php<br>
<a href="<?=$PHP_SELF?>?link=/srt/god.html">SRT.God</a> </p>
<a href="<?=$PHP_SELF?>?link=dod.php">DoD</a>
</body>
</html>

Reply With Quote
  #38  
Old February 21st, 2002, 11:07 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 9
Send a message via AIM to bricker42
well, get rid of "do"...

and you'll need "includes" instead of "include". i read your post wrong.

Reply With Quote
  #39  
Old February 21st, 2002, 11:09 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 9
Send a message via AIM to bricker42
make
<a href="<?=$PHP_SELF?>?link=/srt/god.html">SRT.God</a>

<a href="<?=$PHP_SELF?>?link=srt_god.html">SRT.God</a>

and rename the file.

it might be having problems with the $PHP_SELF part, too. but try that.

Reply With Quote
  #40  
Old February 21st, 2002, 11:10 PM
Decoder Decoder is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Location: New Brunswick
Posts: 35 Decoder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
nope still getting the error

i dont understand it

so you can click on the God link and have it open his profile in the middle?

Reply With Quote
  #41  
Old February 21st, 2002, 11:14 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 9
Send a message via AIM to bricker42
you can't have /'s in your variable. it confuses php and your browser.

Reply With Quote
  #42  
Old February 21st, 2002, 11:16 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 9
Send a message via AIM to bricker42
also, make your links.php file

<p class="smalltext">->testing out links.php<br>
<a href="<?=$PHP_SELF?>?link=/srt/god.html">SRT.God</a> </p>
<a href="<?=$PHP_SELF?>?link=dod.php">DoD</a>

you won't be using the file by itself, so all that extra html markup will mess things up.

Reply With Quote
  #43  
Old February 21st, 2002, 11:18 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 9
Send a message via AIM to bricker42
you can try removing the

<?=$PHP_SELF?>

and replace them with

new.php

see if that might be the error.

Reply With Quote
  #44  
Old February 21st, 2002, 11:18 PM
Decoder Decoder is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Location: New Brunswick
Posts: 35 Decoder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
nope still getting error on line 95 of new.php
95=<?include( "includes/" . $link . ".php" );?>

Reply With Quote
  #45  
Old February 21st, 2002, 11:22 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 9
Send a message via AIM to bricker42
change

<?include( "includes/" . $link . ".php" );?>

to

<?include( "includes/" . $link );?>

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > including pages without SSI


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
Stay green...Green IT