Forum Templates
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
- Mitth'raw'nuruodo
- Veteran
- Posts: 839
- Joined: Sat Jan 22, 2005 11:04 am
- Location: Eastern Coast of US
- Contact:
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
- Mitth'raw'nuruodo
- Veteran
- Posts: 839
- Joined: Sat Jan 22, 2005 11:04 am
- Location: Eastern Coast of US
- Contact:
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
- Mitth'raw'nuruodo
- Veteran
- Posts: 839
- Joined: Sat Jan 22, 2005 11:04 am
- Location: Eastern Coast of US
- Contact:
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
Because I used to develop in ASP before I discovered the wonderful world that is PHP. Classic ASP only has five user objects and they're very limited...aspx (asp.net) is exceptionally slow except on very fast servers but it such a convulted language (like all of .net) that it's very difficult to code in to accomplish even the basics. On the other hand, anyone who knows C can pick up PHP in an afternoon, and anyone who doesn't know C can pick it up over the weekend with little difficulty.Mitth'raw'nuruodo wrote:BTW, How do you know .asp sucks?
- Mitth'raw'nuruodo
- Veteran
- Posts: 839
- Joined: Sat Jan 22, 2005 11:04 am
- Location: Eastern Coast of US
- Contact:
I'm not arguing on that because I never did .asp before. I wanted to but I didn't 'cause I was tired from learning Javascript.
Hey I know C!
So I guess you suggest that for server-user thing that .php is the way to go?
Hmmm...I'll have to try it. You know that also if .php is simular to C and C is simular to Javascript then .php is simular to Javascript too! Ooooh, I wonder if they're compatiable, hehe.
Hey I know C!
So I guess you suggest that for server-user thing that .php is the way to go?
Hmmm...I'll have to try it. You know that also if .php is simular to C and C is simular to Javascript then .php is simular to Javascript too! Ooooh, I wonder if they're compatiable, hehe.
"But...It was so beutifully done"
-
- Veteran
- Posts: 703
- Joined: Sun Nov 14, 2004 7:36 am
- Contact:
Amen to that old timer..... A.S.P. (Anhialation of any Structured Programming). ewwwwww. lolNekrophidius wrote:Because I used to develop in ASP before I discovered the wonderful world that is PHP. Classic ASP only has five user objects and they're very limited...aspx (asp.net) is exceptionally slow except on very fast servers but it such a convulted language (like all of .net) that it's very difficult to code in to accomplish even the basics. On the other hand, anyone who knows C can pick up PHP in an afternoon, and anyone who doesn't know C can pick it up over the weekend with little difficulty.Mitth'raw'nuruodo wrote:BTW, How do you know .asp sucks?
Last edited by MystikShadows on Sun Feb 06, 2005 1:03 pm, edited 1 time in total.
When God created light, so too was born, the first Shadow!
MystikShadows
Need hosting? http://www.jc-hosting.net
Interested in Text & ASCII development? Look no further!
http://www.ascii-world.com
MystikShadows
Need hosting? http://www.jc-hosting.net
Interested in Text & ASCII development? Look no further!
http://www.ascii-world.com
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
- Mitth'raw'nuruodo
- Veteran
- Posts: 839
- Joined: Sat Jan 22, 2005 11:04 am
- Location: Eastern Coast of US
- Contact:
I hope so.
As long as you wrote it inside the correct tags.
for example if you wanted to write a javascript code in HTML it would be:
I guess .php works something like this.
BTW I'm confused on the code system reading thing. You know when a program executes 1 line then executes another line. I'm confused in which line it executes next, its not like QB.
Aparently you can be inside two functions at the same time....
But oh well...
As long as you wrote it inside the correct tags.
for example if you wanted to write a javascript code in HTML it would be:
Code: Select all
<html>
<head>
<script type = "text/javascript">
//everything in here is Javascript
IntSite (parameters){
//do Int stuff
}
KeyHandler (parameters) {
//do key handler stuff
}
</script>
</head>
<body onload = "IntSite(parameters)" onkeyup = "KeyHandler(parameters)">
<!--This is a comment in HTML-->
</body>
</html>
BTW I'm confused on the code system reading thing. You know when a program executes 1 line then executes another line. I'm confused in which line it executes next, its not like QB.
Aparently you can be inside two functions at the same time....
But oh well...
"But...It was so beutifully done"
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
Hmm,. sorta like that,. here is some code from 19day's PHP tut in QBE #5
What it does I don't yet know... but its what PHP looks like in HTML,
As for your last Q, don't understand what your coming from?
PS: is "//" a REM line in HTML??
Code: Select all
<html>
<body>
<?php
//determines the factorial of $val, 0 if $val is not an integer
function factorial($val)
{
if (is_int($val) == false || $val <= 0) return 0;
if ($val == 1) return 1;
return $val * factorial($val - 1);
}
$num = 6;
echo ?The factorial of $num is ?;
echo factorial($num) . ?<br />?;
/* now for something odd */
$num = ?boink?;
echo ?The factorial of $num is ?;
echo factorial($num);
?>
</body>
</html>
As for your last Q, don't understand what your coming from?
PS: is "//" a REM line in HTML??
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
(x.t.r.GRAPHICS)
This is a short snippet of PHP code used in one of the new V Planet scripts...
It gets two variables from the URL (called GET variables) and checks to see if they're legal (and kills script processing if they're not, hence the "die" function), then it opens a local file to get the number of entries for a particular genre, and then finally loads an encoder script which is used elsewhere. As you can see, this is very C-like.
// is a REM line in PHP, not in HTML.
Code: Select all
<?php
$genre = $_GET['genre'];
switch($genre)
{
case "rpgs":
case "strategy":
case "puzzle":
case "arcade":
case "platform":
break;
default:
die('Illegal genre specification. Script terminated.');
}
$language = $_GET['language'];
switch($language)
{
case "qb":
case "fb":
break;
default:
die('Illegal language specification. Script terminated.');
}
$handle = fopen("genres/" . $language . $genre . ".txt","r");
$gamecount = fgets($handle);
fclose($handle);
include('includes/encoder.php');
?>
// is a REM line in PHP, not in HTML.
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact: