Solved

Basic PHP

Posted on 2000-03-17
14
274 Views
Last Modified: 2008-03-06
I'd like to know a few basic things regarding PHP. I know they must be available in the Net... but don't want to go searching for it.

- What exactly is PHP?
- What are the advantages/disadvantages fo PHP when compared to other server side scripts?
- If PHP scripts are inserted between HTML tags, will there be extra load on the server (as in the case of SSI)?
- Which is the latest version of PHP?
- Do we have to install a PHP interpreter in Apache server?
- How to use PostgreSQL with PHP? If I have PSQL already installed in my server, do I have to change anything if I install PHP also?

All comments welcome.
Thanks indeed.
0
Comment
Question by:leoleo
  • 6
  • 3
  • 3
  • +1
14 Comments
 
LVL 8

Accepted Solution

by:
us111 earned 50 total points
ID: 2627513
1. PHP is a server-side, cross-platform, HTML embedded scripting language. It's open-source, so freeware.

2. PHP compares to other server-side script is really easy to learn and use.
It's a melting pot of ASP, C, C++, PERL. You can connect to differents database.
It's portable, you can use it on Unix or windows.
And it's FREEWARE.
 
3. In fact, php processes your HTML code with PHP scripts in it and return an HTML page to your browser. There's no extra load.

4. php3.0.12, well php4.0 exists but only in beta version

5. yes can install PHP as an interpreter in Apache Server or as
a module which is the better solution.

6. You can use easily PostGreSQL (msql, MYsql) with PHP.
If don't have the module for Apache, you can download the PHP source, Apache Source, PostgreSQL souce and then compil php as a module for your web server.


I think some things misses, I hope it will help you.
0
 
LVL 8

Expert Comment

by:us111
ID: 2627799
oops the lastest version of PHP is 3.0.15
0
 
LVL 8

Expert Comment

by:us111
ID: 2627812
what's PHP?

Good documentation
http://www.zend.com/zend/aboutphp.php
0
 
LVL 1

Expert Comment

by:jasmoft146
ID: 2628544
The 4.0 betas are solid, and there is an optimizer by zend for the latest version b 4.4 p 1  Also PHP is like perl and java working together (add in some C++ for spice) and all working on a webserver.  One of the major pros of php is that no one can steal your source!
0
 

Author Comment

by:leoleo
ID: 2630699

Thanks indeed, us111. That was really helpful.

jasmoft146 : Why do u say that no one can steal the source? More secure than CGI ?

0
 
LVL 1

Expert Comment

by:jasmoft146
ID: 2630700
Well everything is processed, and none of the source is shown.
0
 
LVL 8

Expert Comment

by:us111
ID: 2631003
yes it's called a server-side scripting language
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 2

Expert Comment

by:maxkir
ID: 2631381


>                   - What exactly is PHP?

      PHP is very powerful scripting language, robust and with very good support, like ASP or JSP or ColdFusion.

>                   - What are the advantages/disadvantages fo PHP when >                   compared to other server side scripts?

     Fast (especially PHP4), simple to learn (especially for Perl-aware users), support tremendous amount of libraries, including grafics, most databases, XML, pdf , etc,etc,etc.

>                   - If PHP scripts are inserted between HTML tags, will there be >                   extra load on the server (as in the case of SSI)?

      Yes.

>                   - Which is the latest version of PHP?
         PHP3 (stable) 3.0.15
         PHP4 (development) beta4 patch level 1

>                   - Do we have to install a PHP interpreter in Apache server?

       No, you can use PHP  as a CGI - so use it in any web server that supports CGI. Including Win32 platform. Apache IMO best choice ;-)

>                   - How to use PostgreSQL with PHP? If I have PSQL already >                 installed in my server, do I have to change anything if
>                   I install PHP also?
 
      You don't need to change anything. Just install PHP with Postgress support and enjoy.
0
 

Author Comment

by:leoleo
ID: 2635069
maxkir
: U say there is extra load, while us111 says there isn't... which is right?
0
 
LVL 2

Expert Comment

by:maxkir
ID: 2635109
Well, when you make any dynamic content, this takes some processor's time on the server, isn't it ? This is true for any server-side scripting language.

us111 meant probably that there is no extra load for the client machine ..
0
 
LVL 8

Expert Comment

by:us111
ID: 2635198
yes I mean there's no extra load for the client
0
 

Author Comment

by:leoleo
ID: 2635225

Thanks, maxkir & us111.
(Too bad there isn't a 50-50 option in EE !!!)
0
 
LVL 8

Expert Comment

by:us111
ID: 2635341
Sorry maxkir
0
 
LVL 2

Expert Comment

by:maxkir
ID: 2635383
never mind ;-))))
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now