Business Website Archives - Page 11 of 11

IE 11 broken image issue

Author - Webner

Recently we faced a strange issue in one of sites we have developed in WordPress. We are displaying thumbnail images on a page. The site looks great in Firefox, Chrome and Safari. But in IE, some of images were broken, it just showed a red cross instead of the image Read more…

Accessing AWS S3 bucket in PHP | Period / Dot in Bucket Name

Author - Webner

You may face a problem in your code if you are trying to access an AWS S3 bucket which contains period / dot in its name (like my.first.bucket). It gives a fatal error in PHP. This problem actually occurs with some AWS SDKs not all, so the solution is Read more…

PHP | Encoding Spanish Characters with json_encode

Author - Webner

You may face a problem with Spanish characters in PHP while trying to use json_encode. After json_encode it doesn’t give any result and no any error either. For solving this use utf8_encode instead of json_encode.
$result = utf8_encode ($value)

Webner Solutions is a Software Development company focused on developing CRM Read more…

Codeigniter | How to remove index.php from URLs

Author - Webner

Problem: The default URL for Codeigniter contains index.php in it. How to remove that from URL?

For example: How do we change

http://localhost/workspace/pagination_demo/index.php/Home/ to http://localhost/workspace/pagination_demo/Home/

Solution:

Steps:

1.  Go to application- config folder inside your project:

2 Read more…

Error Code: 3. Error writing file ‘/tmp/MYMI5iqH’ (Errcode: 28)

Author - Webner

Problem

Recently in a website we were developing in Codeigniter PHP Framework, some of the urls stopped working and started throwing 500 internal server error. On investigation we found a MySQL query which was causing the problem .Query is simple but when we ran it Read more…

Heroku | Run Cakephp Code as Cron Job

Author - Webner

Problem

The requirement was to run CakePHP controller action as cron job on Heroku. In order to achieve this you need to schedule this action so that it runs at specific time intervals on Heroku.
To run the code you need to add Heroku scheduler Read more…

Cannot Start Apache Service

Author - Webner
|
0 Comments
|

It’s a common problem while starting XAMPP, especially for Skype users. The default port used by both Skype and Apache is 80. In order to use both of them you should change the port number for one of them.

Here are the steps:

Changing Skype Read more…

Shared Hosting | Absolute location of a file

Author - Webner

If you want to access a file on a shared hosting server by specifying its absolute location it may not work. The reason is what we see on shared hosting as root folder actually may have more before it that is not visible to us for security reasons (as machine Read more…

PHP Code | Connect to remote SFTP location on Windows

Author - Webner

We need to use the phpseclib library to connect to SFTP server:
$sftp = new Net_SFTP(‘www.webnersolutions.com’);
if (!$sftp->login(‘user_name’, ‘password’))
{
exit(‘Login Failed’);
}
$this->downloadfiles($sftp->nlist());
//to download all files on remote root folder Read more…

Amazon S3 and PHP | How to list only top level folders in a bucket

Author - Webner

Sample code:

$result= $client->listObjects(array(“Bucket” => $bucket,”Delimiter” => “/”));
$files = $response2->getPath(‘Contents’);
foreach ($result[‘CommonPrefixes’] as $object)
{
echo $object[‘Prefix’]’;
}

This will list only the top level folder. If we do not use delimiter with listObject function then it will give list of all the Read more…

How to Remove Empty Objects From Array In CakePHP

Author - Webner

In CakePHP, to remove empty or ‘false’ values from an Array, use CakePHP’s static ‘filter’ method contained in ‘Hash’ class:

$sampleArray =
[
,
false,
true,
0,
[‘one, ‘two, ‘three’] ] $sampleArray = Hash::filter($sampleArray);

Here’s the array after filter method call:
$sampleArray =
[
true,
0,
[‘one, ‘two, ‘three’] ]

 
Webner Solutions is Read more…

Importance of Website for Business – Part 2

Author - Webner

In our previous post in this series of articles explained the importance of having a website for your business.

In this post we will cover some more benefits of websites and features your website can provide in case you want to sell your products/services online. We will also go Read more…

‹ Prev page1 ... 6 7 8 9 10 11