Jump to content

gromer

Members
  • Posts

    30
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

gromer's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. No, it's a Linux setup. It looks like domxml is working so far. Thanks for the help!
  2. Yikes, I'm retarded. I saw that earlier, but I was under the impression from another page I looked at made it look like 4.3.x was fine. Anything else I can use without upgrading my php? If not, how easy/hard is it to upgrade to the newest php 5 version? Also, couldn't I just do a side by side install so I can test out my current php to make sure everything works? Then migrate everything to php5 from php4? Ugh, I wish this site was in ASP
  3. php version 4.3.9 I'm sending xome XML to a server who then sends XML back to me. I use fread and get the XML sent back and I can echo my $xml variable and it has the xml. I can then make a DOMDocument but when I use loadXML it stops and doesn't do anything after that line, including displaying the HTML I have below all my php code. Is there something I need to configure with php for loadXML to work? If so, how do I go about doing that? Thanks! $xmlRequest = fsockopen($hostname, $port); fputs($xmlRequest, $xmlToSend); while ($out = fread($xmlRequest, 1024)) { $xml .= $out; } fclose($xmlRequest); // Parse XML data and set session variables when needed and then redirect to arSummary.php. $xmlDoc = new DOMDocument(); $xmlDoc->loadXML("<?xml version=\"1.0\"?><employees><employee><name>Mike</name></employee></employees>"); echo $xmlDoc->saveXML();
  4. What if he does a sleep of 10 seconds and it takes 20 seconds for the query to run? I would use AJAX for this. When they submit the form, it displays a loading gif image or whatever you want and once you catch the response, it displays whatever you need to display. I started learning my AJAX stuff at w3school, you should look there. Also, there are prolly some really good books our there.
  5. Do you have a url to the live site with this code we could look at?
  6. I think what he was trying to do was help make your code more efficient....lol
  7. Very rough outline: <html> <head> </head> <body> <table> <?php $currentColumn = 0; while (condition) { if ($currentColumn == 0) { echo "<tr>"; } echo "<td>" . $somedatafromyourdatabase . "</td>"; if ($currentColumn == 2) { echo "</tr>"; $currentColumn = 0; } else { ++$currentColumn; } } ?> </table> </body> </html>
  8. what does this give? echo '<pre>', htmlentities($xml), '</pre>'; Very awesome, that does what I need. Thank you much!!
  9. Then try: if ($query == "") or if ($query == null) in place of if (isset($query))
  10. the (HTML) needs to be a different doc...otherwise the pagination menu/display is printed That's what I said to do. Put the php code in a separate file where the form points to in the action field.
  11. So all you would need to do to my code above is change the action to some other php file and put my php code in it, sans the $self line.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.