What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-02-18 00:20:11
The key "initial" is not recognized and ignored.
<?php include "connection.php"; include "header.php"; ?> <!DOCTYPE html> <html> <head> <title>Feedback</title> <link rel="stylesheet" type="text/css" href="style2.... Add solution -
PHP 2022-02-17 21:00:09
php set session timeout
//Ending a php session after 30 minutes of inactivity $minutesBeforeSessionExpire=30; if (isset($_SESSION['LAST_ACTIVITY']) && (time() - $_SESSION['LAST_ACTIVITY'] > ($minutesBeforeSessionExpire*60))) { session_unset(); // unset $_SE... Add solution -
PHP 2022-02-16 19:30:05
image upload and get attachment id in wordpress
/* this function for upload image in wordpress and return attchement id code by joshi yogesh ([email protected])*/ function cst_image_upload($img){ require_once( ABSPATH . 'wp-admin/includes/image.php' ); $attes_id = array(); $cnt = c... Add solution -
PHP 2022-02-15 22:45:09
tutoriel insérer une image forum php
<?phpif(isset($_FILES['avatar']) AND !empty($_FILES['avatar']['name'])) { $tailleMax = 2097152; $extensionsValides = array('jpg', 'jpeg', 'gif', 'png'); if($_FILES['avatar']['size'] <= $tailleMax) { $extensionUpload = strtolower(substr(st... Add solution -
PHP 2022-02-01 06:26:05
move uploaded file in php
$upload_folder = "upload/"; $file_location = $upload_folder . basename($_FILES["fileToUpload"]["name"]); if(isset($_FILES['fileToUpload'])){ if(move_uploaded_file($_FILES['fileToUpload']['tmp_name'], $file_loc... Add solution -
PHP 2022-02-01 04:50:45
how to upload file in wordpress
class WLSM_Helper { public static function get_attachment_mime() { return array('image/jpg', 'image/jpeg', 'image/png', 'application/pdf', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'a... Add solution -
PHP 2022-01-31 09:05:30
add_meta_box
/** * Calls the class on the post edit screen. */ function call_someClass() { new someClass(); } if ( is_admin() ) { add_action( 'load-post.php', 'call_someClass' )... Add solution -
PHP 2022-01-30 08:15:09
php sql search form
<?php $localhost = "localhost"; $username = "root"; $password = ""; $dbname = "samueldb"; $con = new mysqli($localhost, $username, $password, $dbname); if( $con->connect_error){ die('Error: ' . $con->c... Add solution
Best helpers
SOUMEN
+5
Huggy Buggy
+5
Joyo
+5
ImMathan
+5
Anugram
+5
Vy32
+5
Daniel Cook
+5
Florian Huit
+5
Csandreas1
+5
B_archer
+5
Horse
+5
Kd88
+5
Shahruz Raad
+5
Mick Daw
+5
Czlsws
+5