close ad
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Warning: strpos(): Empty needle in ... issue

Thread began 2/09/2022 4:14 am by Paul | Last modified 2/15/2022 11:55 am by Paul | 104 views | 1 replies

PaulBeta Tester

Warning: strpos(): Empty needle in ... issue

(I've started a new thread from

I'm running a xampp install locally and on my NAS (which isnt open to internet, hence the *.143 IP)
Apache/2.4.52 (Win64) OpenSSL/1.1.1m PHP/7.4.27
WA Data Bridge

I'm getting this warning at the top of my php page;
Warning: strpos(): Empty needle in /volume1/web/inventory/Connections/DevDB.php on line 15
Despite that warning, the php page appears to render and function normally, however I need to resolve/lose the warning!

The connection page is below:

# FileName="WADYN_MYSQLI_CONN.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_MyDevDB = "localhost";
$database_MyDevDB = "mydevices";
$username_MyDevDB = "paulc";
$password_MyDevDB = "pE8/AOzpL(";
$foundConnection = false;
if ($foundConnection == false) {
$domains = explode(",","");
for ($domindex = 0; $domindex<sizeof($domains) && !$foundConnection; $domindex++) {
$domainCheck = trim($domains[$domindex]);
if (strpos(strtolower($_SERVER["SERVER_NAME"]),strtolower($domainCheck)) !== false && ($domainCheck == "" || strpos(strtolower($_SERVER["SERVER_NAME"]),strtolower($domainCheck)) == strlen($_SERVER["SERVER_NAME"])-strlen($domainCheck))) {
$hostname_MyDevDB = "";
$database_MyDevDB = "mydevices";
$username_MyDevDB = "paulc";
$password_MyDevDB = "pE8/AOzpL(";
$foundConnection = true;

$MyDevDB = mysqli_init();
$MyDevDB->real_connect($hostname_MyDevDB, $username_MyDevDB, $password_MyDevDB, $database_MyDevDB) or die("Connect Error: " . mysqli_connect_error());


The ini.php has the following present under Dynamic Extensions:


Any thoughts?

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...