Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8184127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:23:37+00:00 2026-06-07T01:23:37+00:00

My web hosting company recently upgraded to Apache 2.2.22 and PHP 5.3.13 and since

  • 0

My web hosting company recently upgraded to Apache 2.2.22 and PHP 5.3.13 and since then a piece of script will not work correctly. The webpage is a radio streamer and now the part that updates the track info from a text file does not display at all. The streamer is working fine and so are other third-party widgets.

Here is part of the script to display the album cover:

updateNowPlayingInfo = function() {
var d = new Date();
$.ajax( '/php_proxy_simple.php?url=playingnow.txt&_=' + d.getTime(), { 
    complete: function( jqXHR, textStatus) { console.log( 'RMX Player XHR completed: ' +textStatus ); },
    error: function( jqXHR, textStatus, errorThrown) { console.log( 'RMX Player XHR error:' + textStatus + ':' + errorThrown ); },
    xhr:  (window.ActiveXObject) ?
    function() {
            try {
                return new window.ActiveXObject("Microsoft.XMLHTTP");
            } catch(e) {}
        } :
        function() {
            return new window.XMLHttpRequest();
        }, 
    cache: true,
    type: 'GET',
    crossDomain: true,
    dataType: 'text',
    global: false, // @note was using false
    ifModified: true,
    success: function( data, textStatus, jqXHR ) {

        //alert( playingData );
        playingData =  data.split("\n");

        if ( playingData[2] && ! playingData[2].match( /no-image-no-ciu/ ) ) {
            //playingData[2] =  playingData[2].replace( 'SS110', 'AA280' ); // swap small image for medium
            //console.log( playingData[2] );
            playingData[2] =  playingData[2].replace( '_SL160_', '_SX200_' ); // swap small image for large
            $( "#nowplaying_album_cover img" ).attr( "src" ,  playingData[2] );
            $( "#nowplaying_album_cover").show();
            }
         else $( "#nowplaying_album_cover").attr("src" , playingData[2] );
         $( "#nowplaying_album_cover").show();
        },
    failure: function() { alert('failed to get play data') ; }
} );

And the php code:

    <?php
// PHP Proxy example for Yahoo! Web services. 
// Responds to both HTTP GET and POST requests

// Allowed hostname
define ('HOSTNAME', 'http://www.mysite.co/');

// Get the REST call path from the AJAX application
// Is it a POST or a GET?
ini_set( 'error_reporting', 0);
$path = ($_POST['url']) ? $_POST['url'] : $_GET['url'];
$url = HOSTNAME.$path.'?timestamp=' . time();

// Open the Curl session
$session = curl_init($url);

// If it's a POST, put the POST data in the body
if ($_POST['url']) {
    $postvars = '';
    while ($element = current($_POST)) {
        $postvars .= urlencode(key($_POST)).'='.urlencode($element).'&';
        next($_POST);
    }
    curl_setopt ($session, CURLOPT_POST, true);
    curl_setopt ($session, CURLOPT_POSTFIELDS, $postvars);
}

// Don't return HTTP headers. Do return the contents of the call
curl_setopt($session, CURLOPT_HEADER, false);
curl_setopt($session, CURLOPT_RETURNTRANSFER, true);

// Make the call
$response = curl_exec($session);

// possibly include expires header to bust aggresive caching  -expires=>’+1s’
header('Content-Type: text/html;charset=utf-8');

echo $response;
curl_close($session);

?>

I grabbed this from the raw log files:

“GET /playingnow.txt HTTP/1.1” 304

Not sure if that is relevant. Any help would be appreciated. Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T01:23:38+00:00Added an answer on June 7, 2026 at 1:23 am

    Fixed it, the file permission for the PHP file needed to be at 0644. Thanks.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My web hosting company has upgraded PHP to version 5.4.7. I have no choice
Had a major problem recently where my web hosting company messed up and all
Recently our Web hosting provider moved to a medium trust level for all shared
So I just recently bought some web hosting and I'm trying to get my
My current web hosting company offers me unlimited traffic, space etc. Why should I
I recently bought a new web server 2008 for our company and require a
I have a web site which uses one SQL database but the hosting company
I've recently ported to a different hosting company (VDS), and on the new server,
Suppose that our web-hosting is linux and php is installed: 1- What could be
I'd like to deploy my ASP.NET MVC application to a web hosting company (like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.