Ravens PHP Scripts: PHP



Search on This Topic:   
[ Go to Home | Select a New Topic ]
 


Page 1 of 10 (59 total stories) [ 1 | 2 | 3 | 4 | 5 | 6 | > | >> ]  

 

How To Read A CSV With PHP More about Printer Friendly

Posted on Monday, December 21, 2020 @ 11:21:24 CET in PHP
by neralex

southern writes:  

Looking how to read a CSV using PHP? What to import a CSV into our database? The code snippet below will help you do just that.

PHP.net has the manual for the fgetcsv which is used in this example.

Example

$row = 1; if (($handle = fopen("test.csv", "r")) !== FALSE) { while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) { $num = count($data); echo "

$num fields in line $row:

\n"; $row++; for ($c=0; $c \n"; } } fclose($handle); }

Replace test.csv with your own file.

This snippet will parse CSV into a multidimensional array

*All code snippets are open source, everyone is free to use.

PhP Tricks

 

 

Simple and Responsive jQuery Carousel Slider More about Printer Friendly

Posted on Monday, December 21, 2020 @ 11:21:07 CET in PHP
by neralex

southern writes:  

Today I will share how to create simple and responsive jQuery carousel slider, although there are various ways to do but i will share the simplest way to achieve this goal.

JQuery carousel slider is very helpful, we used it several times in our web projects or blogs, you may want to display your blog recent posts, recent clients, recent project in a carousel slider or you may be want to make it your main page slider.

Steps to Create Simple and Responsive jQuery Carousel Slider

To create a simple and responsive jQuery carousel slider, we need to follow the below steps.

More All PhP Tricks

 

 

Master PHP Array Functions More about Printer Friendly

Posted on Tuesday, October 06, 2020 @ 21:07:19 CEST in PHP
by neralex

southern writes:  

You are probably using array every day as a PHP developer, because it is the default collection type of data structure in PHP. What you might not be aware is that PHP provides tons of built-in array manipulation functions, they are more efficient compared to user land solution, because they are built into the core and designed to handle most of edge cases.

In this series of tutorials, we will be going through some built-in array functions. Show their possible use cases as comprehensively as we can. Hopefully this series will improve the way you deal with PHP array and make your code better.

Throughout the whole series, we will be operating on an array called $books:

more: Star Tutorial

 

 

PHP Simple Encryption More about Printer Friendly

Posted on Tuesday, October 06, 2020 @ 21:07:02 CEST in PHP
by neralex

southern writes:  

A PHP library that makes encryption and decryption of text easy.

Requirements

PHP 7.2+
Openssl PHP extension

Installation

Simply add a dependency on stymiee/php-simple-encryption to your project's composer.json file if you use Composer to manage the dependencies of your project.

Here is a minimal example of a composer.json file that just defines a dependency on PHP Simple Encryption:

more: GitHub

 

 

PHP Resources More about Printer Friendly

Posted on Thursday, June 16, 2016 @ 07:55:38 CEST in PHP
by kguske

In addition to providing reviews of web hosting companies, WhoIsHostingThis.com provides a collection of PHP resources, including:

  • Tutorials for PHP beginners
  • Intermediate and Advanced PHP Tutorials
  • PHP Reference Material
  • PHP Development Tools
  • PHP Frameworks
  • and more

Check it out!

 

 

Modern PHP server stack More about Printer Friendly

Posted on Friday, May 27, 2016 @ 18:38:27 CEST in PHP
by kguske

 Carl Alexander describes the modern PHP application server stack with recommendations for:

  • Web server
  • HTTP Cache
  • PHP
  • Database Server
  • Object Cache
  • Deployment Tools

This is a well-written article based on a presentation from WordCamp San Diego 2016, later republished in Smashing Magazine.  Check it out!

 

 



Page 1 of 10 (59 total stories) [ 1 | 2 | 3 | 4 | 5 | 6 | > | >> ]  

News ©

Site Info

Last SeenLast Seen
  • chewy
  • hicuxunicorni...
Server TrafficServer Traffic
  • Total: 417,453,678
  • Today: 14,084
Server InfoServer Info
  • Jan 23, 2021
  • 11:11 am CET