Jump to content

more help with imploding/including


jameslat

Recommended Posts

hello i need some more help with this topic.

i'm srry i have to ask but i can;t figure this out on my own.

i have a website

www.genjofpa.com

and i am trying to extract the content of a certain webpage (which will be a logo) on to another website.

i can not figure out how to do this.

i tried implode, include  and i still don;t understand it.

can someone help me make some code that will allow me to simply implode/include the content on a certain website?

thanks again

-James

Link to comment
https://forums.phpfreaks.com/topic/197041-more-help-with-implodingincluding/
Share on other sites

If allow_fopen is on in your PHP.ini settings then you can do something simple like this:

$url = file_get_content($url);
$logo = preg_match('/<img src=\"\"..../', $contents);

 

And grab it from there, you'll have to learn your own regex though.

  • 2 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.