Geekpedia
  • Tech
    • Tutorials
      • ActionScript
      • AI Coding
      • ASP
      • ASP.NET
      • C
      • CSS
      • C#
      • C++
      • Code
      • General
      • HTML
      • Java
      • JavaScript
      • PHP
      • Silverlight
      • SQL
      • Visual Basic
    • Software
      • Communications
      • Development
      • Internet
      • Linux
      • Microsoft
      • Security
      • Windows
  • Gear
  • Mobillity
  • Wellness
  • Knowledge Base
  • Media
    • Pictures
  • News
      • ActionScript
      • AI Coding
      • ASP
      • ASP.NET
      • C
      • CSS
      • C#
      • C++
      • Code
      • General
      • HTML
      • Java
      • JavaScript
      • PHP
      • Silverlight
      • SQL
      • Visual Basic
      • Communications
      • Development
      • Internet
      • Linux
      • Microsoft
      • Security
      • Windows
  • Gear
  • Mobillity
  • Wellness
  • Knowledge Base
    • Pictures
  • News
List the content of a directory/folder using PHP
Code PHP
November 7, 2023November 8, 2023Nathan

List the content of a directory/folder using PHP

With a few lines of code and a while loop you can list the content of a directory on both Unix and Windows machines.

Discover
Calculate the age in years using PHP
Code PHP
November 7, 2023November 8, 2023Nathan

Calculate the age in years using PHP

A PHP CalculateAge() function created by applying the logic we used previously in C# to calculate the age from a given birth date.

Discover
Write a string to a file
Code PHP
November 7, 2023November 8, 2023Nathan

Write a string to a file

This example shows you how to write a string to a file using PHP, and also do some error handling to ensure that your file gets written correctly.

Discover
Check if a string ends with another string
Code PHP
November 7, 2023November 8, 2023Nathan

Check if a string ends with another string

A short function that checks whether a passed string ends with another passed string, and returns the answer as a boolean value.

Discover
Redirect using PHP
Code PHP
November 7, 2023November 8, 2023Nathan

Redirect using PHP

A function that redirects the user to the specified URL by sending the appropriate headers or by using JavaScript if the headers were already sent.

Discover
Read content of file or URL into a string
Code PHP
November 7, 2023November 8, 2023Nathan

Read content of file or URL into a string

Two examples on how to read the content coming from an URL or from a local file into a string, using PHP.

Discover
Code PHP
November 7, 2023Nathan

Parsing a Tab Delimited File

This example code shows you how to parse a tab delimited file (or any other character delimited file for that matter), using PHP.

Discover
Code PHP
November 7, 2023November 7, 2023Nathan

Get the modified date and time of a file using PHP

An example on how to use the filemtime() function to retrieve the last update date and time of a file.

Discover
Code PHP
November 7, 2023Nathan

Array of Street Types and their Abbreviations

A PHP array containing the street types / designations and their canonical form / abbreviation, following the USPS standard.

Discover
Code Java
November 7, 2023Nathan

Basic HTTP Server In Java

Create a basic HTTP server in Java that answers browser requests and serves the requested page to the client, using the ServerSocket object.

Discover

Posts pagination

Previous 1 … 7 8 9 … 21 Next

Trending Posts

Essential Auto Services Every Car Owner Should Know About

Apr 2, 202512 min read
Read More

Why Converse Still Rule the Street After a Century of Style

Mar 24, 20257 min read
Read More

How ATS Euromaster Supports Fleets with Mobile Tyre Fitting Services

Mar 17, 20259 min read
Read More

Taking a Closer Look at GNC’s Approach to Daily Supplements

Mar 10, 20258 min read
Read More

The Best Blue Light Glasses to Protect Your Eyes from Screens

Mar 6, 20256 min read
Read More
No Post Found

Trending News

Revolutionizing Computer Technology: Innovative Memory Design Slashes Energy Usage 

Dec 28, 20236 min read
Read More

Major Overhaul of Google’s Chatbot Bard with the Integration of Gemini Model 

Dec 28, 20234 min read
Read More

Voice Recognition Technology: The Rise of Smart Assistants

Dec 27, 20234 min read
Read More
Image Not Found
Geekpedia is a knowledge-driven website offering fresh takes on tech, wellness, gear, and more — all through a thoughtful lens.
From coding tips to curated lifestyle content, it’s built for those who live smart, think sharp, and stay curious.
FOLLOW US
  • Social Image
  • Social Image
  • Social Image
  • Code
  • Gear
  • Generative AI
  • Knowledge Base
  • News
  • Contact Us
  • Work With Us
  • About Us
  • Affiliate Disclosure
  • FAQ
  • Advertisement
  • Disclaimer
  • Privacy Policy
  • Terms & Conditions