answersLogoWhite

0

PHP Programming

Questions about the PHP programming language; How and when to use it, implementing techniques, debugging and handling errors, and general questions about PHP itself. For questions about software made with PHP, that do not deal with the manipulating, reading, or learning about the actual code, see the Computer Software category.

845 Questions

PHP can be run on Microsoft Windows IIS(Internet Information Server)?

IIS is a Windows-only application, however it's important to note that running PHP on IIS is not the same as running PHP on Windows. XAMPP or WampServer are two choices for running PHP on Windows. However, these two options provide you with some more options. They use MySQL or MariaDB as a database server and run Apache as a web server.

To learn more about data science please visit- Learnbay.co

How can you create a time sheet system using PHP?

To manage all internal database CRUD (Create, Remove, Update, and Delete) activities, we'll use a datagrid component from phpGrid.

Install phpGrid.

  1. The phpGrid download file should be unzipped.

  2. The phpGrid folder should be placed in the phpGrid folder.

  3. Configure the conf. php file to complete the installation.

To learn more about data science please visit- Learnbay.co

Is PHP platform independent?

It's adaptable: One of PHP's biggest advantages is that it's platform agnostic, meaning it can run on Mac OS, Windows, Linux, and most web browsers. It also works with all major web servers, making it simple to deploy on a variety of systems and platforms at a low cost.

To learn more about data science please visit- Learnbay.co

How do you run a MySQL query involving many fields in PHP?

A mysql query can be run with the mysql_query(); function. Unfortunately, php allows you to run a maximum of one query each time.

A possibility is to write all your queries to an array();, and then have them applied in a foreach(); loop.

In PHP you can use both single quotes ( ' ' ) and double quotes ( ) for strings?

You can use single quotes

$variable = 'string';

You can use double quotes

$variable = "string";

You can use the Heredoc method

$variable = <<<EOT

Very

Long

String

EOT;

And you can use the Nowdoc method (after PHP 5.3.0)

$variable = <<<'EOT'

Very

Long

String

EOT;

What does PHP stand for?

PHP, or Hypertext Preprocessor, is a programming language that allows for the user to have more control over the HTML that makes up a web page. PHP allows for many more functions than HTML does, such as DIV tables, login functions, and graphical displays. PHP was originally known as Personal Home Page, which describes the purpose of the language. PHP works alongside HTML within the same document which allows for users to organize and display information within a web browser much easier than other programming languages. PHP is easy to learn and allows for users to make a web page look and behave exactly as they want it to.

How do you add a comment in PHP?

< ?php

// This is an example of comment in PHP

/*

This is another example of comment in PHP

and we can write comments in multiple lines using this method

*/

? >

How many people will you get or how can you get people to come to your site when you open a PHP Hosting site?

PHP hosting is one of the best ways to set up a website with the appropriate levels of security and content. However, this setup doesn't guarantee the number of hits or visitors that you will get. That is determined by marketing and content.

How can you extract text from an image in PHP?

By using Bitwar Text Scanner.

Step 1: Download Bitwar Text Scanner from our official website and install it.

Step 2: Open the Screenshot file and Bitwar Text Scanner at the same time.

Step 3: Choose Screenshot (or import the images in PHP) OCR tool and Draw the textbox to capture the text from the screenshot image.

Step 4: After finish drawing the textbox, the OCR tool will Convert the screenshot to text format.

Step 5: Choose Copy to extract the text or Compare to compare the OCR results with the screenshot.

Where can I find ready made scripts in PHP?

This is marketplace for ready made PHP Scripts: phpscriptsonline dot com

They are offering 450+ ready made PHP Scripts including with 100% source code + reselling rights...

No encryption..

Use it for Multi domain

What is the correct way to add comment in PHP?

// For single line comments

/*

Your comments here

*/

For multi-line comments

What are limitations of PHP?

PHP is used with HTML to interact with the web server to process forms, access and manipulate

What are the correct and the most two common way to start and finish a PHP block of code?

`<?php` then a `?>` and also `<?=` and `?>` are the only compliant methods now that PHP 7 is out.

What do I need for joomla hosting?

The first thing you'll need is linux or unix based web hosting. Once that's set up, you'll want to ensure that apache is installed along with the php extensions to it. Afterward, you should be able to simply point a browser to the joomla files on your server and the associated installer will load.

Does anyone offer PHP Programming services for free?

Most online programming services will charge for PHP programming service. However, there are many free PHP programming tutorials available.

What means PHP?

PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.

What lines of code make up a function in php?

A user defined function in PHP is set up of several key components.

First, the function keyword; this lets PHP know that you're setting up a function. Then the function name, which lets you later use your function. After that, the parametersthe function requires to operate. Finally, just the bracketssurrounding your function, setting it apart from the rest of your code.

function nameHere ($parameterOne, $parameterTwo) {

functionCodeHere();

}

How do you create an array in PHP?

The recommended function (a construct, really, but works as a function) would be array("value", "value"), which is much more backwards compatible. However the short syntax of ["value", "value"] is also available and frequently used, as it has been for some time.

1 121 12421 1248421 print these in php programming?

Assuming you just want those integers printed you can do so like this: <?php echo 1; echo 121; echo 12421; echo 1248421; ?>

However, if you're looking for how to print these in some sort of power of 2 in terms of a homework assignment, you can pretty easily find some hints by simple searching the significance of those numbers.

What are the four scalar types of PHP with examples?

  • Boolean: true or false - $foo = true;
  • Integer: 0 or 1 - $foo = 7;
  • Float (Double): 0.5 or 6.2 - $foo = 5.5;
  • String: "bar" or "foo" - $foo = "bar";