Mobile Version Of Website - "Cannot Open Page Because Too Many Redirects" Error

Oct 4, 2010

I created a mobile version of a client's website. I created a subdomain called [URL] In the past I have used this code on the index.php page:

<?php $mobile = "";
if(preg_match('/Windows CE/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");}
elseif(preg_match("/iphone/i",$_SERVER["HTTP_USER_AGENT"])) { header("location: $mobile");}
elseif(preg_match('/Blackberry/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");}
elseif(preg_match('/PalmOS/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");}
elseif(preg_match('/PalmSource/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");}
elseif(preg_match('/SymbianOS/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");}

It usually works great. But this time when I try to bring it up on my iPhone I get a "Cannot open Page because too many redirects" error.


Making A 'mobile/cell' Version Of A Javascript Website?

Jan 10, 2010

I'm about to potentially start work on a website, but the client has a requirement that the website should also be accessible from mobiles/cell phones. He hasn't mentioned which mobiles he wants to support in particular but I assume it would be smart phones like iphone, blackberry, android, etc.

My question is, how much work will this take? For example:

1) Will I need to make two copies of the site, one for computers and one for the mobiles? Or even build 2 copies of all the html files?

2) Are there any special considerations I need to keep in mind when using javascript/ajax? Such as any features which may not be supported on cell phones (such as jquery)?

3) Is there an easy trick for supporting the site on both computers & cell phones? Like just showing a different stylesheet for cell phones and everything else would just work?

View 4 Replies View Related

Develop A Mobile Version Website Without Changing It's Domain Name?

Jun 15, 2011

I want to develop the mobile (also includes iphone,ipad,andriod) version of my original site. But I don't want to create another sub domain like [URL], can i dynamically change the document root separately for mobile version and the existing one? I have also noticed that, when I open facebook form iphone or any andriod mobile it opens with it's original domain name like [URL] bt when i open it from any other mobile like nokia or samsung it comes with [URL], what is the difference between this 2?

View 6 Replies View Related

Using Wurfl To Redirect Phones To Mobile Version While IPad / Playbook And Desktops Get That Version

Nov 6, 2010

For those of you who use wurfl, I just wanted to check if my logic was correct. I have a page that has both a mobile and desktop version. If I want phones like iPhones, etc to be redirected to the smaller mobile version while iPads, PlayBooks and desktops get the full size version, is this the correct logic on the full size page:

if ($requestingDevice->getCapability("is_wireless_device") == "true" && $requestingDevice->getCapability("is_tablet") == "false") {
//redirect to mobile version

View 2 Replies View Related

Development Environment For A LAMP-based Website - Redirects To Server Default Page?

Mar 10, 2011

In our current environment, if any changes need to be made to the code, these changes are directly coded and updated to the Live server.GWe would like to set-up a development server where we can test our changes before uploading to the live site.I have attempted to build a development site locally by installing Apache, PHP & MySQL and copying all the htdocs to the Apache folder.However, when I try to access localhost/ it redirects me to the server default page.

View 1 Replies View Related

Mobile - Build A Mobile Website That Get The Users Phone Book?

Nov 9, 2010

is there a way for me to access a users phone contact like from a nokia phone using PHP? I want to build a mobile website that can get the users phone book.

View 2 Replies View Related

Mobile Website Voice Recorder With Mobile Handset

Jan 8, 2011

For my website in PHP, we are generating mobile website and have to implement a voice recoding facility via from any mobile device, do you guys know any better option to easily integrate the same with my PHP mobile website. I have tried some Java Applets, but those are not working into iPhone / Android, so any simple tool, which can record voice with any mobile device and option save / play the recorded voice on my website and mobile both side.

View 1 Replies View Related

Curl - Mobile Version By Using File_get_contents() ?

Feb 8, 2011

I want to get the mobile version by the use of either file_get_contents() or cURL. I know that it can be done by the help of modifying the HTTP headers in the request.

View 3 Replies View Related

Website To Mobile Website Conversion

Jul 14, 2010

If I want to convert it into mobile website, what should to my html or something such that when I open it with my mobile, I should be able to see the whole page in my screen. I tried adding this to my html code... in head

<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>

Mobile specs : Any web browsing supporting mobile and am targetting a width of 320px. No Horizontal scrolling allowed. Only vertical scrolling. Just the code for converting to mobile website. I tried a few solutions online but didn't seem to work out.

View 1 Replies View Related

Notify Me When Google Redirects A Visitor To My Website

Jun 10, 2010

This is a simple PHP script, that can be very useful. Basically you will receive and email when Google directs a guest/ visitor to your website. Perhaps someone can expand on the script, as any other add-ons would be very useful I presume. This script is for anyone who uses Google Adsense perhaps in their websites, but it is useful..

/* @author Andy M/ xplosion
@script Email me when Google directs a visitor to my website!
$name=""; Add you Name here..
$email_address=""; email address you want the emails sent to.

View 2 Replies View Related

Send Sms From Website To Mobile

Nov 15, 2006

how to send sms from web site to mobile

View 9 Replies View Related

Sms To Mobile Phones From Website?

Nov 20, 2009

i want to send sms to mobile phones from web site is there any solution for this

View 9 Replies View Related

Turning Website Into A Mobile App?

Nov 2, 2010

Turning a website into a mobile app.The site is just not typical site, its social website.They don't want people to just visit the site from their browser, want to give them a new interface.touch mobile apps yet but this will be first.want to leverage what have written where go to get started on this?Where's a good place for "PHP to Mobile for Dummies"?

View 1 Replies View Related

Send MMS From A Website To Mobile Phone

May 21, 2006

lets say that I have a contract with a MMSC server provider which allows me to send MMSes from my website via a gateway. Will the send script be using the mail PHP function?? Will this be send as a regular email? In wich form has the recepient email adress to be? 'mobile_number'@'?

View 1 Replies View Related

Website Supporting For Mobile Phone

Feb 25, 2011

I want to make a website which should open in mobile perfectly. I went through more search and i got WML language based website. Is this not possible to make any website in concerns of design with mobile.Can WML run on php server as well? Need advice how to make a website for mobile application ?

View 4 Replies View Related

Detect Mobile Browser For A Website?

Aug 27, 2010

how can i detect if someone visits my website using safari or iexplorer via their mobiles?i think the answer may be using the USER_AGENT variable, but i'm not really sure, so if you have a better idea or already a code running it would be just great to share :)

View 5 Replies View Related

Send Website Contents To Mobile?

Feb 14, 2009

I want to send web sites contents to mobile.e.g if any one add new poems in my site then an alert is send to mobile of the site members.

View 2 Replies View Related

Know If The Visitor To Website Using A Mobile Phone Or PC?

Dec 23, 2010

I wanna ask, how to know If the visitor to my website using a mobile phone or PC? using php function

View 2 Replies View Related

Send SMS From Website To Mobile Phone

Jun 11, 2007

Am trying to build a site as one of the ways to draw traffic l wish to add the "free SMS-to-mobilephone" messaging. Is there someone who can guide me on how to do this in php?

View 2 Replies View Related

Jquery - When Session Times Out It Redirects Entire Page Instead Of Page Loaded Via Ajax

Jan 10, 2011

I have a php page that uses php sessions as well as jquery to call pages via ajax. The problem is if the page is idle for so long the page being called via ajax gets redirected to the home page but the rest of the page outside the div being updated with the ajax still shows the person logged in until they try to click a link then the whole page redirects to the login page since the session has timed out. Is there a way in php that once it detects the session has timed out then redirects them to the logout page that the whole page gets redirected instead of just the page being called via ajax?

View 1 Replies View Related

Mysql Database Is Accessed From Cpanel Normally Page Redirects To The Phpmyadmin Page?

Jan 10, 2010

i have read somewhere where in when mysql database is accessed from cpanel normally the page redirects to the phpmyadmin page however if a line of code is added to some php file there will be an alert asking to enter username and password in order to access phpmyadmin for security, can anyone tell me which php file that is and also the code that is needed.

View 1 Replies View Related

Upload A File Using C# From A Windows Mobile App To A Website?

Nov 20, 2008

I need to upload a file using C# from a windows mobile app to a website. It's running PHP as the webservice on the other side, though I guess it really doesn't have to if there's another way to be able to get the file up there. There is no server-side ASP support, however. My problem really isn't the PHP, it's the mobile C# code. Also, does NOT exist in the compact framework, so unfortunately, that simple solution is gone.

View 2 Replies View Related

Website Receive Email From A Mobile Phone?

Mar 18, 2011

I want to receive emails from mobile phone and display it on my website implemented PHP. My site is a free messaging system that sends messages to mobile phones using sendgrid API

I want to display messages from cell phones on my website. Is there any API available ?

View 3 Replies View Related

Parsing Commented Html From Mobile Website

May 5, 2011

Trying to parse this html with the simple_html_dom but most of it is commented how do I get around that? (It's a mobile page).

ini_set('display_errors', 1);
include(dirname(__FILE__) .'/inc/simple_html_dom.php');
$page = 'url';

View 1 Replies View Related

Download A File After User Has Submitted Data - Page Redirects To Login Page If Any Field Is Empty?

May 7, 2011

I want the user to download a file "tokina.pdf" after he has submitted user data, the page redirects to the login page if any field is empty. But the bit of code always starts a download process even if user data is incorrect.

$name = $_POST["name_first"];
$mail = $_POST['email'];
$number = $_POST['phone_number'];
echo "Name : $name";
echo '<br>';
echo "Email-ID : $mail";

View 1 Replies View Related

Display Large PDF For Mobile (web Development) Website/usage?

Mar 9, 2011

I need to display a PDF with over 100 pages (yeah it's huge) in a mobile website. This is not going to work and I need to come up with an alternative solution. I'm using PHP as the backend and jQueryMobile lib as the mobile framework. I was thinking to convert the PDF to html but then there is the question about how to load each page or load all the pages before hand (as a multi page layout w/ JQM can do).

I was thinking about having each page a AJAX request and loading it this way but wanted to get a fresh point of view on any alternative methods. I'm also concerned about connection speed as mobile devices vary from Edge, 3G, 4G, wireless, etc... so making the load time(s) as fast as possible is a must.

UPDATE: The PDF file size is around 9MB, yeah it's not a lot but for a mobile browser over a slow connection speed this will take some time to display and that's if it doesn't timeout first

View 2 Replies View Related

Cannot Login On Website From Mobile Browser Nokia 5800

Oct 24, 2009

If I try to login on my mobile it reloads and sends me rightback to the index/login page. The script recognizes a mobile browser and it will show a different indexpage. I have tested everything with firefox while using the switch user-agent addon.

So, No problems working from a normal browser, except when I try to login on my mobile like I sayd.

Is there something that I should change In my loginscript because the mobile browsers can't handle it??

View 2 Replies View Related

Sessions And Redirects - Send Info From Page One To Page Two.

Jul 25, 2007

I have a two part form, each part on a seperate page. I want to send info from page one to page two. Thought ok, I use session variables. The problem is that they don't get sent to the second page. All works fine on my local testing server, but when I go live session varables don't show. Has this something to do with header? Is there another way to get to the second page? Code:

View 12 Replies View Related

Web Development - Call From Website To Mobile Or Landline Phones (in PHPFlash)

Feb 21, 2010

I wish to call from mywebsite to mobile phone, how do i implement in PHP or Flash. Is it possible in PHP, flash, or any other technologies.

View 3 Replies View Related

Develop Mobile App (Iphone,Blackberry,Android) For An Existing Website?

Mar 23, 2010

I have a website and am planning to develop a mobile version of it for the iphone, blackberry and android.My website is a social network built on PHP Zend framework. Now all these mobile apps are going to be having the same functionality like the website.I am little ignorant about this - but from a high level I understand that all these mobile apps should not have to write any backend logic. For every functionality - they will simply make a web service API call to interact with the backend.So does that mean, for every functionality I need to create a web service method. Can the existing code be re used - I'm a little lost -

View 5 Replies View Related

Want To Create A Mobile Website In Addition To Native Apps Using Phonegap. Is It Sensible To Use The Same Codebase?

Jun 5, 2011

I want to have a mobile-friendly website, in addition to a native app for iphone/android using phonegap. I'm currently using PHP (specifically CodeIgniter but that's not as important) and jQuery for the mobile website.I'm thinking that the website and the phonegap codebase can use the same PHP back-end for server requests but the front-end must be somewhat different since phonegap has proprietary javascript to access native functionality (camera, accelerometer, etc) that a browser couldn't access. For this reason, I think the front-end must be developed separately for the mobile site vs. for phonegap.

View 1 Replies View Related

Htaccess In / Same Page Open When Open The Cms Or User Profile Page?

Jun 15, 2010

I am using htaccess in my projec.there is login section i want to show the my account page as url . But there is a problem because i have also made a cms which is open as url. Although i have validate the user name But there is same page open when i open the cms or user profile page.I have pass the regular expression in htaccess but stil not required result is come

View 1 Replies View Related

Text Only Version Of A Website

Sep 3, 2003

I am looking for a script and advice that will let me offer a text only version of a website. These scrit should work with pages generated dinamically and otheres that are static.

View 3 Replies View Related

Website Version 2 Keep Or Move To .Net?

Nov 3, 2008

I have a website built in PHP 4 with a framework made by hand by me. The code is 3 years old and I am limited (well it requires a lot of effort to make changes). I decided to do new version of this website. My knowledge has since increased, and now I know that a lot of frameworks exist and that IOC is there and ORM too... The problem is that in all my research, I do not find something that satisfies me completely in PHP. On the other hand, at my job (mostly in .Net winform 2.0) I see many good IOC and other solutions possible, and, I think that .Net is more mature for developing software with best-practices.

I haven't found many good IOC for PHP. As for ORM, I have seen Propel, which looks nice, but haven't found a complete Framework too (Symfony documentation isn't up-to-date, contains lot of error; Zend looks too big I think...), etc. Do you suggest that I simply try another framework and keep the website in PHP, or would it would be a good idea to switch to .Net? The system works but has begun to slow down (since it has more users). The database is normalized too much... etc. The code isn't bad - business logic is separated of the HTML - but the problem is that controllers are inside the view so it's harder and harder to make some layout changes. No unit tests have been done, and it's very "stressful" to make change. There's no logging in the system, and it's hard to get a snapshot to see if everything is working properly....

View 8 Replies View Related

Header Redirects Me To A Blank Page

Jul 10, 2000

Ive a problem with the command.

header("Location : index.php3") , it works on PWS , but on Apache it redirects me to a blank page (and no errors ).

View 3 Replies View Related

How Does VBulletin Remember The Page For Redirects?

Mar 3, 2006

I noticed that if you're not logged in and you try to reply to a thread, you can log in and it takes you right to the reply. It looks like the login form save the referring page, but how does it doe this? Does it rely fully on HTTP_REFERER or is there a backup plan if this doesn't work?

View 1 Replies View Related

Take A URL - Wait For The Redirects To Go Through And Then Fetch The Url Of The Page It's On?

Oct 17, 2009

Is it possible for PHP to take a URL, wait for the redirects to go through, and then fetch the url of the page it's on?

View 3 Replies View Related

Create WordPress Page That Redirects To Another URL?

Nov 9, 2009

I wanted to create a new WordPress page that is actually a link to another site. The goal is to have the page show up in a list of my pages, but actually send the web user to the target URL. For example, say I want to include a page that indicates "My Photos" but actually redirects them to Flickr.

I'm guessing one way to accomplish this is by using a custom template page with a redirect instruction in PHP, but unfortunately I am a newbie to PHP and am not familiar with the way to accomplish this...

View 6 Replies View Related

Wrong Url Redirects To Index Page?

Feb 22, 2011

I type [URL]/1234(1234 is jargon) it takes me to [URL]index.php. I am using apache and mod_rewrite does not have any rule for this .Index page is not even the default page setup by the DirectoryIndex.I am puzzled why it takesto the index page.

View 2 Replies View Related

Fill Out The Form And It Redirects To Other Page?

Apr 17, 2011

everytime i fill out the form and it redirects to this php page it gives me this syntax error: Parse error: syntax error, unexpected '<' in C:xampphtdocsRunescape-Websitecreate.php on line 23.
I really don't know what to do.

PHP Code:
$website = $_POST['website'];
$ip = $_POST['server-ip'];

View 1 Replies View Related

Error Says : You Have An Error In Your SQL Syntax; Check The Manual That Corresponds To Your MySQL Server Version??

Jul 28, 2010

$c->query("INSERT INTO users VALUES('','{$f['uname']}','{$f['upass']}','{$f['uemail']}','{$f['ufname']}','{$f['ulname']}','{$f['ucomp']}','{$f['umsn']}','{$_SERVER['REMOTE_ADDR']}','{$_SERVER['REMOTE_ADDR']}','{$_SERVER['REMOTE_ADDR']}',1)") or die(mysql_error());

And the error says :

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's','1','121','1','1',1)' at line 1.

View 14 Replies View Related

Error: You Have An Error In Your SQL Syntax Check The Manual That Corresponds To Your MySQL Server Version?

Nov 17, 2010

I get this error when trying to run this code

Quote"Username: magessssss
EXP You modified: atkExp - 509
Level modified: atkLvl - 2
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''atkLvl'='2','atkExp'='509' WHERE user='MAGEssssss'' at line 1"[code]....

What is wrong with the query I am using?

View 2 Replies View Related

Google Page Rank And 'header' Redirects

Jul 17, 2005

If I have a links page that uses php header calls,
for each link, to jump to an external page, does
Google see those links as "internal to my site"
or do they get counted as links to the redirect?

IE: people ask me to exchange links all the time.
Sometimes (usually not) I do it, but always with a
link to in interal-to-my site file that has a


So, in other words, in Google terms, do those
people get the page rank credit they are seeking,
when I do it that way?

View 1 Replies View Related

Problem Using Header Redirects In Error404 Page

Jun 27, 2005

I'm getting a strange problem when using header redirects in my error404 page. This is the code on the 404 page;

$location = 'http://' . $_SERVER['HTTP_HOST'];
header("Location: $location");

which should redirect me to the homepage. But all I'm getting is this output.


I'm trying to get an intelligent search system in place based on the work of David Skalar. It works sweetly locally but when live all my redirects fall over, producing the output above.

View 1 Replies View Related

Redirects The User Back To The View Page

Jan 18, 2007

i am facing a strange problem of redirection. After the user fills up the form, i submit the data to save.php file and at the end i have a header which redirects the user back to the view page.Below is the code of save.php: Code:

View 2 Replies View Related