将c ++与Web开发语言结合使用 [英] using c++ with web development languages

查看:91
本文介绍了将c ++与Web开发语言结合使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

人们如何为web dev生成html,php或其他一些

脚本?另外,将这些网络语言链接到C ++和

的常用方法是什么?我对Linux比对windows

平台更感兴趣。

解决方案

vf *** @ talktalk.net 写道:

人们做什么沿着生成html,php或其他一些<用于Web开发的脚本?另外,将C ++与这些网络语言联系起来的常用方法是什么?我对Linux比对windows
平台更感兴趣。




语言方面你应该期望有某种代理接口来

调度语言间调用。否则你应该期望编译成二进制接口的其他

非C ++模块与

C ++兼容,这样你就可以链接它们了。


在任何情况下你都必须特定于平台的RTM,而你需要b $ b节目。


问候,

Ben


2006年5月20日星期六08:29:37 -0700, vf *** @ talktalk.net 写道:

人们如何为web dev生成html,php或其他一些
脚本?另外,将C ++与这些网络语言链接起来的常用方法是什么?我对Linux比对windows平台更感兴趣。




你的问题对我来说太模糊了。你可以更具体地说明你想要做什么吗?


你问的是动态生成的页面而不是静态页面吗? />

你是什么意思将c ++与网络语言联系起来?为什么?


c ++可用于生成Web内容作为服务器端工具,如cgi但是

有更好的工具来生成Web内容:perl(我的

最喜欢的),php等等。


记得网页浏览器只知道html,javascript,也许是java

小程序。发送到浏览器的任何内容都必须遵循这些约定。

您在服务器端执行的操作更依赖于Web服务器

守护程序配置允许的内容。


vfunc写道:

人们如何为web dev生成html,php或其他一些
脚本?


要用C ++编写网站,请获取tinyxml和XSLT处理器,例如

MSXSL.exe或xsltproc。将网页的可变数据写入XML文件,

并编写一个XSLT模板,将其转换为XHTML。因此用C ++编写的CGI脚本

可以简单地用cgicc解析出服务器变量。然后它就会执行它的逻辑,写一个XML文件,用XSLT翻译它,并且

将翻译流出Web服务器。

另外将C ++与这些网络语言联系起来的常用方法是什么?我对Linux比对windows
平台更感兴趣。




只需用C ++编写。人们使用软(和广告)语言进行网络开发,因为他们错误地认为它们可以快速应用

开发。如果遵循几个规则,例如

依赖标准库,并编写单元测试,C ++也同样快速。


你打算去用你的软语言写单元测试吧?


-

Phlip
http://c2.com/cgi/wiki?ZeekLand < - 不是博客!!!


What do people do along the lines of generating html, php or some other
scripts for web dev? Also what is the usual way of linking C++ with
these web languages ? I''m more interested in Linux than windows
platform.

解决方案

vf***@talktalk.net wrote:

What do people do along the lines of generating html, php or some other
scripts for web dev? Also what is the usual way of linking C++ with
these web languages ? I''m more interested in Linux than windows
platform.



Language wise you should expect to have some sort of proxy interfaces to
dispatch inter-language invocations. Otherwise you should expect other
non-C++ modules compiled to a binary interface compatible to that from
C++ so you can link them.

In any situation you have to RTM specific to the platform that you
program against.

Regards,
Ben


On Sat, 20 May 2006 08:29:37 -0700, vf***@talktalk.net wrote:

What do people do along the lines of generating html, php or some other
scripts for web dev? Also what is the usual way of linking C++ with these
web languages ? I''m more interested in Linux than windows platform.



your question is too vague for me to answer. can you be more specific of
what it is you are trying to do?

are you asking about dynamically generated pages as opposed to static ones?

what do you mean "linking c++ with web languages"? why?

c++ can be used to generate web content as a server side tool like cgi but
there are much better tools for generating web content: perl (my
favorite), php, etc.

remember that the web browser only knows html, javascript, and maybe java
applets. anything sent to the browser must follow those conventions.
what you do on the server side is more dependent upon what the web server
daemon configuration allows.


vfunc wrote:

What do people do along the lines of generating html, php or some other
scripts for web dev?
To write a web site in C++, get tinyxml and an XSLT processor, such as
MSXSL.exe or xsltproc. Write a web page''s variable data into an XML file,
and write an XSLT template which converts this into XHTML. So a CGI script
written in C++ can simply parse out the server variables with cgicc. Then it
performs its logic, writes an XML file, translates this with XSLT, and
streams the translation out the web server.
Also what is the usual way of linking C++ with
these web languages ? I''m more interested in Linux than windows
platform.



Just write in C++. Folks use soft (and advertised) languages for web
development under the mistaken belief they enable rapid application
development. C++ is just as rapid if you follow a few zillion rules, such as
rely on the Standard Library, and write unit tests.

You were going to write unit tests in your soft language too, right?

--
Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!!


这篇关于将c ++与Web开发语言结合使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆