We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Who know PhP?
Topic Started: Feb 23 2005, 08:28 PM (2,519 Views)
Mexi
IF SKIN RATING @*&%$#*&
[ *  * ]
Php.... :no:

Give me some broken glass to chew on ...ill leave the {k.scripting} to you guys :smithster:
Id rather build systems than doodle code :smithster:
Offline Profile Quote Post Goto Top
 
Sani
Member Avatar
Member
[ *  *  *  *  * ]
I don't know how to code in PHP, Really.. :)
Online Profile Quote Post Goto Top
 
FearKiller
Member Avatar
www.drewscripts.com
[ *  *  *  *  * ]
Seth
February 23, 2005 11:46 PM
Seth
February 23, 2005 10:01 PM
FearKiller
February 23, 2005 09:56 PM
echo ('$verycoolvariable knows PHP');

Caught you :seth: that prints out:

$verycoolvariable knows PHP

Sucker! Variables inside single quotes are non-parsable!

:D

Not to mention that you didn't even pull a value from mysql_fetch_array(). The contents of $verycoolvariable would be something like "Result Identifier #1" :eh:

<?php

if ($fearkiller == "wrong" && $seth == "correct")
{
$fearkiller = pwned;
}
else
{
$seth = pwned;
}

?>

Looks like this if statement returns true ._. I'm new to this stuff *goes to study more PHP*
Offline Profile Quote Post Goto Top
 
kevkev44
sucka free sundays
[ *  *  *  *  *  * ]
Seth
February 24, 2005 03:56 PM
Coaster_Rider
February 24, 2005 01:42 PM
Code:
 
<?php

 echo 'w3schools taught me.';
 echo 'I like Javascript better;

?>


:luna:

Parse error: Unclosed ' on line something.

My bad. How about this:

Code:
 
[CODE]<?php

 echo 'w3schools taught me.';
 echo 'I like Javascript better';

?>
Offline Profile Quote Post Goto Top
 
JCink
Member
[ *  *  *  *  * ]
<?php
if ($knowphp == "I didnt") {
echo "I would be in a heck of a lot of trouble!";
} else {
echo "I know it so I dont have to worry :P";
}
?>

And yes, I make many many PHP mistakes. I am definitely not an expert if you look at my scripts; I just know how to get them to do what I want.
Offline Profile Quote Post Goto Top
 
mathiaus
Member Avatar
mathiaus maximus™
[ *  *  *  *  *  * ]
<?php
$phplevel=3;
switch ($phplevel)
{
case 1:
echo "I know nothing!!";
break;
case 2:
echo "I can spell PHP!";
break;
case 3:
echo "I use it for very simple tasks and make loads of mistakes";
break;
case 100:
echo "My names Seth and I've made 1 mistake with PHP ever and it was in a PHP topic as well";
break;
default:
echo "Whats PHP?";
}
?>
Offline Profile Quote Post Goto Top
 
SmartSquid399-ZNS
$squid->owns($you);
[ *  * ]
<?php

echo 'Don't know php';
echo 'I know HTML';

?>
Offline Profile Quote Post Goto Top
 
Gogf
Indescribable
[ *  *  *  *  *  * ]
Almost nothing.

I can do echos (learned in this thread) and includes. I use includes for my website, as it makes life much easier.
Offline Profile Quote Post Goto Top
 
mathiaus
Member Avatar
mathiaus maximus™
[ *  *  *  *  *  * ]
Gogf
February 25, 2005 08:52 PM
Almost nothing.

I can do echos (learned in this thread) and includes. I use includes for my website, as it makes life much easier.

<?php
$useincludes=yes;
if ($useincludes=="yes")
echo "I agree. I also use it for my site!";
else
echo "I disagree. I find it useless!";
?>
Offline Profile Quote Post Goto Top
 
The Legendary Sam
Feck j00, mate!
[ *  *  * ]
mathiaus
February 25, 2005 07:03 PM
Gogf
February 25, 2005 08:52 PM
Almost nothing.

I can do echos (learned in this thread) and includes. I use includes for my website, as it makes life much easier.

<?php
$useincludes=yes;
if ($useincludes=="yes")
echo "I agree. I also use it for my site!";
else
echo "I disagree. I find it useless!";
?>

And PHP terminates, because of lack of quotes, that would get you a sentax error, the proper input would be:

Code:
 

<?php
'$useincludes'='yes';
if ($useincludes=='yes')
echo "I agree. I also use it for my site!";
else
echo "I disagree. I find it useless!";
?>


:D
Here's mine.

Code:
 


<?php

echo "legendarysam owns you!";

}

if ('legendarysam' = '$ownsYou')

echo "That's right!";

{

}

if ('legendarysam' = '$notOwnyou')

echo "You suck! I hate you!";

{
?>

Offline Profile Quote Post Goto Top
 
mathiaus
Member Avatar
mathiaus maximus™
[ *  *  *  *  *  * ]
<?php
echo "works for me!";
?>
Offline Profile Quote Post Goto Top
 
The Legendary Sam
Feck j00, mate!
[ *  *  * ]
Code:
 

<?php

echo "Try puting your PHP in CODE tags, make it easy on all of us /;)";

?>
Offline Profile Quote Post Goto Top
 
Cool Dude 2k
<?php echo "Linux"; ?>
[ *  * ]
I know PHP. ;)
PHP is the Best. B)
Offline Profile Quote Post Goto Top
 
Jeremy
Member Avatar
Member
[ *  *  *  *  *  * ]
Aww... I wasn't here to pwn Seth... :'( I miss so much, now.

Seth can tell you about my PHP knowledge. Right Seth? :r
Offline Profile Quote Post Goto Top
 
The Legendary Sam
Feck j00, mate!
[ *  *  * ]
Hey! Go back to Anfiniti! ;)
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Technology Chat · Next Topic »
Add Reply