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
  • 5
Who know PhP?
Topic Started: Feb 23 2005, 08:28 PM (2,517 Views)
Jeremy
Member Avatar
Member
[ *  *  *  *  *  * ]
:seth: can do these things. Punishment for you being wrong. :)
Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
Split it off. Play nice.
Offline Profile Quote Post Goto Top
 
The Legendary Sam
Feck j00, mate!
[ *  *  * ]
Yeah, I am finished sorry lol. Jeremy, be a good boy, now, please.
Offline Profile Quote Post Goto Top
 
drangonsile
Member
[ *  *  *  * ]
Seth
February 26, 2005 07:11 PM
The Legendary Sam
February 26, 2005 06:04 PM
Seth
February 26, 2005 01:39 PM
The Legendary Sam
February 26, 2005 02:25 PM
drangonsile
February 26, 2005 10:43 AM
<?php

define('ME',"I DONT");

echo ME;

?>

I really don't i just can understand codes that i see even if i don't know the language.

Actually, it's:

Code:
 
<?php

define ( 'ME' , 'I don't.' );

echo "ME";

?>

Wrrrrrrrrrrrong. He was perfectly correct. Yours breaks the ' in don't, and echoes just the word ME to the screen.

Actually, Seth, you do STILL need " " or ' ' around your echo statements ;)

Wrong :rolleyes: try it and see, sweetcakes.

<-- Winnar. I shall not be pwnt again.

you'll did read the part about me not knowing it right? :/
Offline Profile Quote Post Goto Top
 
The Legendary Sam
Feck j00, mate!
[ *  *  * ]
I know, Jeremy cannot let go, him and I are having a PHP battle at another site...
Offline Profile Quote Post Goto Top
 
Jeremy
Member Avatar
Member
[ *  *  *  *  *  * ]
You was right dragonsile, Sam is the one that's wrong. ;)
Offline Profile Quote Post Goto Top
 
SkItZo
Support Volunteer
[ *  *  * ]
<?
if($settings['dontknowphp'] == "yes")
{
eval("\$wellthen = \"".$templates->get("error_well_then")."\";");
error($wellthen);
}
print "$lang->thank_you_for_viewing";
exit();
?>
Offline Profile Quote Post Goto Top
 
The Legendary Sam
Feck j00, mate!
[ *  *  * ]
Dammit, Jeremy, we established that all ready!

Code:
 

<?php

$myVar = 'up';

echo "Shut $myVar, Jeremy.";

?>
Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
You're mean :(

See you in 3 days, sweetie.

Edit: Oh, and that wouldn't work because it would look for a variable called $myVar, not $myVar . You would need to use {$myVar}, for that to work ^_^

pwnt.
Offline Profile Quote Post Goto Top
 
Zach
Member Avatar
Missjayness
[ *  *  *  *  * ]
Seth
February 27, 2005 05:23 PM
You're mean :(

See you in 3 days, sweetie.

Edit: Oh, and that wouldn't work because it would look for a variable called $myVar, not $myVar . You would need to use {$myVar}, for that to work ^_^

pwnt.

thats what I thought right after I saw $myVar. :P
Offline Profile Quote Post Goto Top
 
Rory
i;m a mess
[ *  *  *  *  *  *  * ]
harrharr.

and thanks Seth. i wondered why people used {}, but now i see :) you learn something new everyday eh?
Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
Yep, take this:

$type = "basket";

echo("I like $typeball");

Will look for a variable called typeball. So you have to use

echo("I like {$type}ball");

To delimit the variable ^_^
Offline Profile Quote Post Goto Top
 
Jory
Member Avatar
Member
[ *  *  *  *  *  * ]
didn't know that.
thnx man.

(why don't they put that in the tutorials i use :/ )


*Qj looks at a script that wouldn't work

hmm.... that fixed it :)
Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
^_^
Offline Profile Quote Post Goto Top
 
JCink
Member
[ *  *  *  *  * ]
Seth
February 28, 2005 08:37 AM
Yep, take this:

$type = "basket";

echo("I like $typeball");

Will look for a variable called typeball. So you have to use

echo("I like {$type}ball");

To delimit the variable ^_^

:o I never see that in any tutorials I use either.

I've been doing something stupid. I took text files, and built my site with them. I required in

$projectid = $_GET['projectid'];
require("$projectid_menu_file.txt";)

So I had to space it to get it to work.

:w00t: Thanks, now I know how to really do it!
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
  • 5