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 SkipVought 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: *

  1. nationavon

    str_replace and semicolons

    jpadie, That worked like a charm! Thanks, Nathan
  2. nationavon

    str_replace and semicolons

    Jason, Thanks for the reply! I understand the why now. If I move the semicolon to the first position, it fixes an example like http://www.tek-tips.com. The problem now is if I pass Hello; I get: Hello&#59; I think the best thing would be to create a loop that works on a character in...
  3. nationavon

    str_replace and semicolons

    I have the following function: // convert characters to html function convertstring($string) { // variables $search = array("~","`","!","@","#","\$","%","^","&","*","(",")","_","-","+","=","{", "[","}","]","|","\\",":",";",'"',"'","<",",",">",".","?","/"); $replace =...
  4. nationavon

    Hosting

    That is exactly what I needed to know! Do any of you know where I can find information on: "As for Apache failover, I'd use a virtual IP address with something like heartbeat. It's a lot faster to fail over than a DNS change, and it's automatic." Thanks for your help! Nathan
  5. nationavon

    Hosting

    I was thinking the whole idea of having your own DNS server in house would be failover. If my registrar is pointing to my DNS servers as the name servers and my web server goes down, theoretically I should be able to change my DNS to point to my new server. Isn't that correct? Since my...
  6. nationavon

    Hosting

    This may not be the appropriate forum, but I am hoping someone can provide me with some information. The company I work for is going to start hosting its own web sites. We will have a server running Apache in the DMZ. I am a little lost on how DNS will need to be configured. I know that we...
  7. nationavon

    Help With Split

    Well I did some more tinkering and found that if you add a limit to split it works correctly. A limit of negative is unlimited. For example. $data = "hello;world;!;"; @appended = split(/\;/, $data, -1); Thanks for the input though. Nathan
  8. nationavon

    Help With Split

    Here is an example of my problem: $data = "hello;world;!;"; @appended = split(/\;/, $data); When I print $#appended I get 2. Why isn't it 3? I really need the elements of my array to look like: $appended[0] = hello $appended[1] = world $appended[2] = ! $appended[3] = NULL It seems that...
  9. nationavon

    Rules in exchange 2003

    I created a rule in my outlook web client that forwards a message that meets the rule specifications. The only issue is that it moves the message to the trash after forwarding the message. Is there any way to prevent the message from moving to my trash. Nathan
  10. nationavon

    POP user and calendar events

    I am poping my email from our exchange server. When someone includes me in a calendar event I recive an email but there is no way that I know to respond to the email to add it to my calendar. Is their a way I can reply to the email and add it to my calendar? Nathan
  11. nationavon

    Access Point or Router

    I have a building with three floors. I plan on installing a wireless Dlink router on the first floor. On the second and third floors I had planned on installing access points and connect them back to my wireless router using cat 5 cable. Access points are so much more expensive than wireless...
  12. nationavon

    Public Key Authentication

    I think this assumes that you are using the same username on both boxes which I am not. Like bob to bob. I am doing bob to sue. See my example. Nathan
  13. nationavon

    Public Key Authentication

    I am trying to setup public key authentication. Here is my situation. I am logged in as bob. I need to scp the file as sue. [bob@box1 directory]$ scp test.txt sue@box2:. I need to be able to do this without being prompted for a password. Any comments would be greatly appreciated. Nathan
  14. nationavon

    Apache 2 + Tomcat 5 + JK + Headache

    Was wondering if someone could help me out. I have Apache 2.0.49, and Tomcat 5.0.19 installed an a Redhat Linux ES 3.0 machine. I downloaded and compiled JK 1.2.5. I installed the mod_jk.so module in apache2/modules. Now What? I can't find any decent documentation that covers Tomcat 5...
  15. nationavon

    Perl permissions

    Here is my scenario: 1) I am using RedHat linux. 2) The default version of Perl is 5.6, is installed in /usr/bin, and is owned by root. 3) I have installed Perl 5.8 in /opt/perl as a user named perl. I have the following script: use DB_File; $file = "/u01/app/jomarmgr/users/users"; # print...
  16. nationavon

    JSP Session removes new lines from textarea

    I am placing the contents of a textarea into a JSP session attribute. When I print the value of the Attribute the new lines are gone. It's like JSP is removing the formatting. Any ideas or tips would be appreciated. Nathan
  17. nationavon

    Determine if page is in a child window

    That was it thanks.
  18. nationavon

    Determine if page is in a child window

    I need to be able to test if my current page is in a child window. I tried the following but I get Javascript errors if the page isn't in a child. The code works if it is in a child. if (opener.document) { opener.location.reload(true); self.close(); } Thanks, Nathan
  19. nationavon

    Java Sockets and firewalls

    I have an interesting problem. I wrote a java application that connects through a firewall to a server on the internet using a socket. Lets say for instance I am connecting to 216.109.127.60 on port 25 and my application is running on 10.0.0.10. If I disable access to port 25 for 10.0.0.10 my...
  20. nationavon

    Problem readinf directories

    That will probably work but I'd rather not use a module. I'm also curious to know why my example ignores any directory with a 1 in the name. Nathan

Part and Inventory Search

Back
Top