Starting on php

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
Lurien
Forum Newbie
Posts: 8
Joined: Wed May 17, 2006 2:58 am

Starting on php

Post by Lurien »

Do you remember those old days, when you did not even know what SQL meant? Those days when you thought that coding php was just typing <? look, I am a coder ?> and it was done?
No?
Well, I am really happy for you, unluckly, I have those days now :oops:
I want to start coding php, still the only two lenguages I handle so far are Pascal and HTML.
I¡ve searched all the web for a good way to start, and in 3 days of it, I cannot make apache run nor compile Php.
To make things even funnier, the link in the 'tutorial's is broken.
So, can you help me?
Lurien
Forum Newbie
Posts: 8
Joined: Wed May 17, 2006 2:58 am

Post by Lurien »

/me realizes the question was not clear

How do I start? Where can I find a good tutorial to install some SQL+PHP+Apache?
What other thing do I need to start learning?
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post by Maugrim_The_Reaper »

The simplest way to set up a LAMP/WAMP server environment is to use a prebuilt binary package. I'm a big fan of XAMPP. I also suggest buying a PHP book which covers all the basics, offers examples and tests, covers Object Oriented Programming in PHP (OOP is up the learning curve but worth getting there). It might also be useful to get a small introductory text/tutorials on using SQL in MySQL - it's actually a very simple language (tiny even) and it's used a lot on PHP applications.

You must (not should) get a copy of the PHP manual if working offline and keep it updated. It's the one reference you will always use regardless of your level of experience.

There's a helper topic over at viewtopic.php?t=21400 also.

One good method of getting some early experience is to set your sights on writing a small application. Usually a simple blog or news site is a good choice - it's generally small enough that you can tinker around with it as you learn new things. I also suggest keeping security in mind - it's not essential when you first start out - but find some material on it before you start making public sites. http://phpsec.org/projects/guide/ and http://shiflett.org/articles are good general starting points.
Lurien
Forum Newbie
Posts: 8
Joined: Wed May 17, 2006 2:58 am

Post by Lurien »

Thank you very much, I'll start right away ^-^
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

You may aslo want to read this on our forum - PHP Starter Pack - Fundamental PHP Know-How
Lurien
Forum Newbie
Posts: 8
Joined: Wed May 17, 2006 2:58 am

Post by Lurien »

Well, I installed XAMPP and set up everything. Apache couldn't be installed due t firewall, so I kicked firewall off.
Went to the configuration, clicked on "Admin..." and then tested what the site asked me to test.
And yet... there is no way that my pc will compile PHP :oops:
What can I do?
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post by Maugrim_The_Reaper »

XAMPP should have PHP preconfigured and packaged as a binary - i.e. Once you start up XAMPP, PHP should be redy to go. It's possible you need to enable PHP via XAMPP's config panel (Windows) or a lampp command from your linux shell. Check the XAMPP help on getting started - should be covered.

You don't need to compile anything with XAMPP...
Lurien
Forum Newbie
Posts: 8
Joined: Wed May 17, 2006 2:58 am

Post by Lurien »

C:\program files\xampp\htdocs\index.php <---- I run that and it says "something is wrong with the instalation" in the browser's window...
I tried unsinstalling it and re installing but it made no diference...
Should I format my pc?
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post by Maugrim_The_Reaper »

Any other server versions installed from your prior attempts?
Lurien
Forum Newbie
Posts: 8
Joined: Wed May 17, 2006 2:58 am

Post by Lurien »

Not at all, It's my first try in coding out of HTML and Pascal
Lurien
Forum Newbie
Posts: 8
Joined: Wed May 17, 2006 2:58 am

Post by Lurien »

Thank you a LOT for your help. It is working now, just ope to be able to help someone get started just as you did for me
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post by Maugrim_The_Reaper »

Have fun :). You're welcome.
Post Reply