39,323 Topics

Member Avatar for
Member Avatar for JACK_49

Hello guys I'm trying to read a file copy content into a new file to a random directory: <?php error_reporting(E_ALL); $dirname = uniqid(); mkdir($dirname); $newFileName = '/'.$dirname.'/newfile.txt'; $newFileContent = 'someinfoinfile.txt'; if (file_put_contents($newFileName, $newFileContent) !== false) { echo "File created (" . basename($newFileName) . ")"; } else { echo "Cannot create …

Member Avatar for AndrisP
0
267
Member Avatar for upendrau

how to fetch cricket scorecard to mysql database automatically for customization. i m planning to develop a game based on cricket. actually i am using php mysql database for it. i want complete cricket scorecard to mysql database automatically for customization. I m using snoopy class for content fetching from …

Member Avatar for Shadab_4
0
1K
Member Avatar for JRyan2212

Hi fellas, I hope my first message here comes across more helpful than bothering. I’ve recently launched a WordPress backup plugin - WPvivid Backup/Restore. It contains pretty all basic features that you’ll need to backup/restore you site and is fairly easy to use. And most important, it’s completely free(free update …

0
329
Member Avatar for mexabet

I have a script that populates a form from MySQL database table row for editing. I'm performing MySQL SELECT and UPDATE via PDO. After editing a particular table row and clicking on the submit button, the table row doesn't update. The following is "modify-course.php": <?php // configuration require("../includes/config.php"); // query …

Member Avatar for rproffitt
0
1K
Member Avatar for Adrian_15

I'm somewhat new to coding websites. I'm trying to have a code where it pulls multiple images from a single database and displays it in a grid, not a table. At the top of my page I have a normal connection to the database. (very sorry about not having a …

Member Avatar for Adrian_15
0
3K
Member Avatar for jkon

The facts: We are talking about a small company (5 persons) with many clients that making real money (we don't) . We provide our own software that has unique features against the e-commerce completion. The problem: the first glimpse of the problem arose around 2012 and made clear around 2014 …

Member Avatar for Trasser
1
2K
Member Avatar for SpottyBlue

Hi, When I was trying to create the IT Request Form and testing it out, I got some problems during the testing. The home page (index.blade.php) ended up getting an error called "Undefined offset: 1", maybe due to the table database problem. ![0TyCAu.png](/attachments/large/4/8730ed8f11be3f5ed672376eee11d83f.png) The checkboxes in the Request Form (requestForm.blade.php) …

0
281
Member Avatar for SpottyBlue

Hi, I do need help with the PDF2Text, as this is my first time doing that function in the practice web PHP project created from Laravel. When I remove the PDF2Text.php controller, the error message controller is not found. When I restore the same file, the error message says class …

0
186
Member Avatar for Michael_93

Hi All, So I an creating an online store just to play around with code and learn from it. I am building a store and on the confirmation page, I am trying to update the QTY of items in a cart by using the '-' or '+' buttons. However I …

Member Avatar for Ray Paseur
0
4K
Member Avatar for youngg69

The year 2019 has brought new hopes with its arrivals. People around the world are looking for new web development trends the year is going to bring with it. People who are running their website online is looking forward to the emerging trends to adapt the best possible changes and …

Member Avatar for Ray Paseur
-1
576
Member Avatar for jej1216

I have a website that lists pdf files for downloading, with links to each file. What I want to do now is design a search page that will look in the folder that contains these docs and search for docs that match a partial name. I have created search pages …

Member Avatar for Ray Paseur
0
3K
Member Avatar for Michael_93

Hi All, I am trying to create some search functionaltiy for my website, but for some reason when I search any word, even if its not in my database it will display all the results from a particular column. Here is my code <?php error_reporting( ~E_DEPRECATED & ~E_NOTICE ); define('DBHOST', …

Member Avatar for Ray Paseur
0
483
Member Avatar for SpottyBlue

Hi, Me and my colleague are trying to fix an error when we are testing to upload the file to the storage in our PHP test project. The error is called: **FatalThrowableError (E_ERROR): Call to a member function getRealPath() on null** ![0CtiPf.png](/attachments/large/4/a9bee726794f71d1f2c22c42f3f93093.png) We are using Laravel to create a new …

0
296
Member Avatar for Terry_11

I recently have created a Markdown Plugin for WordPress. It has been tested some my friends, but not many people know it yet. https://github.com/terrylinooo/githuber-md I just need some suggestions to improve it, my some questions like: What features do you need if you are using Markdown to write articles? Do …

0
397
Member Avatar for Michael_93

Hi All, As part of a university project I need to create a website that sells cosmetic products. The customer will need to go through the motions of selecting the items, placing them into a basket and going through the checkout process. However I wouldnt need to use a card …

Member Avatar for anon1
1
2K
Member Avatar for FD

I'm working on the application where I want to calculate the total late hours of an employee from a set of records between the employee timing shift? Example Of Employee Time Shift Shift Start: 01:00:00 Shift End: 09:00:00 Php Code // example 1 error_reporting('0'); $time1 = "01:00:00"; $time2 = "09:00:00"; …

Member Avatar for SeanDevoy
0
635
Member Avatar for elamigosam

I am working on a anouncement system. the announcements are displayed everywhere in the website, every anouncement has a acknowledge button, basicaly to mark it as seen. what i have: Table: announcements: annId, annTitle, annContent, annDatetime Table: annComplete: annCompletedId, annId, userId, annCompleteDatetime I first pull all the announcements from the …

Member Avatar for SeanDevoy
0
513
Member Avatar for SimonIoa

Hello i have a mysql statement and i want to add more parameters to get different results. SELECT DISTINCT M.message,F.friend_one,F.friend_two, F.role,U.uid,U.username FROM users U,friends F, messages M WHERE ( U.status='1' AND F.friend_one = '88') OR (F.friend_two='88' ) AND F.role='friend' 88 is the users id so i want to show M.message …

Member Avatar for SeanDevoy
0
2K
Member Avatar for rpv_sen

Hi i am trying to view my blog or post in detail description at that time my browser title shows %page_title%, But it has to show my blog or post title in that place. please help me to solve this issue. **My permalink settings as below** /%category%/%postname%/ **Note:** i have …

Member Avatar for rproffitt
0
2K
Member Avatar for nitos
Member Avatar for rproffitt
0
325
Member Avatar for Alexandru_3

Hello php community, Could you help me in my research? I just cannot find what I am looking for. I am working on a website with PHP and MySQL. I am trying to get a filter option on my website to fetch the information from database. Here are the filter …

Member Avatar for alan.davies
0
371
Member Avatar for fredfletcher

I realize that this question has been asked many times, but I've yet to find a flatfile version. I'm looking for a way to achieve this: **Scenario:** A person submits their email address via a form. The email is then stored in flatfile database (.txt) The person then gets an …

Member Avatar for Ole Bjørn
0
3K
Member Avatar for test.mag

Hello there, > colud you please tell me that how can i generate html into csv, actually it display all tr and td into csv file, here i have share my code <?php /*include("wp-config.php"); include("wp-app.php"); include("wp-active.php"); include("wp-settings.php");*/ //include("index.php"); include("wp-load.php"); include("wp-includes/template-loader.php"); header ("Expires: Mon, 12 Aug 1988 23:30:00 GMT"); header ("Last-Modified: …

Member Avatar for Yuriy_2
0
1K
Member Avatar for iqlas

Laravel App checks redis database for data pushed by 3rd Party. Laravel Scheduler runs artisan command `php artisan check:redis` every 10 mins. I am expecting about 20k records to be checked every hour at peak times. Please also suggest me if my whole approach as a whole is flawed. 1. …

0
268
Member Avatar for steffanylo465

Hey everyone, I'm working on one project of mine and for that I need legit credit card details for testing purpose. Can I develop any small tool or script which can help me out everytime to generate unique credit card details. This way, I can test my billing or payment …

Member Avatar for aiylaarnold
1
570
Member Avatar for davy_yg

Hello, This is PHP. Help me understand this code: if($selectDB == true){ $query = "INSERT INTO recruitment (ID, nama, jenis_kelamin, tanggal_lahir, nohp, email, alamat, provinsi, kota, zip, status_nikah, jumlah_tanggungan, agama, file_attachment, cover_letter) VALUES (NULL, '$nama', '$jenis_kelamin', '$tanggal_lahir', '$nohp', '$email', '$alamat', '$provinsi', '$kota', '$zip', '$status_nikah','$jumlah_tanggungan','$agama','$file_attachment', '$cover_letter');"; // "INSERT INTO Customers (CustomerName, …

0
304
Member Avatar for Awilum

**HELLO GUYS!** I'm Sergey Romanenko a web-developer with strong will for learning and researching new technologies and architectural solutions. I like creating and using specialised tools for making development processes as efficient as possible. Let me introduce my pet project - Flextype! Flextype is Open Source, fast and flexible file-based …

1
1K
Member Avatar for FD

I'm working on the employee management system where i want to calculate employee late hour after after employee punch in? **For Example** ABC Employee Shift Start At : 01:00:00 PM Shift End At : 09:00:00 PM Employee Punch Timing At: 02:30 PM Now how i calculate employee late hour ? …

Member Avatar for rproffitt
0
361
Member Avatar for mexabet

I'm doing both SELECT and UPDATE queries using named placeholders. But course data from the database doesn't populate form, as expected. The database table row records don't populate, each time I try to edit a course in the browser. I connect to the database usining PDO. And I do SELECT …

0
321
Member Avatar for Ventech_IT

I have a form that uploads a news article with it's picture and then stores all the info correctly. I am using codeigniter with Active Record and would like to know how to display the image with the post it was uploaded with. here is my upload script: public function …

Member Avatar for Dani
0
18K

The End.