KansukeKojima
Nov 17 2007, 05:59 AM
ok well I'm using a single php tag, all my pages are located on one page file, I'm just using variables to change the output... so I only need on page.. when I uploaded the file, the links didn't work.... anyone explain please? It worked on a different host that I don't use anymore... so its not the code itself... does trap just not support it? if you wish to view the page then go here http://2kart.trap17.comCODE <?php
$time = date("g:ia");
if($loc == "") { $content = <<< html Welcome to my blog! Its just been set up so don't expect anything grand for the moment. There isn't really anything on here for now, so comeback later! html; }
if($loc == "art") { $content = <<< html This page will eventually have some art on it. html; }
if($loc == "writing") { $content = <<< html This page will eventually have some writing on it. html; }
if($loc == "articles") { $content = <<< html this page will eventually have articles about things... html; }
$template = <<< html <html> <head> <title>2K Blogs\\KansukeKojima</title> </head> <body marginwidth="0" topmargin="5" rightmargin="5" leftmargin="5" bottommargin="5" bgcolor="#505050"> <link rel="stylesheet" href="css.css" type="text/css"> <table border="0" width="780" cellpadding="2" cellspacing="4" align="center"> <tr valign="top"> <td valign="top" width="780" class="head"> <img src="banner.jpg"></td></tr> <tr valign="top"> <td valign="top" width="780" class="table_class" bgcolor="#727272"> About Me | <a href="$PHP_SELF?loc=art">Art</a> | <a href="http://2kart.trap17.com" target="_blank">2K ART</a> | <a href="$PHP_SELF?loc=articles">Articles</a> | <a href="$PHP_SELF?loc=writing">Writing</a> | <a href="$PHP_SELF">Index</a> </td></tr> <tr valign="top"> <td valign="top" width="780" class="table_class" bgcolor="#727272"> $content</td></tr> <tr valign="top"> <td valign="top" width="780" class="table_class" bgcolor="#727272"> Copyright © 2004. All Rights Reserved.</td></tr> </table> </body> </html> html;
echo $template;
?>
Reply
jlhaslip
Nov 17 2007, 06:10 AM
I am not familiar with the "three angled bracket" method you have used in your template. Can you provide a link that explains the method, please. The link with target=_blank does open a new window, but the content does not change for it.
Reply
sonesay
Nov 17 2007, 06:14 AM
you are using $loc but you havent assigned it? looks like you need to set the var from get before you can start comparing it. CODE $loc = $_GET['loc'];
Reply
KansukeKojima
Nov 17 2007, 06:24 AM
QUOTE(jlhaslip @ Nov 16 2007, 11:10 PM)  I am not familiar with the "three angled bracket" method you have used in your template.
Can you provide a link that explains the method, please.
The link with target=_blank does open a new window, but the content does not change for it. you mean the <<< part? EDIT:You know what... I think that I will just try coding it a little differently... save everyone some trouble... I think I've got a method to use.... let me see...
Reply
Similar Topics
Keywords : apparantly, isnt, working,
- Notepad Working With Bush? - You Have To Try It
quite strange but funny (24)
What I Have Been Doing
shocking isn't it (7) well i thought i post about whats going with me, i will put it like this going to be gone until i
can fix a broken relationship thats one month away from i year, so that why im not repsonding to im
pms or anything else, once i get it fixed then i should be back in full swing. cya later.....
Apparently, Copyright Can Kill You.
copyright restrictions, that is. (6) apparently, copyright can kill. copyright restrictions, that is. related article: Linux
programmer faces death through copyright QUOTE A LIFELONG computer programmer and open source
author who both contributed to the Linux kernel and worked at Microsoft says he was blocked from
gettinig the drugs he needed to combat his Hepatitis C (HCV) condition because of copyright laws.
http://www.theinquirer.net/?article=24432 related links:
http://www.kuro5hin.org/story/2005/7/2/18273/55210 http://hcvaction.org/ copyright versus
basic human right to life? whi....
Why is my website not working! *Moan*
(37) For those who do not stop asking "why is cpanel at vaio-hosting not working" and "i cant access
site".
Apache , the webserver is currently down. That is why you cant access your site or
cPanel.
The FTP works because its not run by apache, and so does the mail server.
Please be
patient all, the problem is being worked on by admin. You do not need to post again about this - you
will know when its back up 8)....
My website dosn't working
(55) My website dosn't working. The browser says that the page not found.
The FTP is working ok...
What
the problem?
vbCrLf.
8)....
My hosting isnt working
(6) M url is http://www.egor.vaio-hosting.com/ . MySql or my cpanel isnt working for some reason and
hasnt been working since yesterday. I get the following error messages:
QUOTE Warning:
mysql_connect(): Can't connect to local MySQL server through socket '/var/tmp/mysql.sock' (2) in
/home/gogaoep/public_html/GBread.php on line 40
Can not connect to MySQL QUOTE Internal
Server Error
The server encountered an internal error or misconfiguration and was unable to
complete your request.
Please contact the server administrator, webmaster@vaio-hosting.com and in....
http://www.vaio-hosting.com/cpanel isnt working
(5) http://www.vaio-hosting.com/cpanel isnt working ive got:
CODE Internal Server Error The
server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@vaio-hosting.com and inform them of the time the
error occurred, and anything you might have done that may have caused the error. More information
about this error may be available in the server error log. Additionally, a 404 Not Found error
was encountered while trying to use an ErrorDocument to handle the request. Ap....
my hosting isn't working:
(1) this is the error when i try to reach the PHPBB forum
Forbidden You don't have permission
to access /phpBB/ on this server.
Additionally, a 403 Forbidden error was encountered while
trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/1.3.33
Server at www.etgar.xerox-hosting.com Port 80....
My url not working
(2) Cpanel is ok. I have my account but nothing happens when i use my url -------------- >
http://pitas.freenukehosting.com .
I will appreciate any help tanks.....
My site still doesn't working!
(10) here is it: http://hoaiduc.xerox-hosting.com
it still Unlimited Megabytes, i still haven't
permissions to do any things with my site !!!....
bug fixed,my site working
(5) Server is working
thank admin....
NOTICE TO EVERYONE WHOS HOSTING IS NOT WORKING <==Clickie
(18) Hi everyone, on behalf of everyone in this forum i would like to apoligize about the bugs in your
hosting. The admins are working hard right now on trying to fix them. Everyone knows your problems,
and we've heard enough complaining. So please stop spamming the forum with bug problems because WE
KNOW! Thanks for your cooperation everyone
-csclan
Also, you can ask me more info on aol instant
messenger at: goodcheezfan
UPDATE
You can go to the homepage at www.freenukehosting.com and
fill out a support ticket, maybe this will help also!
UPDATE
As you can t....
my avatar isnt showing up :?:
(3) what the heck, my sig is shwoing up, but my av, not at all! :?:....
FTP aint working
(6) i tried to login to the ftp with the ns3.jb-hoster.com and it aint working....
Domain change not working...
(5) Hello!
First of all, I am sorry if this is not the correct place to post this thread! I am unable
to log into the Support section.
OK. I am frustrated beyond measure. I have configured the
nameservers accurately, and it has been more than 7 days since I did that, for the domain name
'www.hpmagic.uni.cc'. But when I try to park the domain, it shows the following error:
--------------------------------------------------------------------------------------
Parked
Domain Maintenance
Parked Domain Additions
Cannot determine nameserver ip for
hpmagic....
FAQ link not working
(0) Clicking it leads to "You can't access this file directly..."....
Working on simple portal system
(12) I am workng on a simple portal system for begginning users. It supports content pages, links,
blocks, and news. PM me for the beta script. It has some bugs right now though.....
Can I Get Free Web Hosting Account?
My mother tongue isn't Engish. (8) My friends, my mother tongue isn't engish, but I want a free web hosting account.
/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /> . Do that sounds
ridiculous? Oh, my word must puzzle you. I forget to tell you, I am not good at english, though I
have studied it four years since I went to college. I don't know whether you can understand me,
Please tell me. Thanks a lot. /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'
/> ....
Hope trap17 have admins working hard !
;) ;) ;) ;) ;) ;) ;) (5) Last weaken , two company big free hosting is 100webpaces and frandt must closed ! And last
month have much site hosting have problems as sql4u , ..... Php version 4.xxx have few bugs ,
and i think it is a important problem ! I seen trap17 reboot few times in last month , i
don't understand why must doing so ? Hope administrators manage servers is good and working hard
!....
Is Anyone Else's Aim Not Working?
(5) My AIM instant messanger refuses to open and i wanted to know if it was just my comp or if everyone
was having this problem.....
Looking for apparantly, isnt, working,
|
*RANDOM STUFF*
*SIMILAR VIDEOS*
Searching Video's for apparantly, isnt, working,
*MORE FROM TRAP17.COM*
|
advertisement
|
|