/    Sign up×
Community /Pin to ProfileBookmark

Use html to write scripts(like php)

There is blog project named cgiblog.com. It is writen by pure html without any dynamic scripts(server side scripts also written using HTML). Unbelievable so HTML can be used as PHP…..?

to post a comment
HTML

23 Comments(s)

Copy linkTweet thisAlerts:
@spufiFeb 06.2012 — It can run at pure C++ backend like c++ fastcgi or Tagcgi service(Tagcgi service is part of the framework which use html style coding but with pure C++ efficiency.).[/QUOTE]

Yep, nothing but HTML. ?
Copy linkTweet thisAlerts:
@DavidBontingFeb 06.2012 — Woo, thanks for sharing that link. It will become handy for a project of mine.

But normally php is easier, so why only html?
Copy linkTweet thisAlerts:
@handcraftedwebFeb 06.2012 — The title of cgiblog.com is "Blog writen by C++".
Copy linkTweet thisAlerts:
@lotusinauthorFeb 07.2012 — The title of cgiblog.com is "Blog writen by C++".[/QUOTE]

The extensional "html codes" can be run as three backend supporting. One is php, one is fastcgi c++,one is tagcgi.

If you use fastcgi c++ or tagcgi as backend(You need not to write codes of c++ they are basically web service). It get the performance of c++. I think it is the reason of the title...

But the source codes are extensional "HTML" codes. If you visited the cgiblog.com. You should find that cgiblog.com only have eighty lines of "html" to forge the front end's dynamic logic of blog except the pure sql or shell command on backend.?
Copy linkTweet thisAlerts:
@lotusinauthorFeb 07.2012 — Woo, thanks for sharing that link. It will become handy for a project of mine.

But normally php is easier, so why only html?[/QUOTE]



I don't think php is easier. Actually hundreds of php codes can be replaced with several lines of extensional "HTML". Everyone in web developing know HTML but it is complex to write php(It is the programmer's work).
Copy linkTweet thisAlerts:
@spufiFeb 07.2012 — The extensional "html codes" can be run as three backend supporting. One is php, one is fastcgi c++,one is tagcgi.

If you use fastcgi c++ or tagcgi as backend(You need not to write codes of c++ they are basically web service). It get the performance of c++. I think it is the reason of the title...

But the source codes are extensional "HTML" codes. If you visited the cgiblog.com. You should find that cgiblog.com only have eighty lines of "html" to forge the front end's dynamic logic of blog except the pure sql or shell command on backend.?[/QUOTE]


Your original post is misleading at best. HTML is not used instead of scripts or things like PHP. PHP is still used. It's just not written by the end user as it's already written in the back end of the application. So no, HTML is not used as PHP. It's merely markup that is then converted by the back end to get the desired result. This is simply a PHP/C++ framework.

FYI, PHP really isn't that difficult to learn. The only aspect that gets difficult is how deep you get into the OOP aspect.
Copy linkTweet thisAlerts:
@lotusinauthorFeb 08.2012 — Your original post is misleading at best. HTML is not used instead of scripts or things like PHP. PHP is still used. It's just not written by the end user as it's already written in the back end of the application. So no, HTML is not used as PHP. It's merely markup that is then converted by the back end to get the desired result. This is simply a PHP/C++ framework.

FYI, PHP really isn't that difficult to learn. The only aspect that gets difficult is how deep you get into the OOP aspect.[/QUOTE]


Sorry for the misunderstanding and thanks for your clarification.

You are professional and from tagcgi.com it annouced that tagcgi is an framework for c++.

I think the reason why the php engine existed is for the compatibility for the php users becuase not every one have their special web service installed. This is the same for the engine of fastcgi c++.


If end user needn't write scripts in server side. the core of the programming moving into the web service. If it is true. The scrips will dispelled from the web programmer's aspect. So I think in this sense. HTML instead of scripts but it is not strict enough as you said.

My imagine of web develping is that Web service is written by c++. And your business code can be merged into web service by link your lib file with the simplest sytax(without any html knowledge here) . And in the other hand. HTML dominate the others.
Copy linkTweet thisAlerts:
@lotusinauthorFeb 09.2012 — And another thing is important to developers. They can conduct common web programming just by some "html tag".

As we all know. Html is not designed for dynamic programming. But actually lots of web developing just arranging, composting, manipulating the data or simple calculation. It is very common and easy things to be conducted by extensions of HTML.

Actually a blog and forum app were implemented totally by html as you mentioned.

PHP is great. But compare to HTML maker. HTML extension is easy for them. Because they are totally the same things.
Copy linkTweet thisAlerts:
@WyCnetFeb 10.2012 — I don't think php is easier. Actually hundreds of php codes can be replaced with several lines of extensional "HTML". Everyone in web developing know HTML but it is complex to write php(It is the programmer's work).[/QUOTE]What additions would be made to have extensional HTML? I would say string processing would be a good extension.

PHP is easy to use, and you can hide lots of things in classes, for example javascript support can be stored as static data.
Copy linkTweet thisAlerts:
@lotusinauthorFeb 12.2012 — What additions would be made to have extensional HTML? I would say string processing would be a good extension.

PHP is easy to use, and you can hide lots of things in classes, for example javascript support can be stored as static data.[/QUOTE]


There is an example for this type of coding(Which will show the CC attackers attaking the web server): http://3.tagcgi.com/view.html

Basically It have 10 lines of HTML which have expand meaning. You just need place the HTML in the directory where web server located and fill three lines of sql in the sql control file then it will get run. If you use php or any framework of php to conduct this. May be there will hundreds of line of codes running on the server when requesting.


Except the 10 lines HTML,Others are the normal HTML lines which you get used to. You can view source by right click.

<!--Begin souce codes.-->

<div id="RTWEBPAGE_3" ParaRule="para3" MaxShowNumber=100 ShowId="oneedit" ShowRule="listtheip" ></div>

<div class="para3" name="ipaddress"></div>

<div id="RTWEBPAGE_2" InitExec="true" Pager="count:normalpage:normaltotal:1:pagenumhere:progressbar:progressstyle" ></div>

<div id="RTWEBPAGE_1" ShowRule="showmain" ShowId="thelist" Interval=2000 ParaRule="para1" MaxShowNumber=6 AddStyle="always" InitExec="true" Pager="number:normalpage:normaltotal:1:pagenumhere:progressbar:progressstyle" ></div>

<div class="para1" name="this" addon="pagenumber" FirstValue=0 BlankValue=1 ></div>

<div class="para1" name="MaxShowNumber"></div>

<div id="RTWEBPAGE_45" UpdateRule="update_45" DataSource="local" ></div>

<div class="update_45" UpdateId="oneedit" ></div>

<div class="update_45" UpdateId="closetag" ></div>

<div class="update_45" UpdateId="opentag" ></div>

<!--End source codes.-->

In the view.html. Data arrange, combination even simple data conduction is executed on the browser's part by these HTML tags instead of scripts using php or others. Data interpreting is moving to the expansion of HTML tag if you want(you also have choice to do this by the old way). Server can focus on the key data conduction or data creating.

You also can make server expansion tag in the HTML like:

<div id="RTWEBPAGE_3" CreateSession="yes" ></div>

<div id="RTWEBPAGE_4" SessionId=3></div>

It will create the server side session on business 3. And business 4 only can get conducted if business 3 was successful.


You also can expand the functionality of the browser's part by add tag like this:

<div id="RTWEBPAGE_3" Interval=2000 ></div>

It means the business 3 will automatically update the data at interval without refresh manually to the browser if anyone is viewing the page.


I believe Php is easier way in the dynamic scripting languages. But it cost too much efforts in the simple data manipulation on server side. It cost the unnecessary resource which can be distribute to browser. Even on server side. Many "common functionality" can be done by an simple "tag" which in the HTML expansion.

What is the definition of easy if HTML maker find they just need to write HTML to conduct most of the work?
Copy linkTweet thisAlerts:
@WyCnetFeb 12.2012 — Ok, it seems interesting. You have to keep hoping that the HTML parser continues to ignore extra verbage - forever.
Copy linkTweet thisAlerts:
@lotusinauthorFeb 13.2012 — Ok, it seems interesting. You have to keep hoping that the HTML parser continues to ignore extra verbage - forever.[/QUOTE]

It is not necessary for the future. HTML do have undemanding spec. Actually it is go through IE,Chrome and Firefox.

An standard XML file that replace the expansion tags should easily be encapsulate in the future.
Copy linkTweet thisAlerts:
@WyCnetFeb 13.2012 — Why are you using Jquery, and Jsclient? I have never used them, I contain no idea on what they offer. The syntax seems cumbersome from the little I have seen on this.site! What are they used for in your secret codes?
Copy linkTweet thisAlerts:
@lotusinauthorFeb 14.2012 — Why are you using Jquery, and Jsclient? I have never used them, I contain no idea on what they offer. The syntax seems cumbersome from the little I have seen on this.site! What are they used for in your secret codes?[/QUOTE]


It is basically using ajax tech, So Juery is here and JsClient is for data interpreting for HTML or XML in the future.

for Jquery. you can reference http://jquery.com/. It is well known for ajax.

JsClient is from tagcgi which will interpret part of the "secret codes".

I believe their first language is not English.

part of the "secret codes" will get run at client side. part of them will get run inside the web service.
Copy linkTweet thisAlerts:
@WyCnetFeb 14.2012 — lotusin,

How large are those libraries? Are they not loaded everytime a jquery page loads? Small overhead for development, and large downloads for users, could be the main idea here. Do browsers realize the library is local when consecutive jquery page fetches are made?
Copy linkTweet thisAlerts:
@lotusinauthorFeb 14.2012 — lotusin,

How large are those libraries? Are they not loaded everytime a jquery page loads? Small overhead for development, and large downloads for users, could be the main idea here. Do browsers realize the library is local when consecutive jquery page fetches are made?[/QUOTE]


JsClient is about 100k. I think browser will cache it automatically because it is static content. It won't change with the consecutive fetching progress.

I believe large downloads is not an issue to the lib even for large scale web apps for something with this size.

There is more interesting things for TagCgi. For it is basically using ajax. so when switch to other page by user's click, less content will be transfer to browser than normal web apps if you want. The static and image file only be requested once for TagCgi app but in php or other tech static file will be requested every time although static file caching will happen for traditional web apps most of the time.

By the way. You don't need to care how to use ajax in TagCgi. You just need to use the "html tag" or "xml tag".
Copy linkTweet thisAlerts:
@lotusinauthorFeb 14.2012 — jQuery is even smaller than jsclient
Copy linkTweet thisAlerts:
@WyCnetFeb 14.2012 — I could run server-client access tests on libraries and such, once a URL can be provided, from where to load them.

There is gateway timing and computer speed tests HTML page at [URL]http://www.wyc3.com[/URL] top right corner on front page called Diagnose.

When that page loads there are three tests that can be perdormed at the bottom the page. I can include links in those pages. However I have stale page stalemate with my host, so it sort-of-works.

Later for user friendliness, I can prompt for a link, then build locally a page with it on it and show the results, from accessing other sites, hosts, aliens, ect.
Copy linkTweet thisAlerts:
@lotusinauthorFeb 15.2012 — I could run server-client access tests on libraries and such, once a URL can be provided, from where to load them.

There is gateway timing and computer speed tests HTML page at [URL]http://www.wyc3.com[/URL] top right corner on front page called Diagnose.

When that page loads there are three tests that can be perdormed at the bottom the page. I can include links in those pages. However I have stale page stalemate with my host, so it sort-of-works.

Later for user friendliness, I can prompt for a link, then build locally a page with it on it and show the results, from accessing other sites, hosts, aliens, ect.[/QUOTE]



Yes interesting but complex pages. willing to help if you need.
Copy linkTweet thisAlerts:
@WyCnetFeb 15.2012 — lotusin,

I managed to load jquery.min from a web url, in my tests. Before I could approximately set my local clock based on the true server time, now the times are stale.

I may have to go in through a form post to get it perfect. Now it is only a resource request.
Copy linkTweet thisAlerts:
@lotusinauthorFeb 16.2012 — I developed my static site using with HTML tags. I am also developing my blog with html.[/QUOTE]

Is it for dynamic programming?
Copy linkTweet thisAlerts:
@lotusinauthorFeb 16.2012 — There is blog project named cgiblog.com. It is writen by pure html without any dynamic scripts(server side scripts also written using HTML). Unbelievable so HTML can be used as PHP.....?[/QUOTE]


XML support added. So you can write codes with HTML or XML in an standard XML file.
Copy linkTweet thisAlerts:
@lotusinauthorFeb 16.2012 — No we can not develop dynamic website using with HTML tags. For that you need to develop your site with java, .net or php programming language.[/QUOTE]

It is from TagCgi.

One object of TagCgi is to make web developers using XML or HTML to conduct most of the dynamic program developing work by simple HTML or XML tags. Low the investment and boost the performance. Try to simplify the development by XML or HTML prior to the hard complex scripts coding.

As we all know. HTML or XML is not designed for dynamic programming, but actually lots of web developing just arranging, composting, manipulating the data or simple calculation. HTML is specialize in data interpreting so it is very common and easy things to be conducted by extensions of HTML. You also can write XML to conduct the same work with an standard XML file. Writing scripts will be the second option for the economy reason..
×

Success!

Help @lotusin spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...