close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

iPhone Roadmap problem

Thread began 3/05/2010 10:29 am by rick178787 | Last modified 3/05/2010 11:02 am by rick178787 | 2193 views | 4 replies |

rick178787

iPhone Roadmap problem

the Road Map has this code:

<?php if(strpos($_SERVER['HTTP_USER_AGENT'], ‘iPhone’) !== false) { ?>
<link media="all" href="../iPhone_css/iPhone.css" type= "text/css" rel="stylesheet">
<?php } else { ?>
<link media="all" href="../CSSSculptor/1ColumnLiquidCenteredHeaderandFooter_Pacifica0_css/screen.css" type= "text/css" rel="stylesheet">
<?php } ?>

(adjusted for my directory structure). The iPhone_css code is actually the css file from the bottom of the Road Map

The code produces this error:


Notice: Use of undefined constant ‘iPhone’ - assumed '‘iPhone’' in /vservers/xxxxxx/htdocs/index.php on line 7

Line 7 is the first line of php above.

Sign in to reply to this post

Jason ByrnesWebAssist

the code on line 7 should be:

php:
<?php if(strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== false) { ?>
Sign in to reply to this post

rick178787

Thanks!

But I don't see any change in the code. What was it?

Sign in to reply to this post

Jason ByrnesWebAssist

the quotes around iPhone are wrong:

original:
&#8216;iPhone&#8217;

fixed:
'iPhone'


yes, php is that picky

Sign in to reply to this post

rick178787

King of the Thread

Wow...you are King!

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...