Category: php

Enable CORS for multiple domains in PHP

In this article, we’ll explain to you how to permit CORS requests for multiple origins in PHP. To get the response from a simple cross-origin POST request, we need to include the header Access-Control-Allow-Origin. The specification of Access-Control-Allow-Origin allows for multiple origins, or the value null,

Read More

Exploring Security Issues with JavaScript Web APIs

This article explores the challenges and solutions of using third-party APIs in web applications while maintaining security. Browsers have a same-origin policy in place to prevent unauthorized data exchange between different domains. However, this policy can sometimes hinder the transfer of data between websites that have

Read More

VS Code & PhpStorm 2-clicks Auto-Format Code

PhpStorm (Menu Code > ReFormat Code/File) * Reformat File has more Options as seen in the second screenshot VS Code (Right-Click + choose: Format Document/Selection) Format Document: For All Document but Format Selection: Only for the Selected Code

Read More

Bootstrap 5.x Pop-overs As Fast As 3-Steps

Official Docs located here: https://getbootstrap.com/docs/5.1/components/popovers/ Production Example here: http://michaeleliasphotovoltaicsystems.com/products.php STEP-1 [in the place of Popovers – HTML5]: STEP-2 [Bottom, Below The Footer]: STEP-3 [Bottom, Below/After Step-2]: That’s it…!!! ========================

Read More

Fix an Internet connection – Internet not working

Here is a Python Script If then try… …. else try .., From this script flow & flowchart you can learn to debug a non working connection EASY READ EVEN FOR NON PYTHON PROGRAMMERS SCRIPT HERE // FLOWCHART FOLLOWS 17-internet-connection_py Flowchart          

Read More

How to configure XAMPP to send mail from localhost?

How to configure XAMPP to send mail from localhost?   You can send mail from localhost with sendmail package , sendmail package is inbuild in XAMPP. So if you are using XAMPP then you can easily send mail from localhost. for example you can configure C:\xampp\php\php.ini

Read More

This is my blog for my web dev biz… my Office & Home Office!

This blog is my first blog for my web development business…   http://www.l-web-dev.net –  Polis  –  Cyprus Mob.:+357-99-300-548 Skype: lseona [100% online] or lselwd  In my work flow, I use Adobe Products, I also use NetBeans, Eclipse, Notepad++, Xcode, … I use and online tools like Adobe

Read More