We help IT Professionals succeed at work.

Basic PHP

leoleo
leoleo asked
on
299 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.
Comment
Watch Question

Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Commented:
oops the lastest version of PHP is 3.0.15

Commented:
what's PHP?

Good documentation
http://www.zend.com/zend/aboutphp.php
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!

Author

Commented:

Thanks indeed, us111. That was really helpful.

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

Well everything is processed, and none of the source is shown.

Commented:
yes it's called a server-side scripting language

Commented:


>                   - 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.

Author

Commented:
maxkir
: U say there is extra load, while us111 says there isn't... which is right?

Commented:
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 ..

Commented:
yes I mean there's no extra load for the client

Author

Commented:

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

Commented:
Sorry maxkir

Commented:
never mind ;-))))
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.