News:

Go to HostNed.com Home
Welcome.  This is a place to get user-to-user support, learn more, and share ideas.  If you can't find your answers here, feel free to ask by creating a new topic or visit the support ticket system at https://my.hostned.com :)  Have fun here!

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Dynaweb

#151
Introductions / Re: newbie
March 03, 2010, 07:55:03 AM
Welcome!
#152
I suggest to open a support ticket and allow tech support to make sure it is configured properly for you.
#153
General Hosting / Re: Changing name of website
February 24, 2010, 10:10:09 AM
If you open a support ticket for that, tech support can perform that action for you.
#154
Announcements / Re: CP2 Linux Server Upgrade
February 09, 2010, 03:05:58 AM
Upgrade is complete.  One thing we noticed...  if you are using .htaccess file to direct mod_security settings, those will  now have to be wrapped in a tag as is now required by Apache 2.3

Here was the old way:

SecFilterEngine Off
SecFilterScanPOST Off


Will now have to look like this:

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
#155
Announcements / Re: CP2 Linux Server Upgrade
February 08, 2010, 09:24:47 PM
Upgrade time extended to 3am.  Thanks.
#156
Announcements / CP2 Linux Server Upgrade
February 08, 2010, 03:06:13 PM
Server CP2 Upgrade Notice:

On Monday night (8PM - 11PM) we will be performing an upgrade on the web server CP2.  We will be installing Latest versions of software including Apache, PHP, MySQL and others.  This will ensure the latest, most secure server environment possible.

During this period we discourage any web site updates.  You may experience intermittent site inactivity during this time but nothing major.

Additionally we will be assigning a different main IP address to the server.  The new IP will be 205.251.136.130.  Be advised that if you have any web scripts that reference the server IP address or any DNS services that make such reference, you will need to update those to reflect the new IP so they may continue to function properly.  If you do not know what these things are then you probably do not need to do anything.

We anticipate all scripting paths to remain the same (so you need take no action), however, if you experience any trouble with your site (if it stops working or if you encounter errors) after midnight (EST), please post questions to the Community Forums here in reply.  This will let others see the information and common Q&A for quickest answers.

Thanks,
Tech Support
#157
Linux Hosting / Re: public folder
January 30, 2010, 11:10:07 AM
Glad to help :)
#158
Linux Hosting / Re: public folder
January 29, 2010, 11:13:24 PM
"I am unable to do this any longer and I guess this is for security reasons. "

Yes, recently we made a change to our Linux servers that disabled the "Directory Index" for an increase in security.  Industry standard is now to have this ability to browse directories disabled by default.

As a solution, you can provide a link to your user to the exact file name like this:
http:// www. domain.com/userfiles/userfile.zip

instead of the old way of http:// www. domain.com/userfiles/ which used to display all the files therein.

If you wish to go back to the old way, there is good news.  HostNed allows you to change back to allow DirectoryIndex like this

Add or edit the .htaccess file in the directory you want the index list with:

Options +Indexes

Keep in mind that this works only on Linux servers, not Windows. 

I hope this helps you.
#159
Scripting / Re: JMAIL vs CDONTS vs CDO
January 27, 2010, 03:13:48 PM
Quote from: RedRaven
As for JMAIL, it works like CDO, but it sends 2 duplicate emails out for every submission.  Now maybe that's just the server I don't know.

I understand.  For the duplicate email with Jmail issue, just submit that in a support ticket and a tech can help you out with that.
#160
Scripting / Re: mobile websites
January 27, 2010, 03:00:05 PM
If your sites are on Linux server you can use .htaccess.  Just create a file in the domain root (public_html or httpdocs) named .htaccess

Here is a nice how-to
http://www.javascriptkit.com/howto/htaccess.shtml
#161
Scripting / Re: JMAIL vs CDONTS vs CDO
January 27, 2010, 02:54:00 PM
I think that CDONTS example is outdated and will be removed soon.  For sending emails from a web page I recommend PHP mail() because it is platform independent which means it works on both Windows and Linux servers or any server that runs PHP.  Since PHP is more universal, using it to send mail makes sense and if your site ever migrates platforms, it will still work ;)

Try the SFEPS Form to Email Script.  It is very secure and easy to set up and will work on any server that supports PHP scripting.
http://www.dynawebdesigns.com/scripts.htm
#162
Scripting / Re: web forms being hijacked by spammers
January 27, 2010, 01:52:51 PM
This is a thoughtful addition to any page that has a web form on it.  Keeping the result from listing on the search engine results reduces exposure to the bots and scumbags.
#163
Scripting / Re: mobile websites
January 22, 2010, 08:38:07 AM
The filename should end in .php (otherwise you need an .htaccess directive to enable php in other file extensions).
#164
Scripting / Re: mobile websites
January 21, 2010, 03:52:41 PM
It works on my HTC G1 Android too.  Looks like we have a winner.  Here is the PHP code:


<?php
/////////////
/// ABOUT
// This script will notice of the http request is coming from a mobile device and redirect to a page especially for mobile devices.  
// First change the settings, then place this code at the top of your web page.  

/////////////
/// SETTINGS

// URL FOR MOBILE VERSION OF PAGE
// replace mobileversion.mobi with the actual name of the page you want mobiles users to be redirected to.
$mobile_url "mobiletest-mobi.php";

/// DO NOT CHANGE ANYTHING BELOW HERE
/////////////

$mobile_browser '0';
 
if(
preg_match('/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone)/i'strtolower($_SERVER['HTTP_USER_AGENT']))) {
    
$mobile_browser++;
}
 
if((
strpos(strtolower($_SERVER['HTTP_ACCEPT']),'application/vnd.wap.xhtml+xml')>0) or ((isset($_SERVER['HTTP_X_WAP_PROFILE']) or isset($_SERVER['HTTP_PROFILE'])))) {
    
$mobile_browser++;
}    
 
//matches a 4 letter code in the user agent id
$mobile_ua strtolower(substr($_SERVER['HTTP_USER_AGENT'],0,99));
//echo $mobile_ua;
//$mobile_ua = strtolower(($_SERVER['HTTP_USER_AGENT']));

$mobile_agents = array(
    
'w3c ','acs-','alav','alca','amoi','andr','audi','avan','benq','bird','blac',
    
'blaz','brew','cell','cldc','cmd-','dang','doco','eric','hipt','inno',
    
'ipaq','java','jigs','kddi','keji','leno','lg-c','lg-d','lg-g','lge-',
    
'maui','maxo','midp','mits','mmef','mobi','mot-','moto','mwbp','nec-',
    
'newt','noki','oper','palm','pana','pant','phil','play','port','prox',
    
'qwap','sage','sams','sany','sch-','sec-','send','seri','sgh-','shar',
    
'sie-','siem','smal','smar','sony','sph-','symb','t-mo','teli','tim-',
    
'tosh','tsm-','upg1','upsi','vk-v','voda','wap-','wapa','wapi','wapp',
    
'wapr','webc','winw','winw','xda','xda-');
 
if(
in_array($mobile_ua,$mobile_agents)) {
    
$mobile_browser++;
//    $mobile_browser = 1;
}
 
if (
strpos(strtolower($_SERVER['ALL_HTTP']),'OperaMini')>0) {
    
$mobile_browser++;
}
 
if (
strpos(strtolower($_SERVER['HTTP_USER_AGENT']),'droid')>0) {
    
$mobile_browser++;
    
$mobile_ua .= " / $1";
}
 
if (
strpos(strtolower($_SERVER['HTTP_USER_AGENT']),'mobile')>0) {
    
$mobile_browser++;
}

if(
$mobile_browser>0) {
   
// do something
echo ' You are using a MOBILE browser!';
header("Location: $mobile_url");

}
else {
   
// do something else
   //echo ' You are NOT using a MOBILE browser!';
}   
 
//echo '<br />You are identified as <i>'.$mobile_ua.'</i> from agent '.$_SERVER['HTTP_USER_AGENT'];
?>


This is the normal page.  No mobile device detected.
#165
Domain Names / MOVED: mobile websites
January 21, 2010, 03:22:19 PM