Written by NukeCode on Jul 13th, 2008 | Filed under:
HTML Code
This tutorial describes how to embed Windows Media Player in a HTML document to play music or video, and includes the required code in HTML and JavaScript.
-
<OBJECT id=“VIDEO” width=“320″ height=“240″
-
style=“position:absolute; left:0;top:0;”
-
CLASSID=“CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6″
-
type=“application/x-oleobject”>
-
<PARAM NAME=“URL” VALUE=“your file or url”>
-
<PARAM NAME=“SendPlayStateChangeEvents” VALUE=“True”>
-
<PARAM NAME=“AutoStart” VALUE=“True”>
-
<PARAM name=“uiMode” value=“none”>
-
<PARAM name=“PlayCount” value=“9999″>
-
</OBJECT>
(more…)
Written by NukeCode on Jul 13th, 2008 | Filed under:
PHP,
PHP Tutorials,
Uncategorized
This is another simple to use php redirect.
-
<?php
-
echo “<meta http-equiv=’refresh’ content=’0;url=http://www.phpeasystep.com’>”;
-
?>
Written by NukeCode on Mar 14th, 2008 | Filed under:
PHP,
PHP Tutorials
This is a quick tutorial to explain how to easily display your visitors ip address;
Step 1. Make a black page and insert the following into it:
-
if ($_SERVER[‘HTTP_X_FORWARD_FOR’]) {
-
$ip = $_SERVER[‘HTTP_X_FORWARD_FOR’];
-
} else {
-
$ip = $_SERVER[‘REMOTE_ADDR’];
-
}
Step 2. Name the page “ip_address.php”
Step 3. Now it’s time to call this script. In the page you want to display the IP Address, Type the following where you want the IP Address to appear.
-
include(’ip_address.php’);
Tech Note: You must save your page(s) with a “.php” extention for this script to work.
Written by NukeCode on Jan 29th, 2008 | Filed under:
PHP
-
<?php
-
header(“location:http://www.htmlcoders.net”);
-
?>
The above code can be used to redirect a user to a new page should the url change to a page.
Tech Tip: this code can also be used to protect your downloads folder from prying eyes. Place the code in an empty text file. Save it as index.php and upload it to your downloads folder(s). Rather then using an index.html file.
Written by NukeCode on Jan 17th, 2008 | Filed under:
HTML Code,
Javascript
You can open a new window upon exiting your web page by placing the following code within your BODY tag:
-
<body onUnload=window.open(‘http://www.domain.com’); self.blur();>
Written by NukeCode on Jan 15th, 2008 | Filed under:
HTML Code
“This is a pretty cool code for those of you that are looking to add a little something to your site.” ***This script will work with any basic color command your browser understands. You can also change what the button displays by changing the VALUE statement.
-
<form><input type=“button” onclick=“document.bgColor=’yellow’” /> <input type=“button” onclick=“document.bgColor=’blue’” /> <input type=“button” onclick=“document.bgColor=’green’” /> </form>
Written by NukeCode on Jan 15th, 2008 | Filed under:
HTML Code
IFrame (from inline frame) is an HTML element which makes it possible to embed another HTML document inside the main document.
The size of the IFrame is specified in the surrounding HTML page, so that the surrounding page can already be presented in the browser while the IFrame is still being loaded. The IFrame behaves much like an inline image and the user can scroll it out of view. On the other hand, the IFrame can contain its own scroll bar, independent of the surrounding page’s scroll bar.
While regular frames are typically used to logically subdivide the content of one website, IFrames are more commonly used to insert content (for instance an advertisement) from another website into the current page.
The following is an example the HTML code for an IFRAME. (more…)
Written by NukeCode on Jan 15th, 2008 | Filed under:
News,
WordPress
No this one we are using is not it. We are working on our first one of what will be many you can see a screen shot of it below… It isn’t quite ready yet, soon….

Expected release date 01/18/2008
Written by NukeCode on Jan 15th, 2008 | Filed under:
PHP,
PHP Tutorials
The purpose of a phpinfo.php file is to show you how your php is configured in your server. To create one all you have to do is the following:
STEP 1: Open your favorite text editor like notepad. I am using notepad in Windows XP for this tutorial.
STEP 2: Copy and paste the following code into a blank notepad:
STEP 3: Save this file as phpinfo.php
STEP 4: Upload file to your website using your favorite FTP Client.
STEP 5: Once you have uploaded the phpinfo.php file. Pull the file with your browser to the location of your site where you uploaded the phpinfo.php file (Example: example.com/phpinfo.php)
STEP 6: After that, If you have PHP installed, you should see all the PHP configurations. All these configurations are located in a file called php.ini. For Redhat and Fedora Linux distributions its located in /etc/php.ini The page should look something like the image below:
