256 Kilobytes

All Content > PHP

Type All Category All Tag PHPPHP: Hypertext Preprocessor is a scripting language used heavily in server-side development. PHP is frequently used for templating.

Profile Photo - Hash Brown

How I used PHP skills and social engineering to get unbanned from a gay club

Articles in Hacking the Government | By Hash Brown

Published 4 weeks agoWed, 29 May 2019 19:59:57 -0700 | Last update 4 weeks agoWed, 29 May 2019 20:00:49 -0700 📌

Profile Photo - Hash Brown

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...
🗨
0
🐏
1
👁
491
Profile Photo - Some Guy
Profile Photo - Default

Last Reply Another approach is a prototype based solution. Node.prototype.getElementsByTagNames = function (tags) { var elements = []; for (... Ali,

Another approach is a pro...

Wed, 29 May 2019 05:05:53 -0700 4 weeks ago
🗨
2
🐏
0
👁
130
Profile Photo - Some Guy

How do I solve "Cannot use object of type stdclass as array"?

Answers in Server-Side | By Some Guy

Published 6 months agoSun, 16 Dec 2018 09:40:02 -0800

Profile Photo - Univa

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

Wed, 08 May 2019 08:38:04 -0700 1 month ago
🗨
1
🐏
0
👁
131
Profile Photo - Some Guy

[PHP] Push to associative array?

Answers in Server-Side | By Some Guy

Published 5 months agoSun, 13 Jan 2019 04:31:06 -0800

Profile Photo - Univa

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

Wed, 08 May 2019 08:16:57 -0700 1 month ago
🗨
1
🐏
0
👁
105
Profile Photo - Some Guy
Profile Photo - Univa

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,

Wed, 24 Apr 2019 08:13:19 -0700 2 months ago
🗨
1
🐏
0
👁
120
Profile Photo - August R. Garcia
Profile Photo - Some Guy

Last Reply Also, this tool is fairly useful: https://incarnate.github.io/curl-to-php/ Some Guy,

Also, this tool is fairly...

Sun, 14 Apr 2019 03:35:46 -0700 2 months ago
🗨
1
🐏
0
👁
90
Profile Photo - August R. Garcia
Profile Photo - August R. Garcia

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...
🗨
0
🐏
0
👁
78
Profile Photo - August R. Garcia

[Solved] PayPal REST API AUTHORIZATION_ERROR on sandbox.paypal.com when sending invoices

Answers in Web Development | By August R. Garcia

Published 2 months agoSun, 07 Apr 2019 13:14:40 -0700 | Last update 2 months agoSun, 07 Apr 2019 13:14:58 -0700

Profile Photo - August R. Garcia

Full Error:

MoreFull Error: { "name": "AUTHORIZATION_ERROR", "message": "Authorization error occurred.", "information_link": "https://...
🗨
0
🐏
0
👁
75
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last Reply This line: unset( $recent($key) );  Should be: unset( $recent[$key] );  August R. Garcia,

This line:

Sun, 07 Apr 2019 12:10:37 -0700 2 months ago
🗨
2
🐏
0
👁
123
Profile Photo - Some Guy
Profile Photo - Zhaybib

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

Sat, 30 Mar 2019 16:06:41 -0700 2 months ago
🗨
1
🐏
0
👁
110
Profile Photo - Some Guy

How do you actually use the wp_enqueue_style() function?

Answers in Content-Management Systems | By Some Guy

Published 4 months agoWed, 06 Feb 2019 13:46:08 -0800

Profile Photo - Zhaybib

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

Sat, 30 Mar 2019 15:17:54 -0700 2 months ago
🗨
1
🐏
0
👁
101
Profile Photo - bugblocker

How to get the current page URL in WordPress (PHP)?

Answers in Web Development | By bugblocker

Published 3 months agoTue, 19 Mar 2019 02:03:34 -0700

Profile Photo - KacssPL

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

Sat, 30 Mar 2019 15:05:45 -0700 2 months ago
🗨
1
🐏
0
👁
53
Profile Photo - The Wizard

PHP server scripts are surrounded by delimiters, which?

Answers in Computer Software | By The Wizard

Published 3 months agoTue, 19 Mar 2019 03:37:11 -0700

Profile Photo - Zhaybib

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

Sat, 30 Mar 2019 14:43:21 -0700 2 months ago
🗨
1
🐏
0
👁
53
Profile Photo - Some Guy

Fix "Port 80 in use by "unable to open process" with pid 4!"?

Answers in Server-Side | By Some Guy

Published 6 months agoSun, 16 Dec 2018 09:43:26 -0800

Profile Photo - Univa

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

Thu, 28 Mar 2019 11:56:18 -0700 2 months ago
🗨
1
🐏
0
👁
132
Profile Photo - Your Dad

Good PHP interview questions to practice with?

Answers in Local and Offline Businesses | By Your Dad

Published 3 months agoTue, 19 Mar 2019 06:56:38 -0700

Profile Photo - Zhaybib

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

Wed, 20 Mar 2019 21:08:52 -0700 3 months ago
🗨
1
🐏
0
👁
67
Profile Photo - pls_stop_this

PHP parse error: syntax error, unexpected end of file?

Answers in Web Development | By pls_stop_this

Published 3 months agoTue, 19 Mar 2019 09:39:50 -0700

Profile Photo - ABCDCBA

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

Wed, 20 Mar 2019 09:49:13 -0700 3 months ago
🗨
1
🐏
0
👁
63
Profile Photo - Mark3t_Crash
Profile Photo - Jemgrip

Last Reply I found the answer to your question on this link... https://www.upwork.com/i/interview-questions/php/ Hope this helps. Jemgrip,

I found the answer to you...

Wed, 20 Mar 2019 02:57:35 -0700 3 months ago
🗨
1
🐏
0
👁
43
Profile Photo - Edgelady43069

Increasing max PHP input vars in WordPress?

Answers in Web Development | By Edgelady43069

Published 3 months agoTue, 19 Mar 2019 08:13:02 -0700

Profile Photo - Zhaybib

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

Wed, 20 Mar 2019 02:33:15 -0700 3 months ago
🗨
1
🐏
0
👁
46
Profile Photo - Some Guy

How to write "correct horse battery staple" passwords in PHP?

Answers in Server-Side | By Some Guy

Published 3 months agoTue, 19 Mar 2019 19:19:24 -0700

Profile Photo - August R. Garcia

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,

Tue, 19 Mar 2019 19:23:10 -0700 3 months ago
🗨
1
🐏
0
👁
113
Profile Photo - August R. Garcia

How to Automatically Merge and Minify CSS Files in Laravel 5.7

Articles in Frameworks | By August R. Garcia

Published 3 months agoMon, 11 Mar 2019 20:01:31 -0700 | Last update 3 months agoWed, 13 Mar 2019 00:56:13 -0700

Profile Photo - August R. Garcia

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...
🗨
0
🐏
0
👁
247
Profile Photo - Some Guy

[Dreamhost] Increase PHP memory limit?

Answers in Server-Side | By Some Guy

Published 5 months agoSun, 13 Jan 2019 04:30:36 -0800

Profile Photo - August R. Garcia

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

Sat, 23 Feb 2019 01:54:09 -0800 4 months ago
🗨
2
🐏
0
👁
174
Profile Photo - Some Guy

How to install Laravel properly?

Answers in Web Development | By Some Guy

Published 4 months agoWed, 06 Feb 2019 14:01:09 -0800

Profile Photo - roxblade

Last Reply Laravel installation can be executed by following the simple instructions on Laravel docs here. roxblade,

Laravel installation can...

Mon, 18 Feb 2019 09:22:33 -0800 4 months ago
🗨
1
🐏
0
👁
123
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 4 months agoSun, 10 Feb 2019 22:12:12 -0800 | Last update 4 months 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 4 months ago
🗨
1
🐏
0
👁
195
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 4 months ago
🗨
1
🐏
0
👁
291
Profile Photo - August R. Garcia

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

Articles in Frameworks | By August R. Garcia

Published 4 months 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.Anyway, here's some code to make a fucking "recently...
🗨
0
🐏
0
👁
343
Profile Photo - Some Guy

[PHP] Add ids to domdocument?

Answers in Server-Side | By Some Guy

Published 5 months 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 4 months ago
🗨
2
🐏
0
👁
123
Profile Photo - Some Guy

[PHP] Sort associative array by value?

Answers in Server-Side | By Some Guy

Published 5 months 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 4 months ago
🗨
2
🐏
0
👁
126
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 4 months ago
🗨
1
🐏
0
👁
204
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 5 months 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 4 months ago
🗨
1
🐏
0
👁
134
Profile Photo - Some Guy

[PHP] sort multidimensional array by value?

Answers in Server-Side | By Some Guy

Published 5 months 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 4 months ago
🗨
1
🐏
0
👁
130