This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$handle = file_get_contents("http://mysite/y_filename.php , "b"); | |
echo $handle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$( "body" ).load( "page_name_here.php", function() { | |
alert( "Load was performed." ); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Go to: | |
C:\xampp\apache\conf\extra\ | |
Edit: | |
httpd-vhosts.conf | |
First you need to add xamp/localhost: | |
<VirtualHost *:80> | |
DocumentRoot "C:/xampp2/htdocs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ---------------------------------------------------------------------- | |
# Expires headers (for better cache control) | |
# ---------------------------------------------------------------------- | |
# | |
# These are pretty far-future expires headers | |
# They assume you control versioning with cachebusting query params like: | |
# <script src="application.js?20100608"> | |
# Additionally, consider that outdated proxies may miscache | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* Expander - v1.4.7 - 2013-08-30 | |
* http://plugins.learningjquery.com/expander/ | |
* Copyright (c) 2013 Karl Swedberg | |
* Licensed MIT (http://www.opensource.org/licenses/mit-license.php) | |
*/ | |
$(document).ready(function() { | |
(function($) { | |
$.expander = { | |
version: '1.4.7', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Download Virtual Box 4.2 (make sure it's NOT 4.3) Posted on Nov 11 2013 | |
2. Download VirtualBox 4.3.2 Oracle VM VirtualBox Extension Pack from here https://www.virtualbox.org/wiki/Downloads | |
2. Download Vagrant http://www.vagrantup.com/ | |
3. Download https://github.com/Automattic/vip-quickstart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go here: http://www.addictivetips.com/windows-tips/how-to-disable-ipv6-in-windows-7/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For me, setting the ServerName property in httpd.conf fixed the delays (they were up to 10 seconds at worst): | |
# ServerName gives the name and port that the server uses to identify itself. | |
# This can often be determined automatically, but we recommend you specify | |
# it explicitly to prevent problems during startup. | |
# | |
# If your host doesn't have a registered DNS name, enter its IP address here. | |
ServerName 127.0.0.1:80 | |
Source: http://serverfault.com/questions/66347/the-localhost-response-very-slow-why |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hostfile location WIN7 | |
------------------ | |
C:\Windows\System32\drivers\etc | |
After change in hosts file | |
1. ipconfig /flushdns will flush the local dns cache. | |
2. nbtstat -R will flush netbios cache. <----- Should be with Capital "R | |
3. restart browsers (FF may need 60 seconds to recognise changes) | |
Chrome |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Make sure to change the vlaues in the database from "olddomain.com" to "newdomain.com" | |
2. also make sure to change values in the database with "http://" from "http://olddomain.com" to "http://newdomain.com" | |
3. double check the valuse in the table "wp_blogs" |