RE: php and silverlight

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am creating a c# silverlight application using VS2008 using a datagrid
to display data and now I am using linq to sql to get data into the
grid.

This should work with my php app once packaged into an XAP file and
embedded into my php page.

That's the only way I know...yes or no.

If no then I need to know the simplest way to do it as I am too new to
this and I have so many choices. And I am looking at a more dynamic site
and a cleaner look.

Sorry to keep posting but I have not gotten a clear answer. Thanks



-----Original Message-----
From: Jarrett Meyer [mailto:jarrettmeyer@xxxxxxxxx] 
Sent: Thursday, November 19, 2009 5:16 PM
To: php-windows@xxxxxxxxxxxxx
Subject: Re:  php and silverlight

You'll must to write the Silverlight application in a Microsoft .NET
language. That cannot be done in PHP.

You do not have to use IIS services to get data into and out of
Silverlight.
Any XML, JSON, even RSS endpoint will do. While you can write .NET
services
(either WCF or ASMX), do not feel like this is a must. Silverlight uses
a
very simple asynchronous WebRequest and WebResponse model.

Your data feeds can be written in PHP and hosted on Apache, and you can
embed Silverlight as a simple embedded object in plain old HTML. There
is no
reason to invest any time/effort/resources in setting up IIS just
because
you want Silverlight components on a web page.

As of earlier this fall with Silverlight 3, you can host Silverlight
out-of-browser, same as Flash. However, unlike Flash, the out-of-browser
Silverlight player remains in Internet Trust. It can never be promoted
to
Full Trust the way Flash out-of-browser application can.

--
Jarrett Meyer
Email: jarrettmeyer@xxxxxxxxx
Web: JarrettMeyer.com


On Thu, Nov 19, 2009 at 4:33 PM, Harpreet <harpreet@xxxxxxxxxxxxxxx>
wrote:

> OK so I can create a silverlight web app use a datagrid ..populate it
> with my sql server database ...compile it and embed into my php page
as
> an xap file.
>
> I think I am missing something?? I can do all this in apache.
>
> -----Original Message-----
> From: Sascha Meyer [mailto:harlequin2@xxxxxx]
> Sent: Thursday, November 19, 2009 4:13 PM
> To: Harpreet
> Cc: php-windows@xxxxxxxxxxxxx
> Subject: Re:  php and silverlight
>
> Hi Harpreet,
>
> Harpreet schrieb:
> > Why do u say kind of .. there is an nice tutorial where a
silverlight
> > datagrid is created with a linq to sql class. Can I embed this into
my
> > php code hosted on apache...please help I am stuck
> because Elisabeth' example shows how to mimic C#'s linq functionality
> with a serverside PHP script instead of calling a clientside
Silverlight
>
> app with an embedded datagrid control.
>
> Silverlight was intended to be some kind of an alternative (or better
> competitor) to Adobe's Flash player: Silverlight and Flash
applications
> both run on the client side, applications are embedded in a website or
> called externally by the Flash player Standalone (don't know if there
is
>
> a standalone Silverlight player).
>
> In your case you could create a Silverlight application and embed this
> into one of your pages or you could create a serverside application
with
>
> PHP which provides the functionality you desire.
>
> Regarding your other question about Apache and IIS on one machine
(which
>
> may be obsolete now):
> 1.) You can have your PHP scripts run on IIS as well
> 2.) Simply change your HTTP port in Apache (in httpd.conf) to
something
> like 8080 and install IIS afterwards, it will use port 80
automatically
> if is available
> 3.) You can also call and control windows applications / components
> (like ADODB.Recordsets and so on) with various PHP functions, so you
> probably don't have to use IIS additionally to your Apache
>
> Best regards,
>
> Sascha
>
> >
> > -----Original Message-----
> > From: Elizabeth M Smith [mailto:auroraeosrose@xxxxxxxxx]
> > Sent: Thursday, November 19, 2009 10:57 AM
> > To: php-windows@xxxxxxxxxxxxx
> > Subject: Re:  php and silverlight
> >
> > Harpreet wrote:
> >> Can I use LINQ with PHP??
> >>
> >
> > Yes - well kind of ;)
> >
> > http://www.codeplex.com/PHPLinq
> >
> > Thanks,
> > Elizabeth Smith
> >
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux