Jump to content

supertrucker

Members
  • Posts

    171
  • Joined

  • Last visited

Everything posted by supertrucker

  1. I need a simple PHP script that can do the following. Access an email account and plug the messages into an array. If the message contains specific keywords, then update a database with the new data. Delete all the messages. I already have the database part figured out, but I have no idea how to access a POP account using PHP. Once I have the email messages sorted into an array I can figure out what to do with them. I just need to know how to access the email, and how to remove them when the script finishes running. The email account I'd use would be specific for this procedure only.I know PHP offers the mail command for sending mail, but I can't find any good sites on the internet here that guide you through the process of accessing email using a PHP script. If anybody knows of a good site that has tutorials on this topic I'd appreciate it very much!!Thank you,Supertrucker
  2. Dang it, I just discovered that it doesn't, so I'll answer my own question. I'm an idiot! Any suggestions on what to do instead?
  3. Thanks for your help. I've been reading up quite a bit lately on the WURFL, so I think that I will use their resources for site/device compatibility, just as soon as I figure out how to drop the right code in!Supertrucker
  4. You're absolutely right! I'm an idiot! I'm learning, but it seems like I have to walk in to a wall about a dozen times before I finally get something right with web authoring. Actually, I don't even have to declare the MIME type, from what I understand, it's automatically sent by the server... I think that's how it works at any rate, something to do with an .htaccess file?Thanks for the suggestion.Supertrucker
  5. I'm trying to plug a dynamic header into my PHP code, and all I currently have is this JSP code I found on theDevelopers Home site. I would really appreciate it if somebody could help me convert this code to PHP! I don't know JSP and could frankly, live quite peacefully, if I never have to learn another scripting language! For being a novice at this whole web authoring thing, I think I'm doing pretty well considering I now have a limited knowledge of, and history of, html+, xhtml, xhtml-mp, wml, wap, php... What I don't want to do IS LEARN ANOTHER!!! You can probably tell I'm a bit frustrated!I'm having fun! However, this code below here might as well be in hieroglyphics! All I need is a straight conversion in PHP. <%String acceptHeader = request.getHeader("accept");if (acceptHeader.indexOf("application/vnd.wap.xhtml+xml") != -1) response.setContentType("application/vnd.wap.xhtml+xml");else if (acceptHeader.indexOf("application/xhtml+xml") != -1) response.setContentType("application/xhtml+xml");else response.setContentType("text/html");%> Thank you a thousand-fold in advance!Supertrucker
  6. Okay, as a novice web author, I'm becoming extremely frustrated with the lack of good information on xhtml-mp. Some sites recommend just using xhtml-basic for WAP browsers, or simply using WML. Other sites suggest using strictly xhtml-basic and using a parser to convert the xhtml code to WML. So, trying to conform to standards, and possibly having a HUGE lack of understanding, I set all the DTD's and headers in my pages for XHTML-MP, it's supposed to the be the new WAP 2.0, right? After I did this, however, my pages stopped validating. Here is the message I got from the W3C Validator: Am I missing something obvious here? I would like to keep my site conformed to xhtml-mp, but I guess if I have to, I can set it back to XHTML-basic. It must be something I am missing, because w3c sets the standards for xhtml-mp! I could really use some help, before I begin using this PC as a boat anchor!ps. I guess I should also add that I am using the xhtml-mp in PHP scripts, but the page should still validate as xhtml-mp, right? Here's the header and DTD I'm using if it should be relevant:<?php header('Content-type: application/vnd.wap.xhtml+xml'); echo '<?xml version="1.0"?' . '>';?><!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> Thank you,Supertrucker
  7. Hello all, don't know if I'll be able to add many contributions, but I do find W3schools a gold mine!
  8. Thank you all for your help. I also found links to emulators on the xml.com web site, here, if anybody else reads this topic with the same question as myself.Thanks again,Supertrucker
  9. Why does wm3 not have any information or tutorials on xhtml-mp? It is inside the scope of the w3c to set standards, right? I actually had to use another web site for learning the syntax of it, and what DTD to use! I just thought that MP would be included in your tutorials, particularily in the WAP tutorials.For those of you that actually read this topic and are curious about xhtml-mp, I found a tutorial at xml.com, that helped me out quite a bit. Click the link and it will take you to their MP tutorial. As a novice, it took me a couple days to figure out how to use MP with PHP, but if someone is in the same "dummy" complex as me, here is a barebones 'template' of how to use XHTML-MP in PHP. I've never used Perl or any other server side scripting, but I'm sure it uses basically the same syntax as follows: <?php header('Content-type: application/vnd.wap.xhtml+xml'); echo '<?xml version="1.0"?' . '>';?><!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title></head><body></body</html> I apologize if my question is a repeat, and for putting the code in the suggestions forum, but I did a search for 'xhtml-mp' and my results amounted to zilch. The code fit into the scope of my question, so that's why I included it here. Please accept my apology if you're affended!Peace,Supertrucker
  10. I'm trying to develop a WAP site, and am having trouble locating any free emulators out here on the web. If anybody has any links they could give me, I'd be greatly indebted to you! The only mobile device I can test my site on is my Nokia 6102i! I'd hate for every visitors display to be based on what I think they should see from my mobile phone! Peace,Supertrucker
  11. I used the XHTML, CSS and the WML validator against my site. All the validators seem to be working except for the WML validator. I use Opera 9.02, and the WML validator didn't work at all. I used IE Explorer 6.0 and the paste version of the validator worked, but the site address one didn't. Anybody else having problems with the WML validator??Supertrucker
×
×
  • Create New...