server

PHP voting code works on 5.2.5 but not on 5.2.11 anymore

Ok, so a little while back I had some help writing some PHP voting code, it worked just fine after I upgraded my server to use the latest version of PHP. However now I have switched servers, and the PHP isn't as up to date as the other one. Anyways here's my code: <?php if(!file_exists('vote/1u.txt')){ file_put_contents('vote/1u.txt', '...

PHP/Apache, options +indexes in htaccess doesn't work for root directory

I need to offer a directory listing of the root directory of my site, so I created an .htaccess file containing options +indexes It works for subdirectories, but for the main directory I get the Test Page for the Apache HTTP Server on Red Hat Enterprise Linux page. I have two sites that are identical except for the PHP version insta...

automate: finding non-used servers from a list of servers

i have access to a few linux clusters at school. sometimes they are busy and sometimes they are not. i usually log into each machine manually, use the "top" command to see if the server is busy (to see if both cores are used). from there, i execute my program to use some servers that are free to run my computations. what i'd like to ...

Transfering RMS role to different server in management group

If i install three Management Servers into a single management group. Let us say servers are named MServer1, MServer2, and MServer3. MServer1 is the Root Management Server (RMS). A system board fails in MServer1 and i need to transfer the RMS role to MServer3. How can i do that? ...

Is writing a query using Views a good strategy?

I just want to know whether it is correct to write a query by first creating it in a view. Any suggestions? ...

Server Development Tool?

Hi, For my programming tasks I use about 2-3 remote servers to deploy and run my code against different conditions. This cannot be emulated locally as the server configuration requires powerful hardware. Most of time I need to stop service, update binareis, start service, view logs in realtime, download logs. Currently I'm doing this ma...

How can make a C# Client - Server run over internet?

The current application that I'm working on is a Client - Server C# application and work very well on a network. Now I'm thinking if it can run over the internet. The question is how to do this? How can I start the Server on my computer and in what circumstances so that every Client over the internet to connect to? What software I need t...

Rails' script/server for a PHP project

Is there a simple HTTP server that can be run in the current PHP project path, like Rails' script/server (webrick)? ...

Can't connect to my server when I put in my IP in Java

Okay so I'm trying to learn Java client/server stuff, and am going through the tutorial code as follows. When I change "localhost" to my ip it stops working though. Please help. Edit: "127.0.0.1" seems to work too, but not my real IP. /* * Copyright (c) 1995 - 2008 Sun Microsystems, Inc. All rights reserved. * * Redistribution and ...

Why won't my server and client I coded in Java work?

My server keeps getting this error when I run the client: Exception in thread "main" java.io.EOFException at java.io.DataInputStream.readInt(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.readInt(Unknown Source) at java.io.ObjectInputStream.readInt(Unknown Source) at MyServer.main(MyServer.java:10) H...

C#: How do I terminate a socket before Socket.BeginReceive calls back?

I have a server that receives connection requests from clients. This server makes use of the asynchronous Socket.BeginReceive and Socket.EndReceive method. The code is pretty similar to the code found here. In my case, after calling Socket.BeginReceive I need a timeout such that if the client hangs on to the connection but does not tra...

creating an ftp server

I am trying to create a ftp server in c#. This server should listen to any ftp requests, and if a file is sent from a remote location, then the server should write it to a specific folder. I am using VS2008. Do I need a tcp listener? FtpWebRequest? FtpWebResponse? ...

My basic java server accepts 3 clients instead of 2.

Okay, this sounds simple, but I tried all the simple things and it still doesn't work properly. import java.net.*; import java.io.*; public class MyServer{ public static void main(String[] args) throws IOException { int MAX_PLAYERS = 1; int players = 0; ServerSocket serverSocket = new ServerSocket(43); ...

can any ASP.net app (or most of them) be made to run under Linux using Mono?

in other words, now that we have Mono, has C# become just as OS-agnostic as Java when it comes to server-side web applications? Or are there still big limitations having to do with what Mono can/cannot do or maybe with what libraries can be made available to a C# server-side app on Linux? ...

My java server stops in the middle of its code.

For some reason my server stops running in the marked area of my code, and I can't figure out why. import java.net.*; import java.io.*; public class SlickServer{ public static void main(String[] args) throws IOException { int MAX_PLAYERS = 3; int playerNum = 0; Player[] players = new Player[MAX_PLAYERS]; ...

Can someone help me speed up my netcode in Java?

Okay, So I'm working on a game (like not even alpha yet) and it's suppose to be a 1 on 1 fighting game where one person hosts the server and the other one connects. But right now the code is too laggy to do anything with. Can someone take a look at it and tell me how to speed it up? PS: I'm also using the Slick2D lib. Server: import ja...

does anybody provide white label servers and billing for makers of Flash browser games?

suppose I want to make a Flash browser game that can be played in small groups. So for that I would make the Flash app itself, but I will also need a server that will support proper communication between the clients in the same group, let's say using RTMP protocol. Plus, it would be nice to be able to do authentication and some sort of s...

How to run server script indefinitely

I would like to run an asynchronous program on a remote linux server indefinitely. This script doesn't output anything to the server itself(other than occasionally writing information to a mysql database). So far the only option I have been able to find is the nohup command: nohup script_name & From what I understand, nohup allows the...

Making a Ruby server work on port 80

Hi, I'm creating a simple web server in Ruby, which display's the text LOLZ in the browser. I have this now: #!/usr/bin/ruby require 'socket' server = TCPServer.open(2000) loop do client = server.accept client.puts "HTTP/1.1 200 OK\r\n" client.puts "Content-type: text/plain\r\n" client.puts "\r\n" client.puts "LOLZ" client.close end...

Deploying .war file in Websphere application server 6.1?

When i was trying to install new application in WAS 6.1, I have given the .war file i've created for SampleApplication. The SampleApplication.war is successfully running in Tomcat server, but when i tried to deploy it in WAS 6.1, following error was shown. The exception **IWAE0022E** Exception occurred loading deployment descriptor fo...