May 18, 2012

How is a new web programming language written ?

Question by nothing_imp7: How is a new web programming language written ?
I’m wondering how programmers develop new web programming languages because I want to learn how everything begins from the start. Let’s say I’m planning to write a new language for the Web. How do I do this? Is there anyone who knows about the way web programming languages first appear ? I’m asking these questions because I’m particularly interested in the World Wide Web.

Best answer:

Answer by xxserenabobinaxx
You can’t write a new language without creating a new internet, which is fairly impossible for 1 person to do, but the way they started it in the beginning was HTML, for basic functions, CSS for the way everything looks, and binary code which tells the computer how to read it

What do you think? Answer below!

Web Programming and Design: Images and Thumbnails

Web Programming and Design: Images and Thumbnails

Let’s start with an example so you see where we’re going to with this article. Consider a listings type site; in this case, let’s think of a real estate website which lists properties. Each property has a picture. You have a page where you list all properties in a given neighborhood, about 20 properties per page. For each property, you display a smaller version of its picture (this is called a thumbnail), and a brief description of the property, so site visitors can click on the property they like to learn more about it. The problem is: this page takes really long to display in the browser.

There is a high probability that this problem is related to the images. You need to analyze how your site generates the thumbnails. In many scripts, the thumbnails are just the original pictures, but displayed in smaller width and height. If this is the case, then each picture takes too long to load. You should change this approach and generate real thumbnails of each picture. You also need to change your script to work with the images thumbnails, and not just the original big images.

There are different ways to generate the thumbnails:

1) Using a graphics program. You load the original image, and resize it to the thumbnail size. Then you save it with a different file name. For this approach to work, your script must let you upload the big image for each property, and also the thumbnail.

2) Your script can generate the thumbnails automatically when pictures are loaded, and save them on the server. You only need to upload the big picture. If your script is written in Php, for example, this can be accomplished by using Php image functions, which make use of the gd graphics library. These functions let you generate thumbnails in different image formats like gif, jpg and png.

3) Your script can generate the thumbnails on the fly and serve them directly to the browser. This will save storage space in the server, but requires a lot of server processing time. It is not recommended if you have many images, or if your site has many daily visits.

The important aspect to remember here is that you should not resize original images to show them as thumbnails, especially if you’re showing several of these images on the same page. It will not only slow the page load in the browser, but it will also use a lot of extra bandwidth you can save.

written By Sergio Roth

Using Php and Mysql to Develop a Cms

Using Php and Mysql to Develop a Cms

In this article I’ll try to describe how to develop a very simple Content Management System (CMS). I’ve chosen PHP as the server-side scripting language and MySQL as the database management system purely because I think they are fairly easy to use and they do the job very well.

I won’t spend any time describing CMSs, what they are, or why you should or should not use them as there are plenty of excellent articles around that describe them perfectly well. I’ll just explain one way of developing a CMS.

This CMS consists of a single web page (index.php) that can have its contents updated by use of a form (editPage.php). The contents entered via the form are stored in a database, and are accessed and displayed by the web page. Although this CMS is too simple to be of any real use, it could be used as the starting point for a real life CMS solution.

There are four files in this project:

cms.sql
editPage.php
updatePage.php
index.php

cms.sql
This file creates a database called cms, and creates a table in that database called page. It also loads some intial data into the table. You only need to use this file once.

editPage.php
This web page contains a simple form that can be used to enter (and edit) the contents displayed by index.php.

updatePage.php
This is the form handler – the script that processes the data (entered in editPage.php) and inserts it into the database table (page).

index.php
This is the web page that displays the data held in the database table.

cms.sql

1. CREATE DATABASE cms;
2. USE cms;
3. CREATE table page (
4. pageID integer auto_increment,
5. contents text,
6. primary key (pageID)
7. );
8. insert into page (pageID, contents) values (’1′, ‘dummy text’);

Line 1 creates a database called cms in the MySQL database management system.

Line 2 tells MySQL to use the database for the subsequent commands.

Line 3 creates a table in the database.

Line 4 creates a column called pageID, which will contain integers, and which will be automatically incremented as new records are added to the table. As we only have one web page (index.php) in our imaginary website, we will only have one record and therefore one integer: 1. If we added additional pages to the table, they would be automatically numbered (2, 3, 4, etc).

Line 5 creates a second column called contents, which will contain text. This is where the editable contents displayed by index.php will be stored.

Line 6 sets pageID as the primary key, which you can think of as a reference for the table. As we only have one table, which will contain only one record, we won’t make any use of the key. I’ve included it though because it’s good practice to do so.

Line 7 simply closes the bit of code that was started in line 3.

Line 8 inserts some intial data into the table: 1 as the first (and only) pageID, and ‘dummy text’ as the contents of the first record.

editPage.php

(Note that for display considerations, I’ve used square brackets ‘[' instead of angle brackets for tag names.)

1. [html]
2. [head]
3. [title]Really Simple CMS[/title]
4. [/head]
5. [body]
6. [h1]Really Simple CMS[/h1]
7. [?php
8. mysql_connect("localhost", "root", "password");
9. $result = @mysql_query("SELECT contents from cms.page");
10. while ($row = mysql_fetch_assoc($result)){
11. $contents = $row['contents']; // Do not change these to angle brackets
12. }
13. ?]
14. [form name="form1" method="post" action="updatePage.php"]
15. Enter page content:[br][textarea rows="10" cols="60" name="contents"][?php echo "$contents" ?][/textarea]
16. [input type="submit" name="Submit" value="Update Page"]
17. [/form]
18. [/body]
19. [/html]

Most of this file is fairly simple HTML that doesn’t need explaining. However, the following bits of code are probably worth discussing.

Lines 7 through to 13 contain PHP code to connect to the database and extract the contents of the web page.

Line 15 contains a tiny bit of PHP code to display the contents in the form’s textarea. This line shows how easy it is to integrate bits of PHP code into lines of HTML code.

Remember though that in order to use PHP code in an HTML page, the file has to have an extension of .php. If it does not, the PHP code will not be processed by the web server.

updatePage.php

1. [?php
2. $contents=$_REQUEST['contents']; // Do not change to angle brackets
3. mysql_connect(“localhost”, “root”, “password”);
4. $result = @mysql_query(“UPDATE cms.page SET contents=’$contents’”);
5. mysql_close();
6. ?]

This is the form handler, that’s to say, the script that processes the data entered into the form (in editPage.php).

Line 1 signifies the start of a PHP script.

Line 2 requests the contents that were posted from the form. We could have written
$contents=$_POST['contents']; instead if we had wanted to.

Line 3 connects to the MySQL database server, setting up the host name, which I’ve assumed to be localhost, the database user, which I’ve assumed to be root, and the password needed to connect to the database. Naturally, I have no idea what this would be for your system so I’ve just written the word password.

Line 4 updates the page table in the cms database with the new contents.

Line 5 closes the database connection.

Line 6 closes the PHP script.

index.php

1. [html]
2. [head]
3. [title]Home Page[/title]
4. [body]
5. [h1]Home Page[/h1]
6. [?php
7. mysql_connect("localhost", "root", "password");
8. $result = mysql_query("select contents from cms.page");
9. while ($row = mysql_fetch_assoc($result)){
10. $contents = $row['contents']; // Do not change to angle brackets
11. }
12. echo $contents;
13. ?]
14. [/body]
15. [/html]

This is the web page that displays the contents from the database.

Most of the lines in this web page are pretty straight forward and don’t need explaining. Lines 6 to 13 contain the PHP script that extracts the contents from the database and displays (echos) it in the browser.

Installing/Running the CMS

To use the CMS you need to copy the files onto your web server into the area allocated for web pages. Your web server needs to support PHP and MySQL; if it doesn’t, the CMS won’t work.

You also need to use the correct database connection names and passwords (those used in the mysql_connect lines in the PHP scripts).

Exactly how you run the cms.sql file to set up the database and database table will vary from web server to web server so it’s difficult to give precise instructions here. If you have a phpMyAdmin icon or something similar in your web servers control/administration panel you should be able to use that.

Once you’ve set up the database and table, you can simply browse to the editPage.php web page and update the database contents. You can then browse to the index.php page to view the updates.

Open Source Customization : PHP Web Development India PHP Web Programming and Ecommerce Website Design Company India gujarati hindi localization

Open Source Customization : PHP Web Development India PHP Web Programming and Ecommerce Website Design Company India gujarati hindi localization

Open source applications are a better way to implement solutions within short span of time, however open source solutions might not be well suited to each and every business needs. The team at Synergy Technology Services helps in open source customization of different products to suit your needs by creating/designing templates, adding custom modules or changing the core functionality in the product.

We help you by identifying, customizing and implementing the right open source product/tool for your requirement, considering the number of options that are available in the world of open source.

Our strength lies in extending Open Source Customization services on various products to suit our client’s requirment. Below is a list of few tools which we have implemented or customized.

Content Management Systems (CMS) Joomla Joomla! an award-winning Content Management System that helps building websites, portals to complex corporate applications. Drupal Drupal is a Content management platform, equipped with a powerful blend of features. Drupal supports a variety of websites ranging from personal weblogs to large community-driven websites. Zen Cart Zen Cart truly is the art of e-commerce, user-friendly, open source shopping cart software. An ecommerce web site design program being developed by group of like-minded shop owners, programmers, designers, and consultants that think ecommerce web design could be and should be done differently. PHP Nuke PHP-Nuke is a news automated system specially designed to be used in Intranets and Internet. The Administrator has total control of his web site, registered users, and he will have in the hand a powerful assembly of tools to maintain an active and 100% interactive web site using databases. Please contact us for more details.Visit Our URL : http://www.cranti.com

How to write a PHP coding to list out all files and directories as links to them?

Question by kr16kr: How to write a PHP coding to list out all files and directories as links to them?
How to write a PHP coding to list out all files and directories as links to them?

This is somewhat similar to some index pages. When new file or folder is added to the directory, HTML page should display the newly created file/folder together with previous ones after it is being refreshed. (prefer in alphabatical order)

How to achieve this sort of functionality in PHP? Please provide sample coding as well. (and any references)

Thanks.

Best answer:

Answer by Vladimir Kornea
// get array of all files and directories in the current directory (it is sorted alphabetically by default)
$dir_entries = scandir(dirname(__FILE__)); // for PHP 5.3+, use __DIR__ instead of dirname(__FILE__)

// split the array of files and directories into two arrays, one containing files and the other directories
$dir_files = array();
$dir_directories = array();
foreach($dir_entries as $dir_entry) {
    if(is_dir($dir_entry)) {
        array_push($dir_directories, $dir_entry);
    } else {
        array_push($dir_files, $dir_entry);
    }
}

// print directories
foreach($dir_directories as $dir_directory) {
    // don’t print current and parent directories
    if($dir_directory == ‘.’ or $dir_directory == ‘..’) {
        continue;
    }
    echo “” . htmlspecialchars($dir_directory) . “
\n”;
}

// print files
foreach($dir_files as $dir_file) {
    echo “” . htmlspecialchars($dir_file) . “
\n”;
}

Add your own answer in the comments!

PHP Web Development India PHP Web Programming and Ecommerce Website Design Company India gujarati hindi localization,CMS – Extended Definition :

PHP Web Development India PHP Web Programming and Ecommerce Website Design Company India gujarati hindi localization,CMS – Extended Definition :

CMS – Extended Definition :

Now-a-days CMS has become a debatable issue because you must agree with me that there are many technologies those can be used for Content Management.

E-Commerce Solutions are also a part to discuss but in the next article I am going to tell you some interesting things related with E-Commerce Solutions.

There are many issues that are related to the core definition of content management. We think a fully featured content management system should provide more and more of our expectations. Think of “content” as any object of information that is being sent, received, created, stored, or otherwise managed in some way. A good content management software package should provide a framework upon which to build the tools required to connect humans with this information.

A good CMS should include following elements respectively :

User management

Forms management

Authentication

Tools to help build any kind of content driven web interface

Index and search (well, James Robertson outlined this already)

Personalisation services, i.e. the ability to target content to individual users and groups

Starting points for purpose-specific content management applications – e.g. forums, surveys, shops, websites, intranet tools, extranet tools, information input and tracking, etc

On Our Website www.cranti.com all information about CMS, Website Development, E-Commerce Web Solutions etc.. are being provided.

Offshore PHP Web Development India PHP Programming VB Application Development India.Web development India PHP programmers hire ASP.net developers india Ecommerce application development India, Ecommerce Web Site Design, Custom Software Development, Social networking and portal site development Company cranti technologies, Ahmedabad, Gujarat, India.

For more Visit Our URL : http://www.cranti.com

Breaking the Fear: Why Even You Can Freelance Successfully

Breaking the Fear: Why Even You Can Freelance Successfully

First let me introduce myself. I’m Johnny and I’ve been a freelance web programmer for the better part of five years now. I won’t sit here and tell you that those five years have been a breeze. Truth is it has all been one big learning curve that I’m still climbing today. Plus I started from absolute zero knowledge of what I had to do to survive.

First, let me ask you a question. Is the work you do done primarily done on a computer?

If not, this article is probably not for you.

If it is then I can tell you that if you have a skill and do it well then finding freelance work and earning a decent income is easier than you think. The biggest obstacle in freelancing is actually you.

How is that? Well, you do need to be a hard worker and have a little mental toughness to succeed. By mental toughness I mean not giving up when times seem bad (it does happen). Often, lacking in just these two things is what dooms most new freelancers. These can’t be taught. You either possess them or learn to develop them on your own.

Once you learn the fundamentals of freelancing, though, you can be well on your way to starting out. The best part is that they aren’t complex. I’ll outline just the basics you need to get started freelancing through the internet.

First, Don’t quit your job just yet!

Many of those thinking of freelancing usually get stuck in the “still thinking about it” phase. Most of have jobs they may or may not like but earn a comfortable income. This almost always becomes the deciding part of whether to take the plunge or not.

The best way to get into freelancing is to try it out in addition to your job. That free time after your workday and weekends is plenty to working a part time freelancing gig. This way you can try freelancing virtually risk-free and still have an income to rely on. This is also the easiest way to tell if freelancing is the right fit for you or not.

This does have a major downside, though. You are giving up your free time and you will realize how valuable it is to you when your freelance work starts to eat it up. Therefore it is a major cost/benefit decision to weigh. There is always some sacrifice that has to be made when becoming a freelancer though.

The best option financially is to try it out in your spare time and see how it goes. It only costs that coveted free time. If you can afford to reduce your hours at your current employment and your employer is willing this may be a better option.

Where Do I Find Work?

One of the best places to immediately find freelance work is the freelance work exchange. These are websites bringing together freelancers and businesses looking to contract freelancers for a service. What they do is allow you to set up an account with your resume and search through a huge database of projects or job positions that you can apply for.

One major advantage of the FWE is that they offer many projects in a wide range of fields, but competition for projects is rather minimal. You still need to create a good resume and decent portfolio on any FWE to win these projects. Some small tricks, however, can simplify this and you’ll be working on projects in no time.

FWE’s usually require a membership fee which can range from to a month but it is a very worthwhile investment and you can earn your fees back from projects rather quickly. Two of the largest and most reputable FWE’s are Guru.com and Elance.com.

Professionalism and Hard Work

These will be your bread and butter in freelancing. The only way to grow as a freelancer is through your reputation and knowledge. That means you must do the following:

1) Do your job to the best of your ability and meet all deadlines.

2) Do not become complacent in what you do. Take on projects/positions that challenge your skills and force you to learn while you are doing them. The key, though, is to not to get in over your head. Know your limits, but stretch them a bit.

3) Always be in communication with your clients/employers. Never leave them in the dark on anything. If you make a mistake, admit it and apologize, fix it and move on. This does happen on occasion especially when first starting out.

Always Be Looking

You may hear that all freelancers suffer through slow periods, which is true to an extent. A big mistake is to be happy and comfortable working on a project only to find at the end of it there is not another one to continue on.

You must always be looking for future work, even if you already have it. Time should be set aside on a daily or weekly basis to look for projects to work on. Keeping a steady stream of work keeps that bank account happy in the end.

. . .

Of course there are many other tips and pointers to be listed but if you do the basics above, your freelance career will take off before you even know it. It will be a learning process, not only with the concepts of freelancing, but in your own career field as well. In a relatively short time you, however, can become an independent professional earning the income you want.

PHP Web Development India PHP Web Programming and Ecommerce Website Design Company India gujarati hindi localization,CMS – Extended Definition :

PHP Web Development India PHP Web Programming and Ecommerce Website Design Company India gujarati hindi localization,CMS – Extended Definition :

CMS – Extended Definition :

Now-a-days CMS has become a debatable issue because you must agree with me that there are many technologies those can be used for Content Management.

E-Commerce Solutions are also a part to discuss but in the next article I am going to tell you some interesting things related with E-Commerce Solutions.

There are many issues that are related to the core definition of content management. We think a fully featured content management system should provide more and more of our expectations. Think of “content” as any object of information that is being sent, received, created, stored, or otherwise managed in some way. A good content management software package should provide a framework upon which to build the tools required to connect humans with this information.

A good CMS should include following elements respectively :

User management

Forms management

Authentication

Tools to help build any kind of content driven web interface

Index and search (well, James Robertson outlined this already)

Personalisation services, i.e. the ability to target content to individual users and groups

Starting points for purpose-specific content management applications – e.g. forums, surveys, shops, websites, intranet tools, extranet tools, information input and tracking, etc

On Our Website www.cranti.com all information about CMS, Website Development, E-Commerce Web Solutions etc.. are being provided.

Offshore PHP Web Development India PHP Programming VB Application Development India.Web development India PHP programmers hire ASP.net developers india Ecommerce application development India, Ecommerce Web Site Design, Custom Software Development, Social networking and portal site development Company cranti technologies, Ahmedabad, Gujarat, India.

For more Visit Our URL : http://www.cranti.com

Is Hiring a Freelancer Right for Your Business? (three Reasons Say “yes”!)

Is Hiring a Freelancer Right for Your Business? (three Reasons Say “yes”!)

Who are they?

Freelancers work in almost every industry: construction, translation, finance, management, sales, design and many, many more. They’re your neighbor, your friend, the nice lady down the street, the man in the coffee shop always typing away on a computer. Many surveys indicate that most freelancers are male (according to Labor Statistics, by 2005 about 65% of the freelance population) and over thirty years old.
While many independent contractors work from home, just as many go to physical locations to work, either a private office or wherever the hiring company needs them. They are professionals just like you and I; a large percentage received on the job training or went to college to do what they do. Several hold degrees. Many stayed in typical work environments for over seven years before working for themselves.
In short, freelancers are business professionals who chose to, not work at home, but work for themselves. They are as trained and skilled as an employee would be, if not more so in some instances, and serious about their business.

Is hiring a freelancer right for your business?

Many business owners think hiring a freelancer just won’t work for their particular company. More than a few really do believe that independent contractors are a waste of time, money and resources. However, if this were so, if that basis of thought were true, would there really be ten million freelancers running around? Would anyone who performed contractual jobs even have a business? For that matter, why are freelancers so in demand?

Reason #1: Cost

Monetary considerations are usually in the forefront of any business owner’s mind. Can we afford this? What are the initial costs? What’s the ROI? These thoughts come to mind in every area of business, including hiring a freelancer, but you might find yourself pleasantly surprised.
How much a particular freelancer will cost you depends on several factors: length of the project, difficulty of the project, location of the freelancer and level of technology are just a few. For instance, a freelance web designer may charge an hour or 00 for a project no matter how much time they put in. As in any hiring situation, you’ll find those that cost less and those that cost more.
However, the difference between employees and contracted individuals is that the individuals can afford to charge less, and often do. Freelancers usually don’t have to worry about transportation, gas, or clothing (for work) costs. Business owners will not have to pay employee benefits or wage taxes.
In addition, freelancers come from all over the world. Depending on your monetary needs, you can use offshore outsourcing (contractors from out-of-country), national outsourcing or homesourcing (contractors are in your locality).

Reason #2: No direct employees

It isn’t normal practice that a business is built with nothing but freelancers, but it does happen. More than a few Internet-based businesses use strictly freelancers, either on a by-project basis or as a loose-knit company.
One of the main reasons is the lack of direct employees. There are no W-2s to worry about. If a contractor doesn’t perform as expected, there are no hire/fire policies to follow; you just don’t use them again. The working “atmosphere” tends to be more relaxed, while still maintaining professionalism. You are not their boss; you’re their client. It does make a difference.
In addition, there’s no need to hire office space; the Internet is the office space. With collaborative software, VoIP capabilities, email, messenger and many other online programs, it’s extremely easy to create a working atmosphere without the need to be physically there. There are no office politics and no personal dynamics between employees to deal with; the only “requirement” is that they get along with you.

Reason #3: Broad spectrum of specializations

There is, quite literally, a freelancer out there to meet any need. Freelance web designers who offer SEO/SEM2 as well; copywriters who also provide logos; virtual assistants who perform sales work – the list goes on.
Specialization is an excellent tool. Someone who knows web design forwards, backwards and inside out is an excellent resource; if you have all your content, this is the person to hire. If you have the design but need copy, a specialized copywriter will fit your needs. However, if you need website design, copywriting and SEO/SEM, you need a company – or a freelancer who has decided to learn as much as they can of fields related to their chosen area.
So, are freelancers right for you? Are they right for your business? The only person who can answer that is you. However, if you’re looking for ways to tighten the budget, narrow down the issues and broaden that bottom line, look into freelancing. You never know, you may just end up hiring that nice lady down the street.

1 http://www.bls.gov/opub/ted/2005/jul/wk4/art05.htm
2 Search engine optimization/search engine marketing

Written by WALSAQ.com. Copyright 2009 All rights reserved. WALSAQ’s Business and Freelance Series is independent of their services and free to all. If you’d like to place a bid on a freelancer or increase your professional career, browse through our high-paying projects

What web programming languages should i learn?

Question by camaross427AKA HEAVY METAL FAN: What web programming languages should i learn?
I am learning web programming, so far i am learning html,xhtml, css, java script….

What I want to know is what other web programming languages should i learn?

Best answer:

Answer by wefixcomputers.net
You’ll want to learn either php or asp. These are both good for creating dynamic content and linking to databases.

Give your answer to this question below!