Using PHP code to count downloads

Hi,
We are hosting our XML code here: http://krslynx.com/podcast/GTSPodcast.xml for our podcast A Good Talk Spoiled. We have no idea how many downloads we are getting so we had someone design a bit of PHP code (http://krslynx.com/podcast/pod.php) to count the downloads.
In order to make this work, we change our enclosure url from http://krslynx.com/podcast/GTSWeek2.mp3 to http://krslynx.com/podcast/pod.php?podcast=GTSWeek2.mp3. Inserting pod.php?podcast= before the episode file name means that the data for the downloader is captured but the user of the podcast APP gets the error message "Episode Unavailable - This episode is temporary unavailable from "A Good Talk Spoiled Golf Podcast".
I tried to insert this technology for our latest episode but it didn't work so I am now testing this technology on Week 2's episode.
Does the podcast app / iTunes not support PHP technology?
Thanks in advance for your help,
Bobby.

I can't test the Podcasts app, but when subscribing in iTunes the Week 2 episodes does not show, which means that iTunes is not seeing the episodes as containing playable media.
This Apple help page:
http://www.apple.com/itunes/podcasts/specs.html#tracking
says
The URL before the GET-style form values (before the first ?) must end in a media file extension (e.g., .mp3). To work around this, the feed provider can alter the URL from this:
http://www.podcaster.com/load.php?f=&Wipeout.php
to this:
http://www.podcaster.com/load.mp3?f=&Wipeout.mp3
Notice how it says load.mp3 instead of load.php. It should be possible to accomplish this via various means, such as web server rewrites. iTunes looks at the extension of the path part of the URL, i.e., the part before the "?".
which explains what the problem is.

Similar Messages

  • Can I use PHP code in BC

    Yes, that is basically my question. Can I use php coding in Business Catalyst? And does BC us mysql database?
    Thank you

    Hi there, Please do a quick forum search before posting. This is asked a lot - You can even see a post in the frequently asked questions panel on the main page of this forum section.
    BC is a SAAS - Software as a service and a .Net based SQL system - It does not use PHP or mysql and you can not access the server side code.
    So to your question - that is a no I am affraid.

  • Using PHP code hinting in Dreamweaver CS5 | Learn Dreamweaver CS5 & CS5.5 | Adobe TV

    Learn how easy it is to create PHP code by using some of the new code-hinting features in Dreamweaver CS5
    http://adobe.ly/wjmnc1

    I've been using Dreamweaver to create php based websites with the popular Zend Framework 1.  I'm now trying to integrate Dreamweaver with ZF2 and the Dreamweaver is giving me errors for lies such as:
    $loader = new Zend\Loader\StandardAutoloader(array('autoregister_zf' => true));
    and
    use Zend\Session\Container;
    even though the lines are correct.  Do I have to do anything special in Dreamweaver so that it recognizes these statements as not being errors?

  • Use PHP code coloring in HTML files

    In Dreamweaver CS3, what changes do I need to make to get PHP
    code coloring show up in .html files?

    robot88888888,
    First, copy this file from the app config folder:
    C:\Program Files\Adobe\Adobe Dreamweaver
    CS3\configuration\CodeColoring\PHP.xml
    To the user config folder:
    C:\Documents and Settings\[username]\Application
    Data\Adobe\Dreamweaver
    9\Configuration\CodeColoring\
    Then open PHP.xml in your favorite editor. You need to add
    HTML to all
    of the doctype lists Change every occurrence of this:
    doctypes="PHP_MySQL"
    to be:
    doctypes="PHP_MySQL,HTML"
    Save and close. If DW is running, close it. Now restart DW.
    HTH,
    Randy
    > In Dreamweaver CS3, what changes do I need to make to
    get PHP code coloring show up in .html files?

  • How to upload an image in a directory using PHP code generated by Dreamweaver?

    I have created a dynamic website with Dreamweaver and PHP, i have also created a insertform page using dreamweaver's 'Record Insertion Form Wizard' i have a field named prod_img in my MySQL database and on my form but this is a text field and i have to enter the path of the image directory to display it but this needs to have the image in the directory, i want to add a browse file field so that the image uploads to the directory by PHP.
    My code is as follows:
    <?php require_once('../Connections/dwtltd.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO special_offers (spec_img, spec_head, spec_desc, spec_call, spec_price, spec_rtn) VALUES (%s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['spec_img'], "text"),
                           GetSQLValueString($_POST['spec_head'], "text"),
                           GetSQLValueString($_POST['spec_desc'], "text"),
                           GetSQLValueString($_POST['spec_call'], "text"),
                           GetSQLValueString($_POST['spec_price'], "text"),
                           GetSQLValueString($_POST['spec_rtn'], "text"));
      mysql_select_db($database_dwtltd, $dwtltd);
      $Result1 = mysql_query($insertSQL, $dwtltd) or die(mysql_error());
      $insertGoTo = "../specialoffers.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    mysql_select_db($database_dwtltd, $dwtltd);
    $query_insertRS = "SELECT * FROM special_offers ORDER BY spec_id ASC";
    $insertRS = mysql_query($query_insertRS, $dwtltd) or die(mysql_error());
    $row_insertRS = mysql_fetch_assoc($insertRS);
    $totalRows_insertRS = mysql_num_rows($insertRS);
    ?>
    <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
      <table align="center" cellpadding="5">
        <tr valign="baseline">
          <td align="right" nowrap="nowrap">Add Image:</td>
          <td><span id="sprytextfield1">
          <input type="text" name="spec_img" value="" size="32" />
          <span class="textfieldRequiredMsg">A value is required.</span></span></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">Offer Heading:</td>
          <td><input type="text" name="spec_head" value="" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">Offer Description:</td>
          <td><input type="text" name="spec_desc" value="" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">Phone:</td>
          <td><input type="text" name="spec_call" value="" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">Price:</td>
          <td><input type="text" name="spec_price" value="" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">RTN:</td>
          <td><input type="text" name="spec_rtn" value="" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right"> </td>
          <td><input type="submit" value="Insert record" /></td>
        </tr>
      </table>
      <input type="hidden" name="MM_insert" value="form1" />
    </form>
    Help greatly appreciated.
    I have googled, yahooed, binged etc etc and tried many tutorials but nothing goes in my favor please do not suggest to search on search engines or websites.

    Years and months later, apparently Dreamweaver CC 2014 has a "File" Form object that has a text box and Browse button.  Now I'm looking for the part that does the actual upload (which is why I wound up here).  I'm sure by now you have found a way to resolve your issue, but there it is....

  • How to use PHP code in Dreamwave CS6

    Help me, I don't know it
    site contact: tuhoctienganh.info

    Get one of the following testing servers for your OS and follow the installation instructions.
    WAMP for Windows
    http://www.wampserver.com/en/
    XAMPP for Windows
    http://www.apachefriends.org/en/xampp-windows.html
    XAMPP for Mac
    http://www.apachefriends.org/en/xampp-macosx.html
    MAMP for Mac
    http://www.mamp.info/en/downloads/index.html
    Setting up a PHP environment in Dreamweaver
    http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html
    Nancy O.

  • Getting raise_application_error code using  php

    I have a trigger that catches an action and returns a raise_application_error. I am having a hard time finding out how to retrieve the error code (I defined it) using php code.
    here is an example of the php/oracle error message that I get:
    Warning: OCIStmtExecute: ORA-21000: error number
    argument to raise_application_error of -2006 is
    out of range ORA-06512
    I can retrieve the oracle predefined error code (21000) using
    $oci_error = OCIError($statement);
    $oci_error["code"];
    but do not know how to get the (-2006) except maybe parseing the $oci_error["message'].

    nevermind, figured it out. my raise_application_error was out of range (like the error message said O=) )
    changing it to -20006 (instead of -2006) works.
    karn

  • Sql code with php code

    for example:
    create table testtable (
    sales_area varchar2(30),
    sales_comp varchar2(40),
    sales_market varchar2(30),
    order_number number(20),
    order_date varchar2(20),
    item_id number(15),
    quantity number(20),
    item_desc varchar2(50)
    insert into testtable values ('westarea','acompany','amarket','52001',1001,1,10,'apple');
    insert into testtable values ('westarea','acompany','amarket','52005',1002,2,20,'banana');
    insert into testtable values ('eastarea','bcompany','bmarket','52002',1003,2,50,'banana');
    insert into testtable values ('eastarea','bcompany','bmarket','52004',1006,1,30,'apple');
    insert into testtable values ('eastarea','bcompany','bmarket','52003',1007,1,30,'apple');
    insert into testtable values ('westarea','ccompany','cmarket','52006',1003,1,30,'orange');
    insert into testtable values ('westarea','ccompany','dmarket','52007',1004,3,60,'orange');
    commit;
    select *
    from testtable
    it outputs below:
    westarea     acompany     amarket     52001     1001     1     10 apple
    westarea     acompany     amarket     52005     1002     2     20 banana
    eastarea     bcompany     bmarket     52002     1003     2     50 banana
    eastarea     bcompany     bmarket     52004     1006     1     30 apple
    eastarea     bcompany     bmarket     52003     1007     1     30 apple
    westarea     ccompany     cmarket     52006     1003     1     30 orange
    westarea     ccompany     dmarket     52007     1004     3     60 orange
    use php code outputs like below php code :
    apple banana orange .......
    westarea     acompany     amarket     52001     1001     10
    westarea     acompany     amarket     52005     1002     20 ........
    acompany 10 20 .........
    westarea     ccompany     cmarket     52006     1003          30 .........
    westarea     ccompany     dmarket     52007     1004          60 .........
    ccompany 90 .........
    westarea 10 20 90 .........
    eastarea     bcompany     bmarket     52002     1003     50 .........
    eastarea     bcompany     bmarket     52004     1006     30 .........
    eastarea     bcompany     bmarket     52003     1007     30 .........
    bcompany 60 50 .........
    eastarea
    total 70 70 90 ......
    make below php code output a new table:
    <?php
    $v_item_count = count(array(item));
    echo"<table border = 1>";
    echo "<tr>";
    echo "<td rowspan="2">sales area</td>";
    echo "<td rowspan="2">sales comp</td>";
    echo "<td rowspan="2">sales market</td>";
    echo "<td rowspan="2">customer_number</td>";
    echo "<td rowspan="2">order_number</td>";
    echo "<td colspan="'||to_char($v_item_count)||'">categories and quantities</td>";
    while ($row = oci_fetch_array ($stmt, OCI_BOTH)) {
    echo "<tr>";
    echo "<td>".$row['ORDER_NUMBER']."</td>";
    ?>
    who can help me?

    for example:
    while ($row = oci_fetch_array ($stmt, OCI_BOTH)) {
    echo "<tr>";
    echo "<td>".$row['ORDER_NUMBER']."</td>";
    echo "<td>".$row['ORDERED_DATE']."</td>";
    for ($i=0; $i<sizeof($items); $i++) {
    echo "<td>".$row[$i]." </td>";
    echo "</tr>";
    echo "</table>";
    ?>
    above php code should output plentites of lines while it output few lines.
    i don't know there has many lines outputed?
    who can help me?

  • PHP Code & PDF Forms

    Hello-
    First if this has been answered already I'm sorry as I have not yet located this answer to these questions (or they are half answered)
    1)  Can I build a PDF form that on submit it will upload to a server (the entire pdf file) using PHP code?  If so please tell me the best way to accomplish this as I want any user to fill out the pdf and then submit to a specific location of a folder on my site.
    2) I know that Adobe Reader v. 6 will not allow people to submit electronically - but am I correct that version 7 to the lastest will allow them to submit the form (via email or FTP if possible)?  I keep finding yes/no. I am aware of Adobe Reader Usage Rights that has to be assigned.
    Thanks in Advance
    -Brit

    The answer to question 1 is yes, assuming the form is Reader Extended by a LiveCycle Reader Extensions Server (the Extended Usage Rights in Acrobat are not sufficient).
    The answer to 2 is yes and no.  By e-mail, as long as the user has a client configured through MAPI (such as Outlook on Windows) you can automate the attaching to an e-mail (but not sending - the user still needs to click send).  If the user uses a web client like GMail, then no, that can't be automated.  And Acrobat does not have built-in FTP functionality.

  • How to upload 100 Mb+ video on Azure storage using PHP

    Dear Sirs,
    I have uploaded 1.2 Mb video to Azure storage through PHP code with no problem. When I tried to upload a 90 Mb video I got the following error message:
    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 90363852 bytes) in C:\xampp\htdocs\projetos\ajao\azure-sdk-for-php-master\WindowsAzure\Blob\BlobRestProxy.php on line 1319
    Can somebody please instruct me how to upload 100 Mb+ file size into Azure storage using PHP code?
    In advance thanks for your help.
    Best regards,
    Luiz Doi

    Hi Manu, Im having the same problem as Luiz, getting the same type of errors. I'm not a dev so I thought I ask for more details to clear things out.
    I have a Joomla site that was configured in though Azure hosting but I can't upload anything into Joomla less than 8MB. So basically having Azure storage blobs and media services for Joomla is useless if I can't use the larger files into the site or out
    of the site into Azure storage/Media services acct.   
    I even manually changed the upload_max_filesize and post_max_size parameters on the admin and then directly on the site code and even added a php.ini file on the root to override all as I read
    here but still nothing worked. 
    Therefore the code you posted above seems the solution but just wanted to be sure if it will solve my issue.
    1. I need my Azure hosted site to allow larger files up to 500MB.
    2. I need the files people upload on my site front end through a form see
    here to be sent to my Azure blob. What code do I need to paste on the Joomla's forms admn. So basically files first go into site and then to storage.
    3. After I upload the Php SDk and then the Http_Request2 PEAR
    and paste your code in the SDK how does the code recognize my Azure site and my azure blob/containers? Where in the code do I plug in my info?
    Kindly advise.
    Karin
    kd9000

  • Windows 2008 R2, Internet Information Services: Changing security settings to change a folder's content by using PHP

    Hello,
    I would like to ask if somebody's there who could help me:
    I am a PHP developer from Stuttgart, Germany.
    In my PHP web application I want to edit text files by using PHP code.
    These files are created once (by me), so they exist before the PHP application is used by any web user.
    My PHP code reads out some text files and other text files' contents are changed.
    In my developer's environment (Windows XP, XAMPP) it works fine.
    So I'm sure my code is OK.
    But the productive system ist a windows server system (Windows 2008 R2 and Internet Information Services).
    And here it doesn't work! The text files' contents aren't changed.
    I know on windows based webserver systems I have to change the folders security settings
    (what I mean: the folders where the text files are placed). I must give the IIS system user (in the past it's name was IUSR..., now it is named otherwise) additional rights, so that it can change folders content.
    I did. But it doesn't work.
    Some years ago when we used Windows Server 2003 that was the solution that worked.
    Giving the IUSR right to change folders content. That was it.
    But what is new in Windows Server 2008 that it doesn't work?
    I think it must be very complicated. Could somebody help me?
    Thanks
    Tommy

    Hi,
    This is IIS related issue, so you may post in the IIS forum.
    And it seems like that you have already post there, please follow it up to get further assistance
    http://forums.iis.net/t/1208164.aspx?Windows+2008+R2+Internet+Information+Services+Changing+security+settings+to+change+a+folder+s+content+by+using+PHP
    Regards,
    Yan Li
    Regards, Yan Li

  • How to get pdf form data into a php code?

    I have created one pdf form ,that helps to fill application form online.....
    I tried to access the field values using php code ($_REQUEST) but itz not taking any field values then i searched everywer to find solution but all are telling the same .then i got one link for demo of simple submit form , here is the demo http://blogs.adobe.com/stevex/files/SimpleSubmitSample.pdf but this demo is not working in my system,not getting values from pdf ........................Is there any setting to do inorder to get pdf form field values in PHP
    can any one help me??

    I never had this problem so obviously something needs tweaking. First thing to test is to leave the PDF out of the picture - check if the variables are received when performing a HTTP POST from another web page to your script. If this works, the next step would be to have your script do a phpinfo(); or print_r($_POST); and submit from your PDF. This in order to determine what really is sent from the client.
    Now you should be able to pinpoint your problem.

  • Preloading images using PHP

    Hi,
    I am trying to pre-load a few images on a page to save the loading time but seems to be not working in IE7. Here is my code:
    <SCRIPT LANGUAGE="JavaScript">
    top1 = new Image();
    top1.src = "./1.jpg";
    top1 = new Image();
    top1.src = "./2.jpg";
    </script>
    This is declared in the HEAD section. But onmouseover still takes a second or two, but once loaded, mouseover is instant. I have an image name called top1, is it because i am loading the same object with 2 different images so will the first image not finish loading?
    Also, if I was to include filenames which are dynamic, is there anything stopping me from using PHP code in the HEAD section? or is there a better way to do this?
    Thanks in advance.

    What you are trying to do has very little to do with PHP, except the generation of the image names in the JavaScript. Once the web page is sent from the server, everything relies on JavaScript. I have created a simple demo on my website at http://foundationphp.com/test/preload.html.
    The following script in the head of the page preloads the image:
    <script type="text/javascript">
    (new Image()).src = "/images/9781430210115.jpg";
    </script>
    In the body of the page, the rollover is created like this:
    <p><img src="/images/9781430216100.jpg" width="130" height="160" alt="Book cover"
    onmouseover="this.src='/images/9781430210115.jpg'"
    onmouseout="this.src='/images/9781430216100.jpg'" /></p>
    Note that the <img> tag has the original image assigned to its src attribute, and the replacement images are specified in the onmouseover and onmouseout event handlers. You cannot do it simply by assigning the preload image to a variable in the head and then assigning that variable name to the image, because the image tag has not been created at the time the script runs.
    It sounds to me as though you want to rotate the images. If so, Google "JavaScript image rotator". You should find plenty of solutions.

  • How many times can the photoshop code be used?  Like can I download it on one computer then later download it on a different computer?

    Basically the title explains my question.  How many times can the photos hop code be used?  Like can I download it on one computer then later download it on a different computer?

    You're allowed two installations/registrations. Anything above that requires deregistration on one of those computers.
    Take note that if this is Photoshop CC, it's as easy as signing out on a system; there aren't any serial numbers involved as it's all tied to your Adobe ID.

  • HT1539 I am getting an error that my Disc cannot be found, may be dirty, etc...  Please reinsert and try again.  After retrying, I cannot download, as the redemption code indicates that it has already been used.  How do I download movie now?

    I am getting an error that my Disc cannot be found, may be dirty, etc...  Please reinsert and try again.  After retrying, I cannot download, as the redemption code indicates that it has already been used.  How do I download movie now?

    Thanks for the quick advice!
    Unfortunately, I am still unable to open my core productivity apps, namely Skype and Evernote. Twitter, as well, could not start. But interesting quick fix though, I never knew you could do that.
    Here's the error log after the restart:
    What else should I try?

Maybe you are looking for

  • LSMW parent child?

    Hi Everyone , In LSMW , Header and Details file specification , If the header file has some records which do not have a corresponding record in the details file ...then Would LSMW program read those records from the header file ? I mean does LSMW rea

  • Connecting MacBook Pro to Mercedes Benz C350

    The mercedes manual says you can connect a laptop via bluetooth to the car to transfer Vcards. The iphone won't share contacts - so I'd like to use the address book with Bluetooth File exchange to put VCards onto the car's hard drive. I've read that

  • Settings to recall shopping cart when awaiting approval

    Hello We are on SRM 7.0. In SRM 7.0 when SC is in awaiting approval and requestor press edit then shopping cart can be recalled. What are the settings / sap note required for this. Thanks, Ashish

  • Mrp views upload

    Hi All, What are the mandatory minimum, views to be maintained in material master, to create MRP views? Eg- Suppose we create only basic view and tha ncan we create MRP view without Accounting, Purchasing etc... Regards, Satyendra

  • Cisco Aironet 1250 - How to bridge two AP's and get Non-root to talk to Root AP

    /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in