Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Displaying the web into a prim...

Steve Memotech
Registered User
Join date: 27 Mar 2007
Posts: 20
03-29-2007 19:12
Hi All,

I just wanna to ask if there is a way to to display a web content to a prim. I mean I have already made statistics record thru PHP code and I want it to display the result in a certain prim in SecondLife. The statistics record I made is based from the students outstanding results and I want it to display in a certain prim in SeconLife, so that everybody when they are enter in SecondLife can see the result. I mean also a LSL script that will get the result of the PHP script I made. Thanks in advance.
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
03-29-2007 19:22
If you want to display the actual page from the web, then the only way to do that is through the "web" tab on your profile...which isn't exactly on a prim inside SL.

If all that is important is the information, you can have your prim receive an email from the PHP page whenever it is updated, and update a floating text value with the new scores or whatnot.

Your PHP mail function would just be a standard mail(); function

Your LSL script would have an llGetNextEmail(ADDRESS, SUBJECT); on a timer and an email event to parse through any e-mail received.
_____________________
--AeonVox--

Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
03-29-2007 20:00
if it were me and i was setting up a fixed rate timer instead of reading e-mail id just read a preformated webpage but whatever suits you best
Steve Memotech
Registered User
Join date: 27 Mar 2007
Posts: 20
03-29-2007 21:02
From: Osgeld Barmy
if it were me and i was setting up a fixed rate timer instead of reading e-mail id just read a preformated webpage but whatever suits you best



I am not talking with emails concern. What i am going to have solution is that, it is possible to view a webpage in a certain prim. Example, i will create a billboard then that billboard has a script that will get the data based on my php script I code.
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
03-29-2007 21:17
html on a prim doesnt exist, so your options are to email plaintext to an object or have lsl read plaintext direct from your website then fake an interface, either by simple hovertext or whatever

email can be unreliable, so it seems like extra problems when its coming from a dynamic site anyway IMO
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
03-29-2007 21:56
wasn't there a way to make a quicktime feed of a webpage? THAT you could display on a prim... if you owned the land. (seems easier to just upload a texture)
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
03-29-2007 22:02
no qt wont display webpages, ive tried becuase wouldnt it be nice to teach class, show photo galleries (dynamic ones too) or whatever else

:(

if you wanted to, what would work is to generate images with image magik, then show those tru quicktime, but then you still have the issue of "does everyone have qt installed and running?" i know i dont let it run every second im on the computer ...
Thraxis Epsilon
Registered User
Join date: 31 Aug 2005
Posts: 211
03-29-2007 22:24
Linux users do not have Quicktime at all
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
03-30-2007 01:37
From: someone
no qt wont display webpages, ive tried becuase wouldnt it be nice to teach class, show photo galleries (dynamic ones too) or whatever else


Oh really?
/327/e2/139704/1.html
(pay special attention to post #5 in that thread)

There's also THIS approach:
http://www.jeff-barr.com/?p=607
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
Seidr Giha
Registered User
Join date: 21 Mar 2007
Posts: 8
03-30-2007 01:42
If all you're looking to display is a set of statistics, then you may be able to process a HTTP request. You are able to use up to 2048 characters I believe, which should be more than enough to transfer a few stats, if not then perhaps a command and variable system could be used, allowing your LSL script to retrieve certain information from a PHP interface.
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
03-30-2007 01:55
From: Seidr Giha
If all you're looking to display is a set of statistics, then you may be able to process a HTTP request. You are able to use up to 2048 characters I believe, which should be more than enough to transfer a few stats, if not then perhaps a command and variable system could be used, allowing your LSL script to retrieve certain information from a PHP interface.



Or chain multiple HTTP responces.
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
03-30-2007 02:03
Yeah I'm starting to consider the need to do a little php scripting to power my products.
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
Seidr Giha
Registered User
Join date: 21 Mar 2007
Posts: 8
03-30-2007 02:13
The nice thing about interfacing with PHP is that communication can be two way, utilizing the XML-RPC interface to send HTTP request "IDs" to an object, which can then retrieve the full body of information from the PHP data server. (XML-RPC in SL can only transmit a 255 length string and an integer number, not enough for any sizable information but enough to point the object to a unique PHP request, i.e. dataServ?id=00012932)
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
03-30-2007 21:22
From: Winter Ventura
Oh really?
/327/e2/139704/1.html
(pay special attention to post #5 in that thread)

There's also THIS approach:
http://www.jeff-barr.com/?p=607



yea thats a dynamic picture of a webpage, we know qt does images thats why i suggested image magik for output, generated by a website