Jump to content

php warning require_once url file access


vinpkl

Recommended Posts

Hi all

This is the below error which is getting logged in the error log file

PHP Warning: require_once() [<a href='function.require-once'>function.require-once</a>]: URL file-access is disabled in the server configuration in on line 10
PHP Warning: require_once(http://www.domain.com/paypal.inc.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: no suitable wrapper could be found in ipn.php on line 10
PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'http://domain.com/paypal.inc.php' (include_path='.:/php') on line 10

Below code is on line 10 in ipn.php

require_once 'http://www.domain.com/paypal.inc.php';

what can be the problem ?

 

thanks

vineet

The message is quite direct.  It's telling you that the php install/config you are using does not allow includes (requires) specifying a url.  You can only include files that are part your your filesystem, not from the web.

 

If this module is truly something within your filesystem, then point to it that way, not as a url.

  On 4/7/2014 at 3:24 PM, ginerjm said:

The message is quite direct.  It's telling you that the php install/config you are using does not allow includes (requires) specifying a url.  You can only include files that are part your your filesystem, not from the web.

 

If this module is truly something within your filesystem, then point to it that way, not as a url.

Hi

 

thanks for the reply. I would like to know

 

Is IPN Compulsory for paypal script to work and complete transaction ?

 

Can we complete paypal payment transaction without IPN Script ?

 

Vineet

  On 4/7/2014 at 4:35 PM, ginerjm said:

I have no idea what you are talking about.  You asked about an error message - I deciphered it for you.

Hi

 

no problem.

 

May be someone who has worked with paypal script will able to help me

 

thanks

vineet

the problem isn't the paypal script. it's how you are trying to include the file.

 

you are trying to use the URL of that file. that won't work for two reasons -

 

1) your server is configured so that you cannot use a URL in an include statement.

 

2) if your server did allow a URL to be used in an include statement, only the output from that file would included. the php code would not be included.

 

to include the php code in that file, you must use a file system path on your server, NOT a URL.

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.