All Questions
5,178
questions
1
vote
2
answers
97
views
Is this good way to use php in html page
<?php
require_once('dbcon.php');
$query = "select * from indexpage";
$query2= "SELECT * FROM `blogintro` ORDER BY `id` DESC;";
$query3= "SELECT * FROM `indexjob` ORDER ...
-1
votes
1
answer
47
views
Allow python script to be executed by Apache, but not read in a browser
I have a website that uses a python script to get information from a separate entity. The python script is required due to the libraries in use and the structure of the other entity. The retrieved ...
0
votes
1
answer
112
views
Including Bootstrap script
So, i have a page with a Bootstrap navbar included using PHP function
include_once('navbar.php');
and on that I have included already the Bootstrap CSS file but i need also to add the script for ...
0
votes
1
answer
108
views
Rewrite rule for open WordPress pages using slug or path
I've been working on a WordPress multilingual theme and I am trying to access my site pages using add_rewrite_rule function. This is a part of my code:
add_rewrite_rule( "^($language)/(.*)$",...
0
votes
0
answers
161
views
MongoDB Laravel Connection Issue - ConnectionTimeoutException
I am facing an issue while attempting to integrate MongoDB and PHP in my project. When I test a regular connection to MongoDB, I don't encounter any problems; however, I wanted to use MongoDB with PHP ...
0
votes
2
answers
157
views
Laravel public folder path
I am using laravel 10, and have images inside /public/images , when i try yo use asset or public_path(), i get a duplicate prepended to the url like so
Using public_path();
file_get_contents(/var/www/...
-5
votes
1
answer
96
views
unable to remove additional cart and checkout pages in the header of site created by wordpress with WooCommerce integration
I am experienceing an issue on the header tab of a website that I have created using Wordpress with WooCommerce integration:
I am seeing additional Cart and Checkout functions tab on the header on top ...
1
vote
1
answer
271
views
How do I solve "Header may not contain more than a single header, new line detected" for my Stripe Connect onboarding flow?
I am not the best programmer and this is my first big project. The script here is mainly for a redirection after the registration process. Everything works fine until you click the "sign up" ...
0
votes
1
answer
34
views
PHP, HTML, MariaDB | PHP gets stuck when connecting
I'm trying to get started with PHP and HTML. I now have an index.html and a .php file (both below). When I execute the PHP file the entry appears in the database, when I click submit in the browser it ...
-2
votes
1
answer
127
views
Encountering 404 Error when deploying site via GitHub Pages
I am trying to deploy my website using GitHub Pages, but I'm facing an issue with a 404 error. Here's the link to my repository: https://github.com/brissal/test.
I've followed the GitHub Pages ...
0
votes
0
answers
198
views
How to connect the device to Zklibrary PHP, Its only connected by usb and the code requires Device IP
I need to connect the usb fingerprint device to Zklibrary PHP, Its only connected by usb and the code requires Device IP and i don't really know what to do.
Below is the code for initializing the ...
0
votes
0
answers
347
views
Hostinger File Access | Wokring outside public_html folder | php website
I am new to web development.
I recently made a mcq based web app, which just tracks how many wrong attempts it took the user to get the correct answer.
I successfully uploaded it on hostinger.
www....
0
votes
1
answer
440
views
Hide Elementor widgets if there is no input in Advanced Custom Fields field
so the question basically is that can I make an Elementor widget invisible automatically if there is a custom field that has no input?
Example: Heading element with dynamic tag associated from ACF ...
1
vote
0
answers
179
views
Flutter Web: Open php script in background
so i have a php file on my server which i need to access from my flutter web code. when doing it manually in a browser or via urlLauncher in flutter it works fine.
but i need to do it in the ...
0
votes
0
answers
30
views
how to handle the undefined array key problem in php [duplicate]
**i was trying to show the result in like a list in a page , but it shows undefined array key problem . i'm still learnign php and new to thisenter image description here. how to fix this ? i'm ...