All Questions

339
votes
4answers
26750 views

What is the difference between client-side and server-side programming?

I have this code: <script type="text/javascript"> var foo = 'bar'; <?php file_put_contents('foo.txt', ' + foo + '); ?> var baz = <?php echo 42; ?>; aler...
88
votes
14answers
81389 views

How to detect server-side whether cookies are disabled

How can I detect on the server (server-side) whether cookies in the browser are disabled? Is it possible? Detailed explanation: I am processing an HTTP request on the server. I want to set a cookie v...
143
votes
11answers
145826 views

Send message to specific client with socket.io and node.js

I'm working with socket.io and node.js and until now it seems pretty good, but I don't know how to send a message from the server to an specific client, something like this: client.send(message, rece...
35
votes
14answers
8009 views

Why is client-side validation not enough?

I saw here that: As you probably already know, relying on client-side validation alone is a very bad idea. Always perform appropriate server-side validation as well. Could you explain wh...
95
votes
10answers
155283 views

Using Excel OleDb to get sheet names IN SHEET ORDER

I'm using OleDb to read from an excel workbook with many sheets. I need to read the sheet names, but I need them in the order they are defined in the spreadsheet; so If I have a file that looks like...
69
votes
6answers
82655 views

How do I parse a HTML page with Node.js

I need to parse (server side) big amounts of HTML pages. We all agree that regexp is not the way to go here. It seems to me that javascript is the native way of parsing a HTML page, but that assumptio...
72
votes
12answers
29071 views

Meteor: Debug on server side

Does anyone know a good method to debug server side code? I tried enable Node.js debug then use node-inspector but it does not show any of my code. I end up using console.log but this is very ineffic...
13
votes
3answers
52239 views

Pulling data from a webpage, parsing it for specific pieces, and displaying it

I've been using this site for a long time to find answers to my questions, but I wasn't able to find the answer on this one. I am working with a small group on a class project. We're to build a small...
27
votes
6answers
8854 views

How to handle multiple submissions server-side

We all know the good old "disable the submit button" trick but what are the best ways to handle multiple submissions server side? I have an application where it is absolutely critical that a form only...
20
votes
7answers
12969 views

url with multiple forward slashes, does it break anything?

http://example.com/something/somewhere//somehow/script.js Does the double slash break anything on the server side? I have a script that parses URLs and i was wondering if it would break anything (or...

Previous Next