I have written a source code in php but I do not know how to compile that and conduct it with a website please explain me the how to compile that ?
Answer / sourav
its very easy.if r u in winxp/seven/vista operating system den
u have to install a local server i.e. xampp in your
computer.....den goto your hard drives option nd select the
drive in where u installed the xampp and den open the "htdocs"
inside the xampp folder nd save your source code here with a
.php file extension and den goto your browser and write
"localhost/filename.php(source file name)" in your browser's
address bar and den you can show the result in your browser
| Is This Answer Correct ? | 10 Yes | 3 No |
How many types of array supported in php?
How to strip whitespace (or other characters) from the beginning and end of a string?
When you want to show some part of a text displayed on an html page in red font color? What different possibilities are there to do this? What are the advantages/disadvantages of these methods?
Why die is used in php?
Write down the code for saving an uploaded file in PHP.
What are the different ways to login to a remote server? Explain the me, advantages and disadvantages?
How can post form values with out press submit button
<?php include ("db.php"); $result = mysql_query("SELECT ques_id FROM questionbank order by ques_id limit 5 "); while($obj=mysql_fetch_array($result)) { $ad1[$obj['ques_id']]++;//Used an array and inserted the database query results into it. } $rand_keys=array_rand($ad1,1); //Did a random array function echo "First random id = ".$ad1[$rand_keys[0]]; echo "<br>Second random id = ".$ad1[$rand_keys[1]]; ?> <!--Its not working. Have any solution for this. -->
What is laracast?
How to execute a php script from the command line?
Explain how to run the interactive php shell from the command line interface?
How do you identify independent and dependent variables in regression analysis?