I have the following function:
// convert characters to html
function convertstring($string) {
// variables
$search = array("~","`","!","@","#","\$","%","^","&","*","(",")","_","-","+","=","{",
"[","}","]","|","\\",":",";",'"',"'","<",",",">",".","?","/");
$replace =...
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...
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...
The following code looks for directory names in a given directory and pushes those names onto an array. It works fine unless the directory name contains the number 1. If it contains the number 1 the name doesn't get pushed onto the array.
Nathan
### Get list of subdirectories in base...
Here's a weird one. I am running a program called Pad.exe from my Application. Pad.exe is a simple DOS app that pads each line in a file with a specified length. the following is the line from my Java App:
Process p = Runtime.getRuntime().exec(p_program + " 749 " + i_directory +...
Anyone got an examples of doing an FTP put using the java.net.URL class? I haven't had much luck finding documentation on this. Thanks in advance.
Nathan
I need to be able to read the contents of a directory into an array. The elements should only equal files that end in .txt. For instance if the directory contains 1.txt, 2.txt, 3.txt, and 4.htm the array should contain 3 elements. I have been fumbling with the endsWith("txt") method...
I am writing an application that needs to read a config file. I understand how to read the file using File, FileReader, and BufferedReader. My config file contains information in the following format:
user = aaron
What would be the best way to get the value of user? I have considered using...
I need the ability to execute a subroutine inside of a die subroutine. The die would be called if a file handle couldn't be opened. Should I just do a:
open(FILE, "file.txt") or &mySub;
or
open(FILE, "file.txt") or die("it died");
Thanks in advance.
Nathan
I downloaded the source code for my ata-raid controller and compiled it in RedHat9. I now have the objects I need to make a driver diskette. I'm not sure where to start. Any documentation would be greatly appreciated. I need to create a disk so that I can install the driver at installation...
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.