← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 200
  1. Python print function

    What is the print() Function?

  2. A Git Cheat Sheet

    Intro When it comes to version control systems, there are few software that can beat GIT in performance and relevance.

  3. Flutter ListView and Features

    We will cover Flutter ListView and Features, Listview comparison on Android.

  4. Flutter Button Types and Features

    We will talk about the most used Flutter button types and their features.

  5. Flutter General Page Structures

    We will talk about the widgets we use while designing our screen in Flutter in general, and their features and usage areas.

  6. Flutter Widgets Stateless – Stateful Widget Difference

    We will discuss the concept of widget, which is one of the structures we hear the most in Flutter.

  7. Introduction to Flutter

    What is Flutter?

  8. Lambda Functions in Dart

    Every function in dart is an object.

  9. Map Structures (Dictionary) in Dart

    The map structure is one of the list types that allows us to keep more than one data.

  10. youtube_video_info - Flutter package

    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…

  11. Set structures in Dart

    Set structure is a type of list that we use to hold multiple data like List.

  12. Lists in Dart

    In the Dart programming language, there is no Array construct.

  13. Ternary if operator in Dart

    What we call Ternary If is a short use of the if control structure.

  14. Variables and Data Types in Dart

    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.

  15. Basic commands in CLI

    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…

  16. Create directory in CLI

    How about creating a directory on your desktop to do it hands-on?

  17. Change directory in CLI

    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.

  18. List files and directories in CLI

    So what’s inside?

  19. Get current directory in CLI

    It would be nice to know where we are, wouldn’t it?

  20. Checking if file exists in PHP

    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.

  21. Deleting a file in PHP

    You can destroy the file you want with the unlink() function, which we will see as the opposite of the file creation function.

  22. Writing to file with PHP

    We will use the w mode and the fwrite() function to write files.

  23. Reading the contents of files with PHP

    To perform this operation, we will use the r mode in fopen() and the fread() function to access the content.

  24. PHP fopen() function

    Before we can read, modify or delete the contents of the files, we need to open them in PHP.

  25. Replace content with Regex

    Let’s explain with a useful example.

  26. Regular Expression get captured content

    We write the expressions of the contents that we want to capture and separate in regular expressions in parentheses.

  27. Checking if the regular expression matches

    Let’s come to using these useful operations on PHP.

  28. Catch by beginning and end in Regular Expression

    With the ^ and $ characters, we can express what the beginning, or the end will look like.

  29. Catch words in Regular Expression

    We can do it with a similar expression with the example on this post.

  30. Catch numbers in Regular Expression

    Let’s now come to the example usage of the characters we listed in the table on this post.

  31. Flags in Regular Expression

    Regex patterns are written between the two “/” (slash) signs.

  32. Special characters in Regular Expression

    Regular expressions have special characters with lots of meaning and expressions.

  33. Updating or Deleting rows in PDO PHP

    We can run our edit and delete queries with the exec method, which works in the same way as the insert method above.

  34. Insert new row in PDO PHP

    We are preparing our line to insert with the binding method, and the insert method.

  35. Return multiple rows in PDO PHP

    There are two different methods for listing the contents in the table.

  36. Return single row in PDO PHP

    With the getRow method, we can get a row that will be returned by the query we wrote.

  37. Return single value in PDO PHP

    Let’s get to the main jokes of the class.

  38. Why I don't use Frameworks

    Let’s take a look at the downsides.

  39. Using Bindings in PDO PHP

    The query method in the example last post is a method that I combine with the PDO’s binding feature.

  40. No more SQL Injections in PDO PHP

    Almost all amateur PHP and MySQL projects have SQL injection vulnerability.

  41. How to close PDO Connection in PHP

    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.

  42. How to undo queries in PHP PDO

    Another important feature of PDO is that it can undo or apply the queries, which are expressed as transaction, when desired.

  43. Adding new record with PHP PDO

    We will use the exec method to add a new record.

  44. Listing single row data with PHP PDO

    For this, after calling our query with query, we will get the first result with fetch. <?

  45. Listing data with PHP PDO

    For this, we will use the query method I mentioned before. <?

  46. Including variables in queries PDO PHP

    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.

  47. Sending a query with PDO in PHP

    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.

  48. PDO managing query errors in PHP

    Methods that we send queries such as query or exec return false if they encounter an error when they execute the query.

  49. How to connect to MySQL with PDO in PHP

    In general, when defining a PDO class, we specify the connection events with a DSN, or “Data Source Name”.

  50. What is PDO in PHP

    PDO (PHP Data Objects / PHP Data Objects) in a nutshell; an interface that provides lightweight and consistent access to the database.