What is Php: Definition and 77 Discussions

PHP is a general-purpose scripting language especially suited to web development. It was originally created by Danish-Canadian programmer Rasmus Lerdorf in 1994. The PHP reference implementation is now produced by The PHP Group. PHP originally stood for Personal Home Page, but it now stands for the recursive initialism PHP: Hypertext Preprocessor.PHP code is usually processed on a web server by a PHP interpreter implemented as a module, a daemon or as a Common Gateway Interface (CGI) executable. On a web server, the result of the interpreted and executed PHP code – which may be any type of data, such as generated HTML or binary image data – would form the whole or part of an HTTP response. Various web template systems, web content management systems, and web frameworks exist which can be employed to orchestrate or facilitate the generation of that response. Additionally, PHP can be used for many programming tasks outside of the web context, such as standalone graphical applications and robotic drone control. PHP code can also be directly executed from the command line.
The standard PHP interpreter, powered by the Zend Engine, is free software released under the PHP License. PHP has been widely ported and can be deployed on most web servers on almost every operating system and platform, free of charge.The PHP language evolved without a written formal specification or standard until 2014, with the original implementation acting as the de facto standard which other implementations aimed to follow. Since 2014, work has gone on to create a formal PHP specification.W3Techs reports that, as of April 2021, "PHP is used by 79.2% of all the websites whose server-side programming language we know."

View More On Wikipedia.org
  1. S

    Get PHP Coding Help for Beginners | Troubleshooting Tips

    I am just starting out with this and am having trouble getting the code to translate to a webpage. It is not really clear as to how this is to be done. I have created a basic program in notepad, saved it as .php and have attempted to open in IE but get a message that says something about not...
  2. Math Is Hard

    Imagecreatefrompng() function in php

    I was experimenting with the imagecreatefrompng() function in php. There was an example here: http://us2.php.net/imagecreatefrompng I tried to modify it to use an image called full.png in my img folder. aaaimage.php #!/usr/local/bin/php <?php function LoadPNG($imgname) {...
  3. Math Is Hard

    PHP Form data passed to php if statement

    Howdy, tonight I was playing around with trying to pass a value from a form field and use it for an "if" statement in php. the html: <HTML> <HEAD> <TITLE>Form Test</TITLE> </HEAD> <BODY> <H1>Form Test</H1> <form name="input" action="myscript.php" method="get"> Enter a 1 or a 2...
  4. R

    PHP Start Coding with PHP: IDE & Tools for *nix Platforms

    I've never used the language before but I would like to start moving away from Windows as a server platform. PHP from what I can tell, and have read on this board, is a good choice for coding on a *nix platform. Can anyone recommend an IDE and any other tools that might come in handy for web...
  5. Math Is Hard

    PHP Help Needed: Combining PHP & Amazon Web Services for Midterm Project

    I am working on my midterm project and I have two pieces I can't put together with php. I am supposed to create a form that let's a user enter a keyword to search Amazon books, so I have the form that catches the data and gives it to the php file: http://www.pic.ucla.edu/~jctaylor/midterm.htm...
  6. Math Is Hard

    PHP How do I pass form data to my PHP program?

    I am working on a simple example of trying to pass form data to my php program. I am not sure how to pass the variable that holds the data the user enters. Here's what I've tried. (note, it only looks right in Firefox, but that's what we're supposed to be writing it for)...
  7. Math Is Hard

    PHP Server space for newb learning CGI & PHP

    Could you recommend a good free site for someone who is just learning to write CGI scripts and PHP, and needs a server to try them out on? I have some space at my school lab, but trying to SSH to it has been bombing out this weekend. Thanks!
  8. N

    PHP How can I use PHP to delay server response for real-time reverse Ajax requests?

    How can i use php to write a real-time chatting script like msn or yahoo messenger ? I know i can use php and mysql and check for new messagesin mysql table every seconds but this will cause high traffic . So is there any other way ?
  9. J

    PHP Random number generator (Need help)

    Okay, What I am trying to do is create a create a random number generator, that outputs 1 and 2 (coin toss) From what I understand, the more coin tosses (the more times I generate a random 1 or 2) the more uniform the pattern should be. EG: After generating a random 1-2 sequence, 1,000,000...
  10. J

    How to Create a PHP Random Number Generator for a Coin Toss?

    Okay, What I am trying to do is create a create a random number generator, that outputs 1 and 2 (coin toss) From what I understand, the more coin tosses (the more times I generate a random 1 or 2) the more uniform the pattern should be. EG: After generating a random 1-2 sequence, 1,000,000...
  11. F

    PHP Multiplayer game using PHP and mysql

    I am designing a map game, using PHP and MYSQL. I don't know how to make the players who sign-in to the website to see other players who are also connected to the site and be able to chat with one another. I want to design the game in such a way that 2 players can play with each other and...
  12. JamesU

    PHP PHP Redirects Other than header(location:)

    Is there another way to redirect in PHP other than the header(location:) method...? such as one that can be used in a function.
  13. N

    PHP Php to select data from the mysql database with chinese character

    I use php to select data from the mysql database with chinese character but when I echo it ,it show ? . I am sure the encoding is correct but it still don't show the chinese character . I am using IE 6 . Please help .
  14. I

    PHP Create PHP Web-Based Game - Tips & Advice

    I am going to make a php web based game. All i am looking for is some advice to help me get off to a good start. Like, What i will need, where to look for information.
  15. K

    PHP Searching PHP & MySQL: Roots, Prefixes, & Suffixes

    Hi everyone, I'm just beginning to learn php, but I'm working on a small script where I'm trying to search a few fields in a table and if the values match, other fields in the same row are displayed. The db has just one table with 6 fields: ID (primary key), words, definitions, roots...
  16. N

    PHP How to create a online multiplayer games with mysql support using php ?

    I want to create a online multiplayer games with php but I don't know how to let the members know their opponents' move realtime ? Please help me !Thanks
  17. O

    Recommend a good web-application framework for PHP

    Hi there, I need a good PHP frame work. I googled it and find houndreds of them. I'm confused. I don't know which one to choose. But finally I arrived in a selection of three: 1. WACT. 2. Symfony. 3. Prado. Is there anybody who has tried all of the 3 frameworks? Please let me know. I just...
  18. Jameson

    Modifying PHP Code to Automatically Insert Image

    I have a phpBB forum and I'm trying to edit some code so that whenever someone types in Some code it automatically inserts <img src="mysite.com/cgi-bin-mimetex.cgi?Some code">. This will save people the trouble of typing in all of the extra stuff. It seems rather simple but I have no idea how to...
  19. O

    Generating PDFs in Persian with PHP v4.3

    I need to generate PDF files in Persian. My codes are in PHP and the server is runnig ver 4.3. The PDFLIB appearently doesn't support UNICODE. When I write something in Persian it shows only some nonsence charachters on screen. I also downloaded UFPDF, after using that class the charachters were...
  20. *Kia*

    Why Isn't My PHP Script Running on a Virtual Host or Subdirectory?

    I have anice php script which works well, however it only works from document root and will only return a 404 error if I try to run it in either a subdirectory or on a virtual host..... Any ideas how to get this script to run from anywhere? btw it is called from a html form I am running...
  21. O

    Generating .DOC Reports from a Linux Server and PHP System

    We have a linux server and some win clients. Our webbased accounting system is soppused to make reports in different formats like .DOC. The system is written in PHP. How can we generate that format?
  22. H

    Free Web Hosting for PHP | Low Cost Options

    I would like to know if there is by any chance some free web hosting that support php scripts? If not, then the least costy.
  23. R

    C/C++ Code me the php explode function into c or c++

    can someone code me the php explode function into c or c++ that would work with original strings? thanks in advance
  24. A

    What are some popular online games that can be developed using PHP and SQL?

    Hi, I'm a php student, or rather I'm teaching myself php with the aid of some friends and co-workers for a project which I'm planning - to create an online game made with php and sql, I was wondering 2 things Firstly, would anyone be able to give me any advice on what I'm likely to need to...
  25. A

    How Can I Customize Product Pages and Remove Logos in osCommerce?

    Greetings folks. I started working on a website just the other day, it uses PHP and osCommerce. Anyone know these things well? I'm new to both, and need a few pointers to fix some problems. On the product description pages is a blue bar across the top bearing the strings "Product Name"...
  26. G

    Troubleshooting PHP Setup with Dreamweaver | Greg's Expert Tips

    I figured Greg could atleast help me out in this field. I am having major problems getting php to be recognized by dreamweaver. I have downloaded the php installer from php.net along with apache and MySQL. They seem to be configured right to me. All came with installers. MySQL and Apache are...
  27. M

    Learn How to Use PHP with Easy Step-by-Step Guide | [SOLVED]

    [SOLVED] How to use PHP Can anyone teach me how to use PHP? I just dled the zip file, but I don't know where to go from there : (
Back
Top