I wish to better understand which is the safer way to specify require paths in the following cases. Please, tell me if some is wrong. main.php must ...
I wish to better understand which is the safer way to specify require paths in the following cases. Please, tell me if some is wrong. main.php must ...
I require an extern php file, where just an echo is included, and it works well. The problem is, that the thing &#xFEFF is generated at the top. T ...
Inspired by the Php require_once I figured how it could be implemented for modern Bash with associative arrays here: a.sh #!/usr/bin/env bash decla ...
i got this error when I try to call product_class.php in index.php, my product_class.php work fine, but when I try to add it to index this error show ...
I'm developping a Wordpress plugin and i want in my main file in init function to require another page but it's not working, i've tried require(),reqi ...
Is there a way to see the included code by "included" or "require_once" in the same file without open the included file? Sometimes I would like to hav ...
Both vendor/autoload.php files are basically identical: In both files: This has had me digging into Composer's autoload files (which has been in ...
My project has two entry point for example File 1:/index.php ( first entry point) - here we include the config form the config folder File 2:se ...
I use phpfmt to format the php files according to PSR1 standard. Every time I use the Format Document function (Shift + Alt + F) in Visual Studio Code ...
I have a PHP script that uses require_once to load modules. It's run hourly by CRON and was working OK Since adding another module, it still works OK ...
I'm new to PHP. Today I tried to require a PHP library called "Ripcord", and it's not working. I installed the library using Composer, using this c ...
i am doing in wordpress 5.3 the pulgin for woocommerce is showing this msgs Warning: require_once(/home/sitename/public_html/1): failed to open s ...
I want to add my function handleParameters() into my AuthController but I had "Expected to find a class ... while importing services from resource... ...
I am using require_once to load some variable values from another page, however, on the bottom of the 'remote' page is another require_once that loads ...
Tree: index.php: (both) site.php: class.php When I visit test it shows: Warning: require_once(./mailer/class.phpmailer.php): failed ...
I have the below API. CityData.php is a file with city and zip which has a size of 100kb. With this function the interpreter loads the file from disk ...
I am using WordPress. I need to refresh a div every 10 seconds. The content of the div is a shortcode, which has an image from an array. The div name ...
I get the following error: If I comment out the require_once it works perfectly fine. DummyClass is defined externally and can be found in the ...
I can't seem to find the answer and I have asked everyone I know. On my local server my code worked perfectly fine. When I uploaded it to a server, ...
I am using as a beginner : Eclipse IDE for PHP Developers Version: Photon Release (4.8.0) Build id: 20180619-1200 OS: Windows 10, v.10.0, x86_64 / win ...