Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: eraH
  • Order by date
  1. eraH

    ActiveSync: HTTP status code: [500]. On large mailbox only

    I'm trying to get an iPad to sync with a really large mailbox (3 or 4 thousand emails in the Inbox). It fails with Cannot Get Mail. Server Error., but if you move the emails out of the Inbox and into a subfolder the syncing works. I've also tested with a smaller mailbox and sync does work...
  2. eraH

    Channel Group on "waiting to be aggregated"

    Thanks a lot VinceWhirlwind, I really appreciate your advice and will have a look at those HP switches when we do infrastructure update next year.
  3. eraH

    Channel Group on "waiting to be aggregated"

    I've configured trunking between our two 3560G switches. If the ports are both on the same switch, then the port channel is shown as working. But where there is a port on each switch, one of the ports is shown to be in a w state. Configs for both switches can be found here...
  4. eraH

    Edit Word 2007 User Template on Network Drive

    This is happening on a RDS server (Windows 2008 R2). Tricky one, and I'm not sure if this is in the correct forum. If I redirect user templates in Word 2007 to a users home drive on the network then they can't edit the file. They can right click on the file and choose open, but then get an...
  5. eraH

    I give up.... ereg_replace to preg_replace

    Fantastic tjusi, a star for you! jpadie, it's because I'm getting the data for the website from a database and there are 1/4 symbols in the tables. Not sure why, this is something I've inherited. If there is a better/proper way of doing this,then let me know. It doesn't seem to make any...
  6. eraH

    I give up.... ereg_replace to preg_replace

    I finally worked out how to use ereg_replace to remove a character, only to find that I shouldn't use ereg_replace because it's been replaced by preg_replace. $row->Note = ereg_replace(chr(188),"",$row->Note); I can't for the life of me, figure out how to convert the above line to...
  7. eraH

    PDO, Select statement, single result

    Thanks to everyone, I understand your original code better jpadie, and just modified it slightly to do what I need. I was over thinking the solution.
  8. eraH

    PDO, Select statement, single result

    I need to repeat this code a couple of times, is there any way to do this in a foreach loop? So that at the end, you have $AccountManager='someone'; $AccountManager2='someoneelse'; $ArrayDetails = array('AccountManager','AccountManager2'); foreach ($ArrayDetails as $Details) { $statement...
  9. eraH

    PDO, Select statement, single result

    @jpadie, perfect, thanks a lot. BTW, you were just missing a single quote at the end of line 2 of your code (if anyone else find's the post).
  10. eraH

    PDO, Select statement, single result

    Thanks guys, yeah, I kind of know that there are lot's of security issues, because I've just started learning I just want to get the basics going. I will try your code jpadie, thanks for both of your help so far.
  11. eraH

    PDO, Select statement, single result

    I've just started learning to create websites. I'm trying to have a SQL query that returns a single value, but can't figure out if there is an elegant solution to what I'm trying to achieve. Is there a single line of code I can use to assign the SQL query result to the AccountManagers variable...
  12. eraH

    Server Monitoring

    This script will monitor a list of server for availability (with ping), check disk space, and check services. If a problem is found, it will display a message or email depending on which option you choose. How to use: Copy the script to a folder, create two files, one called ServerList.txt...
  13. eraH

    A server monitoring script with a twist, yes I searched

    Mark, this is the final script. Could you make sure it works for you before I post it to the FAQ. '======================================= 'Configure Script '0.500 is 500MB FreeSpaceSize = 0.500 '10000 = 10 seconds, how often the check is run RepeatInterval = 10000 'This can be Console or Email...
  14. eraH

    A server monitoring script with a twist, yes I searched

    I'm working on that now, I'm not very good at scripting, just persistant :) so it's takes me a while. My plans are to let the user decide if he wants it displayed on the console or emailed. I've also added the checks into an infinite loop.
  15. eraH

    A server monitoring script with a twist, yes I searched

    Working code, there is still some code changes before I post it to the FAQ. Thanks for your help Mark, you are one smart guy. '======================================= 'Configure Script FreeSpaceSize = 0.500 '======================================= Set objFSO =...
  16. eraH

    A server monitoring script with a twist, yes I searched

    Cool, I will give it a try. I was thinking of reading the files into memory once I got everything working. Looks like I will have to do it sooner.
  17. eraH

    A server monitoring script with a twist, yes I searched

    Thanks, got it working. If objService.State = "Stopped" And objService.StartMode = "Auto" And Not objService.DisplayName = "Computer Browser" Then It's a bit unwieldy if I want to exlude a couple of services and was hoping to use a text file. Can you see what's wrong with my code below...
  18. eraH

    A server monitoring script with a twist, yes I searched

    The below script will ping a server to see if it's up, check disk space, and check services. I want to add a list of exclusions for the services, so that if certain services aren't running, that an alert is not generated. '======================================= 'Configure Script FreeSpaceSize...
  19. eraH

    two dimentional array from listbox - newbie question

    I have a listbox as follows, columns will always be the same amount, rows are a random amount: a b c d e f g h i I currently use a foreach loop to split each line by the tab character, then write the seperate parts to different parts of a text file. I want to write the...
  20. eraH

    Batch File Login Script Help - IF COMPUTERNAME

    Fixed logic. @ECHO OFF NET TIME \\SERVER1 /SET /YES NET USE G: \\SERVER1\Share1$ NET USE K: \\SERVER1\Share2$ NET USE S: \\SERVER2\Share3$ NET USE U: /home REM Create a folder called "Admin" in Temp dir CSCRIPT /T:20 \\SERVER1\NETLOGON\CreateAdminFolder.vbs IF /I "%computername%" ==...

Part and Inventory Search

Back
Top