1
голосов
2ответов
768 просмотров

Как управлять несколькими клиентскими сеансами в серверном приложении?

Я пишу приложение для веб-чата, похожее на GTalk.Он основан на Orbited + Sinatra для клиентской стороны и Ruby для серверной части.Я уже реализовал весь протокол, все работает хорошо.Но.У меня проблема - не знаю, что делать, если от одного пользователя несколько подключений.Скажем, например, я в...

1
голосов
3ответов
45 просмотров

Предложение по дизайну для изменения php или общего кода на стороне сервера через веб-консоль

Хорошо, такова моя ситуация ... веб-приложение на PHP использует "конфигурационный" файл для различных параметров.Этот файл конфигурации представляет собой не что иное, как файл php, скажем config.php с глобальным массивом формы $config['param_name'] = 'param_value'; $config['param_name2'] = ...

0
голосов
2ответов
692 просмотров

Есть ли инструмент (RAD) для динамического веб-создания (php + html)

Есть ли какой-либо инструмент, такой как доступ или главная страница, который объединяет? На стороне сервера тоже (php) не для программистов?

0
голосов
3ответов
266 просмотров

включать / выводить вывод PHP

У меня запущено два проекта, оба написаны на PHP.Теперь я хочу объединить эти два проекта.Первый проект - это CMS, и на определенной странице я покажу содержимое другого проекта / приложения.Я не хочу, чтобы первый проект знал или получал доступ к переменным и функциям другого проекта и наоборот...

2
голосов
3ответов
987 просмотров

Включения на стороне сервера и методы ASP.NET Есть ли разница в производительности?

Меня недавно наняли для обновления сайта ASP.NET 1.0, созданного до того, как стали доступны главные страницы.Следовательно, на страницах есть серверная часть включает (ssi), например, <!-- #include file="footer.html" -->. Я собирался обновить страницы * .aspx главной страницей, которая со...

3
голосов
2ответов
2484 просмотров

Командная строка конвертировать png в swf

Я хочу разрешить пользователю загружать PNG-файл с альфа-прозрачностью и компилировать его на сервере в SWF-файл со сжатием jpeg во встроенном PNG-файле. Как мне этого добиться? Сначала я подумал, что просто создам класс и скомпилирую его с помощью Flex Framework, но Flex не сжимает встроенн...

0
голосов
1ответов
140 просмотров

Чтобы поместить вывод сценария на стороне сервера в файл HTML, следует ли использовать #include или #exec?

Если я хочу вставить вывод скрипта в файл HTML с использованием серверных включений, лучше ли использовать <!--#include virtual="/cgi-bin/myscript.py" --> или <!--#exec cmd="python /cgi-bin/myscript.py" --> ?

1
голосов
1ответов
73 просмотров

Is it possible to use a script to block adware recursive links in a browser window?

There are client-side solutions for nasty adware and their recursive links, but is it possible to use a script in the html to prevent the links from displaying in a user's browser who has adware on their machine and is visiting my web site? I am NOT a programmer. I am designer, and I know just e...

3
голосов
3ответов
400 просмотров

Why not run a server side app with daylight saving time enabled?

I've implemented a server side application that records timestamps when records are created and updated. The app assumes that the server clock does not have daylight saving time enabled, (a) because I've read this is best practise and (b) because I imagine it would be tricky (if not impossible) t...

1
голосов
6ответов
249 просмотров

Anything wrong with using PHP as a server side language?

Is it wrong to use PHP as a server side language? For functions such as mail notifications / fraud checks (look for data, flag, then email type approach) / db cleanup / upload folder cleanup / cronjob type functions etc; I've ran into some projects lately where I've been successful with this app...

1
голосов
7ответов
192 просмотров

Can search engines index pages generated by server side code?

I'm guessing a site like stack overflow doesn't keep an html file around for every question ever asked. Instead, server-side code creates the page every time a question is clicked on(I think). Is it possible for search engines to index every quesiton on Stack Overflow, or would a page-per-questio...

0
голосов
1ответов
444 просмотров

Error while running Servlet?

I have the servlet name ExampleServlet.java which have only init method with HttpServletRequest and HttpServletResponse parameters. I will forward the request to another servlet named ForwardedServlet.java which will display some text on the web page. But when i am trying to execute the ExampleSe...

1
голосов
3ответов
1045 просмотров

Is there a way to parse out HTML Comments on the Server side (PHP or MySQL)

We need a way to remove HTML comments when displayed to the user but not to the developer. I'm wondering what the best way to do this is.

0
голосов
1ответов
454 просмотров

What is the most common approach for designing large scale server programs?

Ok I know this is pretty broad, but let me narrow it down a bit. I've done a little bit of client-server programming but nothing that would need to handle more than just a couple clients at a time. So I was wondering design-wise what the most mainstream approach to these servers is. And if people...

12
голосов
11ответов
31544 просмотров

Save the document generated by javascript

Javascript can manipulate the document the browser is displaying, so the following: <script> document.write("<table><tr><td>Hola</td><td>Adios</td></tr></table>"); </script> Will make the browser display a table just like if it w...

3
голосов
1ответов
137 просмотров

Which asp.net validation control should I use?

I have two textboxes, each contain a time (textboxA / textboxB). I need to be able to validate that textboxA is before textboxB. For exmaple: textboxA = 10:30 / textboxB = 12:30 VALIDATION = true textboxA = 10:30 / textboxB = 10:00 VALIDATION = false I would prefer to do the checks using ...

1
голосов
3ответов
4480 просмотров

Server side SQLite database with Google Web Toolkit or JQuery

I have a large array of vehicle make and model data that I want to dynamically display on a web page. For example, when you select a vehicle make from a drop down menu the vehicle model dropdown is dynamically populated with an asynchronous call. I would normally execute this with an AJAX call t...

0
голосов
4ответов
3286 просмотров

Javascript client side login, how to authenticate server side?

I'm looking for the best practice to pass secure data from client side to server side. For example, I have a client side authentication and sometimes I need to call private apis on the server side from the client side, but I need to make sure that user is authenticated/authorized to perform tho...

0
голосов
2ответов
132 просмотров

Java Message logging Web Application

My Apache Tomcat Server is getting periodic updates from a Java based client Application, At the moment the scenario is just one client and talking to the server. I want to log the messages from the client onto the server with time-stamp what kind of framework will help me in achieving this?

1
голосов
2ответов
893 просмотров

Server Side Language for Scalable TCP-socket application

Which amongst these would be well suited for a scalable server side TCP socket based Web application. Java, PHP, Perl, Python, Ruby. You could base yours answers Primarily on: Rapid Application Development. Available frameworks(If required) for getting the job done. Secondarily on: Perfo...

0
голосов
2ответов
483 просмотров

Socket communication?

What are the preferred platforms to implement TCP socket communication? I'm interested in: scripting languages (eg Swocket for Python) and runtimes (eg .NET / Java).

1
голосов
1ответов
328 просмотров

What are the main concerns when generating client-side JavaScript from the server?

This seems like a somewhat common issue and I'm wondering what the common pitfalls, best practices, best approach, security concerns, etc., are when creating javascript on the server to be later loaded client side. FWIW, I'm doing this in Ruby and I'm using JQuery as well. It's basically a form ...

7
голосов
2ответов
16902 просмотров

Using jquery to get per row totals and grand total of table

So the short version of this is: Can I traverse only the elements within the matched element of the selectors before the each()? Or is there a simpler way of getting what I want without an each() loop? I thought this would be much easier, which makes me think I'm just missing some fundamental ...

2
голосов
5ответов
730 просмотров

What are the usable compiled server side languages as of today?

I've heard of ASP.NET compiled DLLs which only works on Windows Server, but I would like to know if there are any other compiled server side languages?, maybe even ones for Apache server? Installation of the runtime shouldn't be a problem because I will have physical access to the Unix/Windows s...

0
голосов
7ответов
291 просмотров

Prevent hyperlinks from being entered into a html form: client-side or server-side validation?

I'm still debating whether I want to do this or not but what I'm considering is preventing users from entering hyperlinks into a HTML form in my app. This is to avoid spammy links from showing up for other uses of the app since the app is based on user generated content. This is a Rails app, so ...

1
голосов
8ответов
3135 просмотров

secure server side language

Looking around the horizon of the web server side, I see that scripted languages like PHP are quite popular, probably due to the speed of development and ease of programming. However scripted languages are human readable so isn't code security would be an issue here. I would like to know that...

6
голосов
2ответов
1359 просмотров

Reverse AJAX? Can data changes be 'PUSHED' to script?

I have noticed that some of my ajax-heavy sites (ones I visit, not ones I have built), have certain auto-refresh features. For example, in GMail, if I get a new message, I see the new message without a page reload. It's the same with the Facebook browser-based IM client. From what I can tell, the...

4
голосов
3ответов
7160 просмотров

Html input tag with server side resource string

I have an input button on an ASP.NET form, but I want the text displayed to come from a server side resource file. The following syntax fails, and I can't enclose it in a literal because the input tag cannot contain any other tags: <input id="btnX" type="button" disabled="disabled" value='&...

1
голосов
3ответов
729 просмотров

Easiest way to generate PDF from vector graphics and text serverside or in flash

ok, here's the problem: the format of the vector graphics could be either SWF or SVG, which is up to me to choose the text can have about any font both text and graphics can be rotated and moved, and graphics can be scaled too i considered doing this on clientside, which is flash player 9, us...

0
голосов
4ответов
764 просмотров

How to get serverside information into javascript?

I don't know how to ask this question that's why I'm going to simulate what I need, some developers make what I need by rendering javascript with php. A simple sample file would look like: my_javascript_file.php <?php include "my_class.php"; ?> $(document).ready(function(){ $.aj...