Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

need help with PHP after IDP upgrade to 5.3

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
hills
Posts: 692
Joined: Sat 26 Dec 2009 8:52 am
Weather Station: Fine Offset WH1091
Operating System: Raspbian Buster
Location: Crafers, South Australia
Contact:

need help with PHP after IDP upgrade to 5.3

Post by hills »

--oops the title should read after ISP upgrade--

is there a PHP 5.3 expert who can help me with this one please? :oops:

I need to get a php file to echo the following

<slideshow>
<side>

and some other text with in "<" and ">"

Prior to my IPS upgrading to PHP5.3 just echo "<slide>" used to work but now it doesn't

I've tried escaping it: echo "\<slide\>"
Ive tried using hex codes: echo "\x3Cslide\x3E"
I've tried

echo<<< EOT
<slideshow>
\x3Cslide\x3E
EOT

but so far nothing works. the last option works if there is a space between the "<" and "slideshow" but I need there to be no spaces.

Help... please :)

Cheers

Phil
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: need help with PHP after IDP upgrade to 5.3

Post by beteljuice »

Get back to your ISP - It should work.

Using echo you are outputing html ?

Try "<slideshow>"

Also try using single quote '<slideshow>'

PHP does different evaluations with the two different styles of quotes.
Image
......................Imagine, what you will KNOW tomorrow !
hills
Posts: 692
Joined: Sat 26 Dec 2009 8:52 am
Weather Station: Fine Offset WH1091
Operating System: Raspbian Buster
Location: Crafers, South Australia
Contact:

Re: need help with PHP after IDP upgrade to 5.3

Post by hills »

Excellent thanks for that. I'm outputting lines that are fed into swf slideshow. It creates a list of images to display for the replay last 24 hours option. The &lt and &gt seem to work, but swf is still not recognising it. It has given me something to continue with so I'm sure I'll be able to nut it out.

Thanks again! :clap:
Welly
Posts: 8
Joined: Fri 14 Jun 2013 3:53 pm
Weather Station: Davis VP2
Operating System: Windows 8.1
Location: UK
Contact:

Re: need help with PHP after IDP upgrade to 5.3

Post by Welly »

I have php version 5.4.7 and the following code works on my site:

<?php
echo "<slideshow>\n";
echo "<side>\n";
?>

I have to look at the page source to see the results but it outputs:

<slideshow>
<side>

Perhaps you can post the entire line of code I'll try it on my server?

Edit.
Thinking on, I had this once when trying to add php into a page with a .html file extension. There is a setting the ISP needs to apply before embedded php will work in a html page.

You could try changing your test page to have a .php extension to see if it makes any difference.
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: need help with PHP after IDP upgrade to 5.3

Post by mcrossley »

Welly wrote:Thinking on, I had this once when trying to add php into a page with a .html file extension.
Yep, I recall that by default PHP will not print HTML tags into a HTML document - though it does on my server and I did not have to reconfigure anything. :roll:
hills
Posts: 692
Joined: Sat 26 Dec 2009 8:52 am
Weather Station: Fine Offset WH1091
Operating System: Raspbian Buster
Location: Crafers, South Australia
Contact:

Re: need help with PHP after IDP upgrade to 5.3

Post by hills »

Thanks very much for that! My original script is working again now so I suspect my ISP has made another change since the upgrade.

Thanks again for for your help it is very much appreciated!
Post Reply