Jump to content

jd2007

Members
  • Posts

    502
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jd2007's Achievements

Advanced Member

Advanced Member (4/5)

0

Reputation

  1. oh...its actually .xml, I accidentally typed it wrong...i still have the problem..
  2. when i set it i gave it the name 'id3' and set id3's type to ID....
  3. php code : <?php $doc = new DomDocument; // We need to validate our document before refering to the id $doc->validateOnParse = true; $doc->Load('xml.php'); echo $doc->getElementById('477b0f0cdd410')->tagName . "\n"; ?> this is xml.php: <?xml version="1.0" encoding="windows-1250"?> <sos><cat id3="477b0f0cdd410"/></sos>
  4. read about javascript's setTimeout function here http://www.w3schools.com/htmldom/met_win_settimeout.asp
  5. for example, when i click the button below : <input type="button" value="Click" /> i want this function to be called, (like JavaScript): <?php function click() { echo "abc"; }
  6. <?php $xml = new DOMDocument(); $xml->load("caldb_users.xml"); $i=$xml->getElementsByTagName("db"); foreach ($i as $x) { echo $x; } ?>
  7. no...is there a way to make a string act like code like the Javascript function eval() ?
  8. how do i convert this string: "print('hello')" to act like this: <?php print('hello'); ?>
  9. thanks...i used it before i asked but did not realize it worked !
  10. Is there a way to get the name of all classes created in a php script ?
×
×
  • 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.