Hii I am facing this problem can you please help me out

Warning : require_once(script/common.php): failed to open stream: No such file or directory in /home/vol9_6/epizy.com/epiz_30839186/htdocs/index.php on line 34

Fatal error : require_once(): Failed opening required ‘script/common.php’ (include_path=‘.:/usr/share/pear/’) in /home/vol9_6/epizy.com/epiz_30839186/htdocs/index.php on line 34

That means that PHP cannot require script/common.php because it doesn’t exist. Please verify its location in the script folder.

3 Likes

I don’t understand how to do this can you please explain me in detail

Can you find a file named common.php in the script folder?
Are you using software or coding this yourself?
If you are using software, please enable Debug mode.

2 Likes

Yes I find this file but I did not use any software

Can you please share the portion of index.php where script/common.php is required?
Be sure to wrap it in 3 backticks (`) and censor any private information (passwords, names).

2 Likes

Sorry I’m a new user of this forum it’s not allowe me attached file so I paste the text of file
This is the 34 line
require_once(“script/common.php”)

Try this instead:

require_once(__DIR__.'/script/common.php');

I have experienced this problem you’re discussing because I left out __DIR__.

And to specify: __DIR__ is 2 underscores and then the word DIR and then 2 more underscores.

2 Likes

No it’s not working

Without access to the code, it is hard for anyone to help you.
Because you are programming this script, you need a basic level of debugging skills.
I am having trouble helping you because of what I said above and because not much context is being provided.
“It’s not working” is not context. What error does it display? What are the contents of script/common.php?

See, no context = no solution.

4 Likes

Sorry I have no coding experience. I just uploaded the file in Google drive this is the link

You can check this

I am no longer going to provide you assistance because your script violates the TOS:

Bitcoin / cryptocurrency faucet sites

4 Likes

Sorry I didn’t no I’m volunteering terms and conditions

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.