Bit of an odd one and I feel it must be answered but I can’t seem to find it. I have the following in my .htaccess file on a custom PHP site (NOT WORDPRESS): I cannot work out why “gallery” only is giving me a 403. Both work as expected and go to the desired pages. However Redirects to And
Cannot connect to Sphinx with PHP and PDO
I seem to be having issues I do not understand… I have installed MySQL 8.0.27 I have installed Sphinx, created an index, filled it and all is OK through the terminal. Am able to query the Spinx index, without issues. So searchd and the indexer are doing their job. I have created a simple PHP interface t…
Skipping 2 lines in CSV PHP [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 15 days ago. Improve this question I have a code that is skipping 1 line and making a header from it. How can I skip 2 lines ? …
Calculating Average (Mean) in PHP
I’m a bit of a beginner with PHP and am implementing a review aggregator system for a few products. I have created the input fields and am outputting the results from these fields using this code: I want to use PHP to calculate the average (mean) however the number I am using to calculate this is set to…
Get the ancestral data from database dynamically
I would like to get the ancestral or child data when I pass the value in a function. This is my data from MySQL table. If I pass the value of Document2 in my function i want to get the ancestral data, for example, if I pass Document2 it will get the Book2 then the Book2 will get the Document1
Customize email_verified_at column in laravel
I am currently working on a laravel project that needs to send a verification email. I successfully send an email but when I try to verify the email by clicking “Verify email address” button in the email it shows me the error unknown column “email_verified_at”. I don’t have right…
Generate thumbnail from video using ffmpeg and add to mysql database
Im a noobie in php but still im trying 🙂 Im making bulk video uploader/importer to database. Looking ideas how to extract thumbnails from videos on upload and add those thumbnails to mysql database for each video… :/ Im trying using ffmpeg, but i dont found the way how to implement it to my code… …
How to find PHP script (and line) that accessing database
I know there is a way to find php script that send spam from your server, but I have a different issue. I’m having issue with repeating php code that is sending tones of queries to database and I cannot pin point which code does that. I’m not php developer. I would like to somehow get script and c…
Display table line following condition – codeigniter
I have a table in our admin panel. The table display the coupon and the deal, but for a better reading we would like to have a split table. 1 for coupons and 1 for deals. I can’t figure out how to display only the data according to the status if deal or coupons. Here below is my loop to
How can I put multiple paths into the same domain in nginx?
I want to connect domain.com/c to /var/www/a/c and domain.com/b to /var/www/b. And I wrote nginx sites-available file like following: But I see 404 when I enter domain.com/b. I tried using alias instead of root but I got the same result. How can I do? Answer It is because your location ~ .php$ { … } use…