Categories
Support Uncategorized

Embedded Images using FPDF and Classic ASP

When creating dynamic PDFs in ASP, we typically use the FPDF procedure. I received a task to create a dynamic coupon, so what’s the first thing I do? Implement FPDF of course.

After formatting the coupon, I began to test. Upon testing I encountered unusual errors. The PDF format was being corrupted seemingly by the background image. After some research, even the procedure documentation had no reference to this type of issue, leaving me no good source for troubleshooting.

After reaching a level of increased frustration, I came to the realization that some aspect of FPDF requires a fully-qualified domain name. So if you are using this procedure to develop dynamic PDFs and begin encountering unusual problems, simply upload it to a live server before going “Office Space” on your PC.

Source: Skynet Solutions

By Matt Maennche

Categories
Development

Premium Powders Website Launch

SkyNet Solutions has launched another website for a supplement and vitamin company called Premium Powders. We developed their website, brand, marketing materials, and packaging designs. Premium Powders manufacturers and distributes many commonly known herbs, vitamins, and sport supplements to retailers around the world.

www.premiumpowders.com

 

Source: Skynet Solutions

By: Clint Smith

Categories
Development

ISPConfig Default Website

I’m not the local Linux GURU by far, but we have an internal CentOS machine running ISPConfig that hosts a couple of our internal sites running on Linux. I wanted to set up a parked domain project that we could point any domains we were not using to and serve ads and offer the domains for sale. So I got the site going, but I needed ISPConfig to default to that site whenever a domain hit the server and was not actually set up. You would think something like this would just be built in. Anyone using this as a host would want sites they turned off to load a splash page or something. However ISPConfig/Apache’s default is to just load the first site it comes to, which ends up being alphabetically since they are in the conf directory like that. So for us that was our internal bug tracking site-not what I wanted at all.

I found several posts talking about using a redirect or modifying httpd.conf and adding

ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /www/docs/dummy-host.example.com
ServerName dummy-host.example.com
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common

I couldn’t seem to get this to work, and I really wanted to do this myself instead of having to lean on Cory, our real Linux GURU.

The package I’m using is called D-Park Pro. It was cheap enough I tried it despite the random bad reviews I could find. It lets me set up the individual site so I can make the content unique for each parked domain. It works great.

Anyhow the point of telling you that was that I realized inside /etc/httpd/conf/sites-available, the individual vhost file for my intended target had several aliases in it that D-Park creates as I add sites to it. I then noticed inside httpd.conf there is an include line that includes the entire sites-available folder.

I simply included the vhost file of the site I wanted to load so that it is the first site. So inside my http.conf file, I originally had:

NameVirtualHost *:80
NameVirtualHost *:443
Include /etc/httpd/conf/sites-enabled/

I changed it to:

NameVirtualHost *:80
NameVirtualHost *:443
Include /etc/httpd/conf/sites-enabled/100-parked.www.skynet-solutions.net.vhost
Include /etc/httpd/conf/sites-enabled/

If you notice all I did was insert the include for my preferred first target host file before the original include. Works perfectly!

Source: Skynet Solutions

By: Jed Parmenter