www.webdeveloper.com
Results 1 to 3 of 3

Thread: wap php and mime types

  1. #1
    Join Date
    Apr 2004
    Location
    Warning: main(location.php): failed open stream
    Posts
    1,119

    wap php and mime types

    Heres the deal
    I want to add wap access to my website but I want to make it dynamic the content in it so I'm using php, if I view a php file in a wap browser it wont load because it is sent to a application/x-httpd-php mime type, but if I overide mime types and make .wml files mimetype application/x-httpd-php will this still work, is there a wap version of application/x-httpd-php?

  2. #2
    Join Date
    Jan 2005
    Location
    Alicante (Spain)
    Posts
    7,742
    By default .php files are served with text/html mime type.

    Text WML docs should be served as text/vnd

    PHP Code:
    header('Content-Type: text/vnd'); 
    Last edited by bokeh; 01-02-2006 at 01:50 PM.

  3. #3
    Join Date
    Apr 2004
    Location
    Warning: main(location.php): failed open stream
    Posts
    1,119
    ohh I see what I did wrong last night I did what you said as well and there was a php syntax error in my code and i didn't pick up on it.
    but now I fixed up the line and I used
    PHP Code:
        header('Content-type: text/vnd.wap.wml'); 
    thanks any way.

    are you willing to share your validate_email.php script on your site?

    [my email: derango@gmail.com]

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles