answersLogoWhite

0


Best Answer

A home page can be any php script. The most common used name for the 'home page' is the file called index.php in the public_html folder of your web host.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write homepage module in php?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Basic Math

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 */ ? >


What PHP Codes?

if i got your question right, you mean "what are php tags?" your should write PHP codes between <?php ... ?> where ... should be replaced by codes that you need. But if you mean "what are php codes?": there are some default codes that you may find them on php.net, and the other part is codes (Functions or classes) that other programmers develops..


Write a PHP program to check whether the string is palindrome or not?

You can do this: <?php if ( $word === strrev( $word ) ) { echo "The word is a palindrome"; } else { echo "The word is not a palindrome"; }


What is framework in php?

A framework in PHP is a set of prebuilt classes and functions (like cakePHP.org or codeignitor) that let's you add basic classes and write less do more.


What is the difference between PHP and CGI?

The benefits of running PHP-CGI are:** It is more secure. The PHP runs as your user rather than dhapache. That means you can put your database passwords in a file readable only by you and your php scripts can still access it!* It is more flexible. Because of security concerns when running PHP as an Apache module (which means it runs as our dhapache user), we have disabled a number of commands with the non-CGI PHP. This will cause installation problems with certain popular PHP scripts (such as Gallery) if you choose to run PHP not as a CGI!* It's just as fast as running PHP as an Apache module, and we include more default libraries.There are a FEW VERY MINOR drawbacks to running PHP-CGI. They are:** Custom 404 pages won't work for .php files with PHP-CGI. Or will they? See n74's comment below!* Variables in the URL which are not regular ?foo=bar variables won't work without using mod_rewrite (http://httpd.apache.org/docs/mod/mod_rewrite.html) (example.com/blah.php/username/info/variable).* Custom php directives in .htaccess files (php_include_dir /home/user;/home/user/example_dir) won't work.* The $_SERVER['SCRIPT_NAME'] variable will return the php.cgi binary rather than the name of your script* Persistant database connections will not work. PHP's mysql_pconnect() function will just open a new connection because it can't find a persistant one.If one of those is a show-stopper for you, you can easily switch to running PHP as an Apache module and not CGI, but be prepared for a bunch of potential security and ease-of-use issues! If you don't know what any of these drawbacks mean, you're fine just using the default setting of PHP-CGI and not worrying about anything!

Related questions

Does Google Chrome have PHP module enabled?

Yes, Chrome has PHP module enabled. It can be used for testing and developing PHP websites.


What is php extension?

We can write php extension is many way... .php , .php5, .php4


How do you write a php algorithm?

Well if you know php then you can write your own algorithm php syntax is <?php //open php tag $num = 1; $num2 = 2; $total = $num + $num2; echo $total; ?> //close php tag


Which company owns the rights to php?

The company that owns the engine behind PHP is called Zend. Find them at Zend.com The language itself is controlled by the PHP Language Group. Licensing fun over at the PHP homepage: see related link (below).


What is PHP enabled host?

A host that allows you to write in PHP


Can you open php file in your PC?

Since a PHP file basically is a text file, yes. But beware - opening and running a PHP file are not the same. If you want to run a PHP file, you will need a webserver with PHP module enabled.


How do you write hello world in PHP?

<?php echo "Hello world"?>


How does a home page get its name?

You can name the homepage anything you want, usually it is the website name or company. I think you are referring to the title of the page. If you're not, the homepage on a website is index.html/php etc.


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 */ ? >


What is the purpose of a PHP web gallery?

PHP (Personal Home page) web gallery allows an individual to place a picture gallery on their own homepage. PHP also offers a range of solutions such as having a login area, or even create forums.


What line is added to the Apache configuration file to ensure that PHP extensions are recognized?

Adding the following lines to the Apache 2.x configuration file will associate .php files with PHP, given the PHP 5 module (DLL file) is also loaded through the configuration: <FilesMatch \.php$> SetHandler application/x-httpd-php </FilesMatch>


What is the server used to run PHP in Windows?

One of the Windows Server operating systems. PHP can be installed with Microsoft's IIS web server as an ISAPI filter, or you can install the WAMP server under Windows that contains the Apache web server, the PHP interpreter, and mySQL. There are others as well, such as the Xitami web server, etc., that work equally well with PHP under windows.