Welcome to RaGEZONE - MMORPG Development Forums (sponsored by tfn.gr) Mark forums read | View Forum Leaders
RaGEZONE - MMORPG Development Forums (sponsored by tfn.gr)

Knight Tutorials Discuss, [Guide] To a little bit of php code at Knight Online forum; One of my friends made this it helped me increase my php skill hopefully will do the same for you ...




Reply
Thread Tools
[Guide] To a little bit of php code
 
 
Member

Rank: Omicron


Reply With Quote
 
Join Date: Oct 2006
Posts: 32
09-10-2008, 06:12 AM
 
One of my friends made this it helped me increase my php skill hopefully will do the same for you check it out.

[Only Registered and Activated Users Can See Links. Click Here To Register...]
 
 
permalink
 

RaGEZONE is proudly sponsored by
 
Ultimate Member

Rank: New Blood


Reply With Quote
 
Join Date: May 2007
Posts: 159
09-12-2008, 10:33 AM
 
Tip:

Don't take much of that to heart, ie: formatting, and most notably "<?php echo 'blah'; ?>".

Use proper indentation, and remember. There's more than one way to do something.

For example:
Code:
I have a <?php echo $_GET['item']; ?>.
Better to use, for that instance, though I'm not much a fan of mixing PHP with raw HTML:
Code:
I have a <?php=$_GET['item']; ?>;
As I said, more than one way to do things.

So you could do prepare the template behind the scenes, and mix and match data into it, which is my preferred method when it comes to mixing HTML and PHP. Though, I rarely use raw HTML in any of my PHP scripts anymore. These come from external sources, in much the same way as the Smarty library works, though my own system isn't quite the same.

Recommend any newbies to use the Smarty library as a starter resource to mixing and matching raw HTML with PHP properly, but do not recommend its use beyond that. :P

But hey, nothing against the library itself. :)

As for that guide, the author could've been a bit more careful with specific issues, but overall an alright guide for newbies.
 
 
permalink
 

Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT +1. The time now is 01:29 AM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RaGEZONE © 2001 - 2008





 
Evade Blackbelt School