Home
Helium
What is a Helium Hotspot?
How to Install a Helium Hotspot
Helium Maps and Elevation Measuring
Helium Hotspot Cables and Connections
Port Forwarding – Helium Miner
Things to Consider when installing a Helium Miner
Helium Hotspot Antenna Gallery
Best Stablecoin Investing Websites
Helium Staking
Crypto Blog
HotspotRF Referral code 2022
PHP
Php – Arrays
Php – Csv
Php – Dates & Time
Php – Email
Php – Loops
Php – Maths
Php – Miscellaneous
Php – Strings
Jquery
Jquery – Ajax
Jquery – Forms Posting
Jquery – Modals
Jquery – Strings
Jquery – Tricks
Jquery – Validation
Jquery – Variables
Jquery – Misc
MySQL
CSS
Javascript
WordPress
Admin – WP
WooCommerce
WordPress – Get
WordPress – Miscellaneous
WordPress – Show
Misc
Firefox
Python
Random Coding
Raspberry Pi
Reviews
SEO
SEO News
Sublime Text
Windows
Menu
Home
Helium
What is a Helium Hotspot?
How to Install a Helium Hotspot
Helium Maps and Elevation Measuring
Helium Hotspot Cables and Connections
Port Forwarding – Helium Miner
Things to Consider when installing a Helium Miner
Helium Hotspot Antenna Gallery
Best Stablecoin Investing Websites
Helium Staking
Crypto Blog
HotspotRF Referral code 2022
PHP
Php – Arrays
Php – Csv
Php – Dates & Time
Php – Email
Php – Loops
Php – Maths
Php – Miscellaneous
Php – Strings
Jquery
Jquery – Ajax
Jquery – Forms Posting
Jquery – Modals
Jquery – Strings
Jquery – Tricks
Jquery – Validation
Jquery – Variables
Jquery – Misc
MySQL
CSS
Javascript
WordPress
Admin – WP
WooCommerce
WordPress – Get
WordPress – Miscellaneous
WordPress – Show
Misc
Firefox
Python
Random Coding
Raspberry Pi
Reviews
SEO
SEO News
Sublime Text
Windows
Search
Generic filters
Hidden label
Exact matches only
Php - Miscellaneous
Add Expires Headers to your .htaccess file – Gtmetrix Error
Adding Canonical link manually – PHP
Allowed file extension in upload form
Basic OOP structure PHP class-function
Call function in PHP
Check if file_exists
Checkboxes post collect values
Cookies
Create PDF with PHP – Basic
Csv file create with array
Curl – Write soucecode of website to file
Deleting all files from a folder using PHP
Detect Mobile Browser
Displaying decimal format in PHP (bcmul)
Error Reporting – Turn On
Extensions working? Soap test
Find post values from form submitted
Find user whoami phpinfo
Find what php.ini file cli is using
Foreach post variable -Collect posted fields
FTP Send files – backup
Functions
Get all files in a directory
Get Array values from php ini file
Get city from ip address – geolocation
Get current domain / website name
Get extension or filename from url
Get last part of url – page name
Get last visited page- Referal – Pagename as variable
Get latest file created in directory – filemtime
Get user information – Browser IP address etc
Give a function access to outside variable
Hitcounter in Php
Hotlinking – Stop remote posting from another form
How to catch errors and warnings in PHP
How to find the last folder in url
How to Reduce Image File Size while Uploading Using PHP code?
How to stop or pause php code execution?
Hyperlink variable passing – PHP
Increase Maximum Execution time of 60 seconds in PHP
IP address logging
Isset Post Check if else variable set
JSON decode
Last page visited – Referer
Maximum posts change php.ini
Output buffer – ob_start()
Pagination
Password protection – one page
PDF creation using HTML2FPDF
Permutations – Random
PHP Quiz
Php variable to Javascript variable
Phpinfo
Populate dropdown with data from database
Post form to itself – PHP_SELF
Random numbers and string
Read Rss feeds
Redirect Ipad & Iphone users
Redirect page – header()
Refresh php page periodically
Remove GET querys from browser’s URL after loading – Cloaking
Responsive screen size – PHP way
Rotate and Save an image using PHP
Run all files in a folder – Batch
Run PHP file using scheduled task
Run PHP in Command Line
Scandir show all pdf files in a folder
See last xml request posted
Sending hidden PHP variable using Button-Form
Server Vars – referer show
Session set and increment
Session show with page counter
Session to variable
Session Unset
Set session variable and check if equal to value
Show all current sessions
Show all databases
Show all images inside a folder
Show last 10 lines of text file
Show/Hide error reporting
Simplexml read xml file
Sleep or Wait
Soap – Football
Stop duplicates in dropdown box
Stop showing depreciated warnings php
Switch – Case (Instead of IF-Else)
Turn PHP error reporting on /off
Turning off Deprecation warnings in PHP.ini file WAMP
Two submit buttons one form
Unzip a file
Upload a file – simple
Upload image with PHP – Simple
Users online
Variable adding in difficult places
Webscraping words from a website
Webscraping words from a website 2
XML reader for feeds
Curl – check if extension loaded
4th March 2014
Php - Miscellaneous
You can try this with other extensions also.
<?php if(extension_loaded('curl')){ echo "Curl works"; }else{ echo "fail"; } ?>
1
2
3
4
5
6
7
8
9
<?php
if
(
extension_loaded
(
'curl'
)
)
{
echo
"Curl works"
;
}
else
{
echo
"fail"
;
}
?>
Was this code snippet helpful?
Yes
0
No
0
Comment on this Code Snippet?
How to check if a checkbox has been ticked in Jquery
Firefox 89-100 (2022) Tabs on top/bottom not working fixed again
Slash canonicalization at the end of the URL – htaccess
Elementor json template files not uploading
Multiple featured images for blog posts
Autostart Browser in Kiosk Mode – Raspberry Pi 4 Terminal Command
Open Chromium full screen -Raspberry Pi (Kiosk mode)
Populate dropdown with data from database
Exclude a specific page from WordPress sitemap – wp-sitemap.xml
Firefox screenshot button missing – Version 88
Best FAQ Schema for Rich Results
WordPress sitemap not working after uninstalling Yoast
Send – Serialize form and send extra variables
Show time on Raspberry Pi from command line
wp-sitemap.xml not showing after disabling Yoast
WordPress app shows XML-RPC error
Recommended WordPress Security Headers in .htaccess
Basic Woocommerce Admin Tutorials
Get the ID of the last inserted record
Redirect your old website to other domain using .htaccess file
Import csv to phpmyadmin
Create a plugin with shortcode for Elementor – Most basic ever!
Add how many left in stock on products stock controlled only – Woocommerce
Add a dropdown to Woocommerce Checkout Fields