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

Does design fit in FPGA ?
Hi all,

I've made a large HCC-Design. Because of the program-size the compile process with th

error with opendir
when i do this

if ($handle = opendir($dir)) {
while (false !== ($file = readdir($han

A Few Questions
Hi, I want to ask a few questions that I can't seem to find..

1) I'm creating a "shortcu

user administration
Dear @all,

what I have to do to set the user defaults for new users. At the moment I woul

Which practice of iteration through containers is preferred
In the "real world" what kind of loop do most people use to iterate through a container like a vecto

want a code for uploading and downloading
i m trying to upload and download to my site..i need upload and download code ...i use a code for up

Help with email validation please...
Hi,
Please could you help.
I have a register.php login page where users register, the detail

MySQL Does not UPDATE- SQLString Problem
vb Syntax (Toggle Plain Text) 1. SQL = "UPDATE sampletable SET column1 = 'C1sample1'"

quick basic question, hopefully not dumb
I don't know how to search for this, so forgive me if it's been covered...

I often see an exa

User information
Hi All,
By using t-code SUIM we get all the user details,if suppose we donot have permission t

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