256 Kilobytes

Content

Welcome to the Internet.

Profile Photo - August R. Garcia

[PHP] Embed and Autolink Everything with One Function Call: Vimeo, YouTube, DailyMotion, Imgur, and Gyazo

Articles in Server-Side | By August R. Garcia

Published 1 week agoSun, 10 Feb 2019 22:12:12 -0800 | Last update 1 week agoSun, 10 Feb 2019 22:20:37 -0800

Profile Photo - August R. Garcia

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...

Sun, 10 Feb 2019 22:23:57 -0800 1 week ago
🗨
1
🐏
0
👁
50
Profile Photo - Some Guy
Profile Photo - August R. Garcia

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...

Wed, 06 Feb 2019 19:51:25 -0800 1 week ago
🗨
1
🐏
0
👁
91
Profile Photo - Some Guy

How to install Laravel properly?

Answers in Web Development | By Some Guy

Published 1 week agoWed, 06 Feb 2019 14:01:09 -0800

Profile Photo - Some Guy

MoreHow do you install Laravel properly on the network? I have studied networks some and had a littl
🗨
0
🐏
0
👁
8
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreI was working on my computer and I got the error "your PHP installation appears to be missin
🗨
0
🐏
0
👁
3
Profile Photo - Some Guy

How do you actually use the wp_enqueue_style() function?

Answers in Content-Management Systems | By Some Guy

Published 1 week agoWed, 06 Feb 2019 13:46:08 -0800

Profile Photo - Some Guy

MoreI'm not new to CSS, but I am new to WordPress, and wanted to know how the wp_enqueue_style()
🗨
0
🐏
0
👁
5
Profile Photo - August R. Garcia

[Laravel/PHP] How to Make a “Recently Viewed Posts” Widget

Articles in Frameworks | By August R. Garcia

Published 2 weeks agoSun, 03 Feb 2019 05:55:12 -0800

Profile Photo - August R. Garcia

Holy shit, use krsort(), not arsort().

MoreOkay, you fucking cocksuckers, I'm going to stab myself for the reason stated in the description.
🗨
0
🐏
0
👁
35
Profile Photo - Some Guy
Profile Photo - Some Guy

Here's the code:

MoreHere's the code: // $recent is an array of associative arrays
🗨
0
🐏
0
👁
9
Profile Photo - Some Guy

[PHP] Add ids to domdocument?

Answers in Server-Side | By Some Guy

Published 1 month agoSun, 13 Jan 2019 04:35:36 -0800

Profile Photo - August R. Garcia

Last Reply There is also some code in this article that does this: https://www.256kilobytes.com/content/show/3104/php-how-to-configure-a-website-to-show-jump-... August R. Garcia,

There is also some code i...

Sat, 02 Feb 2019 22:32:32 -0800 2 weeks ago
🗨
2
🐏
0
👁
29
Profile Photo - Some Guy

[PHP] Sort associative array by value?

Answers in Server-Side | By Some Guy

Published 1 month agoSun, 13 Jan 2019 04:32:36 -0800

Profile Photo - August R. Garcia

Last Reply PHP documentation for arsort(): http://php.net/manual/en/function.arsort.php Also, there are a few other array sorting options: sort() -... August R. Garcia,

PHP documentation for ars...

Sat, 02 Feb 2019 22:07:44 -0800 2 weeks ago
🗨
2
🐏
0
👁
22
Profile Photo - Some Guy
Profile Photo - roxblade

Last Reply First of all, make sure you restart Apache (server) after you have modified the php.ini. Also, ensure that the file that's causing this error to pop u... roxblade,

First of all, make sure y...

Sat, 02 Feb 2019 07:07:27 -0800 2 weeks ago
🗨
1
🐏
0
👁
19
Profile Photo - Some Guy
Profile Photo - roxblade

Last Reply The getElementsByTagName cannot be used to select multiple tags. You need to run multiple queries for the tags separately. Alternatively, you can also... roxblade,

The getElementsByTagName...

Sat, 02 Feb 2019 06:55:28 -0800 2 weeks ago
🗨
1
🐏
0
👁
17
Profile Photo - Some Guy

[HTML/CSS/PHP] SVG -- Best way to make a make <polyline> smooth?

Answers in Style and Layout | By Some Guy

Published 1 month agoSun, 13 Jan 2019 04:29:25 -0800

Profile Photo - roxblade

Last Reply It is very tricky, to be honest. The first thing you should do is check if creating a larger image solves your problem. It's the simplest way, real... roxblade,

It is very tricky, to be...

Fri, 01 Feb 2019 03:13:48 -0800 2 weeks ago
🗨
1
🐏
0
👁
27
Profile Photo - Some Guy

[PHP] sort multidimensional array by value?

Answers in Server-Side | By Some Guy

Published 1 month agoSun, 13 Jan 2019 04:33:56 -0800

Profile Photo - roxblade

Last Reply Before PHP 5.2, you will need to define a custom sorting function to do that. Let's say it goes like this: function sortByOrder($a, $b) { re... roxblade,

Before PHP 5.2, you will...

Fri, 01 Feb 2019 03:00:53 -0800 2 weeks ago
🗨
1
🐏
0
👁
27
Profile Photo - Some Guy
Profile Photo - roxblade

Last Reply This is most probably happening because DNS lookup is failing. If you're particularly sure that the server is accessible and you can open it otherwise... roxblade,

This is most probably hap...

Fri, 01 Feb 2019 02:57:17 -0800 2 weeks ago
🗨
1
🐏
0
👁
16
Profile Photo - Some Guy

[PHP] Specify timezone in a date object?

Answers in Server-Side | By Some Guy

Published 1 month agoSun, 13 Jan 2019 04:34:56 -0800

Profile Photo - roxblade

Last Reply Use the setTimezone function for this. This works from PHP 5 up until the latest version. DateTime::setTimezone -- date_timezone_set This w... roxblade,

Use the setTimezone funct...

Fri, 01 Feb 2019 02:52:46 -0800 2 weeks ago
🗨
1
🐏
0
👁
18