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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

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.