Jump to content

dbarak

Members
  • Posts

    33
  • Joined

  • Last visited

Everything posted by dbarak

  1. Hi, and thanks for your answer! Would testing strlen replace isset? In other words (plain language here) if strlen > 0 include the file...?
  2. I'm trying to include a PHP file based on whether a variable is set or not. In it's simplest, here's the code I'm trying to use (and I've tried ALL KINDS of things besides this): if (isset($xyz)) { echo $xyz; include("directory/file.php"); } The variable (selected on not selected) is set in a form that then passes that session variable to my script. The session variable is being passed, as it's being echoed on the subsequent page. However, no matter what I do, the include file is ALWAYS displayed, whether the variable is set or not. Any ideas if I'm doing something wrong? From my searches, it looks as if this should be possible. Dave davidabarak@gmail.com
  3. Hi everyone, I checked the forums for an answer but didn't see anything. I customized a WordPress template, etc., along with additional plug-ins, etc., and I've done a complete backup of the site. I'd like to use the same design and plug-ins for a different site. I saw during the backup process that I can use the archive file to move the installation to another server (still TCH!!! ), but I'm not sure how to do that. Can anyone advise? Short of that, is there a way I can "swap" server space for two of my domains? In other words, can I assign the existing account (and WP installation) to a different domain, and this existing domain with the other? Dave davidabarak@gmail.com
  4. Sounds good -- thanks Bruce! FYI, I'm not actually planning to run once a minute of course, and I have a feeling what I plan to do is quick and easy, but I'll submit a ticket once I'm closer to trying out what I'm thinking of. Dave
  5. Hi everyone, I've got an idea for a site that would run Cron jobs fairly frequently. However, I don't want to try my idea if it would cause problems (overloading?) on the server, since I'm on a shared server. So my question is, how often is "safe" to run a Cron job? I see I can run as often as one minute (which I've done for short stretches while testing), but I don't know if it's a good idea to run that often 24/7. Any thoughts on that? Dave davidabarak [at] gmail.com
  6. Thanks everyone! Cron jobs are going to make things MUCH easier for me. : )
  7. Okay, potentially dumb question time. First, is this the right place for a simple question about Cron jobs? Second (if the answer to the first is yes), can I run any PHP script using Cron, or is it limited to running Cpanel backups? Thanks for any help! Dave
  8. Thanks Bruce! (And thanks for getting the post into the correct forum.) For the most part, our users will be using various email clients -- Outlook and Netscape's email client are the two I can think of offhand. Maybe occasional web-based email, but not often. Dave
  9. Hello, I'm setting up web hosting for my employer, switching our hosting from a terrible company, run by a bunch of yahoos, that will remain nameless. One feature of that hosting, though, was simple management of spam. My boss, the president of our company, needs things to be simple, so I want to give the most simple set of instructions for dealing with spam that I can. We haven't moved our domain name over yet, so I'm only working with our master email account at this point. I've enabled Spam Assassin and Spam Box, but I'm a bit unclear as to the use of Spam Box. Is there one box for the entire domain, or one box for each email account? Either way, how do I find the Spam Box? I checked with Horde and SquirrelMail and didn't see anything. I did a search in the forums for SpamAssassin, and I looked at the developers' site, but didn't find what I need (being distracted by lots of other things at work doesn't help). Can anyone provide some basics? Thanks! Dave Barak dbarak@metricsystems.com
  10. Got it -- thanks Bruce and Mike!
  11. Helloooooooooooo, I tried a few test downloads of raw log files, and saw that they download as zipped .com files. The files have a file size of zero. I'm assuming this is because we don't have our domain pointing to the server yet? With our current hosting provider, who shall remain nameless, we get plain text .log files, a new one created each day, that we analyze with WebLog expert. Do you know if we'll eventually end up with plain text files? And will they need to be processed in some way before analysis? (Changing file extension, etc.) Dave
  12. Thanks Bruce! I checked out NeoMail (I think I've used it before) and Horde, and it looks like I can switch back and forth as desired. I'll give SquirrelMail a test drive too.
  13. Good question at this point. Most of our email is handled in the office, but I'll ask around and see if anyone would miss that feature. Thanks!
  14. Any customers out there have preferences about the three provided web-based email systems? Our company is moving our hosting to TCH, and I'd like to make a recommendation to our employees. Thanks, Dave
  15. Hi Bruce, Actually, I was able to view the file(s) through the control panel file manager. I verified via several tutorial sites that the formatting is correct (spacing, line breaks, etc.). But no, the domain name hasn't propagated yet (haven't started the process -- waiting to finish building our new site). I tried using .shtml, .htm, and .html files as the error pages, and none worked.
  16. As an added note, I tried placing the .htaccess file outside of the public area. As a second note, as with our current "active" hosting company, once I change the file name to .htaccess from z.htaccess.txt or whatever (required by Windows, apparently), the file is no longer visible from my FTP client.
  17. Hi Bruce, I couldn't find the .htaccess file using my FTP client, so I created one and it's now in my public_html folder, but it's still not working (getting the same error). This is what I have in the .htaccess file: ErrorDocument 404 /404.php I made sure that there's a PHP file in the same folder. I remember doing this in the past (I'd forgotten about the .htaccess file since then), but I don't remember if it was in the site's root directory or somewhere else. Should the .htaccess file be placed somewhere else? Dave
  18. Hello, I tried building a custom 404 error page using the control panel, and it doesn't seem to be working. At first, I tried using the framework of the PHP pages we're using and then saving the control panel-generated file as a PHP file, but when typing in a fictional URL, I got this message: Not Found The requested URL /~metrics/test.htm was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. I then tried saving if (through the control panel, and with no PHP includes) as a default SHTML file, and that didn't work -- still got the same error error. I now have bare bones HTML in my 404.shtml file, and I'm still getting the problem with the error page. So... 1. How do I fix it? 2. Can I use a PHP page as a 404 error page? Dave
  19. Don, We opened a hosting account today, and I've found that any HTML file with a PHP extension, whether it has PHP code in it or not, will not be served until our domain is pointing to this server. I tried uploading a "test.php" file that had absolutely no PHP code in it, just the usual bare minimum HTML code and the word "test," and it didn't serve -- it just returned a string of error messages. My question now is, if I use a different domain name for testing purposes, can I then switch our final intended domain name in its place when the time comes?
  20. Thanks Robert! I have to say that I'm very impressed with the satisfaction of your customers! Most hosting companies I've looked at don't have very many positive comments.
  21. Hi Don and Paul, Actually, the sender's email will come from a text box. In this case, if I see a page I think you might be interested in, I'd put my address in the sender's field, your address in the recipient's field, and fill out whatever other fields are needed. The email you get would have my email address as the return address, as opposed to a default address from our domain. Our concern is that someone may get a referral email, not recognize the sender's address, and then trash it. Paul, good idea on the limit -- I remember seeing some scripts with that feature, and I think I can incorporate those snippets into this. Dave
  22. Hi Don and Bruce, Thanks for the super-fast answers! And they're the answers I was looking for, too. I feel the same way about spam, and our only planned use of SMTP mail is for the link referral script. Our opt-in newsletter will be sent using software here in the office, and everything else we've got planned for the website involves email coming in to us, rather than going out. Dave
  23. Hello, I'm currently redesigning our company's website, and I'd like to move it from our current, poorly-run hosting company to one that's well-run and responsive (yours seems to fit the bill so far). I have a couple of questions though... 1. Is it possible to temporarily host a site without an associated domain name? I'd like to fully develop our website on a new server, and once it's ready to go live, point the domain to the new server. 2. I've been testing a PHP script on our current server, one that allows a visitor (Joe Schmoe) to recommend a page to a co-worker (Sally Smith), etc. The script allows for the SMTP email to show the visitor's email address as the email's sender (the email, although sent to Sally Smith from the server, shows Joe Schmoe as the sender). However, our current hosting provider, in order to prevent spam, automatically switches the listed sender's email address to a default address in our domain. We're not interested in spamming people, so is it possible for our SMTP email to show Joe Schmoe as the sender of the email to Sally Smith? (Please pardon my over-clarification of the matter, but I've found that support people with other hosting companies I've contacted have a hard time grasping the concept. It seems as though you all have a clue. ) Thanks! Dave Barak dbarak@metricsystems.com
×
×
  • Create New...