Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Best way to practice PHP?
Old 07-20-2006, 03:32 PM Best way to practice PHP?
Super Talker

Posts: 111
Trades: 0
I'm a noob to Linux, I only installed Ubuntu a couple of weeks ago. So earlier today I installed PHP and mySQL on my machine, but I can't get to them through the applications menu. Also, I tried just making a sample php file and opening it in Firefox, and it just showed the text of the script. I want to be able to experiment with and learn PHP without having to put it on a webserver, does anyone know how this would be done? Thanks in advance for your help.
__________________

Please login or register to view this content. Registration is FREE
sweetdesignz is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-20-2006, 03:36 PM Re: Best way to practice PHP?
Mad182's Avatar
Skilled Talker

Posts: 54
Name: Madars
Location: Latvia
Trades: 0
Have you installed apache? Read:
http://easylinux.info/wiki/Ubuntu_da...he_HTTP_Server
http://easylinux.info/wiki/Ubuntu_da...he_HTTP_Server
http://easylinux.info/wiki/Ubuntu_da...atabase_Server

Put your php files in /var/www
Yau can view them, when you open http://localhost/ or http://127.0.0.1/ with web browser


Apache can start by typing apache2 in terminal window, but it should start automaticaly.
__________________
There's no place like 127.0.0.1

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by Mad182; 07-20-2006 at 03:39 PM..
Mad182 is offline
Reply With Quote
View Public Profile Visit Mad182's homepage!
 
Old 07-20-2006, 03:39 PM Re: Best way to practice PHP?
Super Talker

Posts: 111
Trades: 0
But I don't want to use Apache, I want to only be able to access the files from my machine. And I have installed PHP and mySQL, although I'm pretty sure I still need to create a mySQL DB, and I don't know how to go about doing that.

edit: actually I think I might be able to figure this all out from that link you gave me. Thanks!

edit2: thanks, I think I'll definitely have it all figured out soon.
__________________

Please login or register to view this content. Registration is FREE

Last edited by sweetdesignz; 07-20-2006 at 03:41 PM..
sweetdesignz is offline
Reply With Quote
View Public Profile
 
Old 07-20-2006, 03:43 PM Re: Best way to practice PHP?
Extreme Talker

Posts: 217
Trades: 0
What I think he means is that in order to view the PHP files without putting them on a server you have to have apache installed. I think that its because PHP runs on apache servers, if its not on apache(or other supported ones) then i dont think it will work.
Slick Nick is offline
Reply With Quote
View Public Profile
 
Old 07-20-2006, 03:44 PM Re: Best way to practice PHP?
Mad182's Avatar
Skilled Talker

Posts: 54
Name: Madars
Location: Latvia
Trades: 0
But you will need apache to work with php and mysql (OK, you can view PHP output in terminal, but it's really not the easyest and best way, how to do it).
__________________
There's no place like 127.0.0.1

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Mad182 is offline
Reply With Quote
View Public Profile Visit Mad182's homepage!
 
Old 07-20-2006, 03:50 PM Re: Best way to practice PHP?
Super Talker

Posts: 111
Trades: 0
Oh ok, thanks for the heads up. I'll install it then.
__________________

Please login or register to view this content. Registration is FREE
sweetdesignz is offline
Reply With Quote
View Public Profile
 
Old 07-20-2006, 04:29 PM Re: Best way to practice PHP?
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
Yes - Apache or even IIS if on a windows workstation.

FYI - Apache (or even IIS), MySQL and PHP are all server/services that run in the background that serve requests made through http
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 07-20-2006, 06:03 PM Re: Best way to practice PHP?
Super Talker

Posts: 111
Trades: 0
Quote:
Originally Posted by mgraphic
Yes - Apache or even IIS if on a windows workstation.

FYI - Apache (or even IIS), MySQL and PHP are all server/services that run in the background that serve requests made through http
I knew that, I just wanted to know if there was a way to use MySQL and PHP without using Apache, as my internet upload is capped at only 40 kb/s ;( and I just wanted to practice PHP.
Thanks though
__________________

Please login or register to view this content. Registration is FREE
sweetdesignz is offline
Reply With Quote
View Public Profile
 
Old 07-20-2006, 09:58 PM Re: Best way to practice PHP?
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
Running these services from localhost (running in the background of your workstation) is independent from your internet connection, in fact, it can run successfully without any internet connection on your computer (or even networked computer)!
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 07-21-2006, 01:43 AM Re: Best way to practice PHP?
Super Talker

Posts: 111
Trades: 0
Yep, I've got it working. Right now I'm just going over beginner stuff at the w3schools.com tutorial to see the difference between PHP and C. I've got extremely basic scripts running and stuff, now I've just got a bit of confusion about creating a database, with the DB>Table structure. It seems to be a bit of a pain to have to add variables to the database itself instead of just being able to initialize them like in C... oh well, so far its a cool language
__________________

Please login or register to view this content. Registration is FREE
sweetdesignz is offline
Reply With Quote
View Public Profile
 
Old 07-21-2006, 07:12 AM Re: Best way to practice PHP?
AliKat's Avatar
Extreme Talker

Latest Blog Post:
Save the Children
Posts: 176
Location: MS
Trades: 0
A database is only for storing information. You don't have to use your variables from a database, it's is perfectly fine to use a flat file system if that is your preference.
AliKat is offline
Reply With Quote
View Public Profile Visit AliKat's homepage!
 
Old 07-21-2006, 09:50 AM Re: Best way to practice PHP?
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
There is a really good and easy tool to work with for working with mySQL databases that will also show you php code and how the SQL command is constructed:

phpMyAdmin
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Best way to practice PHP?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.43542 seconds with 12 queries