Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 05-07-2005, 10:34 AM   #1 (permalink)
Broken In
 
Join Date: Feb 2004
Posts: 125
Default Pros of PHP


Why is PHP a good language & how is it better than other most used languages [except for the reason that it is free]?
__________________
Think about it!
Trinity is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 05-07-2005, 10:44 AM   #2 (permalink)
In Pursuit of "Happyness"
 
kalpik's Avatar
 
Join Date: May 2005
Location: New Delhi
Posts: 3,432
Default

1. PHP is open source. So development is fast.
2. PHP is very easy. If u know C, u know 90% of PHP.
3. PHP is platform independant. Since it is browser based.
4. PHP is very powerfull. Can do almost everything that any other language does!

Regards,
Kalpik
__________________
Whenever you find yourself on the side of the majority, it is time to pause and reflect. - Mark Twain
kalpik is offline  
Old 05-07-2005, 07:36 PM   #3 (permalink)
Wise Old Owl
 
alib_i's Avatar
 
Join Date: Jun 2004
Location: omnipresent
Posts: 1,191
Default

i would also like to add that PHP has a very large collection of extremely well thought-off functions which can allow to do anything you want !
php's functions are very good
being open source is very helpful

-----
alibi
__________________
What I've felt, What I've known; Never shined through in what I've shown
Never free, Never me; So I dub thee unforgiven
-Metallica
alib_i is offline  
Old 06-07-2005, 01:01 PM   #4 (permalink)
Human Spambot
 
tuxfan's Avatar
 
Join Date: Feb 2004
Location: Mumbai
Posts: 2,653
Default

Quote:
Originally Posted by kalpik
If u know C, u know 90% of PHP.
Is that so? Are you sure?

I knew quite a bit of C and can pick up from where I left a few years ago. I am very eager to learn PHP.
tuxfan is offline  
Old 06-07-2005, 03:50 PM   #5 (permalink)
Wise Old Owl
 
alib_i's Avatar
 
Join Date: Jun 2004
Location: omnipresent
Posts: 1,191
Default

yeah .. the format is very similar.
ex. if-else condition statements, loops, etc
if you know C, you'll find PHP very easy

-----
alibi
__________________
What I've felt, What I've known; Never shined through in what I've shown
Never free, Never me; So I dub thee unforgiven
-Metallica
alib_i is offline  
Old 06-07-2005, 05:54 PM   #6 (permalink)
In Pursuit of "Happyness"
 
kalpik's Avatar
 
Join Date: May 2005
Location: New Delhi
Posts: 3,432
Default

Quote:
Originally Posted by tuxfan
Quote:
Originally Posted by kalpik
If u know C, u know 90% of PHP.
Is that so? Are you sure?

I knew quite a bit of C and can pick up from where I left a few years ago. I am very eager to learn PHP.
Hi tuxfan!

Yeah, PHP is *VERY* similar to C! Well have a look at the documentation section at http://php.net to get started! Ill be happy to help if u need any help regarding this!

Regards,

Kalpik
kalpik is offline  
Old 07-07-2005, 06:02 PM   #7 (permalink)
Human Spambot
 
tuxfan's Avatar
 
Join Date: Feb 2004
Location: Mumbai
Posts: 2,653
Default

Quote:
Originally Posted by kalpik
Hi tuxfan!

Yeah, PHP is *VERY* similar to C! Well have a look at the documentation section at http://php.net to get started! Ill be happy to help if u need any help regarding this!

Regards,

Kalpik
Thank you so much. Can you please tell me from where I start?
tuxfan is offline  
Old 07-07-2005, 06:45 PM   #8 (permalink)
In Pursuit of "Happyness"
 
kalpik's Avatar
 
Join Date: May 2005
Location: New Delhi
Posts: 3,432
Default

Hi!

Well first of all, u nees a web server since PHP is a server side language. Get apache server from http://apache.org

Then u need the PHP binaries. Get them from http://www.php.net/get/php-5.0.4-Win.../from/a/mirror

Then extract php-5.0.4-Win32.zip to the folder where PHP will be installed, C:\PHP is a good choice. Then read the install.txt in this zip. Yeah! I know its a bloody LONG file! Well the important sections are the starting intro and "Apache 2.0.x on Microsoft Windows
" topic. Read it throghly! Also it will contain info about configuring your php.ini file. Read it too.

Then install Apache server. And edit the httpd.conf file according to the info in the install.txt file in the php package.

Woah!

Do this n then let me know!! Hehe

Kalpik
__________________
Whenever you find yourself on the side of the majority, it is time to pause and reflect. - Mark Twain
kalpik is offline  
Old 08-07-2005, 08:46 AM   #9 (permalink)
Broken In
 
abhishekkulkarni's Avatar
 
Join Date: Aug 2004
Location: Amche Pune
Posts: 182
Default

Even I am doing what you have suggested.Please guide me ahead.
__________________
May the source be with you ..
abhishekkulkarni is offline  
Old 08-07-2005, 11:17 AM   #10 (permalink)
In Pursuit of "Happyness"
 
kalpik's Avatar
 
Join Date: May 2005
Location: New Delhi
Posts: 3,432
Default Configuring PHP with Apache.

Hi!

Actually, configuring PHP with Apache is the *most* tedious job i've ever done! Ill maki it easier for u guys. Download Apache from http://apache.org and install it with the defaults. When it asks for domail name etc, enter "localhost" in the first 2 boxes and enter ur email address in the third.

Now download PHP from http://www.php.net/get/php-5.0.4-Win.../from/a/mirror

Unzip it to C:\PHP.

Now download http://www.kalpik.5gigs.com/php.zip

This has 2 files. Extract php.ini into C:\PHP and httpd.conf into C:\Program Files\Apache Group\Apache2\conf

Replace all existing files.

Now, u will have a leaf type icon in your system tray with a green "play" button on it. Left click on it and select Apache2 -> restart. U will see several warnings about a file php_mysql something. Just keep pressing ok.

now goto start -> run -> services.msc

Here double click on Apache2 and change startup type from automatic to manual.

Now right click My Computer, select properties. Go to the advanced tab and click "Environment Variables" Now under "System Variables", there will be a value named "Path", double click on it.

Now if the variable value is ending in a ";" (semi colon), its ok otherwise, put a semi colon and write "C:\PHP;C:\PHP\ext" (Without quotes) over there. Select ok to exit the dialog box.

Now restart.

After restart, u will have the apache icon in ur tray with a red "stop" button. Click on it select Apache2 -> start. Now u should not see any warnings if everything is configured correctly.

Now open your browser and type "localhost" or "127.0.0.1" in the address bar. A page of Apache should open. If it opens, CONGRATS! U have succesfully configured Apache with PHP! Otherwise get back to me!

Try this and let me know!

Take care!

Kalpik
kalpik is offline  
Old 08-07-2005, 11:27 AM   #11 (permalink)
In Pursuit of "Happyness"
 
kalpik's Avatar
 
Join Date: May 2005
Location: New Delhi
Posts: 3,432
Default

Direct link for Apache (incase u r not able to find it!)

http://www.signal42.com/mirrors/apac...x86-no_ssl.msi
__________________
Whenever you find yourself on the side of the majority, it is time to pause and reflect. - Mark Twain
kalpik is offline  
Old 08-07-2005, 12:07 PM   #12 (permalink)
Human Spambot
 
tuxfan's Avatar
 
Join Date: Feb 2004
Location: Mumbai
Posts: 2,653
Default

Actually, I have PHP+MySQL enabled server space So I can directly use it for initial trial and error. I have downloaded the documentation yesterday and have just started reading. Will make a simple "Hello World" PHP application today and proceed further from there.

Any suggestions/tips?
tuxfan is offline  
Old 08-07-2005, 01:09 PM   #13 (permalink)
In Pursuit of "Happyness"
 
kalpik's Avatar
 
Join Date: May 2005
Location: New Delhi
Posts: 3,432
Default

Its really good u have ur web space! Configuring PHP is a pain in the @ss!!!

The PHP manual is the best thing to learn PHP from. But be sure to read it from the begining otherwise maybe u wont get it!

Take care!

Kalpik
__________________
Whenever you find yourself on the side of the majority, it is time to pause and reflect. - Mark Twain
kalpik is offline  
Old 08-07-2005, 01:16 PM   #14 (permalink)
Human Spambot
 
tuxfan's Avatar
 
Join Date: Feb 2004
Location: Mumbai
Posts: 2,653
Default

Thanks for the tip. I have just started reading it
__________________
:: Free hosting and free domain names available in special cases. Conditions apply ::
tuxfan is offline  
Old 08-07-2005, 02:41 PM   #15 (permalink)
Wise Old Owl
 
alib_i's Avatar
 
Join Date: Jun 2004
Location: omnipresent
Posts: 1,191
Default

best php editor i've seen is PHP Edit
you can try that too ..

-----
alibi
__________________
What I've felt, What I've known; Never shined through in what I've shown
Never free, Never me; So I dub thee unforgiven
-Metallica
alib_i is offline  
Old 08-07-2005, 05:01 PM   #16 (permalink)
In The Zone
 
Join Date: Dec 2004
Location: Vice City
Posts: 461
Default

I am also a PHP-Lover
__________________
--------------
Lovedeep Wadhwa
cheetah is offline  
Old 08-07-2005, 06:34 PM   #17 (permalink)
Wise Old Owl
 
siriusb's Avatar
 
Join Date: May 2005
Location: Chennai, India, Asia, the Earth, the Solar system, the Milky Way, the Local group, this Universe.
Posts: 1,171
Default

Thanks to this thread, I'll have one more language in my resume. Let's PHP!
__________________
http://myxp.blogspot.com
-----------------------
Winchester 3200+ @2,500MHz
LeadTek 7900GT VOLT MODDED @ 680 core, 1800 mem
2x1GB Transcend DDR400 @ DDR454 2.5,3,3,5,1T
siriusb is offline  
Old 08-07-2005, 07:33 PM   #18 (permalink)
Version 2.0
 
Deep's Avatar
 
Join Date: Jan 2004
Location: Mumbai
Posts: 977
Default

I strongly wont suggest replacing php.ini or httpd.conf

checkout my tutorial here....

http://www.thinkdigit.com/forum/viewtopic.php?t=15502

anyways back to the topic...

i had started php with ebook called teach urself php on 24 hrs...i read 3-4 chapters (till functions or classes i suppose) and then i couldnt stop myself so just started off with it and took help of manual and google..

if anyone needs some books on php then let me know, i have some stuff on my server, i can share..just PM if u need it

Deep
__________________
- Deep Ganatra -
www.whoisdeep.com
www.twitter.com/DeepXP/
Deep is offline  
Old 08-07-2005, 07:42 PM   #19 (permalink)
In Pursuit of "Happyness"
 
kalpik's Avatar
 
Join Date: May 2005
Location: New Delhi
Posts: 3,432
Default

Hey! Deep!

Was just trying to help! And make thinks as easy as possible! You can download and see for urself the httpd.conf and php.ini files i posted! Nothing illegal dude!

Anyway, good tutorial!

Kalpik
__________________
Whenever you find yourself on the side of the majority, it is time to pause and reflect. - Mark Twain
kalpik is offline  
Old 08-07-2005, 07:44 PM   #20 (permalink)
Version 2.0
 
Deep's Avatar
 
Join Date: Jan 2004
Location: Mumbai
Posts: 977
Default

Quote:
Originally Posted by kalpik
Hey! Deep!

Was just trying to help! And make thinks as easy as possible! You can download and see for urself the httpd.conf and php.ini files i posted! Nothing illegal dude!

Anyway, good tutorial!

Kalpik
oh, No, I didnt mean illegal stuff...

I just meant about version differences...

sometimes they make changes in ini and conf files in new versions...

so better to use default one and edit the settings if needed...

btw glad to hear that you liked the tutorial

Regards
Deep
__________________
- Deep Ganatra -
www.whoisdeep.com
www.twitter.com/DeepXP/
Deep is offline  
Old 08-07-2005, 07:52 PM   #21 (permalink)
In Pursuit of "Happyness"
 
kalpik's Avatar
 
Join Date: May 2005
Location: New Delhi
Posts: 3,432
Default

Hi!

My files were according to the latest version of Apache (2.0.54), PHP (5.0.4) and Mysql (4.1.12)

Well, have made a suggestion for ur tutorial! Check it out in your tutorial thread!

Kalpik
__________________
Whenever you find yourself on the side of the majority, it is time to pause and reflect. - Mark Twain
kalpik is offline  
Old 19-07-2005, 11:59 AM   #22 (permalink)
Broken In
 
Join Date: Feb 2004
Posts: 125
Default php editor

the link to alib's suggested php editor is

http://www.waterproof.fr

try it out
__________________
Think about it!
Trinity is offline  
Old 19-07-2005, 04:24 PM   #23 (permalink)
Apprentice
 
Join Date: Sep 2004
Location: Utopia
Posts: 98
Default

Hi friends!
This one is an excellent thread..thanks to whoever created it!

[b]i want to know if a digit like forum can be created with php after learning php basics?
(i've heard of phpBB and used the freeBB site)
[\b]
i really (might i say desperately) want to learn how....

i'll be greatful if you people can help!
thanks
__________________
A flea and a fly in a flue, were caught, so what could they do? Said the fly, \"let us flee!\" \"Let us fly!\" said the flea. So they flew through a flaw in the flue.
technovice is offline  
Old 19-07-2005, 05:04 PM   #24 (permalink)
In Pursuit of "Happyness"
 
kalpik's Avatar
 
Join Date: May 2005
Location: New Delhi
Posts: 3,432
Default

The phpBB forum is NOT basic PHP! It includes sessioning, mysql, and god knows what not! Not an easy job if u ask me! Anyway, u can try!
__________________
Whenever you find yourself on the side of the majority, it is time to pause and reflect. - Mark Twain
kalpik is offline  
Old 20-07-2005, 12:23 AM   #25 (permalink)
In The Zone
 
hafees's Avatar
 
Join Date: Feb 2004
Location: Kerala
Posts: 405
Default

i m studying PHP with mySQL. as i know C, PHP is easy to learn. I relly liked it. I have a bought a book that teaches PHP5 and mySQL5. PHP5 supports object oriented programming as any other OOP language.
i tried some free hosts that supports PHP. I found siteburg.com but it is ad supported (a forced ad on top of every page. ) Also they do not support PHP5 or mySQL 5.

If someone can suggest a truely free PHP host with
latest version that ll be really helpful
__________________
Quitters Never Win & Winners Never Quit!
hafees is offline  
Old 20-07-2005, 08:12 AM   #26 (permalink)
In Pursuit of "Happyness"
 
kalpik's Avatar
 
Join Date: May 2005
Location: New Delhi
Posts: 3,432
Default

Try http://www.5gigs.com
__________________
Whenever you find yourself on the side of the majority, it is time to pause and reflect. - Mark Twain
kalpik is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by topgear
- by Charan

Advertisement




All times are GMT +5.5. The time now is 06:26 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2