39,388 Topics
![]() | |
Folks, We already know about CodeIgniter and its enormous capabilities as a PHP framework, this very site being a testament of it. But what about an even smaller micro-framework for PHP? Something along the lines of Flask or Bottle? Something you can use to develop things like REST API, prototyping … | |
DaniWeb is built on top of the Codeigniter 3.1.x PHP framework. Although I probably should have built it as a CI model, here is the database library that we are using. You can see it mainly serves as a wrapper for CodeIgniter's built-in database class. You can see we use … | |
Hi, We are an educational institute. We are looking to implement something unique, we want to add multiple forms/surveys on the same page, we want each feedback form/survey under student name and rank so they can easily provide the feedback and then that feedback should be displayed on the same … | |
How can I include objects in each other using PHP OOP? I have 3 classes all classes make use of one another. I am trying to call them on `__construct` but it's creating an infinite calls to one another. How can I solve this? | |
I want to display different html tags on the php page they are visiting, for example on the homepage and the computer shop basildon page I want the html tag `<section class="testimonal-two pt-0">` and on all other pages I want the code `<section class="testimonal-two">` Below is the code I have … | |
About a year ago, I had a similar issue except then system would crash after pressing Submit. The issue was caused because of PHP 8 incompatibility problems. However, got the coding to fix all of that and things worked good again and with PHP 8. But now something new is … | |
I want to understand how I can add an SDK to my PHP projects to make APIs calls. I noticed that every software company have an SDK. I also noticed that most SDKs use Composer. I don't know what composer is and do I need to have it for every … | |
Hello I am trying to query a database to show records only for the current user using variable I get the correct data but only 1 row with results any guidance? // Query database to retrieve records associated with the user $sql = "SELECT * FROM table_name WHERE variable_name = … | |
I have problem with this htaccess in STATIC URL RewriteEngine On RewriteRule ^readlex/(.*)$/?$ readlex.php?slug=$1 [NC,L] **DINAMIC URL** work fine only with defined CONSTANT: Example <a href="<?php echo BASE_URL.READ_LEX ?>Le-mura-di-Lucca">Lucca</a> Result = localhost/mysite/readlex/Le-mura-di-Lucca **STATIC URL** not work (??) <a href="localhost/mysite/readlex.php?slug=Le-mura-di-Lucca">Lucca</a> Result = localhost/mysite/readlex.php?slug=Le-mura-di-Lucca">Lucca ***Unfortunately I can't insert the php CONSTANTS in … | |
Hello webmasters, I am currently building a template that I am going to sell on different websites like Codester and CodeGrape. I want to build a business directory. Here is what I have come up with ... 1. users can register and add listings. 2. admin can create categories for … | |
What was wrong with good ole using SMTP? Has anyone here successfully used an XOAuth library for PHP? Specifically, I'm looking to connect to my Office 365 mailbox. | |
I, very hackily, create an object of type stdClass as so: $arr = array( 'foo' => 'bar', 'baz' => 'bat' ); $obj = json_decode(json_encode($arr)); How can I now quickly add a third property to $obj without PHP getting angry? | |
Hi, can you recommend a cool site that will help with transportation of things? | |
hai. i would like to know is there have any video that can teach how to import image from database image folder to pdf using fpdf php. i already read some post here regarding to that issue by im not very clear and blur. actually i am very new in … | |
I am trying to create my first successful API request. I want to post on my twitter account. I have created the developer account and generated consumer key and secret as well as access token and secret. I have also obtained the bearer token. I want to post on Twitter … | |
For people who used both and build websites with both, which one is better? Why? | |
What we are going to be covering in this tutorial This tutorial will show you how you can set up a PHP contact form on your web site which will send an SMS message, in this case we will make the contact form send you the information passed by the … | |
Today, blockchain has become an essential part of multiple industries, including real estate, media, manufacturing, tourism, healthcare, and Cyber security. There is no such fixed price for blockchain app development, but on average, the cost to hire a blockchain developer will be around **$5000** to **$30,000**, depending on the project … | |
Trying to call imagemagick using this code. The errors are with the appcontroller, myadoptscontroller, and index. I have been talking to someone who also uses the Mysidia Adoptables code and they provided me their code to edit, I edited their code but it is throwing these errors and I’m not … | |
Hi, it is possible change this URL with .htaccess? **From** https://www.example.it/news.php?slug=aaaa-bbb-ccccc **To** ( seo-friendly without ‘news’ ): https://www.example.it/ aaaa-bbb-ccccc | |
hai i need php code for simply drop and drop to create website coding ...pls help me ... | |
Hey Daniweb fam! A bit of backstory about me... I've built dozens of websites and online ventures, both for myself and clients. One thing that's always kept me up at night? The dread of being hacked—losing data, money, and peace of mind. So, I assembled a squad of top-notch devs … | |
I have a script that delivers an empty gif file when an attempt is made to download an image ("Save image as..."). Here is a link to my page. Try to save either of the first two images from the screen (not screenshots). I have been told that this is … | |
I have a web page that loads images with a modal, and at the same time is meant to inhibit image piracy by delivering a transparent overlay when a user attempts to make a screen copy of the image. I have two php lines of image scripts which work OK … | |
Hey guys, so I've been trying to create a website that allows users to update and delete records through the database I've set up in SQLyog. In my update confirmation file I've added location theme description to be updated and changed for all users. but for some reason its unable … | |
We are in the process of upgrading both the version of Codeigniter PHP framework we are using, as well as the version of PHP we're on. We are just putting some final touches and anticipate going live in the next few days. I'll update this thread when we do. If … | |
Hello, I do not understand why the simplehtmldom is failing. This is the code: <?php ini_set('display_errors',1); ini_set('display_startup_errors',1); error_reporting(E_ALL); //--- include_once('simplehtmldom_1_9_1/simple_html_dom.php'); //--- $url = "https://victoriousseo.com/sitemap_index.xml"; $html = new simple_html_dom(); $html->load_file($url); //-- foreach($html->find("a") as $link) { echo $link->href."< br />"; } ?> I got the simplehtmldom.php on the same directory as the … | |
I am trying to implement multi authentication in `laravel5.2`. I am following [this article](http://saravanan.tomrain.com/multiauth-in-laravel-5-0/) My **Auth.php** <?php return [ 'multi' => array( 'user' => array( 'driver' => 'eloquent', 'model' => 'App\User', 'table' => 'users', ), 'admin' => array( 'driver' => 'database', 'model' => 'App\Admin', 'table' => 'tbl_admin_user', ) ), 'password' … | |
Hi, I am a non computing graduate. Have basic HTML knowledge gather using freecodecamp. I am transitting from marketing industry to IT (programming) industry. I have enrolled in a masters in UK which will start in just one month. But I am not sure If i will be able to … | |
I am integrating [Speakatoo](https://www.speakatoo.com/) API in my project its giving me cookies error, Please any one can help me. |
The End.