Author Topic: PhP/MySQl  (Read 909 times)

Offline raines80

  • Level 8
  • *
  • Posts: 44
  • Reputation: +1/-1
    • View Profile
PhP/MySQl
« on: September 18, 2009, 09:42:14 AM »
So far I have recieved awesome advice and tips on how to begin my adventure in creating a pbbg. I am currently trying to install pHp/MySQl on my computer. I think I have been spoiled by all the self loading programs and I don't have a clue as to what to do now that I have downloaded pHp and MySQl.

Could someone post a step by step instruction manual on how to do this... keep in mind... I have read the documents on both sites and I find myself completely lost. I have also looked on here, but it seems that certain people have needed help durring certain steps in the process, but there hasn't a a guide that goes from start to finish.

Thank you all for the help in advance. Everytime I have posted a question on here I have recieved a response within a couple of hours.


Offline Nox

  • Level 35
  • **
  • Posts: 768
  • Reputation: +12/-2
    • View Profile
Re: PhP/MySQl
« Reply #1 on: September 18, 2009, 10:11:59 AM »
Depends how deep you want to go into that... I don't use local much so what I did was to download WAMP, which is some kind of pack - you just run the installer and then in http.conf change documentroot if you want and it's kinda all.
Other well-known pack is XAMPP.

But many people prefer installing everything separately and configuring it by themselves, with which I unfortunately can't help you, but I'm sure many others here can

Just - it's usefull to have you system prepaired for running of different servers/urls so either have stored various sets or just have one set of constants/variables for live and one for offline use

You can make it automatically adjust, so you can use the same config file on live and offline without modificating:
Code: [Select]
if( $_SERVER["REMOTE_ADDR"] != $_SERVER["SERVER_ADDR"] )
{ // live
  define("root", "...");
  $connection = array("...",...);
  bla bla...
}
else{ //local
  define("root",  "localhost://");
  $connection = ....
}
Meet us at an IRC irc.freenode.net #bbg as well
https://vimeo.com/36579366 (a must-watch) | Join BOINC - no longer a hype, but you can help never the less

Offline raines80

  • Level 8
  • *
  • Posts: 44
  • Reputation: +1/-1
    • View Profile
Re: PhP/MySQl
« Reply #2 on: September 18, 2009, 10:25:11 AM »
Thank you Nox for the information. I am going to download XAMMP this evening and give it a go. I assume (remember... I am an infant when it comes to this stuff) that you write that code on to a note pad... save it as something and put it in a folder somewhere...... what do I save it as and where do I put it?

Offline Nox

  • Level 35
  • **
  • Posts: 768
  • Reputation: +12/-2
    • View Profile
Re: PhP/MySQl
« Reply #3 on: September 18, 2009, 10:43:04 AM »
I'd create a special folder somewhere (I have it D:\web\root), edit http.conf DocumentRoot (I think it's there twice), restart xampp and then if you save it like something.php into this folder, you should be able (if you have the server aka xampp running) access your page in browser by http://localhost/something.php, if you create folder myGame then you'd have http://localhost/myGame/... etc.
Meet us at an IRC irc.freenode.net #bbg as well
https://vimeo.com/36579366 (a must-watch) | Join BOINC - no longer a hype, but you can help never the less

Offline jannesiera

  • Level 35
  • **
  • Posts: 1,026
  • Reputation: +6/-1
    • View Profile
    • BBGameDesign
Re: PhP/MySQl
« Reply #4 on: September 18, 2009, 11:32:36 AM »
I also suggest downloading WAMP (or XAMPP) and just get started on localhost. Get familiar with php and then mySQL. Then you can start building little apps (perhaps with OOP & javascript), after that you can slowly start to built up your game.

Offline Fizzadar

  • Level 8
  • *
  • Posts: 39
  • Reputation: +0/-0
  • Rawr!
    • View Profile
    • Fanatical Dev
Re: PhP/MySQl
« Reply #5 on: September 18, 2009, 11:56:47 AM »
A little note, if you're on mac (win!), get MAMP ;)
~Fizzadar

Offline raines80

  • Level 8
  • *
  • Posts: 44
  • Reputation: +1/-1
    • View Profile
Re: PhP/MySQl
« Reply #6 on: September 18, 2009, 07:14:13 PM »
I downloaded XAMPP and notebook++   and they work great! I have also found a very simple video for idiots like me "you will understand the idiot comment if you watch the videos".

http://www.youtube.com/watch?v=EwJujkxYLZs&feature=related

If you are new and are trying to learn pHp this is a great place to start!

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal