Jump to content

Load a url within php


stelaras1

Recommended Posts

Hmm maybe you are right..

but know i get the following erros:

 

Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/xxx/public_html/index.php on line 665

 

Warning: include(http://www.xxx.com/joomla/index2.php?option=xxx53) [function.include]: failed to open stream: no suitable wrapper could be found in /home/xx/public_html/index.php on line 665

 

Warning: include() [function.include]: Failed opening 'http://www.xxx.com/joomla/index2.php?option=xxx53 for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php:/usr/lib/php/Zend') in /home/xx/public_html/index.php on line 665

 

are these error related with the configuration of php.ini file?

Link to comment
Share on other sites

You could also look at the cURL package (see here).

 

However back to your original errors, (not that i've had to deal with it, but have read about it), there is a setting in php.ini which can forbid php from making external connections, you'll need to look at some php.ini specs to find out which...

Link to comment
Share on other sites

Hmm maybe you are right..

but know i get the following erros:

 

Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/xxx/public_html/index.php on line 665

 

Warning: include(http://www.xxx.com/joomla/index2.php?option=xxx53) [function.include]: failed to open stream: no suitable wrapper could be found in /home/xx/public_html/index.php on line 665

 

Warning: include() [function.include]: Failed opening 'http://www.xxx.com/joomla/index2.php?option=xxx53 for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php:/usr/lib/php/Zend') in /home/xx/public_html/index.php on line 665

 

are these error related with the configuration of php.ini file?

Check out allow_url_fopen and allow_url_include in php.ini.

Link to comment
Share on other sites

i've managed to use:

file_get_contents()

and cURL functions..

 

they grab the requested url and transfered it in the center of my page, but when a tried to choose a link within the requested page (that has appeared by using let's say cURL) it could not be found since the new url is trying to open in relation with the domain of my website.

For instance if i request google.com and my website is www.mywebsite.com, if i try to make a search to google it cannot be loaded.

Imagine that i need the functionality to be the same if i had a iframe option.

 

What else can i do?

 

Thank you all ;)

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.