0

I am "playing" with an idea, but it might use curl which I am not too sure about, but can fathom my way round most. I can curl a page and get the contents - that's OK, but can you curl a page and get "specific" contents say a variable string or array? Reason for asking is I do a lot of updating to a few sites but most of that is "common" and it now makes sence to only do the updates once and then have the sites curl them.

1
  • In a cURL you're just getting the server to do a HTTP request, so you'll get all the content of the page. Will need to parse and find what you want from it. Commented Aug 4, 2010 at 14:01

4 Answers 4

2

weird
use an RSS feed instead of that nonsense with HTML parsing.

Sign up to request clarification or add additional context in comments.

Comments

0

You can get content with cURL and then use Regular Expressions to extract exactly what you need

Comments

0

Or use SOAP or any other WS implementation to centralize your content management system

Comments

0

I second the RegExp approach, and another solution could be the Dom parser: http://php.net/manual/en/class.domdocument.php

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.