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.

Did you know?Explore Trending and Topic pages for more stories like this.
<?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

Oracle11g Patch issue
Hi all,

I'm getting the following error while installing Oracle11g Patch 11.1.0.7.0 on IBM-AI

question about stripslashes and real_escape_string
im cleaning up an old app that I wrote fixing some of the vulernabilities from attacks.

I hav

Does deleting the spmlog directory critical?
Hi Everyone,

Please, hope you could help me. We're having problems with the SAP backup. I

want to add a break after a certain amount of characters
i was wondering how to add a break in a blog post after a certain amount of characters... any idea o

writing a screen scraper
Hello,

I'm writing a screen scraper application and want to be able to get absolute addresses

A little help in c#
i am doing a simple paint program using c# i want to draw with the mouse so i wrote the code of the

Protecting forms
Alright, I want to protect some forms of mine from SQL Injections, because I had someone earlier spa

Linking with Foreign Keys
I have been getting an erro when I try and link:

create table Faculty_Specialty (I_Name v

Looking for help reading a .txt or .ini file and outputting the info.
I have a file called Info.ini and It has the following info:
Code: [General]
Online=0
I wou

limit string by words??
hello all,

I was wonder if there is a function to limit a string by the number of words inste

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