Archive for the ‘php programming’ Category

How do I make words come out vertically (sideways) through php programming on my printer?

The barcode comes out perfectly fine, but the words do not. I want it to turn a 180 degree angle. Thank you!

I think the only way to do this would be to convert the text to a graphic and then rotate the graphic. To output text, look for commands like:

ImageTTFText($image, 16, 0, $width/3 + 50, $y - 20, $black, $font, ‘Poll Results’);

See resource link below for for a tutorial.

Synapse Communications: a Name That Synonyms Value

How to Make HTML Forms for Your Website

Your website visitors often want to contact you. For support, to inquire about a product, for link requests or even just to say hello. Many website owners just list their email address, so visitors can write to them. This way of posting contact details is very common, but it has a major drawback: spamers harvest websites searching for email addresses. Once your email gets into their list, you start receiving unwanted ads, various shady discount offers and even viruses.
The safest way to allow your visitors to contact you is to include a web form on your website. Doing this is not that complicated, but it requires a certain degree of HTML knowledge and access to your website source.
Below is a small HTML form that includes only 3 fields: Name, Email and Message.
<form method=”post” action=”mailto:youremailaddress@domain.com”> Name: <input type=”text” size=”10″ maxlength=”40″ name=”name”> <br> Email: <input type=”email” size=”10″ maxlength=”10″ name=”email”> <br> Message: <textarea rows=”4″ cols=”20″ name=”message”></textarea> <input type=”submit” value=”Send message”/> </form>
This form uses “mailto” function to send the filled data to the specified email address. Let’s break this HTML form into pieces, line by line: 1. <form method=”post” action=”mailto:youremailaddress@domain.com”> This line includes the beginning of the <form> tag and the email address that will receive the message. The only thing you should modify is the email.
2. Name: <input type=”text” size=”10″ maxlength=”40″ name=”name”> <br>
This line contains the first field from your contact form: an edit box, “name”, that users will use to write their name and a label describing that field. You might also have noticed some properties of the edit box: size currently 10 and the maximum allowed length that is 40. “<br>” is the HTML tag for new line.
3. Email: <input type=”email” size=”10″ maxlength=”10″ name=”email”> <br>
Similar with the line above, it is an edit box for your visitor’s email address. This field is very important because you will use this information to contact your visitor. You can also modify the size and maxlength property of this edit box.
4. Message: <textarea rows=”4″ cols=”20″ name=”message”></textarea>
This field will contain the message body. It’s not an edit box anymore, because we needed more space. This HTML field is named <textarea>. You can modify its height and width by changing the values for “cols” and “rows” properties.
5. <input type=”submit” value=”Send message”/>
This is the button visitors will press to send you the message. You can change the “value” property from “send message” to anything you want.
Don’t forget to close the form tag by adding </form> at the end of your HTML email form script.
This method of building a HTML form for your website has a minor drawback: your email address is still visible. It still can be harvested. To hide it, you would need more programming skills, to include the mailto command into a php function.
But don’t worry, there is another way. A simpler and faster way to have a HTML form, and it doesn’t require any programing skills at all. It works even if your server doesn’t support php, and you can benefit from powerful features like receiving attachments, multiple recipients, field validation, message history and anti-spam defence. You just use an online wizard to generate your HTML web form, and then copy-paste the code on your website.

Ted Peterson
http://www.articlesbase.com/web-design-articles/how-to-make-html-forms-for-your-website-710339.html

Your Own Online Auction Site by Using Auction Software!

hat Online Auction Software Can Do For You - Auction

No matter how talented you are, if you host your craft sale in your garage or your basement, you can be sure no one is going to be crossing state lines to come buy your stuff. In fact, your customers are likely to be limited to family, for more details visit to www.software-designers-pro.com friends and the people who live in and around your neighborhood. Online auction software is innovative software that increases your online exposure tremendously and enhances your profit making capacity.

Using software to construct your own online auction site is better than using an online store, offering you flexibility through various available formats. The software provides interesting features that both buyers and sellers can make use of. Of course, there are also sites such online auction sites as eBay, for more details visit to www.text2speech-converter.com which you can make use of if you do not want to host your own online auction site. Online auction sites as well as online stores are equally effective for increasing your exposure to potential buyers but auction sites do have an edge when it comes to making more money.

Because of the inherent nature of auctions, where the goods are sold to the highest bidder, you are more likely to make a higher profit if you launch an online auction site rather than an online store that has fixed sale prices. There is several different online auction software available.

Most online auction software packages utilize PHP or ASP programming formats, which help optimize your auction site. If you do not have knowledge in the area of programming, then it is better that you use PHP software as the software company can more easily provide the support you will need. Users with higher technical abilities can choose whichever one they prefer.

You don’t need to worry too much about technical details to use the PHP format. This online auction software comes with detailed instructions that are simple to read and understand.

Auction software provides sellers with several useful features including accounting, easy management, tracking, aesthetics, and security. The more attractive your site, the more customers you are likely to attract.

Currently the most popular online auction service out there, eBay offers probably the largest database of products to bid on. Leading the bidding industry ever since they started, they are today not only the most secure website that they also have a rating system to increase trust among buyers and merchants. It’s a good idea to always take a look at eBay if you want to create an online auction site for your own items. You can even put your item up for bids on eBay if you have an account.

Doing a garage sale may be simple and by selling a few old items you could make a huge amount of cash in a day. So why not spend the time to make it look more professional, put it online with the help of auction software and have the possibility to make that huge amount of cash every day? If you think about it this is like opening your own retail store but you don’t have to pay anyone for the items and you make 100% profit on everything you sell.

Akshay Sharma
http://www.articlesbase.com/software-articles/your-own-online-auction-site-by-using-auction-software-686245.html

Wordpress Blog Design

WordPress blog software is presently the most popular blog authoring Web application and arguably the most prolific. Being open source, the coding is open for developers and hackers to improve and customize for their own needs. When you hire us, you pay for the Wordpress design and not the application. Unless you need custom php programming, you pay nothing for the software. WordPress is free though the purpose of “open source” is collaboration and supporting the programmer developers and its community is advised.

Like the Internet itself, blogs are another example of the collaborative nature of the Web. Basically speaking, an article (POST) is written which starts a threaded discussion (COMMENTS) that is usually written in response to the original article. The topic can be anything that fancies the author, who is usually the editor and Administrator of the blog with full permissions to assign different levels of control to various users. The permissions based framework allows Editors, Authors, Contributors and Subscribers to work in collaboration with each in order to maintain an active WordPress blog.

Written in PHP, it’s dynamically driven using MySQL as its primary database. The blog’s content is stored in a database and retrieved by the PHP scripts to display as required on the Web pages. There is no special programming knowledge needed to add new content. A WYSIWYG editor is built into the administrative interface that resembles a word processor, so you can style the text without HTML experience.

The User Interface Design of WordPress can be designed to resemble a traditional Website without any clue to the visitor that beneath the beautiful design is a powerful Web application. Recent Wordpress designs that were created for our clientele include the following:

bed and breakfast web design

bookstore web design

communication company website

community portal design

David Radovanovic
http://www.articlesbase.com/blogging-articles/wordpress-blog-design-706256.html

Interview With Barry Mcmillen

Php Has to be the Easiest Server Side Language in the World

To Create Dynamic Pages Choose an Advance Programming Language Likes Php

Website development needs to incorporate a suitable Programming Language like PHP for the excellent boost that it gives to performance. PHP is one of the most useful scripting languages regularly used in top operating systems like Linux, UNIX and Windows. PHP gives the multiple benefits of object oriented programming (OOPs), command line interface and desktop applications – some of the essential features that website developers look for in a scripting language. Website development also needs to widen the choice of programmers as much as possible. Here also PHP scores a point as the most compatible language for an array of databases such as Oracle, SQL, My SQL and ODBC. It is also available for embedding HTML coding which fulfills the requirements of dynamic website development. PHP has become an essential tool for most developers and designers who prefer it chiefly because of its flexibility and usefulness.

Another important feature of PHP is that it is suitable for big ventures like customizing CRM solutions, community sites, chatting forums and E-Commerce portals. No other programming language seems as affordable and easily controllable as PHP when it comes to ambitious website development with a well defined business goal.

To enlist a few uses of PHP that are integral parts of web development, we have to mention the following- creation of HTML web forms, compatibility with databases, monitoring of sessions and cookies to track visitors to a site, provision for up-to-date file management , creation of XML for E-Commerce sites

There are some points to be noted while using PHP as a programming language-

  • PHP gives the fullest opportunity to monitor a website including access to files, password and Ethernet connections. It makes the idea of participatory business model successful in the web arena.

  • HTML can be displayed through this system with the option of editing web form that may seem to be essential in course of time.

  • PHP gives swift access to database through an inbuilt checking system and provides essential link.

Use of PHP ensures security for content and application which are monitored by the server rather than any other system. This also places the procurement of contents and applications on the fast track and minimizes difficulties faced by the users due to browser problems.

Website development is a fine tuned process where the recommended features of a website have to be incorporated as accurately as possible. PHP expands the horizons for programmers and developers and helps them build websites according to demand.

Neeraj Arora
http://www.articlesbase.com/web-design-articles/to-create-dynamic-pages-choose-an-advance-programming-language-likes-php-689292.html

Why and when would someone use OOP rather than procedural programming in PHP?

I know some very basic PHP OOP (PHP: Hypertext Preprocessor object-oriented programming). However, I’m not sure why or when someone would ever really want to use it. It seems time consuming and in general unnecessary. Please give me examples on when one method would be better over the other. But mainly, why would you really ever want to use OOP in PHP?

The usual arguments for OOP vs. procedural apply. That is, procedural processing tends to offer few opportunities for code-recycling; the programs are frequently monolithic, top-down instruction-sets that are harder to maintain and evolve over time. Objects tend to provide small, manageable blocks of code that address small sets of specific concerns that can be reused. I prefer OOP in general, since I always have an eye to code reuse. However, size and complexity come into play, when making the decision as to which to apply for a particular project. When building an HTML page, the PHP most often looks very procedural in its most general structure, since the composition of a web-page has a very top-down order, i.e., head, head-child-elements, body, body-child-elements, etc. A simple, one-off page may be unworthy the heavier-weight engineering principles of OOP - where the line is drawn is a fuzzy issue. I note that the PHP-based CMS, Concrete5, that my shop employs widely on behalf of clients is a purely OOP implementation…very appropriately so, given the complexity of the app. There’s a good "contrast and compare" article at:

http://devzone.zend.com/article/1236

That said, there is another approach you didn’t consider explicitly in the statement of your question, namely Functional Programming (FP). FP provides the same potential for code reuse as OOP. It allows you to develop fairly small procedural-style blocks that rely on functions to perform the actual processing. If you really drink the FP kool-aid, you can make your top-level, "procedural" blocks be functions as well. So, even when I elect a more procedural model, I implement more of the processing in functions in order to offer recyclability…most often, I simply reuse existing functions, plugging them into top-level, director/controller procedural code. My shop mostly develops new apps using the J(2)EE Design Patterns (in PHP) for the web aspects and the GoF Design Patterns for the base operations. All of these are implemented in a mix of procedural and functional approaches. We write some pretty darned big apps this way, and still have a huge amount savings from recycled code; in fact, our entire project template is static and completely reusable. Individual "procedure" can vary at the level of the component-include or the functions employed. Joel has an amusing OOP vs. FP article at:

http://www.joelonsoftware.com/items/2006/08/01.html

I see potential and competing values in each model, depending on the nature of the individual project and the need and desire to avoid reinventing the wheel. As with most modern languages, the programming paradigm is up to the developer; each language supports all programming models, even when there may be a generally-preferred approach. Don’t let anyone else’s preferences lock you into a single choice of practices. Also, don’t neglect learning new models just ‘cuz you already know one…learn and grow, so that you have more options and CAN pick the right tool for the job.

What is the best software for web designing, web mock up and php programming?

I was looking into Adobe Fireworks CS4, Adobe Photoshop CS4, and Adobe Dreamweaver CS4.

Might as well get the adobe cs4 suite they have several packages and its cheaper then buying separate and cheaper to upgrade later. Best web development program as far as what I think.