Ancient Temple City

2016


.no-select {
    -webkit-touch-callout: none !important; /* iOS Safari */
    -webkit-user-select: none !important; /* Chrome/Safari/Opera */
    -khtml-user-select: none !important; /* Konqueror */
    -moz-user-select: none !important; /* Firefox */
    -ms-user-select: none !important; /* Internet Explorer/Edge */
    user-select: none !important; /* Non-prefixed version, currently not supported by any browser */
}

Note: The user-select is currently supported in all browsers except Internet Explorer 9 and earlier versions.

This border is used to show that the element is focused (i.e. you can type in the input or press the button with Enter).

You can remove it, though:

textarea:focus, input:focus {
    outline: none;
}

Chrome will also apply highlighting to other elements such as DIV's used as modals.
To prevent the highlight on those and all other elements as well, you can do:

*:focus {
    outline: none;
}

You are to use the Full PATH and restart your server when you are done

On Windows

1. Find the php.ini file in the PHP installed directory
2. Place the lite_php_browscap.ini file (recommended for web servers) in the directory where php.ini file is found
3. Now add the following lines in the php.ini config file

[browscap]
; http://php.net/browscap
browscap = "C:\Program Files (x86)\PHP\lite_php_browscap.ini"


On Linux server

1. If you are using linux server or cpanel hosting service, find the php.ini file in the home directory
2. Place the lite_php_browscap.ini file (recommended for web servers) in the directory where php.ini file is found (or) some other folder you want to kept it.
3. Now add the following lines in the php.ini config file

i) if you place the lite_php_browscap.ini in the path "home/etc/"

[browscap]
; http://php.net/browscap
browscap = "/home/xxxxxx/etc/php_browscap.ini"

ii) if you place the lite_php_browscap.ini in the path "home/" where php.ini file is placed

[browscap]
; http://php.net/browscap
browscap = "/home/xxxxxx/lite_php_browscap.ini"


On Mac - use like that

[browscap]
; http://php.net/browscap
browscap = "/usr/local/etc/lite_php_browscap.ini"


Note: Please download the browscap.ini from https://browscap.org/ based on your needs.

Paste the following code at the top of the page to configure your desired index page.
In the example below, we decided to make the index page of our folders named first.html.

#Alternate default index page
DirectoryIndex first.html

You can also list more than one file in the configuration.
The file will be read left to right and check for them in that order.
In this example, we add index.htm, index.html, and index.php to the list.
First the server will check for first.html, if it does not find a file with that name, it continues to index.htm and so on.

#Alternate default index pages
DirectoryIndex first.html index.htm index.html index.php

.htaccess is a configuration file that should be stored where your page is.

In short, it should be in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ (or) custom folder --> D:\dev\www\.

Don't forget to turn on mod_rewrite by deleting a hash from the line where it resides

LoadModule rewrite_module modules/mod_rewrite.so

and enable .htaccess by changing

AllowOverride None

to

AllowOverride All

This was clearly explained as follows:

1) Find your apache directly which uses the php installation .
2) Open your httpd.conf  with notepad, Which is located in the path \apache\conf directory
3) Find the code like below

#LoadModule rewrite_module modules/mod_rewrite.so

4) Remove # from above code

# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All <--- make sure this is not set to "None"

5) Save httpd.conf file
6) Restart your apache server

The Different Pieces

These are the pseudo elements themselves. The actual parts of the scrollbars.

::-webkit-scrollbar{}
::-webkit-scrollbar-button{}
::-webkit-scrollbar-track{}
::-webkit-scrollbar-track-piece{}
::-webkit-scrollbar-thumb{}
::-webkit-scrollbar-corner{}
::-webkit-resizer{}


The Different States

These are the pseudo class selectors.
They allow for more specific selection of the parts, like when the scrollbar is in different states.

:horizontal
:vertical
:decrement
:increment
:start
:end
:double-button
:single-button
:no-button
:corner-present
:window-inactive


About Pseudo Class Selectores

:horizontal – The horizontal pseudo-class applies to any scrollbar pieces that have a horizontal orientation.

:vertical – The vertical pseudo-class applies to any scrollbar pieces that have a vertical orientation.

:decrement – The decrement pseudo-class applies to buttons and track pieces. It indicates whether or not the button or track piece will decrement the view’s position when used (e.g., up on a vertical scrollbar, left on a horizontal scrollbar).

:increment – The increment pseudo-class applies to buttons and track pieces. It indicates whether or not a button or track piece will increment the view’s position when used (e.g., down on a vertical scrollbar, right on a horizontal scrollbar).

:start – The start pseudo-class applies to buttons and track pieces. It indicates whether the object is placed before the thumb.

:end – The end pseudo-class applies to buttons and track pieces. It indicates whether the object is placed after the thumb.

:double-button – The double-button pseudo-class applies to buttons and track pieces. It is used to detect whether a button is part of a pair of buttons that are together at the same end of a scrollbar. For track pieces it indicates whether the track piece abuts a pair of buttons.

:single-button – The single-button pseudo-class applies to buttons and track pieces. It is used to detect whether a button is by itself at the end of a scrollbar. For track pieces it indicates whether the track piece abuts a singleton button.

:no-button – Applies to track pieces and indicates whether or not the track piece runs to the edge of the scrollbar, i.e., there is no button at that end of the track.

:corner-present – Applies to all scrollbar pieces and indicates whether or not a scrollbar corner is present.

:window-inactive – Applies to all scrollbar pieces and indicates whether or not the window containing the scrollbar is currently active. (In recent nightlies, this pseudo-class now applies to ::selection as well. We plan to extend it to work with any content and to propose it as a new standard pseudo-class.)

All together now

These pseudo elements and pseudo class selectors work together. Here are some random examples:

::-webkit-scrollbar-track-piece:start {
   /* Select the top half (or left half) or scrollbar track individually */
}

::-webkit-scrollbar-thumb:window-inactive {
   /* Select the thumb when the browser window isn't in focus */
}

::-webkit-scrollbar-button:horizontal:decrement:hover {
   /* Select the down or left scroll button when it's being hovered by the mouse */
}

To make a really simple custom scrollbar we could do this:

Example 1

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}

Example 2

/* Let's get this party started */
::-webkit-scrollbar{
    width: 12px;
}
/* Track */
::-webkit-scrollbar-track{
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    -webkit-border-radius: 10px; border-radius: 10px;
}
/* Handle */
::-webkit-scrollbar-thumb{
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: rgba(255,0,0,0.8);
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}
::-webkit-scrollbar-thumb:window-inactive{
    background: rgba(255,0,0,0.4);
}

You could be running out of memory, as your array size is (in theory) only limited by the amount of memory allocated to the script.

Put ini_set('memory_limit', '1024M'); in the beginning of your script to set the memory limit to 1 GB.

You may need to increase this even higher for best results.

The easiest (and most reliable) way to store the time in a database table is with a timestamp.

It is also the most convenient way of working out time scales as you don't have to do calculations in base 60.

In MySQL this is accomplished by the UNIXTIME() function, which can be reversed by using another MySQL function called FROM_UNIXTIME().

However, you can sometimes be left with timestamps in your code and the task of trying to figure out what to do with them.

The first problem is trying to convert a timestamp into a date. So here is a PHP function that does this.

function timestamp($t = null){
    if($t == null){
        $t = time();
    }
    return date('Y-m-d H:i:s', $t);
}

And if you ever have a the opposite problem then here is a PHP function that converts a date string into a timestamp. At the moment the string needs to be in the format YYYY-MM-DD HH:MM:SS, which is what the previous function produced.

This isn't too difficult to change, just alter the parameters and order of the explode(' ', $str).

function convert_datetime($str) {
    list($date, $time) = explode(' ', $str);
    list($year, $month, $day) = explode('-', $date);
    list($hour, $minute, $second) = explode(':', $time);
   
    $timestamp = mktime($hour, $minute, $second, $month, $day, $year);
    return $timestamp;
}

Here is an example of the functions in use.

echo timestamp(convert_datetime('2008-05-10 20:56:00')). '  '. convert_datetime('2008-05-10 20:56:00') . ' 1210467360';

#Force www:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC]

#Force non-www:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]

Now, when you type in your domain name with either www in front or not, it should display as you have set it in the .htaccess file.
Be sure to replace 'example.com' with your actual domain name.

Note: do not place both selections of code in the file as it will cause an error.

Lets say in mysql database have a timestamp 2013-09-30 01:16:06 and lets say this variable is $ts.
To show more like September 30th, 2013 follow the examples.

Example 1

$timestamp = "2013-09-30 01:16:06";
echo date("F jS, Y", strtotime($timestamp)); //September 30th, 2013

Note the use of S to get the english ordinal suffix for the day.
Since you're already using strtotime if you need a human readable data for the current time you can just use the keyword "now" as in strtotime("now").

Example 2

Use strtotime() to convert that string into a Unix Timestamp, then use the date() function to display it like you want

echo date("F j, Y, g:i a",strtotime($timestamp));
echo date("F d Y",strtotime("2013-09-30 01:16:06"));

Example 3

I do not think that php is even needed there. Check MySQL DATE_FORMAT() function.

SELECT DATE_FORMAT('2013-09-30 01:16:06', '%M %D, %Y %H:%i:%s') as `readable`;

Result: September 30th, 2013 01:16:06

For real usage:

SELECT DATE_FORMAT(`date_column`, '%M %D, %Y %H:%i:%s') as `readable`
FROM `your_table`;

It occurs if you're echo-ing text to the browser before sending the header('location').
You can not send content to your browser before executing a header(), as your echo will force a header to be sent.

Comment these lines out and see if it works:

// echo $variable;
// print_r($array);
//.....


Now your header will be sent and you will be redirected.

Problem:

Use sendmail method to send mail to the registered user. Email sends when user registered but it takes 5 minutes to send the mail every time.

Solution:

Try using normal php mail() function to check if its server issue

<?php
$to      = 'nobody@example.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@example.com' . "\r\n" .
'Reply-To: webmaster@example.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>

if mail get sent fast then server is working fine.

MKRdezign

{facebook#http://www.facebook.com/GTVCreations} {twitter#http://www.twitter.com/GTVCreations} {google-plus#http://www.google.com} {pinterest#http://www.pinterest.com} {youtube#http://www.youtube.com} {instagram#http://www.instagram.com}

Contact Form

Name

Email *

Message *

Powered by Blogger.
Javascript DisablePlease Enable Javascript To See All Widget