Discussion Board

Results 1 to 9 of 9

Thread: php in wrt?

  1. #1
    Regular Contributor florianhaar's Avatar
    Join Date
    Aug 2009
    Posts
    50
    Hello again,

    i want ask if i can use php in the wrt. So when there is a chance, can someone tell me how i can do this?

    thanx
    florianhaar

  2. #2
    Nokia Developer Champion jappit's Avatar
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,391
    Hi florianhaar,

    PHP is a server side language, so you cannot use it INSIDE a Web Runtime widget.

    What you can do is to use it on a remote server to receive/send data from/to your widget.

    Pit

  3. #3
    Regular Contributor florianhaar's Avatar
    Join Date
    Aug 2009
    Posts
    50
    Hello jappit,

    i have this

    $Version="1"; auth="user"; loc="50.9435,6.9582"; $Path=/.../...

    it is for a cookie. But how can I send this to the server? That is my biggest problem.

    Hope you or someone can help me.

    thanx
    florianhaar

  4. #4
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,671
    you could try normla HTTP queries, here's some exmaples: http://wiki.forum.nokia.com/index.ph...th_WRT_widgets

  5. #5
    Regular Contributor florianhaar's Avatar
    Join Date
    Aug 2009
    Posts
    50
    do you know in which example they use cookies?

    thanx
    florianhaar

  6. #6
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,671
    Sorry, those were just for the sending to the server, you were asking, only cookie article I know would be this one: http://wiki.forum.nokia.com/index.ph...s_and_with_XHR

  7. #7
    Regular Contributor florianhaar's Avatar
    Join Date
    Aug 2009
    Posts
    50
    ok, i read this article, but that is not helpful.

    thanx
    florianhaar

  8. #8
    Registered User orangemarques's Avatar
    Join Date
    Sep 2009
    Posts
    1
    Hi florianhaar,

    use javascript.
    Look one example here: http://www.w3schools.com/JS/js_cookies.asp.

    Br,
    Orange Santos

  9. #9
    Registered User jzferreira's Avatar
    Join Date
    Sep 2008
    Location
    Manaus, Brazil
    Posts
    109
    Hi florianhaar,

    You can't use cookie in WRT. Actually, do you need to pass information to the server? This server is yours? You can pass by url or try to pass with POST METHOD. If you need to persist a data in device you should use widget.setPreferenceForKey(value, key);
    Javier Zambrano Ferreira

Similar Threads

  1. help php
    By sarah99 in forum Mobile Web Site Development
    Replies: 2
    Last Post: 2008-01-18, 03:14
  2. php and xhtml
    By zac123 in forum Browsing and Mark-ups
    Replies: 2
    Last Post: 2005-01-16, 04:00
  3. Php Problem: cannot load http://www.aaa.com/op.php 500 server error
    By plmanikandan in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2004-12-01, 00:45
  4. PHP & WML: How can a PHP-Page send a WML-Page to the phone?
    By TheLetti in forum Mobile Web Site Development
    Replies: 2
    Last Post: 2003-05-15, 17:59
  5. php and AT commands
    By kigunda in forum Smart Messaging
    Replies: 0
    Last Post: 2002-09-10, 13:04

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved