473,666 Members | 1,991 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Traps and pitfalls when writing web apps?

Hello

I'm about to write a prototype for a business application, but since
this my first real web application, I'm looking for a good book or
article that sums up the different issues web developers will
encounter when coming from the world of dedicated applications (VB,
Delphi, etc.)

I'm thinking of issues specific to web apps like the statelessness of
HTTP, dealing with the back button, etc.

Any good resource? It'd be even better if they have examples in PHP,
but a language-agnostic resource is good enough.

Thank you!
Jul 27 '06 #1
20 2016

Vincent Delporte wrote:
Hello

I'm about to write a prototype for a business application, but since
this my first real web application, I'm looking for a good book or
article that sums up the different issues web developers will
encounter when coming from the world of dedicated applications (VB,
Delphi, etc.)

I'm thinking of issues specific to web apps like the statelessness of
HTTP, dealing with the back button, etc.

Any good resource? It'd be even better if they have examples in PHP,
but a language-agnostic resource is good enough.

Thank you!
php.net has the majority of what you will need, i find the user
commenst to be the most useful part.

Flamer.

Jul 27 '06 #2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Vincent Delporte wrote:
I'm about to write a prototype for a business application, but since
this my first real web application, I'm looking for a good book or
article that sums up the different issues web developers will
encounter when coming from the world of dedicated applications (VB,
Delphi, etc.)
First and foremost: Don't trust user input. Ever.

In other words: whenever you receive data from the user (usually by a posted
form, or by some GET variables), clean, check and double-check the data for
validity. Don't ever assume that the user has put a valid value in a form
input field.

Another point to take into account: Every page is a *different* run of your
program. HTTP is a stateless protocol, ya' know. That means:
- - Be careful when passing data from one page to another
- - Be careful about race conditions

- --
- ----------------------------------
Iván Sánchez Ortega -i-punto-sanchez--arroba-mirame-punto-net

¿Quieres aprender a leer?, Escríbeme!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFEyVpJ3jc Q2mg3Pc8RArI4AJ wJO9/SuQqZa3HNpOd9Wu lKz6C6PgCfaBnk
loUkJdewmsA6FiW 17VDNork=
=5j0L
-----END PGP SIGNATURE-----
Jul 28 '06 #3
On Fri, 28 Jul 2006 02:28:56 +0200, Iván Sánchez Ortega
<i.************ ***@rroba--mirame.punto.ne twrote:
>First and foremost: Don't trust user input. Ever.
Thx guys. So, no article or book on the subjet?
Jul 28 '06 #4

"Vincent Delporte" <ju*****@acme.c omwrote in message
news:so******** *************** *********@4ax.c om...
Hello

I'm about to write a prototype for a business application, but since
this my first real web application, I'm looking for a good book or
article that sums up the different issues web developers will
encounter when coming from the world of dedicated applications (VB,
Delphi, etc.)

I'm thinking of issues specific to web apps like the statelessness of
HTTP, dealing with the back button, etc.
Try http://www.tonymarston.net/php-mysql...ttonblues.html
And http://www.tonymarston.net/php-mysql/client-clones.html
And http://www.tonymarston.net/php-mysql...-protocol.html

--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
Jul 28 '06 #5
ronverdonk
4,258 Recognized Expert Specialist
The info you are looking for is usually scatterd among different sites and books. The OReilly online book store is usually a good place to start (www.oreilly.co m).

But if you need an overview, have a look at the book:
"Deliver First Class Web Sites: 101 Essential Checklists"

Ronald :cool:
Jul 28 '06 #6
On Fri, 28 Jul 2006 09:31:45 +0100, "Tony Marston"
<to**@NOSPAM.de mon.co.ukwrote:
>Try http://www.tonymarston.net/php-mysql...ttonblues.html
And http://www.tonymarston.net/php-mysql/client-clones.html
And http://www.tonymarston.net/php-mysql...-protocol.html
Thanks a lot. That's exactly the kind of articles I was looking for.
Are there more, on other traps I don't even exist and in which I will
fall unless warned before? :-)
Jul 28 '06 #7

"Vincent Delporte" <ju*****@acme.c omwrote in message
news:uv******** *************** *********@4ax.c om...
On Fri, 28 Jul 2006 09:31:45 +0100, "Tony Marston"
<to**@NOSPAM.de mon.co.ukwrote:
>>Try http://www.tonymarston.net/php-mysql...ttonblues.html
And http://www.tonymarston.net/php-mysql/client-clones.html
And http://www.tonymarston.net/php-mysql...-protocol.html

Thanks a lot. That's exactly the kind of articles I was looking for.
Are there more, on other traps I don't even exist and in which I will
fall unless warned before? :-)
Do a google search using "php security" and you will see some useful
articles.

--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
Jul 28 '06 #8
On Fri, 28 Jul 2006 16:11:30 +0100, "Tony Marston"
<to**@NOSPAM.de mon.co.ukwrote:
>Do a google search using "php security" and you will see some useful
articles.
OK, but my question isn't specifically about security. It's a more
general question about the web-specific issues that desktop
applications don't have to deal with.
Jul 28 '06 #9
On Fri, 28 Jul 2006 21:15:29 +0200, Vincent Delporte wrote:
On Fri, 28 Jul 2006 16:11:30 +0100, "Tony Marston"
<to**@NOSPAM.de mon.co.ukwrote:
>>Do a google search using "php security" and you will see some useful
articles.

OK, but my question isn't specifically about security. It's a more
general question about the web-specific issues that desktop applications
don't have to deal with.
The number one thing is understanding the difference between client-side
and server-side.

--
The USA Patriot Act is the most unpatriotic act in American history.
Feingold-Obama '08 - Because the Constitution isn't history,
It's the law.

Jul 28 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1809
by: Geoffrey | last post by:
We have developed a python class that can read data files created from another application. These target files are C-ISAM files used for accounting applications so the "primary" application may be reading and/or writing to portions of the files ("records") at the same time. The python class we developed opens the requested file in 'rb' mode, reads the file header (first 512k) and using information supplied in the file header (such as...
2
5735
by: Panchi51 | last post by:
Hi, Below is a collection of tips/tricks/caveats for LP64 c coding, full text is at http://www.cs.albany.edu/~mosh/Text/c-ref.txt. Hope it helps, corrections welkome. -- Panchi51<et>pacbell.net LP64 Gotcha List ----------------
4
1689
by: Mantorok Redgormor | last post by:
Should I just avoid them? I have heard many bad things about them 1) if you set a signal handler, you can't really ignore the signal and continue with normal program execution, because after that undefined behavior is invoked. 2) if you have a signal handler set for say SIG_INT and you continue to reset the handler after you received the signal, to continue normal program execution, and the signal is received twice or something you end...
8
1284
by: Chad Myers | last post by:
Before I spend a lot of time reading about something I might not need to use/worry about, can someone give me the 5 second take on CAS? In general, when do I need to worry about it (what type of apps in what types of environments)? I'm writing a data access API for a proprietary system. We're shipping this API to customers who build apps on top of this API/foundation library.
4
1746
by: Jay | last post by:
Guess this has probably been reported already. Seems if you don't use {} with for/while etc., the debugger stops at the wrong line. In the example below, I had a breakpoint at line 6 but the debugger stopped in every iteration of the loop. Jay 1. for (int index=0; index < line_buffer.Length (); index++)
3
1815
by: abbu | last post by:
Hi All, I have just finished my graduation. I'am attending my interviews for software companies. If any one has the book "C Traps and Pitfalls" please send it as attachment across to my mail ID vignesh_cn@rediffmail.com Please do the needfull...
1
3790
by: idoha | last post by:
Hi All, I need to send SNMP traps of a very specific forma (version 2 snmp trap). The format is as following: 07/31/2007 16:31:47 2 172.21.49.66 172.21.49.66 1.3.6.1.4.1.6387.1.2.3.3.1.2.12 1.3.6.1.2.1.1.3.0=>363 days, 20 hours, 59 minutes, 56 seconds. 1.3.6.1.6.3.1.1.4.1.0=>.1.3.6.1.4.1.6387.1.2.3.3.1.2.12 1.3.6.1.4.1.6387.1.2.3.3.1.1.15=>Oshkosh 1 1.3.6.1.4.1.6387.1.2.3.3.1.1.3=>703 All I can find is a method that sends snmp...
1
4160
by: Dirk Van de moortel | last post by:
{ OOPS, posted this to moderated group perl.cpan.discuss as well, so it can take a while to get through, if it gets through at all Otherwise sorry for duplicate posting } We need to set up a server 2003 (or a win XP system) to accept and act upon traps sent out from a storage system. Responding to various error conditions, this system can be fully configured to send traps.
0
8445
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8356
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8871
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8551
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8640
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7386
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4369
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1776
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.