Forum Statistics

  • Forum Members: 4,502
  • Total Threads: 3,657
  • Total Posts: 8
There are 1 users currently browsing forums.

Partner Sites

Reply
Old 08-28-2007, 02:59 PM   #1 (permalink)
 
fergi's Avatar
 
Status: FG know it all
Join Date: Mar 2007
Posts: 127

Rep Power: 33 fergi is on a distinguished road



Default php/cgi what's the difference?

what is the difference between php and cgi? are the the pros cons of each?
fergi is offline Add Infraction for fergi   Reply With Quote
Old 10-08-2007, 02:22 PM   #2 (permalink)
 
Status: Newbie
Join Date: Oct 2007
Location: Swindon, UK
Posts: 23

Rep Power: 21 dansgalaxy is on a distinguished road

Send a message via MSN to dansgalaxy Send a message via Yahoo to dansgalaxy


Default

CGI i think it like perl.

PHP is differant programing lanaguage.

I do php, i its a very flexible langauge and the best i think
__________________
Honest, Personal UK Webhosting
Get 25% of ANY shared package for life ~ Promo: freelancegossip
.::XDnet.co.uk::.
dansgalaxy is offline Add Infraction for dansgalaxy   Reply With Quote
Old 02-05-2008, 10:36 PM   #3 (permalink)
 
Chainsawkitten's Avatar
 
Status: Newbie
Join Date: Jan 2008
Location: Sweden
Posts: 8

Rep Power: 18 Chainsawkitten is on a distinguished road

Send a message via MSN to Chainsawkitten


Default

PHP is a scripting language.

CGI is not :P
Common Gateway Interface - Wikipedia, the free encyclopedia

EDIT: You could say that the difference is that in PHP, you call functions, in CGI you call programs.
Chainsawkitten is offline Add Infraction for Chainsawkitten   Reply With Quote
Old 06-10-2008, 03:58 AM   #4 (permalink)
 
Status: Newbie
Join Date: Oct 2007
Location: Swindon, UK
Posts: 23

Rep Power: 21 dansgalaxy is on a distinguished road

Send a message via MSN to dansgalaxy Send a message via Yahoo to dansgalaxy


Default

^ What he said :D
__________________
Honest, Personal UK Webhosting
Get 25% of ANY shared package for life ~ Promo: freelancegossip
.::XDnet.co.uk::.
dansgalaxy is offline Add Infraction for dansgalaxy   Reply With Quote
Old 07-27-2011, 11:20 PM   #5 (permalink)
Unregistered
 
Status: Guest
Posts: n/a



Default

There are two ways you can choose to have your PHP executed at DreamHost. The default for new customers is now PHP-CGI. This is by far the preferred method. The benefits of running PHP-CGI are:

* It is more secure. The PHP runs as your user rather than dhapache. That means you can put your database passwords in a file readable only by you and your php scripts can still access it!
* It is more flexible. Because of security concerns when running PHP as an Apache module (which means it runs as our dhapache user), we have disabled a number of commands with the non-CGI PHP. This will cause installation problems with certain popular PHP scripts (such as Gallery) if you choose to run PHP not as a CGI!
* It's just as fast as running PHP as an Apache module, and we include more default libraries.
  Edit/Delete Message Reply With Quote
Old 10-25-2011, 02:39 AM   #6 (permalink)
veshl
 
Status: Guest
Posts: n/a



Default

PHP is more easier than Perl known as CGI and is more readable ..
security is up to you .. you are the one securing your scripts..
  Edit/Delete Message Reply With Quote
Old 10-25-2011, 05:42 AM   #7 (permalink)
WilliamRU
 
Status: Guest
Posts: n/a



Default Ãäå îòäîõíóòü

Bravo , I think it's a great idea
  Edit/Delete Message Reply With Quote
Old 12-08-2011, 03:27 AM   #8 (permalink)
adumpaul
 
Status: Guest
Posts: n/a



Default

1.The PHP runs as your user rather than dhapache. That means you can put your database passwords in a file readable only by you and your php scripts can still access it.
.2.It is more flexible. Because of security concerns when running PHP as an Apache module (which means it runs as our dhapache user), we have disabled a number of commands with the non-CGI PHP. This will cause installation problems with certain popular PHP scripts if you choose to run PHP not as a CGI.

Read more: What is the difference between PHP and CGI
  Edit/Delete Message Reply With Quote


Reply

Bookmarks

Tags
None


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may post new threads
You may post replies
You may post attachments
You may 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


Search Engine Optimization by vBSEO 3.5.0 RC2