Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
What is the print() Function?
-
Intro When it comes to version control systems, there are few software that can beat GIT in performance and relevance.
-
We will cover Flutter ListView and Features, Listview comparison on Android.
-
We will talk about the most used Flutter button types and their features.
-
We will talk about the widgets we use while designing our screen in Flutter in general, and their features and usage areas.
-
We will discuss the concept of widget, which is one of the structures we hear the most in Flutter.
-
What is Flutter?
-
Every function in dart is an object.
-
The map structure is one of the list types that allows us to keep more than one data.
-
pub.dev/youtube_video_info github.com/kaex/youtube_video_info This is a lightweight⚡ package to fetch video info for YouTube from the url To install, add to pubspec.yaml flutter: sdk: flutter youtube_video_info: ^1.0.0 and then run flutter pub get Import…
-
Set structure is a type of list that we use to hold multiple data like List.
-
In the Dart programming language, there is no Array construct.
-
What we call Ternary If is a short use of the if control structure.
-
In addition to general data types such as String, integer, we use different; We will talk about 2 important data types. var dynamic The var data type does not have a specific value.
-
Here is a summary of some useful commands: Command (Windows) Command (Mac OS - GNU/Linux) Description exit exit closes the window cd cd change directory cd pwd show current directory dir ls list directory/files copy cp copy file move mv move file mkdir mk…
-
How about creating a directory on your desktop to do it hands-on?
-
Now, let’s go to our Desktop directory: $ cd Desktop Let’s see if it really has changed: $ pwd /Users/baransel/Desktop Pro Tip: If you type cd D and press tab on your keyboard, the command line completes the rest of the name, and you navigate faster.
-
So what’s inside?
-
It would be nice to know where we are, wouldn’t it?
-
We will use the file_exists() function to be aware of the existence of the files, to change them if they are, or to create them.
-
You can destroy the file you want with the unlink() function, which we will see as the opposite of the file creation function.
-
We will use the w mode and the fwrite() function to write files.
-
To perform this operation, we will use the r mode in fopen() and the fread() function to access the content.
-
Before we can read, modify or delete the contents of the files, we need to open them in PHP.
-
Let’s explain with a useful example.
-
We write the expressions of the contents that we want to capture and separate in regular expressions in parentheses.
-
Let’s come to using these useful operations on PHP.
-
With the ^ and $ characters, we can express what the beginning, or the end will look like.
-
We can do it with a similar expression with the example on this post.
-
Let’s now come to the example usage of the characters we listed in the table on this post.
-
Regex patterns are written between the two “/” (slash) signs.
-
Regular expressions have special characters with lots of meaning and expressions.
-
We can run our edit and delete queries with the exec method, which works in the same way as the insert method above.
-
We are preparing our line to insert with the binding method, and the insert method.
-
There are two different methods for listing the contents in the table.
-
With the getRow method, we can get a row that will be returned by the query we wrote.
-
Let’s get to the main jokes of the class.
-
Let’s take a look at the downsides.
-
The query method in the example last post is a method that I combine with the PDO’s binding feature.
-
Almost all amateur PHP and MySQL projects have SQL injection vulnerability.
-
As with the old MySQL connection, even if you do not close the connection you opened, PHP automatically disconnects at the end of the process.
-
Another important feature of PDO is that it can undo or apply the queries, which are expressed as transaction, when desired.
-
We will use the exec method to add a new record.
-
For this, after calling our query with query, we will get the first result with fetch. <?
-
For this, we will use the query method I mentioned before. <?
-
Thanks to the binding method, which is one of the most important features of PDO, we can place our variables safely and properly in the queries we prepare.
-
If we do not expect to get a result from the query we will make, we should use the “exec” method, if a result is desired, the query method.
-
Methods that we send queries such as query or exec return false if they encounter an error when they execute the query.
-
In general, when defining a PDO class, we specify the connection events with a DSN, or “Data Source Name”.
-
PDO (PHP Data Objects / PHP Data Objects) in a nutshell; an interface that provides lightweight and consistent access to the database.