[Solved] Automatic Copyright Footer Dates in Laravel/Basically Vanilla PHP
Answers in Server-Side | By August R. Garcia
Published 2 weeks agoMon, 25 Nov 2019 15:05:52 -0800 | Last update 2 weeks agoMon, 25 Nov 2019 16:36:40 -0800
The only part about this that isn't vani...
MoreThe only part about this that isn't vanilla PHP is using {{ $var }} as shorthand for <?= htmlspecialchars($var); ?>. <style> .footer...[Solved] Favicon.ico Files not Caching on Chrome
Answers in Server-Side | By August R. Garcia
Published 3 weeks agoTue, 19 Nov 2019 18:52:51 -0800 | Last update 3 weeks agoTue, 19 Nov 2019 19:45:31 -0800
Slash "solved."Truly a quality hack.
MoreAs discussed previously, there are a fair number of dumbass things that can be done with base64 encoding that are occasionally so dumb that they even...[Solved] PHP/Laravel - Cache Query for Current Request/Pageload
Answers in Server-Side | By August R. Garcia
Published 1 month agoSat, 09 Nov 2019 12:03:54 -0800
TL;DR: Use $GLOBALS
MoreThe Laravel caching functions seem to not have specific built-in functionality to cache a query for only the current pageload, but it can easily be do...[Solved] Laravel - "Cannot access protected property Illuminate\Pagination\LengthAwarePaginator::$currentPage"
Answers in Frameworks | By August R. Garcia
Published 1 month agoWed, 30 Oct 2019 05:14:54 -0700
Call the currentPage and lastPage method...
MoreIncorrect: <h1>Page {{ $paginator->currentPage }} of {{ $paginator->lastPage }}</h1> Correct: <h1>Page {{ $pagina...[PHP] How to Add rel="nofollow", rel="nofollow ugc", rel="nofollow sponsored" and/or Other rel Attributes to Links
Articles in Server-Side | By August R. Garcia
Published 2 months agoSun, 15 Sep 2019 23:37:47 -0700 | Last update 2 months agoTue, 08 Oct 2019 07:00:49 -0700
Last Reply
Ahrefs now shows/lists data related to the rel="ugc" and rel="sponosored" attribute values. See newly added cover image to this post.
August R. Garcia,
Ahrefs now shows/lists da...
[Solved] Adding an "active" class to <nav>/navigation menus in Laravel
Answers in Client-Side | By August R. Garcia
Published 3 months agoTue, 20 Aug 2019 16:25:41 -0700 | Last update 3 months agoTue, 20 Aug 2019 16:26:29 -0700
Basically the same with PHP in general;...
MoreBasically the same with PHP in general; only real difference is the use of Route::currentRouteName(). Code: <nav> <?php $...What are some good PHP interview questions to ask potential developers?
Answers in Computer Programming | By Mark3t_Crash
Published 8 months agoTue, 19 Mar 2019 01:55:28 -0700
Last Reply
Hey Check this - PHP Interview Questions
You will get the latest PHP interview question with answers.
Hope this may help you.
Adisharma,
Hey Check this - PHP Inte...
How I used PHP skills and social engineering to get unbanned from a gay club
Articles in Hacking the Government | By Hash Brown
Published 6 months agoWed, 29 May 2019 19:59:57 -0700 | Last update 6 months agoWed, 29 May 2019 20:00:49 -0700 📌
Not your usual post, but real none the l...
MoreI am a man who likes to pour the fuck up, and when I pour up at a high enough level I do things such as: throw bottles from a 12th floor balcony...How to use DOMDocument::getElementsByTagName for multiple tags/types of tag?
Answers in Client-Side | By Some Guy
Published 10 months agoSun, 13 Jan 2019 04:36:16 -0800

Last Reply
Another approach is a prototype based solution.
Node.prototype.getElementsByTagNames = function (tags) {
var elements = [];
for (...
Ali,
Another approach is a pro...
How do I solve "Cannot use object of type stdclass as array"?
Answers in Server-Side | By Some Guy
Published 11 months agoSun, 16 Dec 2018 09:40:02 -0800
Last Reply
When we use json_decode();, we get an object of type stdClass as return type.
1. Cast the object to array.
This can be achieved as follows....
Univa,
When we use json_decode()...
[PHP] Push to associative array?
Answers in Server-Side | By Some Guy
Published 10 months agoSun, 13 Jan 2019 04:31:06 -0800
Last Reply
It will merge two arrays and combine their items in a single array.
Example Code -
$existing_array = array('a'=>'b', 'b'=>'c');
$new_arra...
Univa,
It will merge two arrays...
Solve "Connection for controluser as defined in your configuration failed"?
Answers in Server-Side | By Some Guy
Published 11 months agoSun, 16 Dec 2018 09:33:56 -0800
Last Reply
Log in as root in phpMyAdmin
Create a database called PHPMyAdmin
Create a user called pma and set the "host" to the hostname or IP address...
Univa,
[SOLVED] How to use PHP and cURL to make requests to the PayPal REST API
Answers in Server-Side | By August R. Garcia
Published 7 months agoFri, 12 Apr 2019 21:28:54 -0700
Last Reply
Also, this tool is fairly useful:
https://incarnate.github.io/curl-to-php/
Some Guy,
Also, this tool is fairly...
[SOLVED] How to get an OAuth Access Token for the PayPal REST API (Using cURL with PHP)
Answers in Server-Side | By August R. Garcia
Published 7 months agoFri, 12 Apr 2019 21:24:46 -0700
For "Authorization: Bearer "
MoreThe PHP Function <?php // This function makes the equivalent of the cURL call below: // curl -v<200b> https://api.sandbox.paypal.com/v...[Solved] PayPal REST API AUTHORIZATION_ERROR on sandbox.paypal.com when sending invoices
Answers in Web Development | By August R. Garcia
Published 8 months agoSun, 07 Apr 2019 13:14:40 -0700 | Last update 8 months agoSun, 07 Apr 2019 13:14:58 -0700
Full Error:
MoreFull Error: { "name": "AUTHORIZATION_ERROR", "message": "Authorization error occurred.", "information_link": "https://...PHP Fatal error: Can't use function return value in write context in [Some File Path]
Answers in Server-Side | By Some Guy
Published 10 months agoSun, 03 Feb 2019 03:54:04 -0800
Last Reply
This line:
unset( $recent($key) );
Should be:
unset( $recent[$key] );
August R. Garcia,
This line:
Fixes for "your PHP installation appears to be missing the MySQL extension, which is required by WordPress?"
Answers in Computer Programming | By Some Guy
Published 10 months agoWed, 06 Feb 2019 13:52:18 -0800
Last Reply
Since your PHP installation is acting up, you should check out Stack Overflow's website that is right here for a solution https://stackoverflow.com/qu...
Zhaybib,
Since your PHP installati...
How do you actually use the wp_enqueue_style() function?
Answers in Content-Management Systems | By Some Guy
Published 10 months agoWed, 06 Feb 2019 13:46:08 -0800
Last Reply
Since you say that you want to learn how to use the WordPress function of wp_enqueue_style(), I recommend that you check out Stack Overflow's discussi...
Zhaybib,
Since you say that you wa...
How to get the current page URL in WordPress (PHP)?
Answers in Web Development | By bugblocker
Published 8 months agoTue, 19 Mar 2019 02:03:34 -0700
Last Reply
You can use the following code to obtain the current URL in wordpress: global $wp; $current_url = home_url(add_query_arg(array(), $wp->request));. Thi...
KacssPL,
You can use the following...
PHP server scripts are surrounded by delimiters, which?
Answers in Computer Software | By The Wizard
Published 8 months agoTue, 19 Mar 2019 03:37:11 -0700
Last Reply
Since you use PHP and would like to know which scripts are surrounded by delimiters, I would recommend you check this http://www.answers.com/Q/PHP_ser...
Zhaybib,
Since you use PHP and wou...
Fix "Port 80 in use by "unable to open process" with pid 4!"?
Answers in Server-Side | By Some Guy
Published 11 months agoSun, 16 Dec 2018 09:43:26 -0800
Last Reply
Some of the program that may be using Port 80:
Skype: Skype uses port 80/443 by default.
Go to tools >options > advanced >conn...
Univa,
Some of the program that...
Good PHP interview questions to practice with?
Answers in Local and Offline Businesses | By Your Dad
Published 8 months agoTue, 19 Mar 2019 06:56:38 -0700
Last Reply
PHP is a very popular programming language. It is no surprise that many companies want their workers to be proficient. Many interview questions on PHP...
Zhaybib,
PHP is a very popular pro...
PHP parse error: syntax error, unexpected end of file?
Answers in Web Development | By pls_stop_this
Published 8 months agoTue, 19 Mar 2019 09:39:50 -0700
Last Reply
There is no easy solution unless you can look at the code line by line to see where you've gone astray. It could be as simple as a typo or as complica...
ABCDCBA,
There is no easy solution...
Increasing max PHP input vars in WordPress?
Answers in Web Development | By Edgelady43069
Published 8 months agoTue, 19 Mar 2019 08:13:02 -0700
Last Reply
When you are in web development and you are interested in increasing max PHP input vars in Word Press, it is recommended that you check out this link...
Zhaybib,
When you are in web devel...
How to write "correct horse battery staple" passwords in PHP?
Answers in Server-Side | By Some Guy
Published 8 months agoTue, 19 Mar 2019 19:19:24 -0700
Last Reply
function correct_horse_battery_staple() {
// The file that contains the words you want to use
$f_contents = file(public_path() ....
August R. Garcia,
How to Automatically Merge and Minify CSS Files in Laravel 5.7
Articles in Frameworks | By August R. Garcia
Published 9 months agoMon, 11 Mar 2019 20:01:31 -0700 | Last update 8 months agoWed, 13 Mar 2019 00:56:13 -0700
This also basically works for PHP in gen...
MoreChoose a CSS minifying function. This function from Datayze combined with this additional function to remove comments works fine. Ideally move th...[Dreamhost] Increase PHP memory limit?
Answers in Server-Side | By Some Guy
Published 10 months agoSun, 13 Jan 2019 04:30:36 -0800
Last Reply
Also, if you're running out of memory, note that for shared hosting and VPS setups, MySQL runs on a separate machine/partition from your website's fil...
August R. Garcia,
Also, if you're running o...
How to install Laravel properly?
Answers in Web Development | By Some Guy
Published 10 months agoWed, 06 Feb 2019 14:01:09 -0800
Last Reply
Laravel installation can be executed by following the simple instructions on Laravel docs here.
roxblade,
Laravel installation can...
[PHP] Embed and Autolink Everything with One Function Call: Vimeo, YouTube, DailyMotion, Imgur, and Gyazo
Articles in Server-Side | By August R. Garcia
Published 10 months agoSun, 10 Feb 2019 22:12:12 -0800 | Last update 10 months agoSun, 10 Feb 2019 22:20:37 -0800
Last Reply
Footnote - This post is part of a work-in-progress for 256Kilobyte's patch 1.6.0. May update this post later with minor bug fixes / QOL updates to the...
August R. Garcia,
Footnote - This post is p...
How do I make create greentext (4chan style) using the PHP DOMDocument library?
Answers in Server-Side | By Some Guy
Published 10 months agoWed, 06 Feb 2019 19:46:41 -0800
Last Reply
Something like this should work:
function greentext(DOMDocument $xml_doc) {
// Get all P tags
$nodes = $xml_doc->getElementsBy...
August R. Garcia,
Something like this shoul...