PHP is product of which company?
PHP is open-source software, i.e. not strictly a product of any company. However, it depends greatly upon the open-source Zend Engine II. Development of both is largely driven by Zend Technologies Ltd., the enterprise of Andi Gutmans and Zeev Suraski who produced the original Zend Engine while overhauling PHP in 1999.
How can I read from file list of data?
Here is a simple example:
// contacts.txt
John,Smith,555-1234
Jane,Doe,555-6442
// reader.php
<?php
// file function turns each line in the file into a row in an array
$file = file('/path/to/contacts.txt');
foreach($file as $line){
$contact = explode(', ', $line);
print_r($contact);
}
?>
How do you insertupdate and delete queries in a one form by using php?
It is not possible for an html form to do 4 simultaneous process. What you need to do is create 4 html forms for insert, update, delete, show data on same php page. Use if...elseif....else statements to load alternative forms on the same page and process them according to user input. User doesn't know there are 4 separate forms. Use <?php $_SERVER['PHP_SELF']; ?> to process form & output other forms on same page.
Difference between a word proccessor and a text editor?
A word processor allows you greater control over the formatting of text (i.e. Font face, color, size, margins, tables, et. al). A text editor typically does not contain such features only allowing you to edit the text without any control over the formatting. For example, the Notepad application that comes with any Windows OS is a text editor, while WordPad is a Word Processor.
How do you check the data given by the user with database values using PHP from MySQL database?
You could use the string replace attribute but you might have to use Javascript, CGI, ASP or another scripting language to do so.
What is the result if you use an input text in php?
$_POST is used see below for how.
Firstly, in your form add a hidden feild:
<input type="hidden" name="hasposted" value="true" />
Somewhere in your form.
Then above the form add the following:
<?php
if($_POST['hasposted'] '1'){ $mycheckbox = true; } else { $mycheckbox = false; }
echo '$mytext ' . $mytext . '<br />$mycheckbox '. $mycheckbox;
}
?>
<form method="POST" action="#">
<input type="hidden" name="hasposted" value="true" />
<label>Textbox: <input type="text" value="" name="mytext" /></label><br />
<label>Checkbox: <input type="checkbox" value="1" name="mycheckbox" /><br />
<br />
<input type="submit" value="Post" />
</form>
I've posted links to W3Cschools with information on these and all other Form Elements.
What is the best way to transfer large files safely and quickly?
Compress the large file using various compression programs available ..... E.g. WinZip (available with Windows XP).
Another way is to transfer the large files as binary files using special protocols such as FTP (File Transfer Protocol) or a Telnet client programs using which you can connect to a destination machine and then can transfer then quickly and easily.
How use update command in mysql?
A simple example of how to use it would be something like this:
UPDATE addresses SET street = 'north' WHERE lastname = 'smith';
There are far far more things that you can do with it than that of course, and I would recommend reading the MySQL documentation for further details.
If you wish to use it in PHP, it can be done with a line like this one:
mysql_query("UPDATE addresses SET street='north' WHERE lastname='smith'");
which will execute the command on the currently selected database.
Can we install on windows a web application developed in Php?
You can either install an Apache-based webserver that come prebuilt with PHP, such as XAMPP or the Zend Server CE (both free.) Or you can simply install PHP under you IIS server (the one bundled with most Windows Servers.) Specific directions require knowing your specific setup, but a Google search will get you plenty of good walkthroughs.
Also, there's an IIS extension called PHP on IIS 7 (available at php.iis.net) that I've heard really nice things about, but haven't had the need for yet.
There is one caveat here. Occasionally, the developers of a PHP application will have relied on the Linux file system or operating system for something, and the application itself won't run on Windows Servers (this is pretty rare, but happens.) If that's the case, then your best bet is likely to be either setting up a Linux server, or virtualizing a Linux box on your Windows server.
Try getting PHP onto your IIS first. It's waysimpler.
Php can run on windows 7, but it does not run directly on it. PHP is a server side-language that runs on Apache. So in order to use PHP on windows 7, you need to install Apache on it. You can do this by installing WAMP server on your windows 7 machine. PHP will automatically be available to you once installed.
If PHP means Hypertext PreProcessor why isn't it HPP?
It is a recursive acronym that stands for PHP: Hypertext Preprocessor.
Other recursive acronyms are:
GNU: GNU is not Unix
WINE: WINE is not an Emulator
Can you provide free web hosting on a site from a PHP script?
If you created a PHP script that could provide that for people then yes you could.
What exactly is a PHP computer system?
A PHP computer system is simply a set of computers using the PHP programming language. It is used in over 200 million websites currently and was created in 1995.
The PHP files contains various text, HTML tags and scripts. After the completion of PHP files, when loads on the browser would look like HTML. The extension of PHP includes .phtml, .php3 and .php. Many web designers prefer to use PHP language as it allows them to incorporate multimedia files like images and audio files without facing any kind of problems. Our PHP Assignment Help online experts will write the assignments on simples to complicated tasks. So, students who do not have good problem-solving skills and logical thinking can avail our services to do their assignment coding. If you are facing a glitch while completing your pending assignments and need help with PHP Assignment, then end your worries by approaching us. We will leave no stone unturned to offer you with the assistance you need.
The PHP manual has an elaborate guide on setting up PHP on the major operating systems. It is updated frequently, and is easy to understand for mid- and novice-level programmers. It will usually be bundled in a program for running a webserver such as Apache 2.4.
How do you close a MySQL database connection using PHP?
To close your MySQL database connection you need to use the mysql_close() function. Please see the example below:
<?php
mysql_close();
?>
If your connection data is stored in a variable you would close the connection like this instead:
<?php
mysql_close($db_conn);
?>
That's useful for if you're using more than one database connection in a PHP script.
How do you migrate MySQL 4.0 to MySQL 5.0?
IIRC mysql5 supports import of mysql4 data and structures natively (you can use mysql4 compatability when exporting sql data from phpmyadmin)
Why Developers Preferred PHP Programming?
Because PHP is a powerful, open-source web programming language that also runs on open-source Apache server software.
How do you read NT registry info with PHP?
<?php
// Example to read the subkeys of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft (tested on PHP 5)
// See http://msdn2.microsoft.com/en-us/library/aa392722.aspx for methods
// See http://www.php.net/manual/en/ref.com.php
define('HKEY_LOCAL_MACHINE', 0x80000002);
$computer = '.';
$reg = new COM("winmgmts:{impersonationLevel=impersonate}!\\\\$computer\\root\\default:StdRegProv");
$key_path = 'SOFTWARE\Microsoft';
$sub_keys = new VARIANT();
$reg->EnumKey(HKEY_LOCAL_MACHINE, $key_path, $sub_keys);
foreach($sub_keys as $sub_key){
echo "$sub_key\n";
}
?>
Write a program to adentify whether a character entered by a user is a vowel or a consonant?
You can check the value of a character by using if statements.
Also, note that this code does not check for capital letters.
/* code */
#include
int main()
{
char c;
c = getc(stdin);
if (c 'o') {
/* If the character is a vowel, this code will be executed. */
} else if (c >= 'a' && c <= 'z') {
/* If the character is a consonant, this code will be executed. */
}
return 0;
}
/* end code */
What are the best administrative tools for PHP?
There ain't any tools to manage PHP itself. However, there are tools to manage php related things such a cPanel and Plesk to manage a webserver, PhpMyAdmin to manage a MySQL server, PhpPgAdmin to manage a PostgreSQL server, and other systems to manage php applications (web pages).
Can you integrate Microsoft GP eConnect with your existing php eCommerce?
If the Microsoft system is coded in PHP then technically anything is possible it's all a matter of how much work. If however it is not and the Microsoft is coded in something like ASP, then the integration can only come from using $get, $post functions between pages and then a change to one of the systems as to the database links.
How do you get the URL domain name in PHP?
Using the $_SERVER superglobal array you can get the HTTP_HOST key which contains your domain, like so: $_SERVER["HTTP_HOST"]