Today, everybody uses the Internet to access web content and cloud applications for better productivity. If the selected cloud application fails to deliver fast and secure access to the requested information, there are high chances that most of the employees will look for other means to get it, which can pose a direct threat to […]
Symantec Web Protection Review & Alternatives
Catchpoint Review and Alternatives
Earlier, we all had been through a phase when our local shops were shut down, and there was no earning. As a result, many people started moving to digital platforms and created websites for their businesses to serve customers without any stoppage or delays. This phase made most small businesses realize the importance of the […]
The Best Automated Browser Testing Tools
Today, having a company website is crucial, but what if it doesn’t support different browsers? Have you ever heard customers calling the technical support team to inform them that the website is not opening in specific browsers? In order to deliver quality results, it is important to check and analyze all functions of your website […]
Installing XAMPP on a Minimal System
What would you say if I told you that you could bring up a system that provided LAMP with two files: [usr-1@srv-1 Desktop]$ ls -l total 127720 -rw-rw-r– 1 usr-1 usr-1 88861055 Jul 2 03:37 stage3-i686-2004.3.tar.bz2 -rw-rw-r– 1 usr-1 usr-1 41779457 Jul 2 02:51 xampp-linux-1.4.14.tar.gz [usr-1@srv-1 Desktop]$ I’m talking bare metal here. Do I have […]
How to Redirect After HTML Output With PHP and JavaScript
You can’t use PHP to change the header information with the header function after HTML output has begun. If you do, you will get an error like: Warning: Cannot modify header information – headers already sent by … What you can do, midstream, though, is use a meta tag: echo “<meta http-equiv=’Refresh’ content=’0; URL=location.php?date=”.$date.”‘>”; This […]
Compiling Built in Modules with Apache2
If you know exactly what modules you plan to use with a website, and you are sure you don’t need the flexibility of adding in those modules later, you can compile Apache with the modules built in. Here is the configuration statement for a minimal Apache compile with server side includes. This was for an […]
Redirecting a Web Page With Javascript
If you need to redirect a web site, just put the following html in place of the page you want to redirect: <head> <script type=”text/javascript”> <!– setTimeout(‘Redirect()’,2000); function Redirect() { location.href=’http://newdomain.com/’; } //–> </script> <html> <body> This site is no longer located here. <br /> You will be redirected in 2 seconds. Please update your […]
Using SSI and Javascript to Report Client IP Address
To set a variable to the remote IP address of the client, use this: var ip = ‘<!–#echo var=”REMOTE_ADDR”–>’; Apache needs the include module either loaded or compiled in. Also, these options need to be specified in httpd.conf: AddHandler server-parsed .shtml AddOutputFilter INCLUDES .shtml Options Includes Check out this page for more information about SSI.
Geronimo Initial Install
Geronimo is an open-source, certified J2EE server. The installation is really quite simple. The first thing we did was to make sure we had the latest Sun JDK from here and got rid of our included GCC Java: # rpm -e java-1.4.2-gcj-compat-1.4.2.0-27jpp # rpm -e gcc-java-3.4.3-22.1 [root@srv-1 java]# ls jdk-1_5_0_05-linux-i586-rpm.bin jre-1_5_0_04-linux-i586.rpm jre-1_5_0_04-linux-i586-rpm.bin [root@srv-1 java]# chmod […]
Using Magic Quotes in PHP to Convert Quotes From Files
To load up a variable with the contents of a file with PHP, you can use this command: $filecontents=file_get_contents(“path to file”); One problem is that we had for this in our application was quotes. The text in the file had both ‘ and “. Magic quotes automatically convert quotes to escaped quotes so that when […]
Using XAMPP for Cross Platform GNU/Linux Mac OS X PHP/MySQL
We wrote about the XAMPP project in this article. This project is perfect for maintaining a cross platform dev environment for an application we are currently working on. Most of the work is done on OS X, but we also do some work on GNU/Linux. Further, the target audience for this may very well use […]
Match on Field Contents with PHP/MySQL
If you wish to search for a match within a field, rather than matching the entire field with a MySQL query, you can use LIKE. Here is an HTML page that will display an input box on a form: <html> <head> <title>Search</title> </head> <body bgcolor=”white”> <form method=”POST” action=”search.php”> <table> <col span=”1″ align=”right”> <tr> <td><font color=”blue”>Search […]
Changing Images on Mouseover with JavaScript
I was digging around, trying to find out, what, exactly, was needed to change a graphic on mouseover. I knew that this was a JavaScript function, and figured I could find some easy docs on how to do this. Perhaps I’m slow, but most of the scripts out there were a bit too convoluted. True, […]
Capturing Selected Text with JavaScript
Here is a way to capture text that is selected within a textarea box. As with this article, I have only included what is necessary for the script to function on a recent browser like IE or Mozilla/Firefox. For an example of how to do this outside a textarea box with even more stringent browser […]
Running Apache on Win32
Do you ever wish you could inch away from IIS and migrate towards Apache on Linux or some other UNIX operating system? Well, in this article we will install Apache on our NT server. Another advantage to using Apache is it is a cool way to get a full fledged web server on your workstation. […]
Passing Variables Between PHP and JavaScript – Full App
Here is a single PHP/HTML script that will read a journal entry from a MySQL database, show the entry on the current web page, and add selected text from the displayed web page into the appropriate category choosen with buttons that have cool mouseover effects. The plum of this code is the use of the […]
Upgrading Apache With Compiled-in Modules
See this article for information on compiling Apache with compiled-in modules. We find that this works well in some cases. The big problem, though, is you have to be very careful that you don’t break your website at upgrade time. There are some options to httpd that help with this. The -l option will list […]
Configuring Awstats With Static Pages
For years we have run our own homebrew web stats application out of frustration with currently available tools. Well, web stats packages have certainly improved over the years, and we decided to implement AWStats on one of our servers. We are doing this on a Red Hat Enterprise 4 box with Apache 2, so some […]
Adding PHP Support to Apache
Assuming that you have PHP installed, and the module available for Apache, these lines need to be in httpd.conf for PHP support: DirectoryIndex index.php index.html <Files *.php> SetOutputFilter PHP SetInputFilter PHP LimitRequestBody 10000000 </Files> AddType application/x-httpd-php .php Now, these lines are often in other files that are included; however, if .php pages just spew the […]
Using Whois With PHP
If you would like to provide whois queries via PHP, a good package to use is available here. An example script that uses this package is: <?php include(“whois/main.whois”); $whois = new Whois($_GET[‘query’]); $result = $whois->Lookup(); echo “<pre>”; for($i=0;$i<count($result[rawdata]);$i++) { $row = each($result[rawdata]); echo $row[“value”].”\n”; } echo “</pre>”; ?> The query variable is arbitrary. You can […]