Skip to content
  • Apache Server
  • SQL course
  • Learn PHP
SrCodigoFuente.com
  • Apache Server
  • SQL course
  • Learn PHP
Menu Close
  • Apache Server
  • SQL course
  • Learn PHP
  • Apache Server
  • SQL course
  • Learn PHP

Learn PHP

  1. Home>
  2. Learn PHP>
  3. Page 13

How to escape quotes, backslashes or special characters in SQL or PHP

  • Post author:jGomez
  • Post published:April 2, 2023
  • Post category:Apache Server/Learn PHP/SQL course
  • Post comments:0 Comments

It is usually a case to enter special characters in SQL right?, but don't worry! I have prepared this special article about introducing rare characters in SQL, where I explain…

Continue ReadingHow to escape quotes, backslashes or special characters in SQL or PHP

Generate random password with limited length

  • Post author:jGomez
  • Post published:April 1, 2023
  • Post category:Apache Server/Aprender JavaScript/Learn PHP
  • Post comments:0 Comments

With the following PHP snippet you can generate simple and secure passwords (without coding). Specifically, I am going to show you one. php function so you can reuse the code…

Continue ReadingGenerate random password with limited length

php function to encrypt password correctly

  • Post author:jGomez
  • Post published:April 1, 2023
  • Post category:Apache Server/Learn PHP
  • Post comments:0 Comments

The following php function allows you to securely encrypt passwordsthus preventing them from being read or decrypted by reading them from the database or from the application itself. I recommend…

Continue Readingphp function to encrypt password correctly

Calculate distance between two points in PHP

  • Post author:jGomez
  • Post published:April 1, 2023
  • Post category:Apache Server/Learn PHP
  • Post comments:0 Comments

With the following PHP function you can calculate the distance between two locations knowing their latitudes and longitudes. Its use is really useful if you are creating web applications with…

Continue ReadingCalculate distance between two points in PHP

PHP function to delete directories

  • Post author:jGomez
  • Post published:March 31, 2023
  • Post category:Apache Server/Learn PHP
  • Post comments:0 Comments

In PHP, if you want to delete a directory, for security, first you must delete all its contents, whether they are files or other directories. for this purpose you need…

Continue ReadingPHP function to delete directories

PHP function to pass text to valid url

  • Post author:jGomez
  • Post published:March 31, 2023
  • Post category:Apache Server/Learn PHP
  • Post comments:0 Comments

with the following snippets of PHP you can transform any text strings into valid urls. Therefore, what the following function does is translate text characters, which are not allowed in…

Continue ReadingPHP function to pass text to valid url

Get city by IP with PHP

  • Post author:jGomez
  • Post published:March 30, 2023
  • Post category:Apache Server/Aprender HTML/Aprender JavaScript/Learn PHP
  • Post comments:0 Comments

with the following snippet PHP you can get the city of a user just using their IP. The snippet is a PHP function that you can incorporate into your helpers…

Continue ReadingGet city by IP with PHP

PHP function to get source code from a website

  • Post author:jGomez
  • Post published:March 30, 2023
  • Post category:Apache Server/Aprender HTML/Learn PHP
  • Post comments:0 Comments

The next snippet php will help you to obtain the source code of any URL in text format let it happen This code is perfect for creating, for example, crawlers…

Continue ReadingPHP function to get source code from a website

How to send emails with Mandrill API

  • Post author:jGomez
  • Post published:March 29, 2023
  • Post category:Apache Server/Aprender HTML/Learn PHP
  • Post comments:0 Comments

In this article I am going to show you how to launch a mailing in php using the API Mandrill. Comment, in case you didn't know, that With Mandrill's php…

Continue ReadingHow to send emails with Mandrill API

Create and launch a download with PHP

  • Post author:jGomez
  • Post published:March 29, 2023
  • Post category:Apache Server/Aprender HTML/Learn PHP
  • Post comments:0 Comments

In this article I am going to explain how to launch a file download using PHP with headers. With this functionality you will be able to avoid the typical direct…

Continue ReadingCreate and launch a download with PHP
  • Go to the previous page
  • 1
  • …
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • Go to the next page
Copyright - OceanWP Theme by OceanWP