-
1. Re: Mobile Device Redirection
David_Powers Jul 2, 2009 3:56 AM (in response to Stuart Haiz)You need to set up a testing server to be able to preview PHP pages in Device Central.
-
2. Re: Mobile Device Redirection
Stuart Haiz Jul 2, 2009 5:32 AM (in response to David_Powers)Hi David
Thank you for the suggestion and the link. I do have MAMP set up and working on my system - so I can follow along happily with some of your extremely helpful books!
However, I am still getting the message "The file type of index.php is not supported on this device!" even though I know the device does display php content. (I have tested it physically using the device itself.)
I have tried unsuccessfully using both these doc types:
<!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">and
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> -
3. Re: Mobile Device Redirection
David_Powers Jul 3, 2009 2:44 AM (in response to Stuart Haiz)I have just tested a PHP page in Device Central CS4. It worked fine, using my local testing server and XHTML 1.0 Transitional DOCTYPE.
-
4. Re: Mobile Device Redirection
mawyddan Jul 3, 2009 2:50 AM (in response to David_Powers)many thanks - it's the first time I've posted to this forum - impressive
speed of response especially when it took up so much of my time last night -
will remember this in future.
again, thanks
-
5. Re: Mobile Device Redirection
Stuart Haiz Jul 3, 2009 3:29 AM (in response to David_Powers)This is strange then and maybe it has something to do with my setup, as I have just tested an info.php file:
<?php phpinfo(); ?>
and got the same result, so I know it's not the file contents.
I'm on an iMac running 10.5.7 with MAMP and my localhost is running perfectly well as far as I can see - I've even got local versions of Magento sites running properly.
I'm going to try a repair of Device Central CS4 and see if that makes any difference. (Mind you - I get the same results with ADC CS3 so maybe there is something in the MAMP settings I need to check...)
-
6. Re: Mobile Device Redirection
David_Powers Jul 3, 2009 3:50 AM (in response to Stuart Haiz)I normally use Windows, but I have just tested it on MAMP in my MacBook Pro. Device Central CS4 displays my phpinfo() without problem.
I suspect it has something to do with your site definition.
-
7. Re: Mobile Device Redirection
Stuart Haiz Jul 3, 2009 4:01 AM (in response to David_Powers)Thanks for your time and help David.
I'll check my MAMP setup first - I'm not sure if the site deinition is the issue as I tested the phpinfo() directly from my sites folder and it displays everything correctly from there when I view it at http://localhost/info.php.
I'm going back to the link you sent to your article and see if there is something in there.
Thanks again - I'll post when I've resolved this.
-
8. Re: Mobile Device Redirection
Stuart Haiz Jul 3, 2009 10:31 AM (in response to Stuart Haiz)David, I am so sorry to have wasted your time...
The fault was entirely down to me using Device Central > File > Open rather than going from Dreamweaver > File > Preview In Browser > Device Central.
A tip to other users, who may (like me) waste the valuable time of professionals - READ THE MANUAL!
Thank you once again.
-
9. Re: Mobile Device Redirection
David_Powers Jul 4, 2009 3:49 AM (in response to Stuart Haiz)No problem. Glad you managed to get it sorted.



