php-windows Digest 22 Nov 2009 16:15:25 -0000 Issue 3727

Topics (messages 29714 through 29716):

Re: php and silverlight
        29714 by: Sascha Meyer
        29715 by: Pierre Joye

PHP doesn't execute .php files but rather opens the source code file
        29716 by: ScottRHamilton.web.de

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 ---
Hi Harpreet,

Harpreet wrote:
> 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.
Once again:

Silverlight can be embedded to *any* kind of web page, it does not have to be 
embedded into a PHP file. To give you an overview of the process, here are the 
steps being processed when the silverlight app is called:
1.) the client access the web page with the XAP file embedded
2.) the client's browser checks if there is a file association for xap files, 
resulting in Silverlight being called if it is installed
3.) the silverlight component loads the embedded XAP file
4.) the init routine of your silverlight project is called
5.) your silverlight project is now running on the client, in the webbrowser 
security context

If your silverlight accesses data from a remote database server, the data 
access is not being handled by the server which served your XAP file but the 
connection is directly been made by the user's client PC.

Hope some question marks are gone now :-)

Regards, Sascha
-- 
Preisknaller: GMX DSL Flatrate für nur 16,99 Euro/mtl.!
http://portal.gmx.net/de/go/dsl02

--- End Message ---
--- Begin Message ---
hi,

On Fri, Nov 20, 2009 at 2:47 PM, Harpreet <harpr...@crispincorp.com> wrote:
> 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

Silverlight is on the client side, a browser or a desktop application.
PHP, ASP.net or whatever else you use is on the server. Silverlight
calls an URL to fetch some data, this data can be XML, JSON or plain
text, it will then process it to display it.

I would suggest to read some silverlight tutorials to have some basic
ideas about how it works and then ask PHP specific questions. If it
happens that you will use PHP for the server side.

Cheers,
-- 
Pierre

http://blog.thepimp.net | http://www.libgd.org

--- End Message ---
--- Begin Message ---
Hello,

this is a newbee question, so my apologies if it is too bone-headed.

When double chicking .php files  in the browser the php file does not execute 
but  rather the source code
file in the browser is opened which I'm sure is not what is suppose to happen.

For example, if I type http://localhost/amfphp/services/HelloWorld.php the 
following simply gets displayed:

<?
class HelloWorld
{
    function HelloWorld()
    {
        $this->methodTable = array
        (
            "say" => array
            (
                "access" => "remote",
                "description" => "Pings back a message"
            )
        );
    }
 
    function say($sMessage)
    {
        return 'You said: ' . $sMessage;
    }
}
?>

Scott Hamilton
scottrhamil...@web.de




--- End Message ---

Reply via email to