Re: Creating a home screen "web app" for smart phone

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Does this only happen in the iPhone? You say that the application works in your computer. Do you have the same problem in your computer (non-iPhone)?

I am not suggesting you stop proceeding on the path you are on but I think you should solve the problem of the behavior being different for Safari if that is the case. If that is possible and I think it is. I think it is a problem of how Safari opens links, or something like that. I however know nothing more about Safari and iPhones and such to be able to help more, sorry.

Friday, April 24, 2020 10:30 AM
I’ve written a PHP script that is served from my host's server that I can access from my computer and/or my phone in a browser. Everything works perfectly.

There is a feature on the iPhone (apparently there’s something similar on Android, too) where I can add the script to the home screen so it functions like an app. Very nice. However, as soon as I click a link to go to any other page of my script, the new page opens in Safari and I lose the full screen goodness of the web app.

So I thought I should change the script from multiple pages to a single page, and just change the content on the main page. However, I can’t figure out how to make that work. I've tried creating a session and loading each “page” by changing a $_SESSION[‘page’] variable, but the session variable doesn’t appear to be global, or I’m doing it wrong. I echo’d that var both before the $content and again afterwards, and only the 2nd one changes - not the first one - so, of course, the content doesn’t change.

Is there a way to do what I’m trying to do? Or am I going about it the wrong way? How can I make this script work as a web app on my phone?

Thanks,
Frank



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux