Jump to content

Search the Community

Showing results for tags 'xml php'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 4 results

  1. I am having trouble getting the element values i want from the following xml <entry> <category label="form type" scheme="http://www.sec.gov/" term="8-K" /> <content type="text/xml"> <accession-nunber>0001269026-15-000064</accession-nunber> <act>34</act> <file-number>001-33624</file-number> <file-number-href>http://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&filenum=001-33624&owner=exclude&count=40</file-number-href> <filing-date>2015-11-10</filing-date> <filing-href>http://www.sec.gov/Archives/edgar/data/1269026/000126902615000064/0001269026-15-000064-index.htm</filing-href> <filing-type>8-K</filing-type> <film-number>151219153</film-number> <form-name>Current report</form-name> <items-desc>items 8.01 and 9.01</items-desc> <size>36 KB</size> </content> <id>urn:tag:sec.gov,2008:accession-number=0001269026-15-000064</id> <link href="http://www.sec.gov/Archives/edgar/data/1269026/000126902615000064/0001269026-15-000064-index.htm" rel="alternate" type="text/html" /> <summary type="html"> <b>Filed:</b> 2015-11-10 <b>AccNo:</b> 0001269026-15-000064 <b>Size:</b> 36 KB<br>Item 8.01: Other Events<br>Item 9.01: Financial Statements and Exhibits</summary> <title>8-K - Current report</title> <updated>2015-11-10T16:17:52-05:00</updated> </entry> My php code is as follows: $xml = file_get_contents($url, false, $context); $xml = simplexml_load_string($xml); foreach ($xml->entry as $entry){ $Fnum=$entry->{'filing-type'}; $Fdate=$entry->{'filing-date'}; $Flink=$entry->{'filing-href'}; $Form=$entry->{'form-name'}; echo "<li>".$Fnum.$Fdate.$Flink.$Form."</li>"; }It just doesnt load anything. If I make it: foreach ($xml->entry[0] as $entry){ Then it only returns that entry. How can I have it return all of the entries?
  2. ok all you phpfreaks, im hoping one of you can help me :-) ive started a simple xml file and php file to read and view as below.... <?xml version="1.0" encoding="ISO-8859-1"?> <datas> <comp> <result> <year>2013</year> <compName>Butlins Mineworkers</compName> <bandName>GUS Virtuoso</bandName> <position>1st</position> <points>2</points> </result> <result> <year>2013</year> <compName>Butlins Mineworkers</compName> <bandName>GUS Virtuoso</bandName> <position>2nd</position> <points>4</points> </result> <result> <year>2013</year> <compName>Butlins Mineworkers</compName> <bandName>Carlton Main Frickley Colliery</bandName> <position>3rd</position> <points>6</points> </result> </comp> </datas> <?php $xml = simplexml_load_file("xmltestdata.xml") or die("Error: Cannot create object"); foreach($xml->children() as $result){ foreach($result->children() as $result => $data){ echo $data->year; echo $data->compName; echo $data->bandName; echo $data->position; echo $data->points; echo "<br />"; } } ?> In time the xml will grow and my question is, what if a user wanted to view results for a specific band 'bandName' via say a 'Drop Down Box?? I do hope theres someone out there in cyber who can help Many Thanks in advance. Bish
  3. hello, i want make xml.php file likes http://gosale.ge/xml.php with php xml this is my code but it dont like this while($row = mysql_fetch_array($rs)) { $id = $row['id']; $name=$row['name']; $image=$row['pic_dir']; $text=$row['id']; $time=$row['end_at']; $price=$row['price']; $percent= 100-(($row['price']*100)/$row['origin_price']); $price=$row['price']; $xml_output .= "<sale >\n"; $xml_output .= "<link>http://hopla.ge/component/enmasse/deal/view/$id/1960_28_1_.html</link>\n"; $xml_output .= "<title>$title</title>\n"; $xml_output .= "<image>2222</image>\n"; $xml_output .= "<text>$text</text>\n"; $xml_output .= "<price>$price</price>\n"; $xml_output .= "<percent>$percent</percent>\n"; $xml_output .= "</url>\n"; } $xml_output .= "</deals>"; echo $xml_output; can anybody help me?
  4. I am trying to get jobs from indeed and displayed on my web page. The file is Index.php following are the contents of the file $ch = curl_init("api.indeed.com/ads/apisearch?publisher=3312850746006621&l=islamabad&sort=&radius=25&st=&jt=&start=&limit=&fromage=&filter=&latlong=1&co=pk&chnl=personforce&userip=1.2.3.4&useragent=Mozilla/%2F4.0%28Firefox%29&v=2"); curl_exec($ch); when i execute this file I get Indeed's xml feed on my index.php page. How can I use this xml feed to be displayed properly? Between the two dashed lines I am including the sample xml response as well -------------------------------------------------------------------------------------------------------------- islamabad true false 2187 1 10 25 0 Technology Sales Representative IV Oracle Islamabad PIS PK Islamabad Oracle Thu, 04 Oct 2012 20:41:50 GMT Sells a subset of product or services directly or via partners to a large number of named accounts/non-named accounts/geographical territory (mainly Tier 3... http://www.indeed.com.pk/viewjob?jk=c3fe801a2074a309&qd=Ug_XbAmQziydODlPr4hms0SXTh9IkYpbUt7Brr3yTdsqOPOtM-XpjB0h5wh-exOs0JAy_uuojM_N81JYi5_F-cWVwMZ3urjTWgYsjW2vf74&indpubnum=3312850746006621&chnl=personforce&atk=178o72pl30g6161p indeed_clk(this, '9127'); 33.717033 73.06044 c3fe801a2074a309 false false Islamabad 13 hours ago Food Security and Livelihoods Coordinator Action Against Hunger Islamabad PIS PK Islamabad Action Against Hunger Wed, 03 Oct 2012 18:13:40 GMT Location: Islamabad Duration: 12 months General Objectives: This is a Senior Management position expected to develop national FSL programming and co-ordinate... http://www.indeed.com.pk/viewjob?jk=902a6496c287b123&qd=Ug_XbAmQziydODlPr4hms0SXTh9IkYpbUt7Brr3yTdsqOPOtM-XpjB0h5wh-exOs0JAy_uuojM_N81JYi5_F-cWVwMZ3urjTWgYsjW2vf74&indpubnum=3312850746006621&chnl=personforce&atk=178o72pl30g6161p indeed_clk(this, '9127'); 33.717033 73.06044 902a6496c287b123 false false --------------------------------------------------------------------------------------------------------------
×
×
  • 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.