How to make a chat website with Delphi7 and HTTP - delphi

I want to make a small HTTP chat website working with a Delphi 7 web Server. I have no idea how to approach this. I have searched on the internet for hours but I found nothing helpful. I have setup a basic Delphi 7 web server. The reason I want to use Delphi is because I'm most familiar with it and I want to use HTTP because that's the only language I know to how use in a browser. Could I do this and is there any tutorial on how to do this somewhere on the internet? I wanted to make a chat server because it seemed like a challenge. The help is greatly appreciated.

As much as I love Delphi, I would strongly recommend learning another language for this task.
PHP is very easy to get into. All you need is notepad to type a file with this:
<?php echo "hello" ?>
And you have a working web application that shows hello. With delphi it gets more complicated. You either need to provide your own web server, or you need to create a .dll that plugs into your browser, and you'll need a lot more code to get something simple.
PHP also has good mysql support built in, which you'll probably need if you're going to create a chat page, because it can easily deal with multi-user issues for you.
I know this doesn't answer your question about how to do this with Delphi, but please take this advice.

Related

iOS ready made template?

I am a web developer / programmer that is in my infancy on mobile development on iOS. I would like to start a new project on an mobile app, but usually if i were to develop a web site, I would download some html template on the web with ready made of html and css or CMS like wordpress if my application is complicated or huge, so that i do not need to design the pages from scratch. I would just need to add some php or J2EE programming towards the pages to develop my application.
So now my question is, what about iOS? Is there any ready made iOS templates with good design? I tried searching for templates on the web but doesn't seems to find any. Am I starting at the wrong foot?
Thanks in advance.
I've seen companies that offer such things, but they cost money and I don't think they are worth it. Using storyboards to build an interface and then putting in your logic code is pretty straightforward. If you need some tutorial type help getting started, raywenderlich.com is a great site.

Can we add php contact form in volusion eCommerce site?

Can we add php contact form in volusion eCommerce site?
I tried to implement but couldn't get it right.
Problem seems to me is, when calling the php file for form action to "XXX.php" file, it displays error (i.e. couldn't find the page).
Can I call "xxx.php" file from volusion "default.html" page??
Please help me out.
I know this question's a bit old but I thought I'd give you my thoughts on it anyways, You asked if you could use PHP on volusion and my answer to that is Unfortunately Not. Volusion only supports classic ASP and JavaScript on the front end of your store. (And as the previous poster said, it is written in asp.net however I've never been able to get .net code to work in it, it seems .net is only used for the admin panel and for the webservices API...)
Regardless, there are a few other ways to accomplish what you want to do; at least in my mind.
You could possibly add it with an Iframe.
If not, (if volusion blocks out your iframe, or if you just don't want an iframe) I would suggest just making your contact form in ASP or JS... You could view the following link for information on how to use their VSMPT ASP class.. http://support.volusion.com/article/vsmtp-key
If neither of the previous options work, you might also consider making the contact form be part of a new ticket. It would however require your customers to create an account first, and if it's purpose is to reach new customers you might want to look into how you add custom fields to the account registration form in volusion. This way you can have the information that you wish to collect from customers inside of your volusion admin panel.
This link may be helpful for the latter. http://support.volusion.com/article/use-custom-fields-gather-marketing-data
I wish you the best of luck working with volusion, I'm stuck on their disgusting software and sure wish I would have known the massive limitations and roadblocks, prior to starting using their product. Hopefully I'll be moving away soon! I suggest the same to anyone else on it. (sorry for the added two cents)
You can if your server will support it. What I mean by that is that Volusion is written in ASP.NET and runs on a Microsoft server. PHP on the other hand runs on a LAMP (Linux, Apache, MySQL, PHP) server.
Generally I don't find servers running both the LAMP stack and the Microsoft stack but its possible.

How does a client/server framework work

I am confused about the current framework for a client/server architecture system.
You know, when we are writing a small demo, on the server side, we listen on a port and establish a TCP/UDP connection with client, after that, we do some customize work.
Well, my question is, when we are using a framework like Ruby on Rails, where can I put my customize work?
It seems these frameworks are just for people managing a website.
I can't add a comment, so some words more here.
Thanks for your answers. Actually, I know how to do socket programming to handle all the requrest. But since what I want to build is a product not a demo. I think a wide-used framework is what I need.
ACE and twisted seem good to do these things. But what about RoR? I saw many websites that you can use their APIs and get messages from their servers. Can't RoR do these things? If so, how can I implement HTTP + JSON communication between client and server without having a website page?
I checked several tutorials on RoR, they only told me how to build a website to present HTML files, but what I need is a mechanic to communicate between Server and Client.
Thank you.
Ruby on Rails is indeed designed for implementing a website or other HTTP-related things.
There are other frameworks out there for doing more generic server implementations. For example: ACE and Twisted.
Not sure I understand exactly what you're asking but it seems like you're looking for the Ruby sockets framework?
http://www.tutorialspoint.com/ruby/ruby_socket_programming.htm
Is a pretty straightforward description of how to do basic port listening/reacting.
I assume you are looking for an explanation of where cusom code goes when the server is mostly built from reusable pieces coming from a framework.
Forgetting about Rails for now, many older, simpler frameworks started life as a simple way to build objects to represent the incoming request and the outgoing response on the server side. From there, your custom code would be in making decisions about what to do with the request, and what to write to the response.
A more complex framework may include a templating engine, which makes it easier to put a complete response together by filling in the blanks (like a user name) in an HTML template, avoiding the need to manually craft the whole HTML response in the server code.
A lot of modern frameworks allow you to write applications like this, and many provide other pieces of functionality to make common coding patterns quicker and easier to write.

Is there a way to identify which web framework is used in a site?

Whenever I come across a cute website, I am always curious to know which web framework was used by its developers?
Being a novice in web development, a look at the page source doesn't give any clue.
Any way(s) to get this information? If possible, may be with a bit of Ruby magic, I can figure out things like: which is the most/least used framework for my favorite sites, audio/video heavy sites, etc.
Sometimes you can based on the URL patterns, or which scripts are included in the site ... but it's not a 100% predictor. You can write a site that completely masks the framework and simply delivers HTML/JS to the browser

Word 2007 Add-in

Okay this question is coming from someone who has never written any code beyond CSS, HTML and some php...
Pretty much I'm using Word all day and constantly needing to refer to just a couple of sites and resources on the web.
I would like to create a little add-in to go in the Ribbon in Word.
I have the full VB 2008 Proffesional edition.
Pretty much all I'd like it to do atm is have a new tab with a few easy to access buttons which link to specific URL's, although the ideal would be that pushing these links would also automatically log me into the websites at the same time.
Possible?
From this I'll hopefully be able to work off as I learn more...
Yes, it is possible, check VSTO.
You can definitly do this as a word add-in (the auto-login part may be tricky...).
Here are some ressources:
http://download.microsoft.com/download/a/6/1/a61dd5df-f52c-42d5-a95c-7a7fb7a6a466/ExtendedRibbon.wmv
http://msdn.microsoft.com/en-us/library/aa338198.aspx
However, there are easier ways to do this. I would rather create a toolbar in my Windows taskpane.

Resources