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."
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...
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)
{...
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...
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...
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...
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)...
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!
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 ?
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...
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...
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...
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 .
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.
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...
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
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...
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...
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...
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...
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?
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...
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"...
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...