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 - 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 1 week ago
🗨
1
🐏
0
👁
27
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
👁
19
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 weeks agoSun, 07 Apr 2019 13:14:40 -0700 | Last update 2 weeks 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
👁
27
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 weeks ago
🗨
2
🐏
0
👁
71
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 3 weeks ago
🗨
1
🐏
0
👁
52
Profile Photo - Some Guy

How do you actually use the wp_enqueue_style() function?

Answers in Content-Management Systems | By Some Guy

Published 2 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 3 weeks ago
🗨
1
🐏
0
👁
56
Profile Photo - bugblocker

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

Answers in Web Development | By bugblocker

Published 1 month 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 3 weeks ago
🗨
1
🐏
0
👁
14
Profile Photo - The Wizard

PHP server scripts are surrounded by delimiters, which?

Answers in Computer Software | By The Wizard

Published 1 month 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 3 weeks ago
🗨
1
🐏
0
👁
18
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 4 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 3 weeks ago
🗨
1
🐏
0
👁
72
Profile Photo - Your Dad

Good PHP interview questions to practice with?

Answers in Local and Offline Businesses | By Your Dad

Published 1 month 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 1 month ago
🗨
1
🐏
0
👁
27
Profile Photo - pls_stop_this

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

Answers in Web Development | By pls_stop_this

Published 1 month 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 1 month ago
🗨
1
🐏
0
👁
20
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 1 month ago
🗨
1
🐏
0
👁
11
Profile Photo - Edgelady43069

Increasing max PHP input vars in WordPress?

Answers in Web Development | By Edgelady43069

Published 1 month 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 1 month ago
🗨
1
🐏
0
👁
14
Profile Photo - Some Guy

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

Answers in Server-Side | By Some Guy

Published 1 month 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 1 month ago
🗨
1
🐏
0
👁
54
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 1 month agoMon, 11 Mar 2019 20:01:31 -0700 | Last update 1 month 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
👁
135
Profile Photo - Some Guy

[Dreamhost] Increase PHP memory limit?

Answers in Server-Side | By Some Guy

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

How to install Laravel properly?

Answers in Web Development | By Some Guy

Published 2 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 2 months ago
🗨
1
🐏
0
👁
67
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 2 months agoSun, 10 Feb 2019 22:12:12 -0800 | Last update 2 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 2 months ago
🗨
1
🐏
0
👁
125
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 2 months ago
🗨
1
🐏
0
👁
219
Profile Photo - August R. Garcia

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

Articles in Frameworks | By August R. Garcia

Published 2 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
👁
188
Profile Photo - Some Guy

[PHP] Add ids to domdocument?

Answers in Server-Side | By Some Guy

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

[PHP] Sort associative array by value?

Answers in Server-Side | By Some Guy

Published 3 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 2 months ago
🗨
2
🐏
0
👁
73
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 months ago
🗨
1
🐏
0
👁
108
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 months ago
🗨
1
🐏
0
👁
67
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 3 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 2 months ago
🗨
1
🐏
0
👁
73
Profile Photo - Some Guy

[PHP] sort multidimensional array by value?

Answers in Server-Side | By Some Guy

Published 3 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 2 months ago
🗨
1
🐏
0
👁
84
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 months ago
🗨
1
🐏
0
👁
76
Profile Photo - Some Guy

[PHP] Specify timezone in a date object?

Answers in Server-Side | By Some Guy

Published 3 months 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 months ago
🗨
1
🐏
0
👁
65
Profile Photo - Some Guy

How to escape user input for an HTML input's "value" attribute?

Answers in Server-Side | By Some Guy

Published 4 months agoSun, 02 Dec 2018 03:42:29 -0800

Profile Photo - August R. Garcia

Last Reply Note that if you're talking about an attribute, by default htmlspecialchars() does not encode the single quote ( ' ) chara... August R. Garcia,

Note that if you're t...

Sun, 20 Jan 2019 18:33:20 -0800 3 months ago
🗨
2
🐏
0
👁
88
Profile Photo - Some Guy

Solve "trying to get property of non-object"?

Answers in Databases | By Some Guy

Published 4 months agoSun, 16 Dec 2018 09:43:24 -0800

Profile Photo - Hash Brown

Last Reply You're probably trying to get the value from an array with object syntax. Most database data is handled in arrays, not objects. If you are d... Hash Brown,

You're probably tryin...

Sun, 20 Jan 2019 18:29:51 -0800 3 months ago
🗨
1
🐏
0
👁
88