Jump to content

how to retrieve a part of a page


hno

Recommended Posts

HI every one 

 

I want to retrieve a part of a page and show it  to my site . I tried file_get_content but it was forbidden in my host .

 

how can I do so ?

 

thanks

 

please help me , How can I do so ?

 

Link to comment
Share on other sites

yes use curl and use a marker to mark those area.

Recently for one ticket I have added a text when accessed with certain parameter. Like I will access that page using

/test.php?mypage=1

Then in that case I will add a php code there where I will check that if mypage=1 will be in parameter then I will output {content} .... {/content}. In this case using regex on the content grabbed is easier. I have also added exit after my content so that my page access from the specified page can be faster.

Link to comment
Share on other sites

yes use curl and use a marker to mark those area.

Recently for one ticket I have added a text when accessed with certain parameter. Like I will access that page using

/test.php?mypage=1

Then in that case I will add a php code there where I will check that if mypage=1 will be in parameter then I will output {content} .... {/content}. In this case using regex on the content grabbed is easier. I have also added exit after my content so that my page access from the specified page can be faster.

 

thanks for your help , I tried it but I couldn't use that . Can you give me an example ?

 

thanks for your help

Link to comment
Share on other sites

yes use curl and use a marker to mark those area.

Recently for one ticket I have added a text when accessed with certain parameter. Like I will access that page using

/test.php?mypage=1

Then in that case I will add a php code there where I will check that if mypage=1 will be in parameter then I will output {content} .... {/content}. In this case using regex on the content grabbed is easier. I have also added exit after my content so that my page access from the specified page can be faster.

 

thanks for your help , I tried it but I couldn't use that . Can you give me an example ?

 

thanks for your help

 

can you giving me an example of using curl ? please

Link to comment
Share on other sites

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.