|
|
| Author |
Message |
|
| Guest |
Posted: Tue Dec 29, 2009 8:41 pm |
|
|
|
Guest
|
This is my first day using Erlang/Yaws and I doubt I will ever choose
to develop using Apache/PHP again.
I need to tell my website visitors what city, region and country I
think they are from. I understand this can be done with erlang using
egeoip.
http://code.google.com/p/egeoip/
http://egeoip.googlecode.com/svn/trunk/egeoip/
However I haven't a clue how to make egeoip work with Yaws.
<erl>
out(Arg) ->
{html, "I think you are from {get_location_with_egeoip}"}.
</erl>
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Tue Dec 29, 2009 11:33 pm |
|
|
|
Guest
|
Hank Knight wrote:
>
> However I haven't a clue how to make egeoip work with Yaws.
>
> <erl>
> out(Arg) ->
> {html, "I think you are from {get_location_with_egeoip}"}.
> </erl>
Try:
<erl>
out(A) ->
{html, ["I think you are from", mymod:get_location(A)]}.
</erl>
And then write mymod.erl and make sure it's beam file is in the
load path
/klacke
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|