Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

Curious George®

Curious George® Avatar
Music Lover

****
Senior Member

318


October 2005
as some of you may know i love jumping in with the sharks when it comes to learning new code languages (meaning i get into the HARD stuff instead of starting small) what i dont get is why the different set up when opening a php script?

<?

<?php

what difference is there?

and another thing why is there so many stinkin' dollar signs!...lol i dont get it...lol there isnt any money involved in the code ;D



Grab this Headline Animator

Eric

Eric Avatar



1,442


November 2005
<?php is more proper.

$ is to signify variables.

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
Some PHP config files don't allow for the use of <? but <?php is globally acccepted.

You can also use <% %> and <script type="text/PHP"> or something like that.

Eric

Eric Avatar



1,442


November 2005
cddude229 said:
Some PHP config files don't allow for the use of <? but <?php is globally acccepted.

You can also use <% %> and <script type="text/PHP"> or something like that.
<script language="php">

:P

Anyways, its recommended to use the first one though.

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
I went with the JS syntax. :P

But yeah, <?php is recommended as Eric said, but I think more people use <?

Curious George®

Curious George® Avatar
Music Lover

****
Senior Member

318


October 2005
ok...what are other things about PHP i should learn? cause i looked at some of the resources are good but i want to be able to come back to a place like SZ and get help instead of screwing up and running blind with a code i dont get


Grab this Headline Animator

Eric

Eric Avatar



1,442


November 2005
ok...what are other things about PHP i should learn? cause i looked at some of the resources are good but i want to be able to come back to a place like SZ and get help instead of screwing up and running blind with a code i dont get
Learn about variables, control structures, and functions.

From there on you should, for the most part, be able to get most everything.

Llanilek

Llanilek Avatar
Former Elite Mod

****
Dedicated Studio Member

931


October 2005
as eric said <?php is really what you should use... but <? is classed as shorthand.. it doesn't make the file any different.

www.w3schools.com
www.jtutorials.be
www.phpfreaks.com
www.tutorialized.com


thats what i use for tutorials

check them out they might be useful

Eric

Eric Avatar



1,442


November 2005
bakura said:
as eric said <?php is really what you should use... but <? is classed as shorthand.. it doesn't make the file any different.

www.w3schools.com
www.jtutorials.be
www.phpfreaks.com
www.tutorialized.com


thats what i use for tutorials

check them out they might be useful
Shorthand isn't enabled everywhere, therefore if you are releasing anything, or doing something like that, <?php is the best.

Curious George®

Curious George® Avatar
Music Lover

****
Senior Member

318


October 2005
ok im using a random images script for my sig from MF....but it shows up as a non active link you know [image]


Grab this Headline Animator

newBookmarkLockedFalling