New to PHP & MYSQL looking for mentors :)

He has: 83 posts

Joined: Feb 2005

I'm in the process of learning PHP along with MYSQL and well I cant ask the books questions so here I am Smiling I am more of a learn by doing person so the books I got aren't really being to helpful.

Question #1

I am going to be doing all my development on my Laptop computer for later upload to my website. Is there a reason why I would want to have a SSL powerd Apache on my laptop?

#2 Do I want to go through the headaches of installing this stuff myself or would you recommed using XAMPP?

Oh and Im on a windows platform and so is my website (I know shoulda went Linux)

Busy's picture

He has: 6,151 posts

Joined: May 2001

go to somewhere like firepages.com.au and download a php/mysql/apache bundle - designed for windows (pick the version closest to your hosts version).

If you get the same version you should be able to create/design on your laptop and upload to your site without making any changes.

As for mentors, we have some gurus here, asking questions is always a great way to learn once you get stuck, but there is also php.net (and mysql and apache have their own manuals).
Word of warning, most books cover php3 or php 4, hosts are starting to upgrade to php 5 which has some great new features (sadly my web host is slow off the blocks).

Welcome to your new addiction Wink

He has: 83 posts

Joined: Feb 2005

The books I got are for PHP 5

I downloaded XAMPP from ApacheFriends, comes with APACHE,PHP,MYSQL,PHPMYADMIN and all the other bells and whistles.

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

I did install it all myself - probably because I didn't know any better Wink

It's quite a useful experience to install it all yourself, but there's a bit of messing around, so if you want to jump straight into coding install that XAMPP thingamy.

SSL? Secure Socket Layers? You probably wont want to bother with this, especially not yet. You can worry about that when you start building e-commerce apps. Laughing out loud

a Padded Cell our articles site!

He has: 83 posts

Joined: Feb 2005

Ok how do I find Apache's root folder? Its been a couple days and Im no further ahead than when I started learning this stuff LOL... ME = LOST Im not so sure this XAMPP bundle thing is helping me any. I dont know where anything is. Im tempted to get rid of it and install this stuff myself.

They have: 10 posts

Joined: Aug 2005

check out your httpd.conf file. do a search in your computer for httpd.conf file and open it with notepad and find for DocumentRoot. you will see your root folder there

MamakCorner.com - Your Online Freebies Guide ( Free hosting, free advertising, free url submission, free stat counter, etc ...) Smiling

He has: 83 posts

Joined: Feb 2005

I deleted the program and I'm installing the stuff myself.

He has: 83 posts

Joined: Feb 2005

Alright ran into a tiny problem installing PHP.

The book says to move the PHP.ini.recommended to my windows folder renaming it php.ini

then it tells me to uncomment the following 3 things. in the PHP.ini file
extension=php_mhash.dll
extension=php_mcrypt.dll
extension=php_curl.dll

after doing the rest of the setup up stuff it says to restart apache. I do and I get error messages saying it cannot load the 3 things I un-commented.

Any ideas?

Busy's picture

He has: 6,151 posts

Joined: May 2001

In my php.ini the 3 you mentioned are commented.

if you want to run those 3 .dll's make sure you have them, do a gobal search or look in your php folder, under dll for them. If you can't find them, you'll have to try find and download them - try use without first.

You have to restart apache every time you 'edit' the php.ini file for changes to take effect

He has: 83 posts

Joined: Feb 2005

Im following the instructions in one of the books I am using, so I'm guessing they want me to uncomment them for some purpose in the book. So I'm not to worried about it I guess.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.