Jump to content
xisto Community

KansukeKojima

Members
  • Content Count

    567
  • Joined

  • Last visited

Everything posted by KansukeKojima

  1. There are basically two main ways to code your php.Method 1) Creating a php document with an html look. The you throw in include tags all over the place. Its unorganized, and you have lots of stray files hidden in folders and scattered in your base directory. Its difficult to organize, and you make mistakes easily.Example: This document would be called index.php<html><title>Whatever</title><body><table width=750><td>Banner or something</td><tr><td width=500>Some content here. Mostly along the lines of <?php include "whatever content page"; ?></td><td width=250><?php include "whatever navigation page"; ?></td></tr></body></html> You might ask what the problem was? Well, those include tags tend to multiply, and so do all those unnecesary content pages all over your sever. It gets quite messy and you can make some bad errors when that happens. Method 2) In order to avoid this we can make up for many of those extra pages by including much of the content in the same php tag! <?php//----------------------//content is going here//---------------------------$content[1] = <<< htmlWHATEVER CONTENT GOES HEREhtml;$content[2] = <<< htmlMORE CONTENT GOES HEREhtml;$banner = <<< html<img src="whateverpath">html;$footer = <<< html<img src="whatever path"><br>copyright blablablahtml;//--------------------------//layout is below//-------------------------$layout = <<< html<table width=750><td width=750>$banner</td><tr><td width=500>$content[1]</td><td width=250>$content[2]</td></tr><tr><td width=750>$footer</td></tr>html;echo "$layout";?> Understand? Its very neat, very manageable, and very versatile. Another great advantage to this is that if you have a bunch of buttons for affiliates/whatever, you can easily include them wherever just by placing the button variables wherever you want them. As you get better at php and this technique, you may eventually be able to have all you pages on one file... it may be a little adventure when you code but its possible if you put all of you different pages as variables and just link to those variables... Well I hope you enjoyed this and I hoped it helped.
  2. 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...
  3. 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://forums.xisto.com/no_longer_exists/ <?php$time = date("g:ia");if($loc == "") {$content = <<< htmlWelcome 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 = <<< htmlThis page will eventually have some art on it.html;}if($loc == "writing") {$content = <<< htmlThis page will eventually have some writing on it.html;}if($loc == "articles") {$content = <<< htmlthis 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;?>
  4. English and super nerd!!!Jk..Only know english and php, and html, and css... and thats it.... welll.. I guess you don't really speak the web languages....
  5. Thank you very much for your comments.For Omega, made a bunch of those circle thingys (torus) and interlocked them. I selected them all, then duplicated them and rotated them... changed some individual sizes, made some black, mad a few light blue transparent. I wasn't looking for anything specific, just a mas of blackness amongst the light.
  6. More on the note of using the magical skill of parseing variables in echos, here is dandy fine random title/subtitle/whatever code. <?php$text[1] = "Hey ma whats for dinner";$text[2] = "Go up yo nose and picka winna!";$text[3] = "EWWWwww/admin/;;$randomize = rand[1, 3];echo "$text[$randomize]";?> Get it, you have three different options, you create a variable called randomize and use the rand function to select from the previous array. The you echo the text variable and the randomize variable as shown above.
  7. I used Bryce 5 and Photoshop for both.... I don't use bravenet fpr hosting anymore, too bad its on the image...:
  8. I wasn't the one to revive it... plus its a good movie so whatever...
  9. I'm a Christian so naturally I'm against it. I know that some of you, will not even consider the reasons I list because of what they imply or fail to imply. So here is my non-religion influenced reason so that those few of you will listen. Why would you take away the chance of something to experience life? Why would you take away the chance to know love, hatred, fun, and everthing else in life? Why would you take away the chance for it to do something great to influence the way people think or act? There these questions don't imply your killing a human life, they don't imply the fetus is to be considered human, and they don't imply there is a divine creator who wills the fetus doesn't die. Its just a simple question of why you would take the chance of life away from something. I know I can't keep if from happening, and I understand people will make there own decisions. It is innevitable that abortions will continue. I will not run up to people at an abortion clinic shouting of fire and brimstone. I respect, though I don't agree with, their decisions, but I hope that they will come to understand what they are doing.
  10. I rented it and I loved it.... I watched at least 4 or 5 times in one week... it was one of the best movies ever made.
  11. I agree with many of the socialist ideas here... communism failed but its because many of the leaders were corrupt a-holes... If all of our leaders were good people and would not screw us over I'm pretty sure that a semi socialist semi democratic government would work.But there is the problem of one group of people wanting one thing that is opposed to another group of people. The government has to deal with both needs and so the government becomes a great rope in a match of tug-of-war.Of course the government will swing in the direction that best suits what will benefit either them personally or the most people in their nation, so many people still end up unhappy...In short... no matter what government we have we will end up unhappy. We will complain and shows like "The Daily Show", "Rick Mercer Report", etc. spring up to poke fun at the human races failings to create a government that actually makes everyone happy. (Don't get me wrong, those shows are mighty funny). In all honesty, were screwed from birth so the best thing to do is bend over and take it up the tail pipe, because lets face it, we won't get what we want.
  12. I saw the picture in my newspaper... wow... Its amazing how genetics and stuff can get messed up sometimes...
  13. Thanks... I've been wondering about this for awhile now for really no reason...thanks... your explanations seem to make sense..
  14. One thing that I have recently learned and that I will be using for my website once I remake it (I've shut it down for now) is using echo to help create a sweet layout... bassically program all your variables at the top of the page, code them into another variable called template and then echo the template variable... I estimate that it will work quite nice because you can make large changes easily and quickly... and I think this method would work quite well. EDITED IN AFTER POST: It would look like this <?php//--------------------------//Content itself//--------------------------$content[1] = <<< htmlblablablablahtml;$content[2] = <<< htmlblablabla againhtml;//------------------------//layout design with content in it//------------------------$template = <<< html<table width=500><td>$content[1]</td><td>$content[2]</td>html;//--------------------//show the page//--------------------echo "$template";?>
  15. I completely agree. If you giving free hosting, its still a service. If you giving out any kind of service you should be freakin' polite to your users. Honestly how stupid can people be. Who tells there clients to f off and die. Anyways, I hope their stupidty causes them to lose about %75 of their clients...
  16. Well does it? Because if it doesn't then basically we can have memory sticks, etc that have unlimited space... like is that why there is space limits? Files need actual pysical room? Anybody know?
  17. It would suck horribly... I do so much stuff on it.... man.... damn that would blow..... but I suppose I would get over it...
  18. This book is by Brian Ruckley, and I highly suggest you see if its at a library near you if you like heroic fantasy.... I'll type out the description on the back of the book for you...An uneasy truce exists between the thanes of the True Bloods.Now, as another winter approaches, the armies of the Black Road march south from their exile beyond the Vale of Stones. For some, war will bring a swift and violent death. Others will not hear the clash of swords or see the corpses strewn over fields. They will see an opportunity to advance their own ambitions. But all, soon will fall under the shadow that is descending.For, while the storm of battle rages, one man is following a path that will awaken a terrible power in him- and his legacy will be written in blood.And the best part is, its a series (not sure if other books are out yet, this is book one). I highly recomend it to you and I'm not even finished it yet
  19. PHP EchoDescriptionThe echo() command has one purpose, displaying whatever you put in between the brackets. Learn to use it to your advantage.Try It Out <?php echo ""; ?> There is your echo command. For now, it does nothing. It has no value to display. <?php echo "This is my text."; ?> OutcomeThis is my text.Now this echo command has a value to display. Whatever you replace "This is my text." with will be displayed.Alright, lets move onto the next step. This time, we will include a variable in the echo command. <?php$var = "This is a variable";echo "$var. Congratualations, you just parsed a variable in an echo!";?> OutcomeThis is a variable. Congratualations, you just parsed a variable in an echo!Got it? The variable ($var) had a value, and when you placed $var in the echo command, it was displayed. Sounds like a different language, right? Its ok if you don't understand yet, with some practice you will eventually understand it.These are the basics of the echo() comand. Not much to it if you are a beginner, but as you progress, there is much more.
  20. XBOX 360... I just like it more... I'm sure both are fun, but I like the 360...
  21. Welll I've decided to kill my site and increase my skill, and then rebuild it with a better focus and just betterness in general... sorry...
  22. I'll definately link exchange, but I need to create a new heading for it... I'll probably do that this weekend... but I'll tell you when I'm ready to set it up.
  23. I agree with basically everything .hack//GU said.... have lots of pictures and stuff if its going to be browserbased...
  24. Well, I've not internet at my house for a while, but I hope to get it again soon. My friend has got Opera... I actually like it alot... I'll probably use it once I get internet again...
  25. Paint and notepad!!!!Jk...I use notepad, dreamweaver... used to use fireworks but now I use photoshop....
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.