256 Kilobytes

Server-Side

Type All Category Server-SideDiscuss server-side development, such as PHP. Tag All

Profile Photo - Default

socialworldgroup

Forum in Server-Side | By socialworldgr

Published

Profile Photo - Default

Last ReplyThank you for your sharing,That's pretty cool. eCommerce website and directories carlance,

Thank you for your sharin...

Fri, 22 Oct 2021 23:39:51 -07001 hour ago1
🗨 2
🐏 0
👁 24
Profile Photo - Default

sereinboxd

Forum in Server-Side | By sereinboxd

Published

Profile Photo - Default

Actively develop the photographic cultur...

MoreActively develop the photographic cultural industry, build a bridge between photographic equipment producers, photographic work producers and users, a...
🗨 0
🐏 0
👁 36
Profile Photo - Default

Master up your courage

Forum in Server-Side | By Anton Ross

Published | Last Update

Profile Photo - Hash Brown

Last ReplyI agree with this man Anton and we must all use DEEP THOUGHT and PONDER our way in this world Hash Brown,

I agree with this man Ant...

Sun, 14 Jun 2020 06:50:02 -07001 year ago1
🗨 1
🐏 0
👁 377
Profile Photo - August R. Garcia

How to Parse a User Agent in PHP with Minimal Effort

Articles in Server-Side | By August R. Garcia

Published | Last Update

Profile Photo - Default

Last ReplyIn my opinion you need to put the "Humans / Regular Users" ifs at the end after the bots and the rest, otherwise for example current Googlebot user ag... bboychev,

In my opinion you need to...

Sun, 09 Feb 2020 12:21:50 -08001 year ago1
🗨 1
🐏 1
👁 8,496
Profile Photo - Hash Brown

Best PHP Frameworks

Articles in Server-Side | By Hash Brown

Published | Last Update

Profile Photo - Default

Last ReplyPHP is widely used language in recent days. It is server based scripting language for web development. These frameworks helps. Thanks for sharing. monicageller3691,

PHP is widely used langua...

Mon, 09 Dec 2019 03:04:45 -08001 year ago1
🗨 3
🐏 2
👁 1,162
Profile Photo - August R. Garcia

[Solved] Automatic Copyright Footer Dates in Laravel/Basically Vanilla PHP

Answers in Server-Side | By August R. Garcia

Published | Last Update

Profile Photo - August R. Garcia

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

[Solved] Favicon.ico Files not Caching on Chrome

Answers in Server-Side | By August R. Garcia

Published | Last Update

Profile Photo - August R. Garcia

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

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

[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 | Last Update

Profile Photo - August R. Garcia

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

Tue, 08 Oct 2019 07:01:36 -07002 years ago1
🗨 1
🐏 1
👁 1,910
Profile Photo - Some Guy

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

Answers in Server-Side | By Some Guy

Published

Profile Photo - Univa

Last ReplyWhen 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 -07002 years ago1
🗨 1
🐏 0
👁 576
Profile Photo - Some Guy

[PHP] Push to associative array?

Answers in Server-Side | By Some Guy

Published

Profile Photo - Univa

Last ReplyIt 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 -07002 years ago1
🗨 1
🐏 0
👁 501
Profile Photo - Some Guy
Profile Photo - Default

Last ReplyLinting is a term for a program to analyze code for potential errors. This just means the query can't be validated but IIRC you can still ru... JJJJJ,

Linting is a term for a p...

Wed, 24 Apr 2019 12:08:09 -07002 years ago1
🗨 1
🐏 0
👁 4,505
Profile Photo - Some Guy
Profile Photo - Univa

Last ReplyLog 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 -07002 years ago1
🗨 1
🐏 0
👁 595
Profile Photo - August R. Garcia
Profile Photo - Some Guy

Last ReplyAlso, 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 -07002 years ago1
🗨 1
🐏 0
👁 571
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
👁 500
Profile Photo - Some Guy
Profile Photo - August R. Garcia

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

This line:

Sun, 07 Apr 2019 12:10:37 -07002 years ago1
🗨 2
🐏 0
👁 551
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

Profile Photo - Univa

Last ReplySome 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 -07002 years ago1
🗨 1
🐏 0
👁 584
Profile Photo - Some Guy

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

Answers in Server-Side | By Some Guy

Published

Profile Photo - August R. Garcia

Last Replyfunction 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 -07002 years ago1
🗨 1
🐏 0
👁 533
Profile Photo - Hash Brown

How to use GZip compression on your website

Articles in Server-Side | By Hash Brown

Published

Profile Photo - Hash Brown

GZip is a form of file compression that...

MoreIn the quest for peak website performance you will come across GZip compression. This is something that can be used by the majority of websites to...
🗨 0
🐏 0
👁 713
Profile Photo - Hash Brown

How to add expires headers

Articles in Server-Side | By Hash Brown

Published

Profile Photo - Hash Brown

Expires headers are a great thing to add...

MoreIf you're trying to make your website load faster one thing you're going to need to look at is browser caching. What are expires headers? Expire...
🗨 0
🐏 1
👁 770
Profile Photo - Hash Brown

Preventing Hotlinking with .htaccess

Articles in Server-Side | By Hash Brown

Published

Profile Photo - Hash Brown

Hotlinking can be bad. It can choke your...

MoreIt's fairly common for people to steal images on the internet. Sometimes that's fine, you don't care, you might never even find out. On the otherha...
🗨 0
🐏 1
👁 718
Profile Photo - Some Guy

[Dreamhost] Increase PHP memory limit?

Answers in Server-Side | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyAlso, 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 -08002 years ago1
🗨 2
🐏 0
👁 734
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 | Last Update

Profile Photo - August R. Garcia

Last ReplyFootnote - 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 -08002 years ago1
🗨 1
🐏 0
👁 823
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last ReplySomething 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 -08002 years ago1
🗨 1
🐏 0
👁 954
Profile Photo - Some Guy

[PHP] Add ids to domdocument?

Answers in Server-Side | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyThere 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 -08002 years ago1
🗨 2
🐏 0
👁 478
Profile Photo - Some Guy

[PHP] Sort associative array by value?

Answers in Server-Side | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyPHP 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 -08002 years ago1
🗨 2
🐏 0
👁 575
Profile Photo - Some Guy

How to delete a database in PHPmyadmin?

Answers in Server-Side | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyYou can also directly run these commands through the PHPMyAdmin UI: SHOW DATABASES; If you need to look up the database name(s) DROP... August R. Garcia,

You can also directly run...

Sat, 02 Feb 2019 21:43:54 -08002 years ago1
🗨 2
🐏 0
👁 495
Profile Photo - Some Guy
Profile Photo - roxblade

Last ReplyFirst 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 -08002 years ago1
🗨 1
🐏 0
👁 839
Profile Photo - Some Guy

[PHP] sort multidimensional array by value?

Answers in Server-Side | By Some Guy

Published

Profile Photo - roxblade

Last ReplyBefore 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 -08002 years ago1
🗨 1
🐏 0
👁 581
Profile Photo - Some Guy
Profile Photo - roxblade

Last ReplyThis 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 -08002 years ago1
🗨 1
🐏 0
👁 499