Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 12th, 2006, 8:19 AM   #11
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by nnxion
So it only parses when the source is changed? If so: How does it verify so?
Systems like mod_python and CherryPy probably use file timestamps to check if the source has been changed. I know that whenever I change my CherryPy source, the CherryPy server automatically reloads itself. Presumably, mod_python does something similar.
Quote:
Originally Posted by nnxion
Does PHP work alike?
Possibly. I know it retains the PHP interpretor in memory. Perhaps some further caching takes place for executed scripts. I'm not sure whether PHP has anything equivalent to Python's bytecode.
Quote:
Originally Posted by nnxion
And, can CGI be used in C++ and compiled so it wouldn't have to do so every time?
Yes. CGI send data to a program through STDIN, and takes the output from STDOUT to send in a HTTP response. The CGI data passed in through STDIN has to be parsed, and that's what CGI libraries do. CGICC is a CGI library for C++.

Still, just because you can do something, doesn't mean you should. There's a reason few web applications are programmed in C++
Arevos is offline   Reply With Quote
Old Apr 12th, 2006, 8:21 AM   #12
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by MegaArcon
But I can see how straight CGI would be slower compared to the alternitives....perhaps it's time I look into an upgrade. :p Arevos mentioned mod_python and CherryPy...I'll have to look into those two and see what is required for setup. I've never worked with either, but by the sounds of things, it would be worth my time.
mod_python always struck me as too complex. CherryPy is nice, though.

You might also want to take a look at libraries designed to optimise CGI scripts, such as FastCGI.
Arevos is offline   Reply With Quote
Old May 25th, 2006, 8:13 PM   #13
DaveQB
Newbie
 
DaveQB's Avatar
 
Join Date: Apr 2006
Location: Sydney
Posts: 14
Rep Power: 0 DaveQB is on a distinguished road
Send a message via ICQ to DaveQB Send a message via Skype™ to DaveQB
The problem though, with using mod_python , CherryPy, Django etc is the serve needs to support it. The problem I find it most commercial web hosts have PHP enabled, but not the above mentioned frameworks.

How do people here get around this ?

Sure, I can run it on my home server, but the bandwidth wont be near the same and would slow down my families how net browsing.
DaveQB is offline   Reply With Quote
Old May 26th, 2006, 4:06 AM   #14
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Get a Python host, or a dedicated/virtual host. There are a few around, but they are always more expensive than a straight PHP option. In terms of low cost, PHP has the edge over most other languages.
Arevos is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:58 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC