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

php unable to sent email
Hi, guys, I try to send a email through php but unfortunately the mail unable to sent. Here is my co

Help to integrate whois Domain Details to website
Hi,

can i know is their any php script r methods to add domain details to my website.

Tournament Brackets (Double Elimination)?
Is making a double elimination tournament style bracket system capable of being done in php?

Anti Spam Code Problems
Ok where do i start? Probably by telling you I have very little working knowledge of PHP and that I

query help
Hi experts.

i have a table rep2 like this
PROD_COD ACCT_NO DUE_DAYS BALANCE

C++ Http request?
Code: string Response = "LOGIN_UNSUCCESSFUL"; System.Net.WebRequest request = Sy

how to get IP address?
hey guys,

i have this code which is supposed to get me the IP address of my site visitors:

elseif help!
OK so I'm new to the site, as well as PHP altogether (Trying my hand at managing an online RPG) and

Load file in PHP
I have 2 files. The first is a PHP generated XML file that's dependent by 2 inputs. The second is a

mysql_query returning boolean instead of mysql ressource
Hi,

I seem to have a weird issue with the php command mysql_query. I pass 2 arguments the que

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