Microsoft, Palm Launch 'App Stores' Hardware and Software Microsoft Windows by EddieC … latest version. Microsoft's new site, dubbed [url=http://marketplace.windowsphone.com/Overview.aspx]Windows Marketing for Mobile[/url], includes a…-US/category/windowsmobile/]user forum[/url] or [url=http://developer.windowsphone.com/Default.aspx]developer community[/url]. At launch, Microsoft claimed… Can Not Modify Header Information Programming Web Development by DaveyMoyes …(strstr($ua,'lackerry') || strstr($ua,'playbook')) { header('Location: '.$url); exit(); } //WindowsPhone if(strstr($ua,' windows phone os')) { header('Location: '.$url); exit… Re: Can Not Modify Header Information Programming Web Development by DaveyMoyes …,'lackerry') || strstr($ua,'playbook')) { header("Location: $url"); exit(); } //WindowsPhone if(strstr($ua,'windows phone os')) { header("Location: $url… The future! Community Center Geeks' Lounge by Slavi [Google's new look](https://com.google/) Microsoft announced that they are making their own Linux OS [MSDOS mobile](http://www.windowsphone.com/en-gb/store/app/ms-dos-mobile/8573c4a8-b9df-4409-90a6-dad2dc0b6b26) Re: Nokia lumia 920 and c# Programming Software Development by pritaeas Depends on how you created it. Read more [here](http://developer.windowsphone.com). Re: Optical Character Recognition App For Windows Phone Programming Mobile Development by Amer.Basel … it. Here is the link for that demo: http://www.windowsphone.com/en-us/store/app/ocr-demo/62540582-60c6-4f21… Re: A App for windows phone 8 Programming Software Development by pritaeas http://dev.windowsphone.com/en-us/develop Re: Can Not Modify Header Information Programming Web Development by LastMitch **@DaveyMoyes** >Can not modify headers information - header already sent - etc etc On line 20 It means that you are sending the information twice. You can't used this that many times: `header('Location: '.$url);` Re: Can Not Modify Header Information Programming Web Development by DaveyMoyes Hi, thanks for your reply, I have the same file working on a different website I help manage, I have simply copied and pasted the contents and changed the url. Confused as to why it works on one website and not on the other. Re: Can Not Modify Header Information Programming Web Development by LastMitch **@DaveyMoyes** >Hi, thanks for your reply, I have the same file working on a different website I help manage, I have simply copied and pasted the contents and changed the url. >Confused as to why it works on one website and not on the other. I think you put the `semi-colon ;` on the end of this statement: This is your old code: `if(… Re: Can Not Modify Header Information Programming Web Development by DaveyMoyes @LastMitch - Thanks buddy, I have tried that, but still getting the same error - Its driving me nuts, I have even changed the header information to <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> To see if that was the cause, but nope, still the same errors Re: Can Not Modify Header Information Programming Web Development by LastMitch **@DaveyMoyes** Try to used `$_SERVER['PATH_INFO']` Instead of this: `$ua = strtolower($_SERVER['HTTP_USER_AGENT']);` Try this: `$ua = strtolower($_SERVER['PATH_INFO']);` Re: Can Not Modify Header Information Programming Web Development by DaveyMoyes @LastMitch - Hi, Just tried that but just get a blank screen now, no errors, but It doesnt redirect to the mobile website.... Re: Can Not Modify Header Information Programming Web Development by LastMitch **@DaveyMoyes** >Hi, Just tried that but just get a blank screen now, no errors, but It doesnt redirect to the mobile website.... It means it pass your variables but not redirecting to the page Re: Can Not Modify Header Information Programming Web Development by LastMitch **@DaveyMoyes** For your `$url` Change this: `$url = "http://m.domain.com";` to this: `$url = "https://". $_SERVER['SERVER_NAME'] . ":" . $sslport . $_SERVER['REQUEST_URI'];` For your header from this: `header('Location: '.$url);` to this: `header("Location: $url");` Tell me what you get? Re: Can Not Modify Header Information Programming Web Development by LastMitch **@DaveyMoyes** I'm not sure what is wrong is your website because you mention to me it does work in other websites? I mean there is lot of changes were made and it still doesn't work! It seems to me either you are doing something wrong or you are not telling me the truth whether you have used this code before. Read this http://www.9lessons.info… Re: Can Not Modify Header Information Programming Web Development by Will Gresham So much wrong information here, if I were you I'd disregard all the things LastMitch has posted. 1. You can use multiple header() calls. 2. $_SERVER['PATH_INFO'] will not give you the UserAgent, it's to do with the query string. 3. All changing the URL to what LastMitch suggested will do is make the page redirect ho HTTPS 4. There is no reason to … Re: Can Not Modify Header Information Programming Web Development by LastMitch **@Will Gresham** >So much wrong information here, if I were you I'd disregard all the things LastMitch has posted. You don't need to be that rude. The issue is that he used this code before and on the other website it work and now it doesn't so I feel he's not telling the truth. I mean do you have a better solution without changing anything? Re: Can Not Modify Header Information Programming Web Development by Will Gresham The issue is that the error is caused by output being sent to browser, including the default headers, and then the script tries to send more headers. I would guess that this file gets included, rather than visited directly, and the files that include this one are sending output before the include/require call is being made. Re: Can Not Modify Header Information Programming Web Development by LastMitch **@Will Gresham** >I would guess that this file gets included, rather than visited directly, and the files that include this one are sending output before the include/require call is being made. It seems you don't know either. You're just guessing. Re: Can Not Modify Header Information Programming Web Development by Will Gresham No, I know what is causing the issue, what I don't know is the environment and when the script is loaded. What I am guessing is that the file gets included from every page on the website, rather than a user going directly to it, which based on the functionality the script is supposed to take is a reasonable assumption. Re: Can Not Modify Header Information Programming Web Development by LastMitch **@Will Gresham** >No, I know what is causing the issue, what I don't know is the environment and when the script is loaded. Well, I'll let you answer this question. It seems to me know the answer. So Finish the thread! **@DaveyMoyes** **Will Gresham** will kindly help you answer this question for you. Re: Can Not Modify Header Information Programming Web Development by DaveyMoyes @LastMitch Firstly, Why would I lie about the script working on a different website ? I have better things to do with my time than lie... Maybe you know your own tricks best.... @Will Gresham - thanks for jumping in here mate, you are right in saying the file is included ie. <?php include("MobileDetection.php"); ?> The … Re: Can Not Modify Header Information Programming Web Development by LastMitch **@Will Gresham @DaveyMoyes** I'm not quite sure why that much down vote on my comment. It's rude so cut it out before I flag this post. Maybe **1** down voted I can understand but **3** down voted that is intentionally. I don't like that please don't do that. Re: Can Not Modify Header Information Programming Web Development by SeanOBrian You've probably checked this out but onething I alwasy scheck when I have this error is whether there are any unseen unicode chars at the top of the file. In Win OSs Phred is a good option. Re: Can Not Modify Header Information Programming Web Development by Will Gresham Your include statement needs to come before pretty much anything else, there should not be any whitespace before any opening php tags, or any after the closing tags. This applies both to the detection script and the file(s) it is included from. Make sure there are no echo statements or anything that would cause the headers to be send in the files … Re: Can Not Modify Header Information Programming Web Development by DaveyMoyes @LastMitch, the reason for the down vote is due to YOU calling me a liar, That is something I am NOT, @SeanOBrian, thanks bud, I will double check. Still scratching my head here tho Re: Can Not Modify Header Information Programming Web Development by DaveyMoyes @Will, I checked, double checked and then checked again. I even tried the solution the other (rude) poster had suggested, same problem, I will have another look over what is going on, the problem is def what you are calling by the script sending out double headers... I just cant stop it... Re: Can Not Modify Header Information Programming Web Development by pritaeas > anything that would cause the headers to be send Note that this can be caused by a BOM marker generated by your text editor if the file is in UTF/Unicode. Re: Can Not Modify Header Information Programming Web Development by scaiferw Possibly PHP is configured differently or is a different version on the two websites. In any case, that "Can not modify headers information - header already sent" stuff is very sensitive. Even a blank line in your source can result in a single carriage return being sent to the browser, which would result in this problem. I've …