[QUOTE=PrusseReborn;26709151]Here's the "site" as per now
[url]http://ole.cavemen.no/[/url]
image is clickable[/QUOTE]
Try to make it look like:
[code]
<html>
<head>
<title>Main page</title>
</head>
<body>
<br /> Welcome to the main page<br />The site is currently under development, links and media will be implemented later.!<br />Press the AMD logo to get to the current links..<br />
<a href="http://ole.cavemen.no/test.php" target="_blank"> <img alt="Image Hosting by FileSmelt!" src="http://filesmelt.com/dl/amd.jpg" /></a>
<P>2010 Ole-Edvart Skeie </P>
</body>
</html>[/code]
[QUOTE=H4Z3Y;26710019]I have no idea how your current example demonstrates PHP.[/QUOTE]
I started today :frown:
[editline]15th December 2010[/editline]
[code]<HTML>
<HEAD>
<TITLE>Main page</TITLE> </HEAD>
<?php
echo ("<br> Welcome to the main page");
echo ("<br>The site is currently under development, links and media will be implemented later.!");
echo ("<br>Press the AMD logo to get to the current links..");
echo ("<br> Oh, and AMD, don't sue me. It's just a temporary solution.");
echo ("<br>");
echo date("<br>l \\t\h\e jS");
echo "<br><img src='http://filesmelt.com/dl/amd.jpg' />"
?>
<P>2010 Ole-Edvart Skeie </P></BODY>
</HTML>[/code]
Fixed up the code a bit
[QUOTE=Siemens;26708598]Your case is that PHP is such a batshit insane language that it's hard to understand what the fuck it's actually doing?
[editline]hi[/editline]
Also:
[php]
<?php
$hi = 'z';
echo $hi + 1 . "\n";
$hi++;
echo $hi . "\n";
[/php]
[url]http://codepad.org/icnDvc1e[/url][/QUOTE]
I suppose people know this already, but if you have "z", as in the letter z, and add 1 at this z, it goes to aa. Same with b+1 becomes c. My friend accidentally created an infinite loop to try to get "thegame".
2.5GB text file :v:
PHP is great, it's easy to get the hang of and provides a good base for learning other stuff
[QUOTE=PrusseReborn;26710458]I started today :frown:
[editline]15th December 2010[/editline]
[code]<HTML>
<HEAD>
<TITLE>Main page</TITLE> </HEAD>
<?php
echo ("<br> Welcome to the main page");
echo ("<br>The site is currently under development, links and media will be implemented later.!");
echo ("<br>Press the AMD logo to get to the current links..");
echo ("<br> Oh, and AMD, don't sue me. It's just a temporary solution.");
echo ("<br>");
echo date("<br>l \\t\h\e jS");
echo "<br><img src='http://filesmelt.com/dl/amd.jpg' />"
?>
<P>2010 Ole-Edvart Skeie </P></BODY>
</HTML>[/code]
Fixed up the code a bit[/QUOTE]
Your use of PHP is absolutely ridiculous, and you won't go far if that's how you plan on learning it.
Here's an idea: make a quick game that you can play in your browser - tic-tac-toe or something. Play around with logical operators, statements, the different data types, classes and objects.
[QUOTE=PrusseReborn;26710458]I started today :frown:
[editline]15th December 2010[/editline]
[code]<HTML>
<HEAD>
<TITLE>Main page</TITLE> </HEAD>
<?php
echo ("<br> Welcome to the main page");
echo ("<br>The site is currently under development, links and media will be implemented later.!");
echo ("<br>Press the AMD logo to get to the current links..");
echo ("<br> Oh, and AMD, don't sue me. It's just a temporary solution.");
echo ("<br>");
echo date("<br>l \\t\h\e jS");
echo "<br><img src='http://filesmelt.com/dl/amd.jpg' />"
?>
<P>2010 Ole-Edvart Skeie </P></BODY>
</HTML>[/code]
Fixed up the code a bit[/QUOTE]
PHP isn't meant to just use echo, you don't need php to write sentences
[url]http://www.youtube.com/user/thenewboston#grid/user/67D94BE42620925B[/url]
He explains everything on a level so even if you're dumb as shit you can understand what is going on.
[QUOTE=PrusseReborn;26710458]I started today :frown:
[editline]15th December 2010[/editline]
[code]<HTML>
<HEAD>
<TITLE>Main page</TITLE> </HEAD>
<?php
echo ("<br> Welcome to the main page");
echo ("<br>The site is currently under development, links and media will be implemented later.!");
echo ("<br>Press the AMD logo to get to the current links..");
echo ("<br> Oh, and AMD, don't sue me. It's just a temporary solution.");
echo ("<br>");
echo date("<br>l \\t\h\e jS");
echo "<br><img src='http://filesmelt.com/dl/amd.jpg' />"
?>
<P>2010 Ole-Edvart Skeie </P></BODY>
</HTML>[/code]
Fixed up the code a bit[/QUOTE]
Add "border=0" to the images it gets rid of the outlining.
[QUOTE=PrusseReborn;26710458]I started today :frown:
[editline]15th December 2010[/editline]
[code]<HTML>
<HEAD>
<TITLE>Main page</TITLE> </HEAD>
<?php
echo ("<br> Welcome to the main page");
echo ("<br>The site is currently under development, links and media will be implemented later.!");
echo ("<br>Press the AMD logo to get to the current links..");
echo ("<br> Oh, and AMD, don't sue me. It's just a temporary solution.");
echo ("<br>");
echo date("<br>l \\t\h\e jS");
echo "<br><img src='http://filesmelt.com/dl/amd.jpg' />"
?>
<P>2010 Ole-Edvart Skeie </P></BODY>
</HTML>[/code]
Fixed up the code a bit[/QUOTE]why do you insist on capitalizing everything
[quote=tehwhale;26714812]why do you insist on capitalizing everything[/quote]
[code]
10 HTML
20 ECHO
40 /HTML
30 GOTO 10
[/code]
caps.
[QUOTE=PrusseReborn;26710458]I started today :frown:
[editline]15th December 2010[/editline]
[code]<HTML>
<HEAD>
<TITLE>Main page</TITLE> </HEAD>
<?php
echo ("<br> Welcome to the main page");
echo ("<br>The site is currently under development, links and media will be implemented later.!");
echo ("<br>Press the AMD logo to get to the current links..");
echo ("<br> Oh, and AMD, don't sue me. It's just a temporary solution.");
echo ("<br>");
echo date("<br>l \\t\h\e jS");
echo "<br><img src='http://filesmelt.com/dl/amd.jpg' />"
?>
<P>2010 Ole-Edvart Skeie </P></BODY>
</HTML>[/code]
Fixed up the code a bit[/QUOTE]
Ok you guys are all being massive dickholes. This is a guy who's just starting out.
In a bid to not be a dickhole let me say that one of the nice things about php is that you can actually hop between it and html on the fly. even in php files. So consequentially you could have written your code like this.
[code]
<HTML>
<HEAD>
<TITLE>
Main page
</TITLE>
</HEAD>
<BODY>
Welcome to the main page<br>
The site is currently under development, links and media will be implemented later!<br>
Press the AMD logo to get to the current links..<br>
Oh, and AMD, don't sue me. It's just a temporary solution.<br> <br>
<?php echo date("l \\t\h\e jS"); ?><br>
<img src='http://filesmelt.com/dl/amd.jpg' />
<p>2010 Ole-Edvart Skeie </p>
</BODY>
</HTML>
[/code]
So there is only php when you need it.
Add me on steam if you want and I'll try help you out where I can. I'm pretty new at it myself but I know my way around a bit of it.
Sorry, you need to Log In to post a reply to this thread.