Hey.

I need to copy the last 2 sets of numbers from this url
https://www.molten-wow.com/?display=info

so I can put each one into a php variable

Can this be done?

Thanks

it can! The file you refering to is XML, so i suggest you'd use simplexml, you can google it, or here is a great manual!

Thanks for the reply but I still dont see how to do it. That link looks way to complicated to take a few numberS?

you need a regular expression to take what you need. The next thing is how you get the file to do so. I really dont know how php can do screen scrapping. cgi's is very simple. Thus python or perl .

try php curl functions ok.?
;)

btw to store each number in a variable you will need regex

Or an insane amount of str_replace calls :rofl:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.