FTP Chdir Function in PHP

karthikeya Boyini
Updated on 30-Jul-2019 22:30:24

195 Views

The ftp_chdir() function changes the current directory on the FTP server.Syntaxftp_chdir(con, dir)Parameterscon − The FTP connectiondir − The directory to change toReturnThe ftp_chdir() function returns TRUE on success or FALSE on failure.ExampleThe following is an example wherein the current directory is changed −

Convert Output of MySQL Query to UTF8

Arjun Thakur
Updated on 30-Jul-2019 22:30:24

3K+ Views

You need to use CAST() or CONVERT() function to convert output of MySQL query to UTF8. Here, I am using MySQL version 8.0.12. Let us first check the version:mysql> select version(); +-----------+ | version() | +-----------+ | 8.0.12 | +-----------+ 1 row in set (0.00 sec)In this if you use utf8 then you will get warning of aliases because it has utf8mb4. Therefore, you can avoid the warning by placing utf8mb4.Note: Never use UTF8. For current versions, use UTF8MB4Here is the syntax to convert output of MySQL query to UTF8:SELECT yourColumnName1, convert(yourColumnName2 USING utf8) as anyVariableName FROM ... Read More

Echo Print Statements While Executing an SQL Script

Vrundesha Joshi
Updated on 30-Jul-2019 22:30:24

3K+ Views

To perform echo print statements while executing SQL scripts, use the following syntax.The syntax is as follows −SELECT ‘anyStringValue as’ ‘;The query is as follows −mysql> select 'This is a SQL Script' AS' ';The following is the output −+----------------------+ | | +----------------------+ | This is a SQL Script | +----------------------+ 1 row in set, 1 warning (0.00 sec)You can add dynamic data to your status like insert, update and delete with the help of concat() function. The query is ... Read More

Why Companies Focus on Customer Satisfaction Scores

Leela
Updated on 30-Jul-2019 22:30:24

152 Views

Every business will have stiff competition from already established businesses and brands. Nowadays whether it is simple chips packet or a luxury car, people have become smart enough to go through the reviews and customer ratings before they buy. People will judge by hearing the name of the brand and make decisions based on other customer's reviews. These trends are seen more in online eCommerce sites.It's clear that customer satisfaction metrics are essential for any business. They impact the decisions of current and potential customers. This is the reason, you should never ignore the importance of customer satisfaction. Online surveys ... Read More

Angle of Banking Explained

Vandana Rao
Updated on 30-Jul-2019 22:30:24

228 Views

The occurrence of lifting the outer border of the curved road over the inner border is to give necessary combining force to the vehicles to take a guarded turn and the curved road is termed as Banking of Roads. When a vehicle prevails around a curved road, it needs some combining force.While moving around the curve, the wheels of the vehicle have a propensity to leave the curved path and recover the straight line path. Force of friction between wheels and the roads goes against this propensity of the wheels. This force of friction accordingly acts towards the middle of ... Read More

Practice Verbal Ability for SSC Bank PO Examination

Ridhi Arora
Updated on 30-Jul-2019 22:30:24

109 Views

Bank PO, SSC examinations are some of the popular competitive examinations taken by aspirants who wish to step into a good government job. The syllabus includes questions on Quantitative Aptitude, Logical Reasoning, Verbal Ability, and General Knowledge.How to Prepare for Verbal Ability?Go through the complete syllabus of the particular exam you are planning to take.Purchase verbal ability books available in the market. You may also get it from someone, or get second-hand books from the market if you do not wish to buy new copies.Practice each and every concept from these books, and practice those concepts which you find difficult ... Read More

Adjust Display Settings of MySQL Command Line

Rishi Rathor
Updated on 30-Jul-2019 22:30:24

1K+ Views

To adjust display settings of MySQL command line, use the /G at the end of MySQL queries instead of semicolon(;).The syntax is as follows −SELECT *FROM yourTableName \GThe above syntax adjusts the display settings. Here we will display records in row format from our sample ‘studenttable’ table which we created using CREATE −mysql> create table StudentTable    −> (    −> Id int,    −> Name varchar(100)    −> ); Query OK, 0 rows affected (0.65 sec)To get all the records −mysql> select *from StudentTable;The following displays the records −+------+---------+ | Id   | Name    | +------+---------+ | ... Read More

Match One Character in MySQL

George John
Updated on 30-Jul-2019 22:30:24

192 Views

To match only one character in MySQL, you can use underscore(_) in place of %. The syntax is as follows:SELECT *FROM yourTableName WHERE yourColumnName LIKE ‘yourString_’;To understand the above syntax, let us create a table. The query to create a table is as follows:mysql> create table OneCharactermatchDemo    -> (    -> Id int NOT NULL AUTO_INCREMENT,    -> PassoutYear year,    -> PRIMARY KEY(Id)    -> ); Query OK, 0 rows affected (0.76 sec)Insert some records in the table using insert command. The query is as follows:mysql> insert into OneCharactermatchDemo(PassoutYear) values('2008'); Query OK, 1 row affected (0.14 sec) mysql> ... Read More

Python Mapping Types

George John
Updated on 30-Jul-2019 22:30:23

16K+ Views

The mapping objects are used to map hash table values to arbitrary objects. In python there is mapping type called dictionary. It is mutable. The keys of the dictionary are arbitrary. As the value, we can use different kind of elements like lists, integers or any other mutable type objects. Some dictionary related methods and operations are − Method len(d) The len() method returns the number of elements in the dictionary. Operation d[k] It will return the item of d with the key ‘k’. It may raise KeyError if the key is not mapped. Method iter(d) This method will ... Read More

Send Email Using Java Program

Rishi Raj
Updated on 30-Jul-2019 22:30:23

947 Views

To send an e-mail using your Java Application is simple enough but to start with you should have JavaMail API and Java Activation Framework (JAF) installed on your machine. You can download latest version of JavaMail (Version 1.2) from Java's standard website. You can download latest version of JAF (Version 1.1.1) from Java's standard website. Download and unzip these files, in the newly created top level directories you will find a number of jar files for both the applications. You need to add mail.jar and activation.jar files in your CLASSPATH. Send a Simple E-mail Here is ... Read More

Advertisements