PHP-Like language.

Just starting out? Need help? Post your questions and find answers here.
embrance
User
User
Posts: 37
Joined: Mon Sep 01, 2003 4:22 am

PHP-Like language.

Post by embrance »

Would it be possible to create an internet language like PHP with PB?
Any intorductions on how?
fweil
Enthusiast
Enthusiast
Posts: 725
Joined: Thu Apr 22, 2004 5:56 pm
Location: France
Contact:

Post by fweil »

What purpose do you think to ?

Are you thinking to a script parser / interpreter or to possible compiled code generated from scripts ? Do you expect such an environment to work on an http server only ?

I guess it is possible, maybe interesting and I agree to try to do something like that. But not to reinvent the wheel ...

Well I will open an editor and start something.

If some people in the meanwhile have milestones to give I will listen carefully.

Rgrds
My avatar is a small copy of the 4x1.8m image I created and exposed at 'Le salon international du meuble à Paris' january 2004 in Matt Sindall's 'Shades' designers exhibition. The original laminated print was designed using a 150 dpi printout.
plouf
Enthusiast
Enthusiast
Posts: 281
Joined: Fri Apr 25, 2003 6:35 pm
Location: Athens,Greece

Post by plouf »

php interpreter is nothink more than an cgi app producing output to
stdout

there are a cgi example in purearea (if a am not wrong) and a cgi lib
by elchoni
Christos
embrance
User
User
Posts: 37
Joined: Mon Sep 01, 2003 4:22 am

Post by embrance »

I have seen something like PHP,called PSP(Pascal Server Pages).
So i guess its posible.However from where to start?
It would be cool to have internet apps like windows app runnig formm a web-browser.think of it.
embrance
User
User
Posts: 37
Joined: Mon Sep 01, 2003 4:22 am

Post by embrance »

BTW im from Greece too! :wink:
fweil
Enthusiast
Enthusiast
Posts: 725
Joined: Thu Apr 22, 2004 5:56 pm
Location: France
Contact:

Post by fweil »

I use to design websites since two years more or less using PB to build all the pages.

I do partly static and partly dynamic things.

Now if you want we work a bit to build a kind of CGI able to help in generating active HTML, I can probably help.

Rgrds
My avatar is a small copy of the 4x1.8m image I created and exposed at 'Le salon international du meuble à Paris' january 2004 in Matt Sindall's 'Shades' designers exhibition. The original laminated print was designed using a 150 dpi printout.
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post by GedB »

Perhaps it could work more like JSP than PHP.

JSP works by compiling pages on the fly and caching binary. When a page is called it checks the source against the binary. If the source is newer than the binary it is compiled. Then the binary is run and the results returned.

This is different to PHP, where the page is interpreted each time it is executed.

Sandboxing PB isn't that difficulty, you just take away any PureLibraries you don't want to make available.

In fact, a completely new set of web enabled PureLibraries could be developed, specifically geated towards the web.

PB's lightening fast compiler would make it ideal for the job, and smaller executables load quicker. Imagine the performance!
Post Reply