News:

Go to HostNed.com
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
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
#152
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.
#153
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).
#154
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.
#155
Domain Names / MOVED: mobile websites
January 21, 2010, 03:22:19 PM
#156
Scripting / Re: mobile websites
January 21, 2010, 03:02:56 PM
I see you want to redirect mobile browsers to a mobile version of a web page?  I can help you with this.  I have adapted a script for use with our kind of servers (Apache/Linux) and it should detect most mobile units.  Help me test it and I can then supply the source code to you.  Here is the URL:

http://www.hostned.com/_test/mobiletest.php
#157
General Hosting / Re: Changing name of website
December 02, 2009, 07:54:56 AM
Good.  Do they use Plesk or Cpanel control panel? (which one)
#158
General Hosting / Re: Changing name of website
December 01, 2009, 03:05:06 PM
Some hosting accounts do allow this.  What kind of account specifically do you have?  (Windows or Linux, Plesk or Cpanel)?
#159
MySQL on server CP3 (Linux Cpanel) has been upgraded to version 5.0.81.  It experienced approximately 2 minutes of MySQL inactivity and no http inactivity during the upgrade.

Thank You,
HostNed Admin
#160
Design Other / An alternative to AWstats
October 13, 2009, 06:49:24 PM
There is a free stats tracking service called Extreme Tracking.  I started using them on a few of my sites.  Sure, my sites have AWstats which I think are the bast, but I like having the ExtremeTracking as a supplement.  To check them out, go to ImpressionShop.com and scroll to the bottom on the right and click the little black and blue planet graphic there.

Things I like about Extreme Tracking:
1) Quick and easy.  Don't have to log in anywhere to get some basic info.
2) Public-viewable.  This might be a bad thing if you do not want the public to be able to see where your traffic is coming from, but for my uses it is not a problem.
3) MAY help with SEO since spiders can peruse the stats and pick up all the good keywords and links to your site.

So what do you think of this neat and free stats tool?
#161
Just Chat / Re: Hi gang
September 26, 2009, 07:34:03 PM
Thanks for checking in with us Jas.  Whatever it is you want to learn about, just post it here.  Don't be shy, lots of friendly help  ;)
#162
Introductions / Re: Hello, Im back again!
September 26, 2009, 07:32:05 PM
Afterburn is a real artist, so I am sure he has a lot of new stuff to share with us.  How about it?!
#163
Linux Hosting / Re: Coldfusion Hosting
September 16, 2009, 01:21:21 PM
I know HostNed considered CF capability in the past but there just was not enough demand to justify the cost.  Looks like now there are GPL (Free) licensing options available?
#164
Announcements / NEW: 64-bit WIN3 Windows Server
May 21, 2009, 10:15:50 AM
Great news!

HostNed is stepping up the game with their new WIN3 Windows Server system.

Increased Security - Latest versions of software like Plesk, PHP, IIS, and MySQL waves goodbye to hackers
Increased Speed - 64 bit, Dual quad-core.  Need we say more?
Increased Reliability -  On this server more applications run in their own processes meaning a crash on one domain account does not affect others.

All new installs for Windows server will be on this new system and current Windows Server accounts are getting a FREE MIGRATION!
#165
General Hosting / Re: Disguising a URL ?
May 07, 2009, 07:10:01 PM
You say it didn't work.  Can you be more specific?  What about it did not work.  How did it turn out and how was that different from how you want it to be?