I Need Help Finding The Best Way To Learn Php

free web hosting
Free Web Hosting > Computers & Tech > Programming > Game Programming

I Need Help Finding The Best Way To Learn Php

dipesh
hi my name is dipesh, i resentally signed up to the site and would like the know the best way to learn php programming, my end goal is to create an mmorpg which is turn based like astroempires and ogame

Reply

sparkx
That’s good you already have a goal or "project": to build a web-based game. That is the first step. I suggest that you start by A: Doing a small project then building off of it or B: start with your goal. After all isn't the best way to learn something is by using it the way you want to. Anyway to start off, you should think about what you want to accomplish in small portions for example one of your first may be: build a login page that displays a user's level if logged in else a login page. There are lots of tutorials to do just that (I can't remember but I am sure that I have made a few posts on Astahost). If you are not sure about how to do this (what to search for est.) read on. Basically your first page of PHP generally contains an IF statement to check if logged in by checking a cookie (data stored on the user's computer). It also connects to a database and has some basic variables set. From there you can require other pages based on both the user and a page ID. Here is a brief explanation and differences between common data types used in PHP.

PHP - This is the source of it all. Global information and data is put here. Think of it as a template, you have a place for the user's name, level est. to go into but they are not their yet.

MySQL - All your "changeable" data such as usernames, levels est. are stored in databases so you don't need to write your HTML/PHP page for every user. This data can be changed with PHP MyAdmin read this: Overview of setting up MySQL and Connecting. In our example this is the name, level est. that is inserted into the PHP.

Cookies - Since all your data is in a database and you can select it you need to make specification on the user so that John Doe doesn't have get Jain's info. Most PHP sites use WHERE tags that check for a "password" from the user's computer. You can do this two ways: make the server check the WHERE for the IP or even better have the server get a cookie (data received from the computer that was set by the server) read this: Cookies. This is also used a lot for identification but CANNOT be trusted because people can change both their IP and Cookies. In our little example, this is usually used as the key to your office "template". Insert in your key and either get rejected (3 rejections you get kicked from the building all together) or get into your unique office.

I know that is probably way confusing but it is good to know what everything is. Look through the tutorial section of Astahost to find just about everything about PHP. I also like to use: Tizag for MySQL and I have heard that people love W3 Schools.

Good Luck,
Sparkx

 

 

 


Reply

Jeigh
I will second that W3 Schools is amazing. I've also used tizag as well so I can back up the claim that both are great resources for learning php. In reality php is not that overly complex to get the basics down pact and in turn you can learn alot by running through basic tutorials on these sites. If you have programming experience it should come fairly easy and if not I would recommend following any tutorials closely from these sites or trying out each new piece of code as they teach you about them. I'm pretty sure both those resources would also talk about any of the related required MYSQL tasks that you will face.

As an overall rule as well, web coding is very popular and as such anytime you get stuck a simple google query will usually result in a quick example to help you solve your problems. Good luck learning php!

Reply

Miles
Hello,
Aiming high, as you are doing, whilst many won't recommend it until you have a lot of PHP knowledge, is the way I amassed most of my programming knowledge. Despite people telling me not to, I made a 3D RPG style game in several game programming languages, always taking under a month to do so. My first javascript project was, interestingly, to make an isometric browser MMORPG. It's still in dvelopment, but a lot works (login, register, select a location, walk).

Now, for your game, you will also be needing some javascript, as php alone could not do everything without a very, very, long time working out solutions. You'll also need mySQL, for storing data, or alternatively, if you have knowledge in any desktop programming languages, you could do what I done and create a server that sends back data quickly when it's needed, which itself reads from an SQlite database. For learning all those languages and technologies, you should visit a site for learing them, such as w3schools, recommended by many, or my personal favoruite, Tizag. All of them are great for beginners, and good luck with your project!

Reply

dipesh
thank you for your help everyone

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : finding, learn, php

  1. Choosing Your Computer Before Bying
    Learn how to choose the best computer (4)
  2. Do I Need To Do Any Extra Setup For Audio / Video Output?
    learn more (0)
    Since we already assumed you have an up and running linux installation, you most likely won't
    have to do any work in this area. Most modern distributions automatically configure X and audio for
    you, and there is a host of information on the web for configuring X. As far as audio goes, there
    are many different audio architectures available. We recommend choosing a distribution that uses
    ALSA (the advanced linux sound architecture) by default since it is the most powerful sound system
    and supports the most hardware. If your distribution doesn't include it, check o....
  3. How To Call A Dll From Delphi
    Last article I showed how to create a DLL, now we are going to learn h (0)
    In this example, we are going to use a Form, 2 text box (which the user should enter the both real
    numbers) and a button. See the Source example: unit usadll; interface uses Windows, Messages,
    SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm)
    Label1: TLabel; Label2: TLabel; Button1: TButton; Edit1: TEdit; Edit2: TEdit; procedure
    Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } end;
    function Max(a, b : double):double;stdcall; var Form1: TForm1; implementation {$R *.....
  4. W3 Schools
    Possibly Best place to Learn HTML for free (1)
    http://www.w3schools.com/html/default.asp I learned HTML There and PHP it has a hands on idea it
    even has quizes adn u can open up ther notepad like thingy and try the html your self so its really
    cool and free....
  5. Tell Me About Ssh
    I'd like to learn how to use it (1)
    Well, I was told on another forum that I could host my own ShoutCast server on a host if I have
    Shell Access. I know that I can just host it on my computer but I don't want it on all day.
    I've been looking into buying hosting somewhere (which has SSH) and I also need to have a radio
    on my site. Then this person conveniently mentions that you can have it on a host with SSH. So
    basically, how do I go about it, I don't know anything about SSH and I can't do anything yet
    because Astahost doesn't have SSH. Is there anything I need and how do I put ShoutC....
  6. Can Some One Help Me Learn To Make Animation.
    (1)
    i would like to learn animation i think it would be kool to make them if any one can point me in the
    right direction to start it would be great help. Thanks. -Joshua....
  7. Help Me Finding A Name For My Website
    (13)
    I need you guys help. If you do not mined I'm looking for a website name and i can not come up
    with non e by my self i need help. What i'm looking for: halo 3 related Something i can use
    ( i mean no copy righted stuff) something that is unique and not like "halo 3" "halo3 pwners" Etc...
    Etc... If you guys can help me out that would be great Thanks. Joshua.....
  8. What Language Do You Speak?
    I've always wanted to learn new words... I wonder if anyone else d (23)
    Hey people... does anyone else speak Italian? I am Italian but I need some help brushing up on my
    linguistics.....
  9. Learning Php/sql Basics
    Want to learn CSS, PHP and create a website (17)
    Hello, I've been wanting to learn to create websites for a long time. I'm not sure how hard
    it will be and how long it will take to learn enough to make my own database-driven website. I
    studied SQL, basic programming, worked with databases and am familiar with HTML tags, but this all
    was for work, university and I never paid a lot of attention to details. In the past few days I read
    beginner's tutorials on PHP/SQL, CSS and even HTML. Now I want to create a simple database with
    some tables to practice with PHP scripts for a website, write and read database i....
  10. Alternative Mobo
    Need help in finding a cheap alternative. (4)
    My current motherboard: MSI 865PE NEO 2 MS-6728 Ver.1 I've done quite a few tests and it's
    unable to boot up. I replace the PSU and it still doesn't help. Wondering if anyone on here
    could help me find a reasonably priced MOBO for an alternative. I know nothing when it comes to
    this sort of stuff, I was hoping someone on here could offer some insight to a cheap replacement.
    The board is fairly old, I just want to get the pc in working order again. Hope someone can help.....
  11. Sutree - How-to Videos - Watch And Learn
    (0)
    SuTree is a social bookmarking and index of free video lessons, tutorials, DIY, how to videos ... in
    any subject and from all over the web. Their computer section is at:
    http://www.sutree.com/index.asp?c=146 ....
  12. Learn Html
    (8)
    Okay, because this is a forum, I'll tell you a little bit of HTML briefly. The rest you can go
    to www.w3schools.com/html to learn yourself. Look at this little example below.
    ----------------------------------------- Hello World Hello world
    ----------------------------------------- Where it says it is telling the browser to start
    viewing that part of the page. Where it says it tells the browser that it is the end of the
    document. The / html> indicates the break. It is the same with the title. Where it says and the
    / title>. It tells the web ti....
  13. How To Learn A Programming Language
    overview of the best way to go about learning a programming language. (0)
    How to Learn a Programming Language 1. Choose a programming language. Pythonand Turtle
    Graphics are good starter languages. they are very straightforward and easy to learn. Also, there is
    a module called Pygame available that makes handling windows a breeze. Another programming language
    for a beginner to try is Kids Programming Language, or KPL's new version, called Phrogram.
    Don't be put off by KPL's name! Once you learn the basic concepts of programming, you
    can then take those ideas into any programming language you choose. Be aware however....
  14. A Beginner Wanting To Learn How To Make A Web Game
    (4)
    I'm pretty new to html and stuf cuz i dont know it ut i want to make a game like Combatgrounds
    which is located at http://www.combatgrounds.com . But i don't know where 2 start so can any1
    give me any pointer. Your help will be appreacitaed Spelling and grammar are important, as stated
    in our forum rules, but also part of your membership with AstaHost. Refrain from using slangs. "U"
    "R" smarter than "2" does not mean TO... Topic title must be specific. Modified. Last verbal
    warning. ....
  15. Does Anyone Know Rpg Maker 2003
    There are a lot of basics that i need to learn (3)
    For weeks now i've been searching the net looking for help on rpg maker 2k3 and wherever i go
    I'm treated with hostility for being a newb. So now I'm looking for some genuine help. As a
    newb I've been reading and reading trying to find out how to use the functions, below I'll
    leave a list of things i can't figure out. 1. Switches *Probably the most important thing
    in the game but I can't figure out how to turn them on and off. 2.a password thing 3. More
    sprites if available Now I would prefer if the answers they could be short and sweet.....
  16. How To Learn Mysql?
    (11)
    I want to learn MYSQL but I don't know where to start. Any suggestions of where to start in
    learning MYSQL?....
  17. How Do I Learn Oracle In Arabic?
    (5)
    how i learn the system of database oracle in arabic ??....
  18. How To Learn A Programming Language
    The two methods discussed (11)
    Hunting for a good book The more daunting task - hunting down a good book. The way is not easier
    one though. The search would require to shuffle through a big heap of books lying on a bookstore and
    ofcourse, its time consuming and generally, not to the dot. Once the book selected, only 20 percent
    is going to be the useful material all else (biggie 80%) is going to be waste for the reader though
    it will help to wash up the brain and clear some fundamentals. Reading books is quite convenient-
    after all, books are easy-on-eyes with well-organized and cross referenced m....
  19. What Shall I Learn First In Programming ?
    How to begin programming ? (11)
    Hey guys i'm posting here because i've a doubt, about 1 year ago i started to develop a
    certain taste for programming, at first i tryed code Websites using Html ,then with php, then Mysql,
    and at last all together. Now i alreday finished my hardware Reparation course, but that old taste
    for programming is calling me to do other thing else besides repair hardware. Meanwhile i've
    develop taste for other several kinds of languages and i'm a bit confused because i dont know
    whitch programming language bring me future. So i wonder what programming language sha....
  20. Best Way To Learn Javascript
    I would very much like to know. (9)
    Well, I know HTML, I know CSS, so the next step is learning Javascript. I have heard that it is sort
    of an easier way to do things than PHP, though I would very much like to learn PHP as well. So, I
    thought that if I learnt Javascript, I might find it easier to learn PHP when I get to that point.
    The problem though is actually finding out the best way to learn Javascript. I have been to
    websites and things, but every time I read through the tutorials and articles and things, I
    didn't learn anything. It when in one ear and out the other, you could say. So, that is wh....
  21. Finding The Current Line Number In A Text Box
    A very basic method of doing the deed. (1)
    Language: Visual Basic 6.0 (5.0/4.0) Level: Beginner Problem: How to find the current Line Number
    in a multiline text box? Some times it is necessary for us to provide a text editor in our
    programs, or maybe a text viewer. The text box control has no built in method to find the current
    line number like RichTextBox. Hence we need to code it manually. Solution: The simple concept of
    line numbers is the carriage return character, or simply the ASCII code 10. The line feed character
    has the ASCII code 13. In the code example I have used chr(10), you can also use vbCrLf i....
  22. Finding Yahoo Account Creation Date
    is there a legal way of doing so? (1)
    As the topic title says, is there a way to find the date someone created a yahoo account, without
    crossing the hacking boundary?....
  23. Any Cms On Perl Which Is Really Good ?
    Finding the right CMS (2)
    Guys, I am searching for a long time a CMS for my site... I have evaluated the following.. 1) Weblog
    2) mambo others.. none seem to be on perl. As I know perl and can hack into the code, if its GPL, I
    am inquisitive to know are there more options in Perl...? regards....
  24. Ruby, A Good Language To Learn First?
    Should ruby be a first language to learn (14)
    Ok I've had a small introduction to programming while in college, and have been thinking about
    getting back into it. After looking around I've noticed that ruby seems to be a good programing
    language and easy to use, though not to popular outside of Japan. My question is this, what do
    people think of Ruby as a first language for a someone just getting into the programming world?....
  25. Online Multiplayer Game
    What language to learn in order make it? (12)
    If you look at e.g. THIS LINK What language would you use to make something like that?
    /wink.gif' border='0' style='vertical-align:middle' alt='wink.gif' /> ....
  26. Photoshop Graphics Effects
    Learn how to make cool graphic effects (31)
    1) Open a new document (any size) and reset your colors by pressing D then X 2) Go to
    FILTER>RENDER>DIFFERENCE CLOUDS 3) Go to FILTER>BLUR>RADIAL BLUR with these settings Amount:100
    Blur Mehod: Zoom Quality: Best 4) Go to FILTER>ARTISTIC>PLASTIC WRAP with these settings Highlight
    Strength: 15 Detail: 9 Smoothness: 7 5) Do another FILTER>BLUR>RADIAL BLUR with the same settings
    as before 6) Go to FILTER>STYLIZE>GLOWING EDGES with these settings Edge Width: 2 Edge Brightness:
    20 Smoothness: 1 7) Press Ctrl+U to change the color (note: colorize box must be checked) ....
  27. How Long To Learn Dreamweaver?
    (29)
    Well the title is the questions really. I want to redo my site more pro, and would like to do it
    myself. What would a typical building timescale be from start to completion using this? And does
    anyone know any useful sites that may help? Has anyone used dreamweaver and not like it / had any
    problems? thanks chris ....
  28. Cron Jobs Tutorial
    So you wanna learn Cron jobs huh ? (3)
    How to setup Basic Cron Jobs. Ok. Many people are yelling that they cannot configure the
    crons properly. Here is a short tutorial which will help you set them. I have tried my best to
    explain the concept but there can be more advanced configurations. Basically you will want to run a
    PHP script file in specific intervals. Suppose you want to execute a php file called maintanence.php
    every one hour. This is what you do :- The CRON Command is in the Following Format CODE
    [ Minute - Hour - Day - Month - Weekday ] - Command The COMMAND, can be bro....
  29. Enhanced Audio Cd's
    Learn to Make Your Own Enhanced Audio CD (2)
    Some may be familiar with the concept of Enhanced Audio CD's. For those that aren't, an
    Enhanced CD is much like a traditional Red-Book audio CD (the normal format for audio cd's -
    what you would purchase in a store). The only difference is that, in addition to being able to put
    your CD into a CD player and listen to music, you can also put the disc in a computer and access
    more features such as graphics files, more songs, or even create custom navigatable menu's and
    programs. All this enhances a consumers experience of your media. There is much to be....
  30. Learn how to surf anonymous on the net! [Part - 1]
    Anonymous surfing on the net.-[Part - 1] (34)
    Hi guys! This is my first topic here, anyway. So much people are using Microsoft Internet
    Explorer to surf on the web. If you are using on the net with Microsoft Internet Explorer you can
    hide yourself. Anonymous surfing helps you to hide your active-x and java options so protects you
    from some problems on the net like hacker attacks. If you want to be anonymous you should do this.
    FOR DIAL-UP USERS (IE 6 AND UP)... 1-) Go to TOOLS=>INTERNET PREFERENCES=>CONNECTIONS 2-)
    Sellect your connection at the panel you are wieing 3-) Click "Propeties" like y....

    1. Looking for finding, learn, php

Searching Video's for finding, learn, php
Similar
Choosing
Your
Computer
Before Bying
- Learn how
to choose
the best
computer
Do I Need To
Do Any Extra
Setup For
Audio /
Video
Output? -
learn more
How To Call
A Dll From
Delphi -
Last article
I showed how
to create a
DLL, now we
are going to
learn h
W3 Schools -
Possibly
Best place
to Learn
HTML for
free
Tell Me
About Ssh -
I'd like
to learn how
to use it
Can Some One
Help Me
Learn To
Make
Animation.
Help Me
Finding A
Name For My
Website
What
Language Do
You Speak? -
I've
always
wanted to
learn new
words... I
wonder if
anyone else
d
Learning
Php/sql
Basics -
Want to
learn CSS,
PHP and
create a
website
Alternative
Mobo - Need
help in
finding a
cheap
alternative.
Sutree -
How-to
Videos -
Watch And
Learn
Learn Html
How To Learn
A
Programming
Language -
overview of
the best way
to go about
learning a
programming
language.
A Beginner
Wanting To
Learn How To
Make A Web
Game
Does Anyone
Know Rpg
Maker 2003 -
There are a
lot of
basics that
i need to
learn
How To Learn
Mysql?
How Do I
Learn Oracle
In Arabic?
How To Learn
A
Programming
Language -
The two
methods
discussed
What Shall I
Learn First
In
Programming
? - How to
begin
programming
?
Best Way To
Learn
Javascript -
I would very
much like to
know.
Finding The
Current Line
Number In A
Text Box - A
very basic
method of
doing the
deed.
Finding
Yahoo
Account
Creation
Date - is
there a
legal way of
doing so?
Any Cms On
Perl Which
Is Really
Good ? -
Finding the
right CMS
Ruby, A Good
Language To
Learn First?
- Should
ruby be a
first
language to
learn
Online
Multiplayer
Game - What
language to
learn in
order make
it?
Photoshop
Graphics
Effects -
Learn how to
make cool
graphic
effects
How Long To
Learn
Dreamweaver?
Cron Jobs
Tutorial -
So you wanna
learn Cron
jobs huh ?
Enhanced
Audio
Cd's -
Learn to
Make Your
Own Enhanced
Audio CD
Learn how to
surf
anonymous on
the net!
[Part - 1] -
Anonymous
surfing on
the
net.-[Part -
1]
advertisement




I Need Help Finding The Best Way To Learn Php



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE