DrupalBin
Submit Code
About
Recent Posts
Fix for Views cumulus: tag_cloud
Fix for Code
sjfgjgjfgidfgh
Code
Code
test.berniecram.com.alias.drushrc.php
Code
provision-deploy error
Create node programmatically with file
Code
more
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Log in using OpenID
Cancel OpenID login
Create new account
Request new password
Tags
CCK
drupal
fapi
jquery
menu
module
php
simpletest
taxonomy
test
theme
views
more tags
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