PHP header help!


Posted on 16th Feb 2014 07:03 pm by admin

Hi all I am trying to get this php page to refresh every 5 seconds on my phone which is an aastra 480i IP desk phone.

The code below the header line displays a menu on my phone. That works fine so no need to look at that. I am having trouble getting the refresh line to work. How would I make a header for this script with the header line being used below? The header line is in the correct format but I don't know how to apply it.

<?php

header("Refresh: 5; url= http://XXX.XXX.XXX.XXX/this-page.php”);

$textmenu = "<AastraIPPhoneTextMenu style = "numbered">n";
$textmenu .= "<Title>------- Menu -------</Title>n";

$textmenu .= "<MenuItem>n";
$textmenu .= "<Prompt>Directory</Prompt>n";
$textmenu .= "<URI>http://192.168.1.102/aastra/directory.php</URI>n";
$textmenu .= "</MenuItem>n";

$textmenu .= "<SoftKey index = "1">n";
$textmenu .= "<Label>Select</Label>n";
$textmenu .= "<URI>SoftKey:Select</URI>n";
$textmenu .= "</SoftKey>n";

$textmenu .= "<SoftKey index = "6">n";
$textmenu .= "<Label>Exit</Label>n";
$textmenu .= "<URI>SoftKey:Exit</URI>n";
$textmenu .= "</SoftKey>n";

$textmenu .= "</AastraIPPhoneTextMenu>n";

echo $textmenu;

?>

No comments posted yet

Your Answer:

Login to answer
67 Like 22 Dislike
Previous forums Next forums
Other forums

Where am I going wrong
Been trying to work this out for hours

I have two tables called 'Genres' and 'Films'. Genre

error checking breaking my code
Hi there, OK first of all, big apologies for what I assume is really fundamental errors in the struc

Polymorphism
Was wondering if someone could explain this a little better to me. I had always assumed that it had

how do i make a string??
hey guys,
can someone please tell me how to put data from the glob function into a string

Stopping page post back
I have few literal contriols in my page and a repeater too. But inspite of using update panel, postb

Uploading/Downloading files stored in MySQL database
Hey all,

This problem just came up in my website and I'm having a hard time figuring out what

reading xml faster than DB call?
I am trying to optimize a high traffic website, and I enabled a feature where there are three photos

foreach and array need help combining
Hi guys.

Here's the code

Code: array(
'tag' => 'code',<

HTAccess auto log in?
Hi all.

Too busy driving celebs about lately so I hope someone here can help me out.

I

Display a default image
I am trying to display generic image for items that don't have one, but I can't get it to display.

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash