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

Link to comment
Share on other sites

  • 2 months later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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