User Profile

Collapse

Profile Sidebar

Collapse
WPPJames
WPPJames
Last Activity: Jun 26 '10, 04:27 AM
Joined: May 3 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Thanks Dormilich. I had the Rmsad.exe app developed for me in C#. Any suggestions you can offer to make this work (or alternative strategy) that I can pass on to my developer?
    See more | Go to post

    Leave a comment:


  • WPPJames
    started a topic Problem Processing JavaScript DHTML Function

    Problem Processing JavaScript DHTML Function

    I have a desktop software product (Rmsad.exe) that runs as a process in the background. Periodically, Rmsad.exe makes a call to a .php page (smfeed.php) on my server. One of the parameters it sends over is an URL to load in a DHTML window. Inside smfeed.php, I call a javascript function that displays the DHTML window:

    Code:
    var googlewin=dhtmlwindow.open("googlebox", "iframe", '<?php echo $outurl2; ?>', "Title
    ...
    See more | Go to post

  • WPPJames
    replied to How to parse XML with SimpleXML
    in PHP
    Never mind. My developer figured it out.

    &para = ¶
    in ascii

    &params is getting converted into ¶ms

    Now off to find a workaround.
    See more | Go to post

    Leave a comment:


  • WPPJames
    started a topic How to parse XML with SimpleXML
    in PHP

    How to parse XML with SimpleXML

    I have pass a URL statement to a server:

    Code:
    http://query.directrdr.com/ptrack?pid=458&v_url=http%3A%2F%2Fwww.google.com&feed=1&said=321&ip=96.226.232.199&ua=Mozilla%2F4.0+%28compatible%3B+MSIE+7.0%3B+Windows+NT+5.1%3B+.NET+CLR+2.0.50727%3B+.NET+CLR+3.0.4506.2152%3B+.NET&keyword=
    The server processes that and returns an XML file like so:

    Code:
    <?xml version="1.0" encoding="utf-8"
    ...
    See more | Go to post

  • WPPJames
    replied to PHP variable in Javascript (.js file)
    usmanhalalit: You were right...the .js file did have to be renamed to .php. I think I have everything working now. You were a great help. Many thanks!
    See more | Go to post

    Leave a comment:


  • WPPJames
    started a topic PHP variable in Javascript (.js file)

    PHP variable in Javascript (.js file)

    Please note that I have omitted some code below for readability.

    I have a .php file, feed.php:

    Code:
    <?php 
      require_once 'config.php';
      $a_url = $_POST["aurl"];
      $v_url = $_POST["vurl"];
    ?>
    
    <html>
    
    <head>
    
    <link rel="stylesheet" type="text/css" href="interstitial.css" />
    ...
    See more | Go to post

  • WPPJames
    replied to SimpleXML Question
    in PHP
    Thanks Dormilich for the feedback. I managed to get everything working and wanted to post my results for anyone else who happens upon this thread.

    First off, url should have been at the same level as the other elements. Problem was that it was wrapped in a CDATA statement that screwed up the reading in of the file. I corrected that by using:

    Code:
    $xml = simplexml_load_file($request_url,'SimpleXMLElement', LIBXML_NOCDATA)
    ...
    See more | Go to post
    Last edited by Dormilich; May 5 '10, 01:23 PM. Reason: Please use [code] tags when posting code

    Leave a comment:


  • WPPJames
    started a topic SimpleXML Question
    in PHP

    SimpleXML Question

    I'm attempting to use php and SimpleXML to assign variables from an XML output. This works:

    Code:
    $xml = simplexml_load_file($request_url) or die("feed not loading");
    and when I do a:

    Code:
    echo "<pre>";
    var_dump($xml);
    echo "</pre>";
    I get one of these two results depending on value of "Type" attribute.


    Code:
    object(SimpleXMLElement)#1
    ...
    See more | Go to post
No activity results to display
Show More
Working...