![]() |
| gestion des dates et utilisation comme cgi avec RED ? | |
| rosanoff | 29-Mar-2014/14:38:39+1:00 |
| Bonjour, voilà je commence à tester REDF et il est super, mais il me manque deux choses importantes pour pouvoir l utiliser dans des petits projets. 1: la gestion des dates 2: un mode cgi pour le web. je pense que le cgi suffit car une fois compilé RED est très rapide. bon dev à tous. | |
| ldci | 31-Mar-2014/9:03:42+2:00 |
| Slt Pour les dates, regarde dans le portage de C-lib par Kaj de Vos. A + | |
| GreG | 31-Mar-2014/9:35:58+2:00 |
| Il y a aussi ce fil sur la mailing list Red: https://groups.google.com/forum/#!searchin/red-lang/cgi/red-lang/CDmbii-VVFk/tRsS-m8btSwJ Un extrait de la ML:
Here's a rather minimal Red CGI script:
Red []
print "Content-type: text/plain"
print ""
print "hello, world!"
I saved that as `hello.red`, and compiled it to a Linux binary `hello`,
which I then uploaded as `hello.cgi` to my webserver.
Along with the CGI, I also put a `.htaccess` file on the webserver, with
the following contents:
Options +ExecCGI
And that's it!
Invoking the CGI gives the expected "hello, world!" output. You can have a look for yourself: http://bolka.at/2012/red/hello.cgi | |
| rosanoff | 2-Apr-2014/10:09:12+2:00 |
| Bonjour, Merci pour vos réponses, je commence à étudier une solution pour la gestion de date. si cela fonctionne je posterai le résultat. Bon dev à vous tous. | |
|
Login required to Post. | |