RSS and Atom Feed Reader Online

devcodepro

Public source code sharing repository

Reddit toolbar bookmarklet code - devcodepro

javascript:(function(){f='https://www.reddit.com/submit?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title);a=function(){if(!window.open(f+'noui=1&jump=doclose','enter','location=yes,links=no,scrollbars=n...

Posted on 10 March 2020 | 4:06 pm

fwrite - Write new line in text file - devcodepro

Posted on 8 March 2020 | 6:58 am

How to check PHP version on XAMPP - devcodepro

##Option 1## Open C:\xampp\readme.txt + PHP 7.4.1 (VC15 X86 64bit thread safe) + PEAR + Apache 2.4.41 + MariaDB 10.4.11 + phpMyAdmin 5.0.1 + Tomcat 7.0.99 + XAMPP Control Panel Version 3.2.4. + OpenSSL 1.1.0g + ADOdb 518a ##Option 2## Create a php file phpinfo.php...

Posted on 12 February 2020 | 2:14 pm

Web fonts available on all operating systems and browsers - devcodepro

Sans-serif fonts Arial, Comic Sans, Trebuchet MS, Verdana Serif fonts Georgia, Times New Roman Monospace fonts Courier New

Posted on 26 December 2019 | 1:40 pm

PHP BBCode parser - devcodepro

//[color=#BB0000]Font color example[/color] //[size=24]Font size example[/size] //[b]Bold text[/b] //[i]Italic text[/i] //[u]Underlined text[/u] //[s]Text with a strikethrough[/s] //[small]Small defines smaller text[/small] //[align=right]Align right example[/align]...

Posted on 11 December 2019 | 10:46 pm

Bootstrap Blockquote Style - devcodepro

blockquote { width: 98%; overflow: hidden; display: block; border-left: 5px solid #b9c5ca; background-color: #e4ecef; color: #6b6868; padding: 24px; margin: 22px; font-style: oblique; }

Posted on 2 October 2019 | 5:26 pm

WampServer - phpMyAdmin: No activity within 1440 seconds; please log in again. - devcodepro

C:/wamp/apps/phpmyadmin/libraries/config.default.php Replace this line of code: $cfg['LoginCookieValidity'] = 1440; With this line of code: $cfg['LoginCookieValidity'] = 3600; C:/wamp/bin/php/phpVER/php.ini Replace this line of code:...

Posted on 28 July 2019 | 11:56 am

Changing Dropdown Icon Bootstrap 4 - Font Awesome - devcodepro

.dropdown-toggle::after{ display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content:"\f078"; border-top: 0;...

Posted on 11 July 2019 | 5:30 pm

Bootstrap 4 Modal pushing content to the left fix - devcodepro

.modal-open { overflow: visible; } .modal-open, .modal-open .fixed-top { height: 63px; padding-left: 0!important; padding-right: 0!important; margin: 0!important; }

Posted on 18 June 2019 | 7:22 pm

Smarty Random Color - devcodepro

randomcolor {/foreach} * ------------------------------------------------------------- */ function smarty_function_randomcolor($params, Smarty_Internal_Template $template) { $colors =...

Posted on 16 June 2019 | 1:53 am

YouTube video thumbnails size - devcodepro

https://img.youtube.com/vi/ /maxresdefault.jpg 1280 x 720 https://img.youtube.com/vi/ /sddefault.jpg 640 x 480 https://img.youtube.com/vi/ /hqdefault.jpg 480 x 360 https://img.youtube.com/vi/ /mqdefault.jpg 320 x 180 https://img.youtube.com/vi/...

Posted on 13 May 2019 | 5:24 am

SimplePie - Smarty example - devcodepro

//PHP File require_once ('autoloader.php'); $feed = new SimplePie(); $feed->set_feed_url('http://feeds.feedburner.com/TechCrunch/'); $feed->init(); $feed->handle_content_type(); if ($feed->error()) { echo $feed->error(); } foreach...

Posted on 10 May 2019 | 12:17 pm

Exim filter example - devcodepro

if $message_body: contains "Something you dont want" then fail text "Your mail is not welcome." seen finish endif if $message_body: contains "Something you dont want" or $message_body: contains "Also I dont want this" then fail endif

Posted on 5 May 2019 | 1:44 pm

Bootstrap 4 How to open external url in modal dialog - devcodepro

Launch demo modal Modal title × my-remote-file.php content Close...

Posted on 2 May 2019 | 4:15 pm

Highlight String Example - devcodepro

'; echo ' '; highlight_string($string); echo ' '; ?>

Posted on 20 January 2019 | 8:37 pm

Sending HTML Email With Image - devcodepro

Email With Image Sending HTML Email With Image ' . $message . ' '; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=utf-8' . "\r\n"; $headers .= 'From:...

Posted on 20 January 2019 | 7:48 pm

Display and log errors - devcodepro

error_reporting(E_ALL); ini_set('display_errors', TRUE); ini_set('log_errors', TRUE); ini_set('error_log', 'php.log');

Posted on 8 December 2018 | 5:48 pm

Block googlebot robots.txt - devcodepro

User-agent: Googlebot Disallow: /

Posted on 28 November 2018 | 12:01 am

htaccess redirect http to https - devcodepro

RewriteEngine On RewriteCond %{HTTPS} off RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Posted on 23 June 2018 | 11:07 am

ADOdb - Check if MySQL query executed successfully - devcodepro

Prepare('DELETE FROM mytable WHERE id = ' . $DB->qstr($id) . ''); if ($DB->Execute($sql) === false) { print $DB->ErrorMsg(); } if ($DB->affected_rows() !== 0) { //true } ?>

Posted on 29 May 2018 | 4:20 pm