Feed items

  • warning: Declaration of views_handler_argument::init(&$view, &$options) should be compatible with views_handler::init(&$view, $options) in /home/clients/ru/domains/development4web.com/html/sites/all/modules/views/handlers/views_handler_argument.inc on line 48.
  • warning: Declaration of views_handler_filter_boolean_operator::value_validate(&$form, &$form_state) should be compatible with views_handler_filter::value_validate($form, &$form_state) in /home/clients/ru/domains/development4web.com/html/sites/all/modules/views/handlers/views_handler_filter_boolean_operator.inc on line 111.
  • warning: Declaration of views_plugin_row_node_view::options_form(&$form, &$form_state) should be compatible with views_plugin_row::options_form($form, &$form_state) in /home/clients/ru/domains/development4web.com/html/sites/all/modules/views/modules/node/views_plugin_row_node_view.inc on line 35.

Refresh parent when popup close

I'm using submodal-1.6 for popup.

When the popup closes I wanted parent page to refresh.I've tried the following
window.opener.location.load();
location.load();
window.parent.location.reload();

All works for IE, but when coming to mozilla ,firefox the refresh is a step delayed, i.e when I open my popup to add an itme to my cart on parent page ,for the first time it does not show anything , but when I try to add another item , the first one shows.

Any advice would be really great.





Array sorting in Java Script

In JavaScript, you can sort arrays using the sort method. As the only optional argument method takes a function that determines the sorting rules. If sort is called without arguments, then sorting by ascending values of the elements. Example:
//array
var arr = [0, true, 'John', 'Peter', 56, NaN, false, 13, 'Mike'];
// sorting
arr.sort();
// return [0,13,56,NaN,false,true,John,Mike,Peter]
Sorted array, in which context the method is called, so if you want to keep the original state - make up and sort it.
Functions Sorting





Notice: Undefined offset:8192 and ereg() deprecation error.

Recently, I encountered a strange problem when porting production server to run on my local machine. I want to get it running so I can make the necessary upgrades/modifications necessary.
The site is loaded but gives a lot of errors.

Notice: Undefined offset: 8192 in ...\includes\common.inc on line 561
Notice: Undefined offset: 8192 in ...\includes\common.inc on line 568
And after that red drupal error message

: Function ereg() is deprecated in
C:\wamp\www\sitename\includes\file.inc on line 649.





How to generate PDF files with PHP?

[URL="http://www.fpdf.org/"]FPDF[/URL] is a PHP class that allows you to generate PDF files without using the PDFlib library.

FPDF is free and can be downloaded from the official website's [URL="http://www.fpdf.org/en/download.php"]download section[/URL]. The download package contains all necessary files, along with some [URL="http://www.fpdf.org/en/tutorial/index.php"]tutorials[/URL] on how to use it.

A basic example of using FPDF is with the following PHP code (you must download and extract the FPDF package in the folder where the PHP file with the code is located):





PHP 8.0.0 Release Candidate 5 available for testing

The PHP team is pleased to announce the eleventh testing release of PHP 8.0.0, Release Candidate 5.

This is an extra unplanned release, but we're not planning to adjust the GA date,
however, this may change during the course of the RC cycle.
The updated release schedule can, as always, be found on the
PHP Wiki page about the PHP 8.0.





Meteor Fibers meet Promises meet Callbacks — A practical guide

You write your unique new Meteor Application, but it takes time to load at first. What can you do? This issue has many causes, but it probably means you are loading too much or waiting for too long.We will go through some basic optimizations here that, when applied, can get you a massive lift in first-page loading time and app performance.





Filter_htmlcorrector - it’s very useful function in the case of custom output of content added by site users.

Here is link for specification
The problem was detected when resolving the problem of outputing the whole content of the book to the one page.





Оbject is converted to an one-dimensional array

function array_values_recursive($array) { $flat = array(); foreach ($array as $key=>$value)





Files compression in archive and another manipulations with files on server with php protocol

It happens often that you don’t have shell, only ftp access to site. Or you need to upload on your site or download a lot of files.





Features

There is higher abstract control level for site administration in drupal