39,326 Topics

Member Avatar for
Member Avatar for pandglobal

I want to rewrite my URL from example.com/page/pipe?test to example.com/page/pipe/test My concept is just to remove the? at the end of the page and replace it with a / And I have written a rule to remove the .php extension of my files. below is what code looks like #REMOVE …

0
33
Member Avatar for fecapeluda

Hello guys i'm using [batflat](https://github.com/sruupl/batflat/blob/master/inc/core/lib/Image.php) for a small project. The thing is want to save/display webP images too, How can it enabled/possible?. I try **imagecreatefromwebp** without luck. Any idea/help will be awesome. Gracias! /** * Saves image * * @param string $path Path to location * @param string $type Filetype …

Member Avatar for AndreRet
0
234
Member Avatar for Martin_42

Hi all I'm trying to put together a room hire site, to be used by the lettings clerks, for our local Quaker meeting house and I've hit a couple of problems. I have an HTML form that, using data from a MySQL database and some JSON and JavaScript, when a …

Member Avatar for Martin_42
0
298
Member Avatar for garyjohnson

Hello I have a simple for and PHP that uploads multiple images to a file. The problem is I want these images to be resized when they are uploaded. Does anyone know of a simple way to resize these images with PHP? I am not a professional so further explaining …

Member Avatar for haree54
0
3K
Member Avatar for Kelvin_11

I am good in different languages, that is: Java, python, C#, VB.NET, php, javascript I have been programming for a while now it's about 2 and half years but the issue is when I focus on one language I tend to concentrate on it more than the others which leads …

Member Avatar for Mr.M
1
321
Member Avatar for mexabet

I'm struggling to add a course to a MySQL database table using PDO prepared query with positional placeholders. When the form is submitted, the database table is not updated, as expected and no error is displayed. Please, where exactly do I place `var_dump()` to display the error? And how can …

Member Avatar for mexabet
0
245
Member Avatar for Benice11

** ## How To Create a PHP function to handle the download requests, and increment the counter inside the function. ## ** For example, create download.php and pass the requested file as a GET parameter: file_counter_inc(); // <-- The increment happens here $file_url = $_GET['file_url']; header('Content-Type: application/octet-stream'); header("Content-Transfer-Encoding: Binary"); header("Content-disposition: …

Member Avatar for Benice11
1
22
Member Avatar for emiola

Hello, kindly look at my php code to insert registration data into a MySQL database. Here is the code below and further below, the error response I keep getting. <?php error_reporting(E_ALL); ini_set('display_errors', 1); $servername = "localhost"; $username = "emiola"; $password = "emmybaba2020"; $dbname = "tutors"; // Create connection $conn = …

Member Avatar for AndreRet
0
112
Member Avatar for nanakumi75

I have a social network site which allows users to upload an image as a profile cover. I use PHP to upload the image to database and select it to display as profile cover.The image shows perfectly, but when I visit a different page and come back, the cover image …

Member Avatar for nanakumi75
0
23
Member Avatar for Jacob_19

Dear software developers, We are researchers aiming to understand developers' knowledge needs and program comprehension. Our intention is to support practitioners in selecting tools that can facilitate developers' tasks. Moreover, we hope that our research results in the development of new tools that are customized to the actual needs of …

1
45
Member Avatar for pandglobal

I have a html form and a validation php file for the form, every thing works when a user submits the form, but there are certain aspect of the function that i want the user to get in real time, such as if field A value is (yam) then unset …

Member Avatar for jkon
0
298
Member Avatar for dado.d

I was crawling http://www.imenik.hr (more specific: http://www.imenik.hr/imenik/trazi/1/ptt:51551.html) and it was working. I used PHP Symfony crawler, I even used proxies. I was testing it locally so I tried without proxies. I added 5 seconds of sleep time between each requests, I tried random sleep between requests, I tried 10 seconds. …

0
27
Member Avatar for pandglobal

Hello house please i need assistance. I need to rewrite urls in a particular folder so that the folder name is not shown when visiting the page or pages inside that folder. And am doing this or intend to archive this through .htaccess Example: example.com/ folder/aboutus.php But i want it …

Member Avatar for pandglobal
0
58
Member Avatar for nishita_1

please help me. below chart.js works very well but here show all date data from database but i want only last fifteen days data to show. How can i show last 15 days sale reports. i am attach code below. thanks ![chart_edit_result.PNG](/attachments/large/4/3b3130d6f7da66a0d9ff733730021645.PNG) I an developed an chart.js for my daily …

Member Avatar for pandglobal
0
4K
Member Avatar for Hazyan

Hello, I'm new here and I have experience in using PHP with MySQL but right now, I need to convert my code so that it can be used to connect to my DB in my SQL server. I have try out the code as follows db.php <?php date_default_timezone_set ("Asia/Kuala_Lumpur"); // …

Member Avatar for AndreRet
0
498
Member Avatar for mexabet

I'm struggling to create a two-paged form using $_SESSION. What I want to achieve is the first page (page1.php) requires the user to enter his/her email address. And the second page (page2.php) requires the user to enter his/her password. When the user submits page1.php, it takes you to page2.php, where …

Member Avatar for mexabet
0
136
Member Avatar for aveeva7

I have couple of shipping methods DHL & FedEx, if selected products exits in cart show only selected shipping method, how to archive using shopping cart pricing rule or any other way to do this?

Member Avatar for Harshal Shah
0
273
Member Avatar for Stefce

I want to echo the results of this mysql query SELECT username, task_completed FROM accounts WHERE referrer_by = :referrer_by AND task_completed < 1 I have this code so far but this doesnt return anything and it should return the values which are less than 1 $ref_query=$db->prepare("SELECT username, task_completed FROM accounts …

Member Avatar for AndreRet
0
87
Member Avatar for kumud1452894
Member Avatar for Erd_1

I am just getting this mistake **" Parse error: syntax error, unexpected 'if' (T_IF) in C:\wamp64\www\genius\install\run_install.php on line 48" **is there anyone to solve?** ** <?php define('GENIUSOCEAN','https://geniusocean.com/verify/'); ini_set('max_execution_time', 300); if (!isset($_POST['web_name']) || $_POST['web_name'] == ""){ echo "Please Enter Website Name"; }else if (!isset($_POST['web_url']) || $_POST['web_url'] == ""){ echo "Please Enter …

Member Avatar for AndreRet
0
211
Member Avatar for tun712

How to add meeting host/meeting controler How to allow meeting host to set another person as host How to add signing with account https://jitsi.org/jitsi-meet/

Member Avatar for AndreRet
0
24
Member Avatar for ANIMEXD

i am making api in PHP but i have some problems with cors(preflight) i know how the cors works, my problem is when i request the data from api with (fetch api) i get the response from the server(api) but it suppose to also send cookie for authentication purposes but …

0
79
Member Avatar for nishita_1

please provide me sql query for below output sum query please help me ![93852217_246197733117734_2443195689677619200_n.jpg](/attachments/large/4/5009c5b4125b294842ffd7cf1d839caa.jpg)

Member Avatar for Santanu.Das
0
320
Member Avatar for fecapeluda

Hello guys, I am using a Bootstrap grid with 6 element (As articles). 5 come directly from the database, and I need to add one more article element at the beginning, just for aesthetics. This is what I have so far. Any help is welcome. Thank you! Here's the idea …

Member Avatar for Dani
0
193
Member Avatar for Stefce

I made an website which i require of the user to enter their credit card details for virtual money transfer inside the website only. I only take the first two numbers of the card in order to detect the Card Type and i take last four because of the UI …

Member Avatar for Stefce
0
276
Member Avatar for danny2

i created a registeration form which i linked to my database whenever i try to make i data registeration i always get this error:Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. If you …

Member Avatar for pritaeas
0
75
Member Avatar for Shiva_20

$select = "SELECT * FROM `success-stories` where id='$id'"; $result = $conn->query($select); $row = $result->fetch_assoc(); $file = $row["download_pdf"]; $file_arr = explode("/", $file); $path = $file_arr[0] . "/" . $file_arr[1] . "/" . $file_arr[2]; header('Content-Description: File Transfer'); header('Content-Type: application/pdf'); header('Content-Disposition: attachment; filename="' . basename($file) . '"'); header('Expires: 0'); header('Pragma: no-cache'); header('Content-Length: ' …

Member Avatar for pritaeas
0
28
Member Avatar for Yusuf_13

if i can't edit it directly through any solution , how do i delete it? i rather not give background info, if its ok. next time, i will give background info, if there will be a next time as i think there is. i am going to chose stupid relvant …

Member Avatar for rproffitt
0
51
Member Avatar for ibz95

Hi guys, I have written the following javascript code that validates the credit card information entered by a user. I now want to rewrite the same validation code in PHP. But since I am still very much new to PHP, can anyone give me pointers or help me rewrite it? …

Member Avatar for sunbury2003
0
106
Member Avatar for Massimo_2

I have a problem: I can't get the correct answer from the webservice. The two parameters are correct and the source seems to me to be correct. The system does not require authentication ... What am I doing wrong? <? try { $wsdl = "http://wsr.brt.it:10041/web/GetIdSpedizioneByRMNService/GetIdSpedizioneByRMN?wsdl"; $client = new SoapClient($wsdl); $result …

Member Avatar for pritaeas
0
15

The End.