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?

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

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.

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 ;)

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.