Is it possible to use Dart lang for Apach server?

Started by
7 comments, last by SimonForsman 9 years, 4 months ago

The game client is written in Dart in the browser, it is necessary to organize the data record from the client (browser) to the database on the hosting. Can't understand how to do this in the native language of literature is not, please help and not be judged for "google translate"

Advertisement
Yes, you can use Dart language server-side within Apache, with the (unsupported) mod_dart plug-in:

http://news.dartlang.org/2012/05/run-dart-in-apache-web-server.html
enum Bool { True, False, FileNotFound };

Yes, you can use Dart language server-side within Apache, with the (unsupported) mod_dart plug-in:

http://news.dartlang.org/2012/05/run-dart-in-apache-web-server.html

What it means is unsupported? In fact, Dart will work in the server on Apache?

If you go the other how to access PHP code from dart client, how to implement it?

In the release article, there is this disclaimer:

Note: I wouldn't put this on a public host for now, there are probably bugs!


Also, the last commit was 2 years ago, so I don't think it's actively maintained.

That being said, if you clone it and build it and install it for your Apache host, you can likely use Dart in Apache:

https://github.com/sam-mccall/mod_dart

If you go the other how to access PHP code from dart client, how to implement it?


Easiest is to decide on an intermediate representation, such as XML or JSON.
Then write POST handlers in PHP, and POST to your Apache/PHP server from your Dart client.
enum Bool { True, False, FileNotFound };

You can run Dart itself on a server using Dart.io, what's the need for Apache exactly? If you're doing something relatively simple perhaps its sufficient for your needs to write your own webserver in Dart itself, for example serving static pages ought not be too difficult. Depending on what you're using from PHP, it might not be beyond possibility to provide that functionality yourself.

throw table_exception("(? ???)? ? ???");

It sounds like the OP wants to use a Dart client with a PHP server and communicate between them, which would mean that the server really is irrelevant.

[size="1"]I don't suffer from insanity, I'm enjoying every minute of it.
The voices in my head may not be real, but they have some good ideas!

In the release article, there is this disclaimer:

Note: I wouldn't put this on a public host for now, there are probably bugs!


Also, the last commit was 2 years ago, so I don't think it's actively maintained.

That being said, if you clone it and build it and install it for your Apache host, you can likely use Dart in Apache:

https://github.com/sam-mccall/mod_dart

If you go the other how to access PHP code from dart client, how to implement it?


Easiest is to decide on an intermediate representation, such as XML or JSON.
Then write POST handlers in PHP, and POST to your Apache/PHP server from your Dart client.

Then a more specific question. Is it possible to Dart to send POST request to a server, and then accept the result at the same place in the script and not updating the page?

In the release article, there is this disclaimer:

Note: I wouldn't put this on a public host for now, there are probably bugs!


Also, the last commit was 2 years ago, so I don't think it's actively maintained.

That being said, if you clone it and build it and install it for your Apache host, you can likely use Dart in Apache:

https://github.com/sam-mccall/mod_dart

If you go the other how to access PHP code from dart client, how to implement it?


Easiest is to decide on an intermediate representation, such as XML or JSON.
Then write POST handlers in PHP, and POST to your Apache/PHP server from your Dart client.

Then a more specific question. Is it possible to Dart to send POST request to a server, and then accept the result at the same place in the script and not updating the page?

yes it is.

http://stackoverflow.com/questions/14558210/send-data-between-php-and-dart

[size="1"]I don't suffer from insanity, I'm enjoying every minute of it.
The voices in my head may not be real, but they have some good ideas!

This topic is closed to new replies.

Advertisement