Add to Google

Apparently This Isn't Working... - help please!

free web hosting
Open Discussion > Have your say > General Talk

Apparently This Isn't Working... - help please!

KansukeKojima
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.com
CODE

<?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
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
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
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



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Similar Topics

Keywords : apparantly, isnt, working,

  1. Notepad Working With Bush? - You Have To Try It
    quite strange but funny (24)
  2. 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.....
  3. 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....
  4. 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)....
  5. 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)....
  6. 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....
  7. 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....
  8. 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....
  9. 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.....
  10. 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 !!!....
  11. bug fixed,my site working
    (5)
    Server is working thank admin....
  12. 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....
  13. my avatar isnt showing up :?:
    (3)
    what the heck, my sig is shwoing up, but my av, not at all! :?:....
  14. FTP aint working
    (6)
    i tried to login to the ftp with the ns3.jb-hoster.com and it aint working....
  15. 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....
  16. FAQ link not working
    (0)
    Clicking it leads to "You can't access this file directly..."....
  17. 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.....
  18. 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'
    /> ....
  19. 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
    !....
  20. 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.....

    1. Looking for apparantly, isnt, working,

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for apparantly, isnt, working,

*MORE FROM TRAP17.COM*
advertisement



Apparently This Isn't Working... - help please!



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE