How to include php page from different website to current website? - php

I have a created a domain but all the functions and classes of that domain is to be stored on another domain. but i am unable to get the page using include or require method. I am getting the following error:
Warning: include_once() [function.include-once]: Failed to enable crypto in /domain.com/includes/functions.php on line 3 Warning: include_once(https:/other_domain.com/access.php) [function.include-once]: failed to open stream: operation failed in /domain.com/includes/functions.php on line 3 Warning: include_once() [function.include]: Failed opening 'otherdomain.com/access.php' for inclusion (include_path='.:/opt/php52/lib/php') in /domain.com/includes/functions.php on line 3

The crypto error leads me to think this may be an issue with your SSL:
OPENSSL file_get_contents(): Failed to enable crypto

Related

include_once failed to open stream and Warning: include_once(): Failed opening.for inclusion (include_path='.:/usr/share/pear:/usr/share/php')

I am getting below error . I have already tried with dir , document root, require_once and require.
This error i am getting in Live Server.
Warning: include_once(/storage/ssd1/655/2980655/public_html/Lib/DB//MysqliDb.php): failed to open stream: No such file or directory in /storage/ssd1/655/2980655/public_html/index.php on line 8
Warning: include_once(): Failed opening '/storage/ssd1/655/2980655/public_html/Lib/DB//MysqliDb.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /storage/ssd1/655/2980655/public_html/index.php on line 8
Thank you in Advance.

Magento URl error with PHP

I installed fresh magento 1.9.2.2. While installing and after it instaled, whenever i try my domain url the same error have been coming like shown below.
Warning: include_once(Mage/Core/functions.php): failed to open stream: No such file or directory in /home/website/public_html/app/Mage.php on line 50
Warning: include_once(): Failed opening 'Mage/Core/functions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/website/php') in /home/website/public_html/app/Mage.php on line 50
Warning: include_once(Varien/Autoload.php): failed to open stream: No such file or directory in /home/website/public_html/app/Mage.php on line 51
Warning: include_once(): Failed opening 'Varien/Autoload.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/website/php') in /home/website/public_html/app/Mage.php on line 51
Fatal error: Class 'Varien_Autoload' not found in /home/website/public_html/app/Mage.php on line 54
So I used
http://xxx.xxx.xxx.xxx [my ip address]/~website/
then in installtion I changed my path to my domain name. Its not working.
Anyone know any solution. Please help me.
I think that your problem caused by the .htaccess file. Try to rename it to test this idea or check rewrite/redirect rules.

PHP Warning: include_once() failed to open stream: Permission denied

I'm trying to make an include in PHP.
The weird thing is that I have a copy of the file I'm including, if I include the original file the there is no problem, but if I include the copy then the error shows up.
PHP Warning: include_once(index2.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: Permission denied in "path"/index.php on line 30
PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening 'index2.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in "path"/index.php on line 30
The original file is index2.php.bck, if I switch the names between the files, then the error disappears. The permissions are the same for both files (644) and I've already tried to add dirname(__FILE__) without success.
I have to say that the copy has a different html code, but the only thing that changes is the body.

Fatal error: Call to undefined function geoip_open()

all goes well suddenly i dont know why a fatal error occurred can any one please tell me the solution ???
Warning: include(lang.php) [function.include]: failed to open stream: Operation not permitted in /var/httpdocs/dev52/include.php on line 59
Warning: include() [function.include]: Failed opening 'lang.php' for inclusion (include_path='.:') in /var/httpdocs/dev52/include.php on line 59
Warning: include(lang2.php) [function.include]: failed to open stream: Operation not permitted in /var/httpdocs/dev52/include.php on line 61
Warning: include() [function.include]: Failed opening 'lang2.php' for inclusion (include_path='.:') in /var/httpdocs/dev52/include.php on line 61
Warning: include_once(inc.php) [function.include-once]: failed to open stream: Operation not permitted in /var/httpdocs/dev52/include.php on line 265
Warning: include_once() [function.include]: Failed opening 'inc.php' for inclusion (include_path='.:') in /var/httpdocs/dev52/include.php on line 265
Fatal error: Call to undefined function geoip_open() in /var/httpdocs/dev52/include.php on line 266
I would suggest you contact your webhost. If everything was working and it suddenly stops working, especially on a widely-used package like phpMyAdmin, it's more than likely someone changed a configuration setting and screwed it up.
If this doesn't help, or if you own the server yourself, try reinstalling phpMyAdmin.
This sometimes happens with nested includes, check to see if there are any include(); statements in lang.php and if so then include these files directly.

About PHP Dig And Install

I am working on something and it is not working. I am getting this error:
Warning: include(../includes/config.php) [function.include]: failed to open stream: No such file or directory in /home/valerie2/public_html/elinkswap/snorris/install.php on line 24
Warning: include(../includes/config.php) [function.include]: failed to open stream: No such file or directory in /home/valerie2/public_html/elinkswap/snorris/install.php on line 24
Warning: include() [function.include]: Failed opening '../includes/config.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/valerie2/public_html/elinkswap/snorris/install.php on line 24
Warning: include(../libs/auth.php) [function.include]: failed to open stream: No such file or directory in /home/valerie2/public_html/elinkswap/snorris/install.php on line 25
Warning: include(../libs/auth.php) [function.include]: failed to open stream: No such file or directory in /home/valerie2/public_html/elinkswap/snorris/install.php on line 25
Warning: include() [function.include]: Failed opening '../libs/auth.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/valerie2/public_html/elinkswap/snorris/install.php on line 25
Fatal error: Call to undefined function phpdighttpvars() in /home/valerie2/public_html/elinkswap/snorris/install.php on line 27
Here is the code that it is getting the error:
24. include $relative_script_path.'./includes/config.php';
25. include $relative_script_path.'./libs/auth.php';
26.
27. extract( phpdigHttpVars(
array('step'=>'integer',
Ok on line 24 where the include is there is a dot I put that in there cause sometimes it will help. But it didn't have one there before and I still had the error. I am not understanding why I can not get these to work. Can someone help me understand?
The actual file it is looking for is
$relative_script_path.'./includes/config.php';
One way to debug is to die with that path, then you can check what it's really looking for:
die($relative_script_path.'./includes/config.php');
The page should stop at that point and display the entire file path. You usually then see what the error could be.

Categories