Em Andamento

Fix simple php/flash bug

I am using the Flash Analogue Countdown Clock found here:

[url removed, login to view]

It is user-configurable with an XML file and everything works fine.

However, I need to be able to pass dynamic date data into the XML file. So, I created a PHP file that creates the XML on-the-fly.

If I pass the year into the PHP file via a GET variable, it works fine. However, I am unable to pass any other data through, such as month, day, hour, and minute.

I imagine this should be a simple fix if you know what you are doing.

thanks,

Greg

## Deliverables

I am using the Flash Analogue Countdown Clock found here:

[url removed, login to view]

It is user-configurable with an XML file and everything works fine.

However, I need to be able to pass dynamic date data into the XML file. So, I created a PHP file that creates the XML on-the-fly.

If I pass the year into the PHP file via a GET variable, it works fine. However, I am unable to pass any other data through, such as month, day, hour, and minute.

I imagine this should be a simple fix if you know what you are doing.

Here's the URL that calls the timer:

[url removed, login to view]

As you can see, I pass in full date & time variables in the URL. However, for this test, the PHP that creates the XML is only swapping out the $year variable like this:

<?php

header("Content-Type: text/xml");

echo '<?xml version="1.0" encoding="utf-8"?>

<countdown

endYear="' . $year .'"

endMonth="02"

.

.

etc.

THIS WORKS.

But if I try to pass in any other single variable by itself, like MONTH, it doesn't work.

Here's an example:

[url removed, login to view]

Same URL, different PHP/XML config file, which looks like this:

<?php

header("Content-Type: text/xml");

echo '<?xml version="1.0" encoding="utf-8"?>

<countdown

endYear="2012"

endMonth="' . $month .'"

endDate="20"

.

.

etc.

THIS DOESN'T WORK (it displays the message that's supposed to appear when the timer expires, even though it shouldn't expire until 2/20/11 according to the PHP/XML file).

Ultimately, I need to be able to pass ALL the variables in and have them be dynamic.

thanks,

Greg

Habilidades: Adobe Flash, MySQL, PHP, Arquitetura de software, Teste de Software, Hospedagem Web, Gestão de Site , Teste de Website

Ver mais: php in full, net fix com, flash version 3.0, 10 minute countdown, what is a php file, simple fix, Bug out, analogue, php text xml, message simple text, php hour min, php encoding, using variables url, php url expire, fix countdown clock, xml file appear, php xml variables, time date countdown clock, hour countdown, simple flash clock, minute calls, countdown timer fly, day php date, echo fix url php, config file simple

Acerca do Empregador:
( 42 comentários ) Wixom, United States

ID do Projeto: #3042163

Premiar a:

jpcentral

See private message.

$15 USD em 1 dia
(20 Avaliações)
4.5

4 freelancers estão ofertando em média $17 para este trabalho

RavFromSpain

See private message.

$17 USD em 1 dia
(483 Comentários)
6.6
phezik

See private message.

$14.45 USD em 1 dia
(6 Comentários)
2.6
anymix

See private message.

$21.25 USD em 1 dia
(7 Comentários)
2.6