I know it's a simple question, but in everything I've read, I've never seen this spelled out specifically.
If you do a query on a page, do you need to worry about SQL injection attacks? Or is it only a problem when you ask the user for input?
Thanks!
...
Hey guys!
I need to create a global application. This means it should work ok anywhere in the world, at any country (or most of them). It's a PHP website that will deal with money and time at certain points.
I wish I could know a good resource for countries, related timezones, currency formatting, symbols and codes, this kind of stuff....
Ok, I'm trying to add a user to a MySQL database. This user should be able to add other users to the database it has privileges for. So I did this:
GRANT ALL privileges ON thedbname.* TO 'topuser'@'%' IDENTIFIED BY 'pass';
However, I this user cannot add users. Is that because I only gave them 'all' for a single database? The permissi...
e.g. imagine (this isnt the real problem but it's v similar) I'm legally required to provide a 'family-safe' search engine. I'd like to permit (or turn a blind eye to) third parties supplying, or users using, plugins that I legally can't supply.
The third party plugins would be downloaded by the site user & I'd have nothing to do with...
i'm looking for ways to display and edit source code (ala google docs) in a web application (AJAX). any ideas?
...
I'm familiar with the Application and Session Key/Value object stores in ASP.NET. I'm looking for a global store that I can put a value into when a request is made that is valid only for the duration of the request but is also accessible to the DLL's in the business layer. I've been told that there's an HttpRequest object that does this ...
Hi
I have webapplication which is running in my machine(written in java) and i need to find out the class files associated with html page generated by this web server.How to findout this?.
...
Derby has a series of configuration options that are controlled by system properties. It's quite painful to arrange system property settings in a webapp. Has anyone come up with a solution?
In addition, I have been unable to make them work in a webapp.
Here is the code of a servlet context listener. derby.log is still created in the cw...
I've recently found an interesting alternative to the ASP.NET MVC that I currently do: static HTMLs with advanced JavaScript doing service calls (most examples use OpenRasta). For example see this or this.
Personally I always had a feeling that web apps need to move towards JavaScript frameworks. To me it feels the code in MVC to wire u...
I'm designing a fairly small web application which will run on a Sun application server (v9.1). It only has a few pages, no database of its own, and will retrieve/update data via web services. There's one block of text on one of the pages which we anticipate will need to be updated occasionally (a few times a year?) by a system admin. Wh...
I've been intermixing JSPs and Servlets in the web app I'm building and I'm starting to find that my more complex JSPs end up containing a lot of code, which flies in the face of all the MVC lessons that have been pounded into me. I know I can do this by just forwarding to the JSP, but this seems like a stupid hack.
What I'd like to do...
I would like to save a web page programmatically.
I don't mean merely save the HTML. I would also like automatically to store all associated files (images, CSS files, maybe embedded SWF, etc), and hopefully rewrite the links for local browsing.
The intended usage is a personal bookmarks application, in which link content is cached in c...
for development of interactive 3d web applications, which engine is recommended?
I am aware that WebGL has been anounced to become standarized for all browsers in the near future (1~2 years).
I am afraid that by investing time into a proprietary game engine such as Unity, torque would be not great once plugin-less open source 3d engine...
Hi, I'd like to be able to generate an image with overlaying text (that is inputted by the user) such as how it is done on www.depressiondog.info. Can someone show/link me to some code that will do that. Thanks.
...
Hi,
I'm planning to develop my own simple and elegant web application framework in C# 3.5. I have some ideas, but not yet the best practice how it should be implemented. Maybe you can help?
My ideas:
It is a C# Library (DLL)
It needs to use XSLT as templating language, so XML must be the output of my data-/model-layer
It needs to con...
how can i make it that when i go to (for example) http://localhost:60288/ it does not show me a directory listing but rather opens the Index.aspx page? This works with http://localhost:60288/Index.aspx but i don't wish to have Index.aspx shown every time.
i also need links like http://localhost:60288/?a=1 to work like http://localhost:6...
I have a web site which handles files management. User can upload file, add description, edit and delete. What are the best practices for that kind of scenario?
I store files in the file system.
How should I handle deleting of the file? In this case I have to entities to delete: file and entry in database. First scenario is that I de...
It's an application that we use internally at the office that I would like to offer as a hosted service for anyone.
How can I do that without making major code changes?
The first thing that occurs to me is to have the app select which database to connect to based on the domain.
So each instance of the app would have its own databas...
Hello all,
I realize that this question is slightly server related and could be posted on ServerFault, but I'm more asking about a programming-related way to handle this situation, so please forgive me if it seems a bit server-specific.
We currently have a web-based app that is running on Apache/PHP on a Linux server. We use PostgreSQL...
I am developping a mobile web application (for iPhone) with a local database (using html5 webstorage) so my app is still usable when the user is offline.
This is working perfectly, but I want to save the local data on a server.
So I need to synchronize the local DB with a DB on a server. The synchronisation can only be one way, but in t...