server

How secure is it to connect to an ftp server (iPhone SDK)

How secure is it to connect to an ftp server in an iPhone application? I want to connect to my ftp server in my app but am worried that the username and password can be revealed. ...

EC2 and login logging

Hello - I have set up several EC2 instances and intend to give multiple users access to them via SSH. Is there any file on the server that monitors who logs in and when? Any help greatly appreciated. Max. ...

Confused about include_path in php.ini

I have this line in php.ini include_path = ".;C:\xampp\htdocs\zend\library;C:\xampp\php\PEAR" What exactly is the . in front of the string? And what does the line do, exactly? I know it includes the paths, but what exactly happens behind the scenes? Maybe this is a dumb question but I'm asking anyway :-) ...

Post information to server and receive XML

On my web server I will be creating a bespoke XML file for a client app to access. This means I must authenticate the client and then give the client the XML file. I believe the client application will need to post data (login, password) to the server and once a connection is established, it will receive the XML file from the server (m...

php validation using jquery and ajax

Hi, i have a jquery ajax form. i have validation at server side for repeated username and email ID. which works fine without jquery/ajax. in my php code i have used die() to return if any error occurs. my main problem is at ajax here is the code $(document).ready(function(){ $("form#regist").submit(function() { var str = $("#regi...

What is the best way to delete large database programmatically

I need to drop a perticular database in SQL Server 2005 using T-SQL. I know droping a databse can not be done in a database trnsaction. So what if while deleting a real huge database some unexpected exception occurs E.g. Time out exception. Will it leave my database in unstable state ? If yes, how do i avoid such situation ? ...

File upload with the ability to resume (preferably in Ruby on Rails)

Hi all - this is quite a difficult topic by all accounts. I am building a website that requires users to upload large (multi-GB). What is the best way allow users to upload a file on a website and allow the file upload to be resumed should it fail? What is the way to write this in rails? Any ideas greatly appreciated. Max. ...

GitHuB repository to remote server

Is there anyway I can push changes from my Github Repository to a remote server automatically? I would like to deploy changes in master branch in my github repository to a remote deployment server. If possible. ...

Error in bind function (C simply server)

This is the code of my server: #include <stdio.h> #include <stdlib.h> #include <getopt.h> #include <string.h> #include <unistd.h> #include <errno.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <sys/wait.h> #include <signal.h> int main (int argc, char **argv) //-----------------...

Real time browser game server

I'm mostly looking for setup advise and pointers on how to go about going about this. I'll explain in as much detail as I can think and also note possible approaches that may be plausible. The aim of this is to create a real time browser game, the best method that I have found for my needs would to use "long polling" with ajax, which wi...

How to tell browser do not send COOKIE for certain folders, files or request?

I'm running PHP5 and Apache with mod_rewrite enabled. As we know on every page load browser sends cookie data to requested files. This data could be useful for PHP files, however for images or css files it has no value and simply make communication between browser and server slower. Is there any ways to tell browser or server to stop d...

SimpleHTTPServer, shoutdown and blocked request handlers

I have an instance of SimpleHTTPServer, however when I try to call "shutdown" on it and there is a request handler that is blocked - the whole process will block. It does so even if I run the "serve_forever" method in a deamon thread. See example code at http://codepad.org/cn8EYdfg Any advice? ...

How to setup java web architecture on hosting slice/dedicated server ?

Hello all I want to build web application that is based on java technology (tomcat ) Can I get please suggestions on how to set up the servers (apache – mod_jk – tomcat ? ) And what are the right frameworks to use or not . For memory and ease of work from the development side ( to use plain jsp or mvc frame works? ) ...

started to learn EJB. What options do I have for an application server?

Hi, I have started learning EJB. I like to know which is best application server for beginner to learn EJB... ...

Ways to overcome PHP/MySQL + Ajax/comet/long polling?

I have existing websites with PHP/MySQL framework. They are very busy and chat, events, vs (interval) ajax implementations added to server load as well. Now websites are going bigger so I need to change to long polling/comet but apache is not very well with these and most of the comet servers are done in Java. Like cometd, www.stream-hub...

What happens if your asp.net app is using too much memory?

Lets say that you are using a shared hosting plan and your application stores lots of objects in the application state. If they start taking too much memory does this mean that the server will just remove them? If not what will happen then? What happens when the server has no memory left? Can you still store objects into the applicati...

Problem with C server function

Hi I have a problem with my function, which responsible for contact between client and server: #define MAX 1024 void connection(int sock) { char buffer[MAX]; int newsock; int n; int r; if(write(sock,"Hello!\n", 6) < 0) { perror("Error: "); } do { if(write(sock, "\n> ",3) < 0) {...

iPhone only server?

Is it possible to restrict access to a server so that only iPhone devices can use it? I have no experience in setting up servers or the like before. I am still very fresh to programming. Thanks. ...

How can I send typed object from FMS to client.

I have following object in the FMS User = function(userName,userId) { this.userName = userName; this.userId = userId; } I need to send the list of user to the client swf. Once I initialized the User object collection to an array, array element is undefined when I read it from the client. However I can’t send the generic object too...

Question about fork()

Hi, this is my function: void connection(int sock) // sock is a descriptor of socket { char buffer[MAX]; int n; // number of bytes read or write into a socket int f; f = fork(); if(write(sock,"HELLO\n", 5) < 0) { perror("Error: \n"); } write(sock, "\n> ",3); do { memset(buffer,'0',M...