text

FOSSASIA - THE PERFECT TECHNOLOGY BLOG... We are Fossasia Technologies, we are trying to provide you all the latest information about Information Technology, Best Search Engine Optimisation (SEO) Technique. We are doing research on the daily basis to provide you all the best technique for SEO so that you can use them on your projects to get high ranks on the SERP(Search Engine Result Page). These techniques are the best techniques through which you can get organic traffic from all the search engines on your website. We are Fossasia Technologies providing latest news about IT Field.
Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts

Monday, 18 May 2015

How to get summary value from java program to php script?

How to get summary value from java program to php script? –
we get twine OperacinÄ—s sitemos from mysql controlling php script. But when we try to send this value again to php book and get other values we am removing null. we cruise problem competence be with php book that gets non-english characters. Am we blank something? Java code: @Override open vacant onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.single_course_layout); Intent in = getIntent(); courseName = in.getStringExtra(“fullname”); firstname = in.getStringExtra(“firstname”); lastname = in.getStringExtra(“lastname”); TextView tag = (TextView)findViewById(R.id.label); label.setText(courseName); String outline = null; TextView summaryContent = (TextView)findViewById(R.id.summary); ArrayList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(); nameValuePairs.add(new BasicNameValuePair(“cname”,””+courseName)); InputStream is = null; String outcome = null; try{ HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost(“********”); httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); HttpResponse response = httpclient.execute(httppost); HttpEntity entity = response.getEntity(); is = entity.getContent(); }catch(Exception e){ Log.e(“log_tag”, “Error in http tie “+e.toString()); } try{ BufferedReader reader = new BufferedReader(new InputStreamReader(is,”ISO-8859-10″),8); StringBuilder sb = new StringBuilder(); String line = null; while ((line = reader.readLine()) != null) { sb.append(line + “\n”); System.out.println(line); } is.close(); result=sb.toString(); }catch(Exception e){ Log.e(“log_tag”, “Error converting outcome “+e.toString()); } try{ JSONArray jArray = new JSONArray(result); for(int ii=0;ii<jArray.length();ii++){ JSONObject json_data = jArray.getJSONObject(ii); outline = json_data.getString(“summary”); } summaryContent.setText(summary); } catch(JSONException e){ Log.e(“log_tag”, “Error parsing information “+e.toString()); } }; PHP script: <?php mysql_connect(“localhost”,”***”,”*****”); mysql_select_db(“*******”); mysql_query(“SET NAMES utf8″); $fullname = mysql_real_escape_string($_REQUEST[‘cname’]); $q=mysql_query(“SELECT mdl_course.summary FROM mdl_course WHERE mdl_course.fullname = ‘$fullname'”); while($e=mysql_fetch_assoc($q)) $output[]=$e; print(json_encode($output)); mysql_close(); ?> Eddited This php formula works fine. we can see a indispensable output. But since a book above doesn’t work? <?php mysql_connect(“localhost”,”*******”,”*********”); mysql_select_db(“************”); $fullname = ‘OperacinÄ—s sistemos'; $q=mysql_query(“SELECT mdl_course.summary FROM mdl_course WHERE mdl_course.fullname = ‘$fullname'”); while($e=mysql_fetch_assoc($q)) $output[]=$e; print(json_encode($output)); mysql_close(); ?>
How to send utf-8_lithuanian_ci to php script? That’s unequivocally simple. utf-8_lithuanian_ci is a collation, so a impulse we have information with an method of that collation, it’s already finished – we wholly need to pass that data. Collation can wholly be receptive when sorting, so as a information is already sorted when we pass it, there is zero else we need to do. If we ask about a encoding, it can not be quite said. It’s common we use a UTF-8 encoding here (as a comparison is UTF-8 based), however, technically we can use any opposite character-encoding as good and as we have not specified that one, it stays imprecise. Additionally, a use of SET NAMES utf8 within PHP is not permitted and a use of a whole mysql progression is discouraged.
java php mysql encoding
Related
How to be a Programmer: A Short, Comprehensive, and Personal Summary
Debugging is a cornerstone of being a programmer. The initial definition of a noun to debug is to mislay errors, though a definition that unequivocally matters is to see into a …
How To Pass PHP Variable From One Page To Another Page | POST |GET …
Pass Variables from One Page to Another — PHP. Tutorial Outline : Passing PHP variables with $_POST; Passing PHP variables in links with $_GET; Passing PHP …
How to Send SMS using Java Program (full code sample …
You can use this giveaway Java illustration program to send SMS from your PC controlling GSM modem connected to your mechanism to your COM port. You also need to download …
How to Write Doc Comments for the Javadoc Tool
How to Write Doc Comments for a Javadoc Tool. Javadoc Home Page. This request describes a impression guide, add-on and settlement conventions we use in …
How to check if String() value is numeric (Beginning Java …
Hello, we have a conditions where we wish to countenance presumably a value upheld in as a String() is a numeric v. alpha/special bake value. The process
How to use ArrayList in Java – Java samples – Programming …
The ArrayList category extends AbstractList and implements a List interface. ArrayList supports enterprising arrays that can grow as needed. In Java, customary arrays are of a …
How to invoke Java web service in ASP.net using C# – …
In my project, we am in assign of origination a XNA diversion controlling visible studio. However, we wish to use some variables from another Java program to control a game.
url – How can I get query string values in JavaScript? – Stack …
Is there a plugin-less proceed of retrieving query twine valuesaround jQuery (or without)? If so, how? If not, is there a plugin that can do so?
C++ Programming HOW-TO – Internet FAQ Archives – Online …
1. Introduction (The latest chronicle of this request is during http://www.milkywaygalaxy.freeservers.com. You competence wish to check there for …

Sunday, 19 April 2015

Php Tutorials For Beginners


Php Tutorials For Beginners
PHP is the most widely used programming language on servers that power websites for the Internet. It is a scripting language, yet quite powerful with thousands upon thousands of built in functions. PHP is a fantastic alternative to other languages like active server pages, Java, or Ruby. When you’re first starting out with the language, it can seem a bit overwhelming to know where to begin. This great collection of php tutorials will get you going in the right direction when you’re first starting out.
  • http://vegibit.com/php

    vegibit-phpThis Php tutorial series covers the gamut and if you take the time to go through the entire series, you’ll be able to build simple dynamic websites by the time you finish. Learn about variables, data types, useful functions, flow control, HTTP handling, database interaction, and more!

  • http://php.net/manual/en/tutorial.php

    php-manual-tutorialIf you’re going to learn PHP, you might as well go right to the source, that is the official PHP documentation website. This particular tutorial is a perfect first step for the PHP beginner. In it, you’ll learn what you need to run PHP, creating your first PHP powered page, working with forms, and more.

  • http://php.about.com/od/learnphp/ss/phpbasics.htm

    php-learnphpThe beginners guide to programming in PHP found at about is a very solid introduction to the language, how it is used, and how you can learn it quickly. This 9 part series is perfect for the beginner learning PHP.

  • http://w3schools.com/php/

    w3schools-phpAlways a good resource for things web development related, W3 schools has some nice approaches to learning where you can “try it for yourself” or “run an example”. Despite more seasoned developers considering w3 schools a second rate site, they do serve a good purpose for beginner level skills.

  • http://tutorialspoint.com/php/

    tutorialspoint-phpTutorials point is a great site with the motto of, “Simply Easy Learning.” They take this approach to explain the nature of working with PHP as a beginner to get up to speed and build you base with PHP.

  • http://code.tutsplus.com/tutorials/the-best-way-to-learn-php–net-22287

    tutsplus-tutorials-the-best-way-to-learn-phpThe tutsplus brand from the fine folks at envato always create some first class content for learning just about anything you want. This article on the best way to learn PHP is no different. They also make a nice reference to the haters of PHP, and its best to disregard them.

  • http://codeproject.com/Articles/759094/Step-by-Step-PHP-Tutorials-for-Beginners-Creating

    codeproject-Step-by-Step-PHP-Tutorials-for-BeginnersCodeproject is another high quality site to help with your adventures in PHP. This article take you through creating a new program from scratch, with authentication, membership roles, and create read update delete functions.

  • http://lynda.com/PHP-training-tutorials/282-0.html

    lynda-PHP-training-tutorialsIn other breaking news, Lynda has just been sold to LinkedIn for 1.5 billion dollars. Way to go Lynda! In addition to their business prowess, Lynda provides some excellent resources for aspiring developers. They make note that indeed a full 80% of websites on the internet today make use of PHP. Lynda is a great resource for you to add to your learning.

  • http://codecademy.com/tracks/php

    codecademy-phpCodecademy once again makes the list as they are one of the best ways to learn with hands on exercises right in the browser. They’ll teach you to program in PHP the widespread programming language that is everywhere, even on huge sites like Facebook.

  • http://speckyboy.com/2013/05/14/php-tutorials-for-beginners/

    speckyboy-php-tutorials-for-beginnersSpeckyBoy is a solid website that provides some great tutorials for all aspects of web development. They note that PHP is easier to learn than languages like Java or .NET, so it makes a good starting point for beginners. If you’re a programming or PHP noob, this article is a good one for you.

  • http://devzone.zend.com/6/php-101-php-for-the-absolute-beginner/

    devzone-zend-php-101-php-for-the-absolute-beginnerZend has done more for PHP than anyone else. They provide a dedicated Zend server, Zend Studio, and professional level enterprise PHP training. Thankfully, they also provide a fantastic series titled PHP For The Absolute Beginner. This is another fantastic resource to add to our list.

  • http://w3resource.com/php/php-home.php

    w3resource-phpThe series at w3resource will take you through installation, basic variable types, data types, constants, operators, control statements, object oriented programming, forms, cookies, and more. The exercises are mostly geared towards the beginner.

  • http://webmonkey.com/2010/02/php_tutorial_for_beginners/

    webmonkey-php-tutorial-for-beginnersWebmonkey is another oldie but goodie from the fine folks over at Wired Magazine. Webmonkey notes that although simple, PHP is powerful and fits in perfectly with the even more basic language of the web, HTMl. Webmonkey’s PHP Tutorial For Beginners is a perfect addition to your collection.

  • https://css-tricks.com/php-for-beginners-building-your-first-simple-cms/

    css-tricks-php-for-beginnersYou would think a site that is called css tricks would be strictly front end only, but alas, that is not the case! Css tricks is one of the best web development sites on the internet, and as such they cover all kinds of topics, not just CSS. In this beginner level PHP tutorial, you’ll learn how to create a database, connect to a database, display a form, save form data to a database, and more.

  • https://www.codeofaninja.com/2011/12/php-and-mysql-crud-tutorial.html

    codeofaninja-phpFinally, we have the code of ninja – because who doesn’t want to be a Ninja?! In this article, you’ll learn everything a beginner needs to know to get up to speed with PHP.

Php Tutorials For Beginners Summary

That should be enough content to keep you going for some time at the beginner level. If you have the time and patience to go through all of them, you surely won’t be a beginner for too long.

Source : - vegibit

Wednesday, 1 April 2015

Zend And BCD Get A Little Closer For PHP

Zend Technologies and BCD have been working together for about three years to help IBM i shops adopt PHP for developing new applications. Under a new partnership agreement unveiled recently, Zend will be referring customers to BCD for custom PHP-on-IBM i development work. But that's not all the two vendors have up their respective sleeves.
After analyzing the existing relationship between Zend and BCD, executives with the companies realized that a regular reseller model was not going to cut it, says Jeff Lovette, vice president of global sales and marketing for Quadrant Software, which acquired BCD last year.
"What we realized is having the two big players in the IBM i PHP space come together is pretty powerful in terms of the offerings we can now give to our customers base and future customers," Lovette tells IT Jungle.
Under the expanded agreement, BCD will become the preferred provider for PHP development on the IBM i platform. While Zend is free to make other partnerships, it's clear that the companies view their relationship strategically.
"We picked BCD as a partner because they provide world-class IBM i Web application development services and support," says Zend president Stu Schmidt in a press release. "We see BCD as a key strategic partner who will help modernization efforts and PHP in general on IBM i grow and prosper while providing tremendous value to our IBM i clients."
The type of development work that BCD will provide runs the gamut. "It could be anything from just generating a small PHP application on the i, to a full out enterprise Web-based application that could be extended to handheld devices, to updating their website from an order-management perspective," Lovette says. "There's a slew of different things that we could do."
In addition to Zend offering BCD's professional services for PHP on IBM i development work, BCD plans to bundle Zend's flagship PHP runtime for IBM i, called Zend Server Enterprise, with WebSmart PHP, its flagship development tool for PHP on IBM i development. BCD is planning to make that announcement in the coming weeks after pricing has been nailed down, Quadrant CEO Steve Woodard tells IT Jungle.
While both BCD and Zend consider PHP on IBM i as a success story, adoption of the open source language onIBM's proprietary midrange box hasn't been without its bumps. BCD hopes that its services offerings, along with its WebSmart PHP development tool, will help smooth them over.
"We do see a learning curve, a technical gap," says Lovette, who joined Quadrant three years as part of its SoftBase acquisition. "Coming from RPG to PHP is a night-and-day type of approach. It's totally different from what they're used to."
BCD is aiming to close that technical gap with a combination of consulting services, training, and power tools. "If they can get a few applications out, or at least understand the basics of PHP, then our professional services can take care of the rest, if they're not willing to go out and hire a staff of PHP developers," Lovette says.
Alternatively, for those shops that are investing in PHP for the long term, the company offers its WebSmart PHP development tools. "These IBM i shops that are RPG shops--they're not going out and hiring 10 PHP developers to do this. They're trying to do this within house with their current development staff," Lovette says. "To convert an [RPG] programmer over to using PHP, they've got to have an IDE that's user friendly and helps them develop code in a matter that they're going to understand."
Besides referrals and product bundles, there is also some product integration work taking place between Zend's headquarters in Cupertino and BCD's home base in Chicago. The Z-Ray debug tool, which Zend says is basically like an "X-ray machine for your PHP code," will be available to BCD customers. "We're in the process of an integration between WebSmart PHP and Z-Ray," says Woodward, who works out of Quadrant's world headquarters in Boston.