Items Listed in the Category php posted in Code
echo the page id from wordpress sqlite escape string Deprecated: parse_str(): Calling parse_str() without the result argument is deprecated getcwd usage in php to get the current working directory for file includes write to file php save string to file php using preg_match to extract text from elements encode spaces in items passed to url to %20 not + php function load as table - load_as_table turn on or off error reporting php get json with php from a url and display it php convert number with k on the end to full number extract variables from url string php No 'Access-Control-Allow-Origin' header is present on the requested resource. Fatal error: Uncaught Exception: Required extension GD is not loaded. php check if a class exists Uncaught Error: Call to undefined function mb_convert_encoding() get the subdomain name from the domain string in php - sub domain fixing error Call to undefined function simplexml_load_string get the content of a url get the content of a link with php and test if the result is empty php check if url is valid with filter_var php save csv from array to file php export csv from string to browser download convert json string to a php array how to json encode an array in php how to decode xml in php php get file and save it php function to remove the query string from a url using php parse_url function to remove the query string from a url add every value in the load_array array into the out for testing Fix for PHP Warning Trying to get property '*name*' of non-object write the contents of a url into a file with php sqlite fetchArray into another array php return json header and content list_all_array an early stages of list all function that uses an array to pass in main variables replace singular variable assignment with an array loop and variable variables using the $_SERVER['HTTP_REFERER'] to check referring pages timeline class and function php html template class system views list function for checking what views have been made on the current week load array load all items from an array while in a sqlite load sql loop create a 200 character summary from a longer html string using strlen to check the length of a string and do something about it How to record your own page views with PHP, and make them into weekly monthly and yearly charts load from fields array php class function get the current week as a number with php creating embedded php code from a database field test php bundle write check if a file exists with php check if the file is a directory or check if the directory exists in php get the current working directory in php create directory with php create folder with php check if a product already exists by its md5 load random videos module using template PHP/SQLite - Load Random Item split a string into links using the comma extract youtube image from video url simple php ip blocker preg replace clean a string only allow a-zA-Z0-9 characters get last month as a number with php verify the google recapture server php rtrim strip white space or strings from the end of a string get the current month as a number show the difference between two dates in years, months, days, hours and seconds counting the occurrence of words in a multidimensional array write string contents to a file with php unable to access the $_FILES when submitting a form php check column exists in table sqlite show all methods or functions in a class (class function version) show all methods (functions) in a class adding an item to an array with php passing in arrays to your functions rather than using variables check server https or http value in php using $_SERVER Remove background image php with image magic get current url with php list a functions variables or arguments php list all the functions in a class php print an array nicely add a toast alert when logging in with half moon dont use md5 for password hashing using password_hash and password_verify php basic page router checking for spam comments function calculate a percentage (dec) difference based on two numbers explode a string into an array using gzdeflate on a string php include tinymce only if a user is logged into the site Quick tool to convert time into decimal generating all css colours with php? php countries array to dropdown form element Fix for Fatal error: Uncaught Error: Call to undefined function file_get_dom() simplehtmldom simple_html_dom Fixing PHP SQLite database is locked warning - Unable to execute statement: database is locked simple usage for php password_hash change string to capital words ucwords change upper case case string to lower case (uppercase, lowercase) convert a string to uppercase with php php substr return part of a string php countries array check if a timestamp is older than one hour making var_dump look nice php mysql table exists function how to display a php file as html with php php convert date now into a sql timestamp Generate a Random User Name return a state name from an australian postcode get the average of a number list using an array in php IP Address PHP Finding the position of a string in another string using strpos PHP str_replace - find and replace part of a string Random string generator function in php suniqid using the disk free space function in php create a mysql or sqlite current timestamp with php Cut a string when it finds a certain character with PHP validate a url using php with FILTER_VALIDATE_URL function to create a uid from html calculate a percentage (dec) difference based on two numbers check if a user is logged in using sessions PHP MySQL vs SQLite Count Items Function How Many Days Since a Date and other Calculations Date Conversion PHP Generate a random title from an array echo todays date and time in a nice format Generate Sub menu using Core page load timer class human_filesize php for loop set variables $p1,$p2.. etc as blank - variable variables sqlite check table name exists get current class name with get_class assign array to variables in a loop generate a random color rgb code with php Regular expression breakdown regex preg_replace php replace anything in brackets in a string using preg_replace regex php for loop with a 5 increment Get Current Page URL PHP Get the document root path in php $_SERVER['DOCUMENT_ROOT'] remove all of an element in a string <h1> count the elements in an array show errors in php with toggle search within files in a directory random number using rand extract meta tags from file or url as array pretty printing json with php find the 1st occurence of a string in another string sqlite delete data older than timestamp days using custom request headers array with curl preg_replace ereg_replace replace all chars php get the file modified time with filemtime csv read example extract meta tags from url and return as json array header type json some date formatting just day just month just year copy file tell wordpress to use the direct file method if its asking for ftp details try catch test basic for loop using parse_url to extract parts of a url file get contents reads entire file into a string show response headers from file get contents uniqid random string read and sort directory contents in php convert all images into base64 encoded sqlite basic sql and loop results get text between tags check the server method post or get using php
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

Subscribe to weekly updates about things i have added to the site or thought interesting during the last week.

You could also follow me on twitter or not... does anyone even use twitter anymore?

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote
time you enjoyed wasting is not wasted time
Unknown
Random CSS Property

mask-repeat

The mask-repeat CSS property sets how mask images are repeated. A mask image can be repeated along the horizontal axis, the vertical axis, both axes, or not repeated at all.
mask-repeat css reference