php-windows Digest 20 Nov 2009 13:50:29 -0000 Issue 3726
Topics (messages 29705 through 29713):
Re: php and silverlight
29705 by: Elizabeth M Smith
29706 by: Harpreet
29708 by: Elizabeth M Smith
29709 by: Harpreet
29710 by: Sascha Meyer
29711 by: Harpreet
29712 by: Jarrett Meyer
29713 by: Harpreet
UNSUBSCRIBE me please
29707 by: marribeth.tampabay.rr.com
Administrivia:
To subscribe to the digest, e-mail:
php-windows-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-windows-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-wind...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
Harpreet wrote:
Can I use LINQ with PHP??
Yes - well kind of ;)
http://www.codeplex.com/PHPLinq
Thanks,
Elizabeth Smith
--- End Message ---
--- Begin Message ---
I plan to make a webservice that will connect to my sql server database
and then the silverlight datagrid control can interact with my web
service.
But the problem now is my app is PHP and is hosted on apache. Where will
I host my web service - IIS. Can I have apache and iis on the same
machine.
-----Original Message-----
From: Jarrett Meyer [mailto:jarrettme...@gmail.com]
Sent: Wednesday, November 18, 2009 11:47 AM
To: php-wind...@lists.php.net
Subject: Re: [PHP-WIN] php and silverlight
Depending on the complexity of the data being served, I recommend
writing a
POX endpoint in your web page and using WebRequest/WebResponse methods
to
manually grab your data. Always been faster for me than screwing around
with
WCF.
Then you can display the Silverlight xap as an embedded object.
--
Jarrett Meyer
Email: jarrettme...@gmail.com
Web: JarrettMeyer.com
On Wed, Nov 18, 2009 at 11:35 AM, Harpreet <harpr...@crispincorp.com>
wrote:
> I am trying to embed a silverlgiht project into php and like to use
some
> sql server data to display in the silverlight project. What is the
best
> way to go. Thanks
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Harpreet wrote:
I plan to make a webservice that will connect to my sql server database
and then the silverlight datagrid control can interact with my web
service.
But the problem now is my app is PHP and is hosted on apache. Where will
I host my web service - IIS. Can I have apache and iis on the same
machine.
You can if they're run on different ports... but it would be far easier
just to move PHP onto IIS as well...
Thanks,
Elizabeth Smith
--- End Message ---
--- Begin Message ---
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
-----Original Message-----
From: Elizabeth M Smith [mailto:auroraeosr...@gmail.com]
Sent: Thursday, November 19, 2009 10:57 AM
To: php-wind...@lists.php.net
Subject: Re: [PHP-WIN] 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
--- End Message ---
--- Begin Message ---
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:auroraeosr...@gmail.com]
Sent: Thursday, November 19, 2009 10:57 AM
To: php-wind...@lists.php.net
Subject: Re: [PHP-WIN] php and silverlight
Harpreet wrote:
Can I use LINQ with PHP??
Yes - well kind of ;)
http://www.codeplex.com/PHPLinq
Thanks,
Elizabeth Smith
--- End Message ---
--- Begin Message ---
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:harlequ...@gmx.de]
Sent: Thursday, November 19, 2009 4:13 PM
To: Harpreet
Cc: php-wind...@lists.php.net
Subject: Re: [PHP-WIN] 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:auroraeosr...@gmail.com]
> Sent: Thursday, November 19, 2009 10:57 AM
> To: php-wind...@lists.php.net
> Subject: Re: [PHP-WIN] php and silverlight
>
> Harpreet wrote:
>> Can I use LINQ with PHP??
>>
>
> Yes - well kind of ;)
>
> http://www.codeplex.com/PHPLinq
>
> Thanks,
> Elizabeth Smith
>
--- End Message ---
--- Begin Message ---
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: jarrettme...@gmail.com
Web: JarrettMeyer.com
On Thu, Nov 19, 2009 at 4:33 PM, Harpreet <harpr...@crispincorp.com> 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:harlequ...@gmx.de]
> Sent: Thursday, November 19, 2009 4:13 PM
> To: Harpreet
> Cc: php-wind...@lists.php.net
> Subject: Re: [PHP-WIN] 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:auroraeosr...@gmail.com]
> > Sent: Thursday, November 19, 2009 10:57 AM
> > To: php-wind...@lists.php.net
> > Subject: Re: [PHP-WIN] 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
>
>
--- End Message ---
--- Begin Message ---
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:jarrettme...@gmail.com]
Sent: Thursday, November 19, 2009 5:16 PM
To: php-wind...@lists.php.net
Subject: Re: [PHP-WIN] 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: jarrettme...@gmail.com
Web: JarrettMeyer.com
On Thu, Nov 19, 2009 at 4:33 PM, Harpreet <harpr...@crispincorp.com>
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:harlequ...@gmx.de]
> Sent: Thursday, November 19, 2009 4:13 PM
> To: Harpreet
> Cc: php-wind...@lists.php.net
> Subject: Re: [PHP-WIN] 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:auroraeosr...@gmail.com]
> > Sent: Thursday, November 19, 2009 10:57 AM
> > To: php-wind...@lists.php.net
> > Subject: Re: [PHP-WIN] 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
>
>
--- End Message ---
--- Begin Message ---
UNSUBSCRIBE me please
--- End Message ---