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
  • Pages:
  • 1
  • 2
  • 6
Who know PhP?
Topic Started: Feb 23 2005, 08:28 PM (2,520 Views)
KyngzIndeyen
Outplayer of Mr. 49361
[ *  *  * ]
Code:
 
<?php

echo "This is tho only PhP I know"."And even that's just because I read this";

?>


Hope I typed that PHP correctly!

Offline Profile Quote Post Goto Top
 
Dennis
Member
[ *  *  *  *  *  *  * ]
Meh, close enough.

It would actually go more like this:

Quote:
 

<?php

  echo 'This is the Only PHP I know.';
  echo 'Even that's just because I read this';

?>
Offline Profile Quote Post Goto Top
 
Gornakle
Member
[ *  *  *  *  * ]
Seth
February 24, 2005 04:42 PM
Wrong! First argument of the foreach construct is an array, and since PHP is loosely typed, it understands what I mean. In fact, I wouldn't even have to use the square brackets anywhere!

<-- Winnar :P

*Raises eyebrow*
I just tested it on both PHP4 and PHP5 and it produced 'Array0'. :huh:
PHP is loosely typed, but not that loosely now is it? >>
Offline Profile Quote Post Goto Top
 
ABeakyboy
Member Avatar
Computer wiz and freak
[ *  * ]
I know some PHP. Not alot, but enough for me to write a lobby server for a game in it.

Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
Gornakle
February 24, 2005 11:05 AM
Seth
February 24, 2005 04:42 PM
Wrong! First argument of the foreach construct is an array, and since PHP is loosely typed, it understands what I mean. In fact, I wouldn't even have to use the square brackets anywhere!

<-- Winnar :P

*Raises eyebrow*
I just tested it on both PHP4 and PHP5 and it produced 'Array0'. :huh:
PHP is loosely typed, but not that loosely now is it? >>

Ha! You're right! :P

I usually don't use array() constructs and am so used to putting brackets in that I just... assumed... :rofl:

Seth = pwnt. :w00t:
Offline Profile Quote Post Goto Top
 
Gornakle
Member
[ *  *  *  *  * ]
Seth
February 24, 2005 06:35 PM
Seth = pwnt. :w00t:

Woot. *Ticks 'pwn Seth' off list of things to do* :P
Offline Profile Quote Post Goto Top
 
James
Live to Dream
[ *  *  *  *  *  *  * ]
Just let me take a moment here.

-breathes- so that's the smell of seth being pwned. Again.
Offline Profile Quote Post Goto Top
 
kevkev44
sucka free sundays
[ *  *  *  *  *  * ]
Code:
 
<?php

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

?>


:luna:
Offline Profile Quote Post Goto Top
 
SkItZo
Support Volunteer
[ *  *  * ]
Code:
 
if($do == "password2"){
  $password = trim($password);
  $password2 = trim($password2);
  if($password != $password2){
     echo '<div align="center">' . $lang['password_not_match'] . "</div><br/>\n";
  }
  else{
     $password = md5($password);
     $query = $db->query("UPDATE ".TABLE_PREFIX."users SET password2 = '".$password."' WHERE username = '".addslashes($u_name)."' AND password='".addslashes($u_password)."'");
     cpheader("", 0);
     echo '<div align="center">'.$lang->password_set."<br/>\n";
     echo '<a href="'.$PHP_SELF.'">'.$lang->link_continue."</a>\n";
     cpfooter();
     exit();


;)
Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
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.
Offline Profile Quote Post Goto Top
 
James
Live to Dream
[ *  *  *  *  *  *  * ]
Bah. See, if you'd wrote that in javascript and viewed it in IE, you'd have got the highly informative:

"An unexpected error has occurred"

Heh :) Thank god for IE. And Windows ME. Windows ME and IE. Lovely!
Offline Profile Quote Post Goto Top
 
Jory
Member Avatar
Member
[ *  *  *  *  *  * ]
what would a good browser give?
(*Qj hopes it is more useful)
Offline Profile Quote Post Goto Top
 
Zach
Member Avatar
Missjayness
[ *  *  *  *  * ]
webworldx
February 24, 2005 04:15 PM
Bah. See, if you'd wrote that in javascript and viewed it in IE, you'd have got the highly informative:

"An unexpected error has occurred"

Heh :) Thank god for IE. And Windows ME. Windows ME and IE. Lovely!

W00t! They rules, I love how simple it is to code for IE, without any problems! :D


Oh wait, no it's not, it's pure useless hassle. :r
Offline Profile Quote Post Goto Top
 
Das
Member Avatar
Smells of rich mahogany
[ *  *  *  *  *  *  * ]
webworldx
February 24, 2005 01:15 PM
Bah. See, if you'd wrote that in javascript and viewed it in IE, you'd have got the highly informative:

"An unexpected error has occurred"

Heh :) Thank god for IE. And Windows ME. Windows ME and IE. Lovely!

Yes so informative and die IE

Quote:
 

<?php

define('Totaly_Lost',"I don't know");

echo Totaly_Lost;

?>


Hey atleast I admit it with phpness
Offline Profile Quote Post Goto Top
 
Rory
i;m a mess
[ *  *  *  *  *  *  * ]
I'm comfortable with PHP, just don't know too many of the functions. However, yay for php.net.

That is the biggest help out there. I can think of a good way to do a problem, and i just search around a little and i get the function i need. I mean, the stuff i've been doing (until recently) has been fairly simple, so not so much of a problem.
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
  • Pages:
  • 1
  • 2
  • 6