DrupalBin
Submit Code
About
Recent Posts
Fix for Code
1 hour 9 min
ago
Code
1 hour 10 min
ago
example array
1 hour 21 min
ago
Code
1 hour 33 min
ago
more
Tags
CCK
fapi
javascript
jquery
menu
module
Panels
simpletest
template.php
test
theme
views
more tags
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Create new account
Request new password
Log in using OpenID
Cancel OpenID login
Home
SimpleXML
getDOM
July 29, 2008 - 6:56pm —
Rob Loach
function
getDOM
(
$url
)
{
$ch
= curl_init
(
)
;
curl_setopt
(
$ch
, CURLOPT_RETURNTRANSFER,
1
)
;
curl_setopt
(
$ch
, CURLOPT_URL,
$url
)
;
curl_setopt
(
$ch
, CURLOPT_TIMEOUT,
10
)
;
DOM
SimpleXML
xml
Read more
scrape it up
July 16, 2008 - 7:26pm — Anonymous
$xml
= simple_get_xml
(
'http://www.cotrip.org/atis/web.TraveltimeMarshal'
)
;
$table
=
$xml
->
xpath
(
'/html/body/table[3]'
)
;
foreach
(
$table
[
0
]
->
tr
as
$item
)
{
if
(
count
(
$item
)
==
1
)
{
scraper
SimpleXML
xml
Read more
Fix for Demo code to parse the Google SoC 2008 applications list available to mentors
March 29, 2008 - 1:25pm — Anonymous
<?php
/**
* Parse the Google SoC 2008 data available to mentors at
* http://code.google.com/soc/2008/drupal/open.html
* in order to include it in a Drupal app
*
SimpleXML
SoC
XPath
Read more
Demo code to parse the Google SoC 2008 applications list available to mentors
March 29, 2008 - 6:56am — Anonymous
<?php
/**
* Parse the Google SoC 2008 available to mentors at
* http://code.google.com/soc/2008/drupal/open.html
* in order to include it in a Drupal app
*
SimpleXML
SoC
XPath
Read more