11
shank
Re:cell phone identifier / pda.php
  • 2005/2/16 2:22

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


So I found out today that one of my user is useing an Ibook and netscape and since I put the code inheader.php she has been getting redirected to pda.php

Any ideas?

Also I am now getting a parse error of some sortwhen browsing from my cell that didn't happen at first, but can't remember it right now. I'll post it tomorrow.

Thanks again,
Steve

12
mouacy
Re:cell phone identifier / pda.php
  • 2005/2/16 7:15

  • mouacy

  • Not too shy to talk

  • Posts: 138

  • Since: 2002/11/2


Quote:

shank wrote:
So I found out today that one of my user is useing an Ibook and netscape and since I put the code inheader.php she has been getting redirected to pda.php

Any ideas?

Also I am now getting a parse error of some sortwhen browsing from my cell that didn't happen at first, but can't remember it right now. I'll post it tomorrow.

Thanks again,
Steve


If the user is using one of the browser list within the

if(....) condition, then the user will be redirect to the pda.php page and it is supposed to do so.

About the problem, I do get report that some cellphones cannot see anything at all except some errors. sicne the pda.php and all the relate files are not written for WAP or in XML, they will be compiled in the same way as php and html instead of XML. I still want to write the scripts for WAP or XML so they would work better with cellphone browsers... but that will take sometimes because I'm still learning to program.

THERE is a missing file in the package I post ealier... so please download this new package. This pack has the pdaread.php for the news module which will read news to display in the pda/cellphone browser.

http://www.nplaimhlub.com/downloads/files/pdapm.rar

If anyone can improve on my sloppy work and share with us, I would appreciate it a lot.

Thanks for helping out by making use of it.

mouacy

13
mouacy
Re:cell phone identifier / pda.php
  • 2005/2/16 7:20

  • mouacy

  • Not too shy to talk

  • Posts: 138

  • Since: 2002/11/2


Some users may experience problem using this scripts to read news or private messages if the users have too much messages in the inbox or low memory in the browser.

At this point I do not know how much memory is required for these scripts to work properly.

14
shank
Re:cell phone identifier / pda.php
  • 2005/2/17 2:30

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


Quote:

mouacy wrote:

If the user is using one of the browser list within the

if(....) condition, then the user will be redirect to the pda.php page and it is supposed to do so.


Could you tell me which browsers are listed?

if (preg_match("(UP|Windows CE|PPC|Palm|PDA|EPOC|MMP)",$_SERVER//["HTTP_USER_AGENT"]))


She is using netscape to browse and I don't understand why she is getting redirected when other users that use netscape aren't.

Like I said she is using an Ibook also, but I don't know why that would make a difference.

I guess next time I catch her online I could get her to go to the site and then erase part of the if condition and see which one it is that is redirecting her.

Got any ideas?

By the way thank for doing the work on this. If I get it to work right it is going to help me alot.

Steve

15
mouacy
Re:cell phone identifier / pda.php
  • 2005/2/17 6:54

  • mouacy

  • Not too shy to talk

  • Posts: 138

  • Since: 2002/11/2


Ibook operates on Mac OS, therefore I think the condition must have detect her Ibook as PPC. You can remove the PPC and try if that will work.

The code was given to me by Mithandir, so you could ask him what they are too. Or you can do a google search for each of the browser or OS lists in the condition.

Anotherway is to check your server log or webstatistics to see which OS or browser your friend uses.

If you can find out and share with me, it would help me to prevent the same scenario at my site (if it ever happen).

mouacy

16
Mithrandir
Re:cell phone identifier / pda.php

The preg_match code was something I found after googling. I have no special regex skills or user agent knowledge.

17
shank
Re:cell phone identifier / pda.php
  • 2005/2/17 14:52

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


Well my cell phone uses the UP condition so I cut the rest of them. When I catch her online I will find out which one does hers and put the rest back in. Then I'll let you know.

Also I still can't read articles for some reason. any idea on that on?

And when I link on Private messages I get this:
Quote:
Parse error:
parse error, unexpected T_STRING, expecting ',' or ';' in ""/pdapm.php on line 107


Thanks again,
Steve

18
shank
Re:cell phone identifier / pda.php
  • 2005/2/17 19:06

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


You were right. It was PPC that was doing it to the Ibook.

19
mouacy
Re:cell phone identifier / pda.php
  • 2005/2/18 7:20

  • mouacy

  • Not too shy to talk

  • Posts: 138

  • Since: 2002/11/2


Quote:

shank wrote:
Well my cell phone uses the UP condition so I cut the rest of them. When I catch her online I will find out which one does hers and put the rest back in. Then I'll let you know.

Also I still can't read articles for some reason. any idea on that on?

And when I link on Private messages I get this:
Quote:
Parse error:
parse error, unexpected T_STRING, expecting ',' or ';' in ""/pdapm.php on line 107


Thanks again,
Steve


I look at the code on that line:

echo $current&total_messages=$total_messages'>".$pm_arr[$i]->getVar("subject")." ";


I can't really tell if there is anything wrong with that. See if you have the same line. This line works fine with me.

20
shank
Re:cell phone identifier / pda.php
  • 2005/2/18 16:32

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


I just copy and paste your code ove mine, and I still bet the error.

Also, when browsing from a comp when I log out from phpuser.php?op=logout I get this:
Quote:
Warning [PHP]: Cannot modify header information - headers already sent by (output started at /usr/home/sshankle/public_html/pdauser.php:41) in file pdauser.php line 104
Warning [PHP]: Cannot modify header information - headers already sent by (output started at /usr/home/sshankle/public_html/pdauser.php:41) in file pdauser.php line 115

Login

Who's Online

228 user(s) are online (127 user(s) are browsing Support Forums)


Members: 0


Guests: 228


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits