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...
I have the following function:
// convert characters to html
function convertstring($string) {
// variables
$search = array("~","`","!","@","#","\$","%","^","&","*","(",")","_","-","+","=","{",
"[","}","]","|","\\",":",";",'"',"'","<",",",">",".","?","/");
$replace =...
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
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...
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...
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
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...
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
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
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...
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
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...
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...
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
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
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.