473,386 Members | 1,708 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Need to write my first web application - scratching head

Hello all,

I'm a longtime programmer (embedded with a smattering of desktop stuff
as well) who knows very little about web programming. Right now I am
developing the prototype of a multi-user application in MSVC++, but I
think it would make more sense to redo the app as a web application
(which I know almost nothing about, remember). From poking around I
see that PHP is a fairly mainstream candidate for me to consider.
Now, I will continue to poke around in this group and on the web to
gather the fundamentals as to how I need to proceed, but in the
meantime I'm hoping for a few words of wisdom.

So, regarding developing a web application w/ a small database, what
are the key things I need to know? What are the key things I need to
avoid? How can I maximize my chances of success and minimize my
chances of throwing my computer off the balcony?

One requirement of this application is to be able to print from the
client computers, so I presume some code will need to be located there
as well as on the server. What is the typical way to do this?

Thanks for any and all tips.

Mike
Jun 2 '08 #1
8 1705
Oh, I forgot one important item. There will be cases where my
application must run stand-alone on a single client machine. For a
web-based app that would seem to involve having the server running on
the client machine itself. Is this doable? Is it a standard
approach?

Mike
Jun 2 '08 #2
Mike Silva wrote:
Hello all,

I'm a longtime programmer (embedded with a smattering of desktop stuff
as well) who knows very little about web programming. Right now I am
developing the prototype of a multi-user application in MSVC++, but I
think it would make more sense to redo the app as a web application
(which I know almost nothing about, remember). From poking around I
see that PHP is a fairly mainstream candidate for me to consider.
Now, I will continue to poke around in this group and on the web to
gather the fundamentals as to how I need to proceed, but in the
meantime I'm hoping for a few words of wisdom.

So, regarding developing a web application w/ a small database, what
are the key things I need to know? What are the key things I need to
avoid? How can I maximize my chances of success and minimize my
chances of throwing my computer off the balcony?

One requirement of this application is to be able to print from the
client computers, so I presume some code will need to be located there
as well as on the server. What is the typical way to do this?

Thanks for any and all tips.

Mike
Mike,

I think your project is better suited to MSVC++.

If you write this as a web app, you'll need a web server. If the web
app needs to run standalone, you'll need to install a web server on the
standalone machine.

Additionally, from PHP you have only partial control over how the page
is displayed or printed. Validated HTML code will give you a
recommendation, but the user's browser always has the final word (i.e.
what happens if the browser is using larger than normal fonts?).

The same goes for printing. You have no way to tell from the PHP end
what the characteristics of the printer are, so you have no way to
format the page to make maximum use of the printer.

There are a lot of uses for PHP and a web app, but I don't think this is
a good one.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jun 2 '08 #3
On Apr 26, 2:42*pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
Mike Silva wrote:
Hello all,
I'm a longtime programmer (embedded with a smattering of desktop stuff
as well) who knows very little about web programming. *Right now I am
developing the prototype of a multi-user application in MSVC++, but I
think it would make more sense to redo the app as a web application
(which I know almost nothing about, remember). *From poking around I
see that PHP is a fairly mainstream candidate for me to consider.
Now, I will continue to poke around in this group and on the web to
gather the fundamentals as to how I need to proceed, but in the
meantime I'm hoping for a few words of wisdom.
So, regarding developing a web application w/ a small database, what
are the key things I need to know? *What are the key things I need to
avoid? *How can I maximize my chances of success and minimize my
chances of throwing my computer off the balcony?
One requirement of this application is to be able to print from the
client computers, so I presume some code will need to be located there
as well as on the server. *What is the typical way to do this?
Thanks for any and all tips.
Mike

Mike,

I think your project is better suited to MSVC++.

If you write this as a web app, you'll need a web server. *If the web
app needs to run standalone, you'll need to install a web server on the
standalone machine.

Additionally, from PHP you have only partial control over how the page
is displayed or printed. *Validated HTML code will give you a
recommendation, but the user's browser always has the final word (i.e.
what happens if the browser is using larger than normal fonts?).

The same goes for printing. *You have no way to tell from the PHP end
what the characteristics of the printer are, so you have no way to
format the page to make maximum use of the printer.

There are a lot of uses for PHP and a web app, but I don't think this is
a good one.
Thanks for the comments. In one sense I'm relieved, since the thought
of learning a bunch of new stuff in mid-stream was a bit daunting.
And I did suspect that the printing requirement and the single-machine
requirement might be problematic.

Mike
Jun 2 '08 #4
Mike Silva wrote:
Oh, I forgot one important item. There will be cases where my
application must run stand-alone on a single client machine. For a
web-based app that would seem to involve having the server running on
the client machine itself. Is this doable? Is it a standard
approach?

Mike
Picking a technology always involves looking at it from a security
perspective - can you load it onto a desktop and not have someone that
needs to execute it NOT be able to view/modify the code? (Security hole
here). PHP requires a server (IIS, APACHE, etc...)

Next, an understanding for the uses of PHP and why you pick one
technology over another - take the time to read this snippet from the
PHP for Windows install docs.

" Before starting the installation, first you need to know what do you
want to use PHP for. There are three main fields you can use PHP, as
described in the What can PHP do? section:

* Websites and web applications (server-side scripting)
* Command line scripting
* Desktop (GUI) applications

For the first and most common form, you need three things: PHP
itself,a web server and a web browser. You probably already have a web
browser, and depending on your operating system setup, you may also
have a web server (e.g. Apache on Linux and MacOS X; IIS on Windows).
You may also rent webspace at a company. This way, you don't need to set
up anything on your own, only write your PHP scripts, upload it to the
server you rent, and see the results in your browser.

In case of setting up the server and PHP on your own, you have two
choices for the method of connecting PHP to the server. For many servers
PHP has a direct module interface (also called SAPI). These servers
include Apache, Microsoft Internet Information Server, Netscape and
iPlanet servers. Many other servers have support for ISAPI, the
Microsoft module interface (OmniHTTPd for example). If PHP has no module
support for your web server, you can always use it as a CGI or FastCGI
processor. This means you set up your server to use the CGI executable
of PHP to process all PHP file requests on the server.

If you are also interested to use PHP for command line scripting
(e.g. write scripts autogenerating some images for you offline, or
processing text files depending on some arguments you pass to them), you
always need the command line executable. For more information, read the
section about writing command line PHP applications. In this case, you
need no server and no browser.

With PHP you can also write desktop GUI applications using the PHP-GTK
extension. This is a completely different approach than writing web
pages, as you do not output any HTML, but manage Windows and objects
within them. For more information about PHP-GTK, please visit the site
dedicated to this extension. PHP-GTK is not included in the official PHP
distribution."
Jun 2 '08 #5
Mike Silva wrote:
On Apr 26, 2:42 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
>Mike Silva wrote:
>>Hello all,
I'm a longtime programmer (embedded with a smattering of desktop stuff
as well) who knows very little about web programming. Right now I am
developing the prototype of a multi-user application in MSVC++, but I
think it would make more sense to redo the app as a web application
(which I know almost nothing about, remember). From poking around I
see that PHP is a fairly mainstream candidate for me to consider.
Now, I will continue to poke around in this group and on the web to
gather the fundamentals as to how I need to proceed, but in the
meantime I'm hoping for a few words of wisdom.
So, regarding developing a web application w/ a small database, what
are the key things I need to know? What are the key things I need to
avoid? How can I maximize my chances of success and minimize my
chances of throwing my computer off the balcony?
One requirement of this application is to be able to print from the
client computers, so I presume some code will need to be located there
as well as on the server. What is the typical way to do this?
Thanks for any and all tips.
Mike
Mike,

I think your project is better suited to MSVC++.

If you write this as a web app, you'll need a web server. If the web
app needs to run standalone, you'll need to install a web server on the
standalone machine.

Additionally, from PHP you have only partial control over how the page
is displayed or printed. Validated HTML code will give you a
recommendation, but the user's browser always has the final word (i.e.
what happens if the browser is using larger than normal fonts?).

The same goes for printing. You have no way to tell from the PHP end
what the characteristics of the printer are, so you have no way to
format the page to make maximum use of the printer.

There are a lot of uses for PHP and a web app, but I don't think this is
a good one.

Thanks for the comments. In one sense I'm relieved, since the thought
of learning a bunch of new stuff in mid-stream was a bit daunting.
And I did suspect that the printing requirement and the single-machine
requirement might be problematic.

Mike
you have answered well grasshopper...
Jun 2 '08 #6
On 26 Apr, 19:42, Jerry Stuckle <jstuck...@attglobal.netwrote:
Mike Silva wrote:
Hello all,
I'm a longtime programmer (embedded with a smattering of desktop stuff
as well) who knows very little about web programming.
<snip>
So, regarding developing a web application w/ a small database, what
are the key things I need to know? What are the key things I need to
avoid? How can I maximize my chances of success and minimize my
chances of throwing my computer off the balcony?
One requirement of this application is to be able to print from the
client computers, so I presume some code will need to be located there
as well as on the server. What is the typical way to do this?
Thanks for any and all tips.
Mike

Mike,

I think your project is better suited to MSVC++.
Not at all - although the OPs lack of experience with PHP but skills
elsewhere might support such an assertion.

From server side, you can force a browser to display a print dialog
(actually using javascript) for an HTML page or display a PDF file or
call the download of a server-side mail-merged document, but you can't
write directly to the client's printer. But you can write directly to
an printer the server is configured for (permissions allowing). In
that case its simply a matter of getting your content into the
document.

There are a couple of good PDF libraries, or you could do a straight
replacement into a text or postscript file.

Of course if you're a C wizard you could always write your activeX
control to download and despatch the print job at the client.

C.
Jun 2 '08 #7
C. (http://symcbean.blogspot.com/) wrote:
On 26 Apr, 19:42, Jerry Stuckle <jstuck...@attglobal.netwrote:
>Mike Silva wrote:
>>Hello all,
I'm a longtime programmer (embedded with a smattering of desktop stuff
as well) who knows very little about web programming.
<snip>
>>So, regarding developing a web application w/ a small database, what
are the key things I need to know? What are the key things I need to
avoid? How can I maximize my chances of success and minimize my
chances of throwing my computer off the balcony?
One requirement of this application is to be able to print from the
client computers, so I presume some code will need to be located there
as well as on the server. What is the typical way to do this?
Thanks for any and all tips.
Mike
Mike,

I think your project is better suited to MSVC++.

Not at all - although the OPs lack of experience with PHP but skills
elsewhere might support such an assertion.
Definitely better suited for another language.
From server side, you can force a browser to display a print dialog
(actually using javascript) for an HTML page or display a PDF file or
call the download of a server-side mail-merged document, but you can't
write directly to the client's printer. But you can write directly to
an printer the server is configured for (permissions allowing). In
that case its simply a matter of getting your content into the
document.
It means javascript must be installed. It means you have to create a
pdf on the fly - which still can't adjust to the characteristics of the
user's printer.

And it doesn't do any good to print on a printer connected to the server
(and no one in their right mind will open a printer to the internet just
for one application).
There are a couple of good PDF libraries, or you could do a straight
replacement into a text or postscript file.
Which again can't adjust to the properties of an unknown printer. And
what if the printer doesn't accept postscript?
Of course if you're a C wizard you could always write your activeX
control to download and despatch the print job at the client.

C.
An even worse way to go.

And what about wanting to run standalone? Are you going to force them
to install a webserver on every machine, also?

All of the above is quite easy to do in MSVC++. And it can all be done
locally.

And just because you CAN do something by running the user through all
kinds of hoops, it doesn't mean that you SHOULD.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jun 2 '08 #8
Hello all,
>
I'm a longtime programmer (embedded with a smattering of desktop stuff
as well) who knows very little about web programming. Right now I am
developing the prototype of a multi-user application in MSVC++, but I
think it would make more sense to redo the app as a web application
(which I know almost nothing about, remember). From poking around I
see that PHP is a fairly mainstream candidate for me to consider.
Now, I will continue to poke around in this group and on the web to
gather the fundamentals as to how I need to proceed, but in the
meantime I'm hoping for a few words of wisdom.

So, regarding developing a web application w/ a small database, what
are the key things I need to know? What are the key things I need to
avoid? How can I maximize my chances of success and minimize my
chances of throwing my computer off the balcony?

One requirement of this application is to be able to print from the
client computers, so I presume some code will need to be located there
as well as on the server. What is the typical way to do this?

Thanks for any and all tips.

Mike


I'm going to go astray of the PHP gods for you, but I would seriously
recommend that, since you already have a background, Visual Basic (not
free) and visual Basic .NET (two entirely DIFFERENT animals regardless
of their name), are RAD programs and can do exactly what you want. The
compiler comes with it, and the executables for delivery are very small
compared to most other languages.
I would recommend VB version 6 with SP6 and the MSDN Help system.
VB.NET is OK too but more complex and not necessary for what you want to
accomplish.

I do not mean to say you can not do it in PHP; you definitely can, and
likely for a lot less money. A local server on your system, PHP and
you're ready to write code. I am only pointing out another route - the
one I would follow if it were me.
I should also mention I am not a guru in either language; only
experienced in the areas I am interested in; self taught mostly.

My 2 ¢, FWTW <g>

Twayne
Jun 2 '08 #9

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

Similar topics

2
by: Angelos Karantzalis | last post by:
Hi, can anybody point me to some info in how to write to the event viewer ? I've build a COM+ component, and I have no real way to get information on the possible exceptions that occur during...
2
by: Bonj | last post by:
Hello Can anyone assist with the following class hierarcy problem? I have a series of window classes, the object model currently being as such: Window / | \ / | \...
4
by: Prowler | last post by:
In the application we are currently building, we need to write positioning code on-the-fly, based upon the screen offset of the element in the AS/400 application which drives the Web app. The 400,...
2
by: David Steward | last post by:
I am really scratching my head on this problem. I am trying to set up a very simple linked list using the <list> STL. As an example I wrote sample code just like what is given in the help files....
36
by: sonnystarks | last post by:
I am trying to learn HTML and have obtained several books on the subject. However, I am confused with the proper way of going about it as most of these books give me the basic tags and then say...
8
by: pamelafluente | last post by:
I am beginning aspNet, I know well win apps. Need a simple and schematic code example to start work. This is what I need to accomplish: ---------------------- Given button and a TextBox on a...
7
by: fox | last post by:
Hi, Lacking javascript knowledge, I just realized why my project has a bug. I am using ASP to loop through a set of records while it creates URLs with a querystring that has a single value pair....
20
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
2
by: loneranger | last post by:
Hi Everyone Visual Studio 2005 VB 2005 Windows Application I have a form with one combo box and a button I want the user to make a selection from the combo box, click the button and have...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.