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 […]
Programming With PHP – Part 1
In this series of articles, we will explore the fundamentals of PHP programming with MySQL. For a good reference, try this book. It helped us. In this installment of Programming With PHP, we will set up the Red Hat RPMs, configure our directories, and code a simple “Hello World” app. We are running Red Hat […]
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 […]
Programming With PHP – Part 2
In Part 1 of this series, we set up a basic PHP server with Apache on a Red Hat system, and wrote a simple “Hello World” script. In this article, we will vary content based on browser type. We will use the HTTP_SERVER_VARS server variable. The specific variable we want is HTTP_SERVER_VARS[‘HTTP_USER_AGENT’]. To use 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 […]
Tidy Up Your HTML
One cool tool for tidying up your HTML, as well as notifying you of coding errors is TIDY. For an overview of what TIDY can do for you see this overview. Installation is quite easy: root@srv-1 src # tar -xzf tidy*.tgz root@srv-1 src # cd tidy root@srv-1 tidy # ls Makefile Makefile.bcc32 Makefile.nmake Makefile.vc6 console […]
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 […]
Programming With PHP – Part 3
In this article we will pass a parameter to a PHP script via a URL, and we will get a little more sophisticated in our conditionals and regular expressions. One problem with accepting parameters is that there are often security issues. It is very important to ensure that the parameters passed by the user conform […]
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.
Parsing Web Logs Into Calendar Text/Stats
We aren’t quite happy with the web stats software we use. The information is not brief enough. Mostly, we want to see the last couple months, with the weekends visible, and the unique hosts and pages viewed. Also, we have a lot of content that gets snagged that isn’t really what we consider a valid […]
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 […]
Apache Tip – Take Clues Away from Bad Guys
Like the needy stranger who tells us his or her entire life story on the occassion of our first meeting, Apache spews out way too much information in every HTTP header. And like the unscrupulous sharpies who take advantage of lonely folks they meet on buses, there are those who would use this information to […]
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 […]
Having Fun With Forums and RedirectPermanent
One thing that is quite prevalent in forums is sharing images as postings or as avatars. We saw that our RoboCoop was getting some hits, and wondered what was up. Well, there is a forum that has a daily discussion in Texas here that had put up a link to the image of our chicken […]
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 […]
Using Tab2space to Convert Tabs to Spaces in Source Code
We often need to convert source code into html format. We use the pre tag; however, the default tab values are to wide. For instance: this is one tab this is another If we were to put some of our funner source code up, it would push the right margin over too far. Well, we […]
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 […]
Installing and Configuring the Java SDK
Grab the sdk from java.com. For us, we are going to install this on Lobstora, which is a GNU/Linux box. Just make the binary executable and run it: [root@srv-1 opt]# chmod 700 j2*.bin [root@srv-1 opt]# ./j2sdk-1_4_2_03-linux-i586.bin We like putting this in /opt with a symlink to j2sdk. [root@srv-1 opt]# ln -s j2sdk1.4.2_03 j2sdk [root@srv-1 opt]# […]




