User Profile
Collapse
-
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? -
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 -
Never mind. My developer figured it out.
¶ = ¶
in ascii
¶ms is getting converted into ¶ms
Now off to find a workaround.Leave a comment:
-
How to parse XML with SimpleXML
I have pass a URL statement to a server:
The server processes that and returns an XML file like so: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=
...Code:<?xml version="1.0" encoding="utf-8"
-
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!Leave a comment:
-
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" />
-
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)
Leave a comment:
-
SimpleXML Question
I'm attempting to use php and SimpleXML to assign variables from an XML output. This works:
and when I do a:Code:$xml = simplexml_load_file($request_url) or die("feed not loading");
I get one of these two results depending on value of "Type" attribute.Code:echo "<pre>"; var_dump($xml); echo "</pre>";
...Code:object(SimpleXMLElement)#1
No activity results to display
Show More
Leave a comment: