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', '...
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...
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 ...
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?
...
I just want to know whether it is correct to write a query by first creating it in a view.
Any suggestions?
...
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...
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...
Is there a simple HTTP server that can be run in the current PHP project path, like Rails' script/server (webrick)?
...
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 ...
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...
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...
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?
...
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);
...
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?
...
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];
...
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...
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...
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...
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...
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...