hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : VPS Hosting : VPS Tutorials : How to: create a new PHP Info page
Reply

VPS Tutorials Tutorials related to VPS.
Forum Jump

How to: create a new PHP Info page

Reply Post New Thread In VPS Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 05-18-2006, 12:43 AM
diggleblop diggleblop is offline
WHT Addict
 
Join Date: May 2006
Posts: 166

How to: create a new PHP Info page


This will show you what modules you have running on your server, if they're enabled, the version number and a few other informative goodies.

1. If you don't already have an info.php page on your server, after reading this you will be able to create a new php text file and upload it to your server.

2. Open Notepad and name the file info.php

3. Your new info.php page should have 1 line of code only. Please put the following code in your new file:
Code:
<?php phpinfo() ?>
4. That's all you need, now save the file to your server's root folder, and view the php page in your browser.

Example http://www.enteryoursiteaddresshere.com/info.php

Reply With Quote


Sponsored Links
  #2  
Old 05-18-2006, 12:45 AM
SlimSlyk SlimSlyk is offline
Web Hosting Guru
 
Join Date: Apr 2006
Location: The Mighty Jungle
Posts: 257
Code:
<?php phpinfo(); ?>
That's the correct code...

Reply With Quote
  #3  
Old 05-18-2006, 12:46 AM
diggleblop diggleblop is offline
WHT Addict
 
Join Date: May 2006
Posts: 166
They both work because I just used the one I posted.

Reply With Quote
Sponsored Links
  #4  
Old 05-18-2006, 02:37 AM
superprogram superprogram is offline
Web Hosting Master
 
Join Date: Dec 2003
Posts: 909
How can I customize the information I want to see
Where is the structure of phpinfo defined?

Reply With Quote
  #5  
Old 05-18-2006, 03:00 AM
Mark S Mark S is offline
Web Hosting Master
 
Join Date: Dec 2004
Location: Washington, DC
Posts: 787
To a certain extent, you can.

Check out: http://us2.php.net/phpinfo

Reply With Quote
  #6  
Old 05-18-2006, 09:42 AM
Apoc Apoc is offline
SolidHost
 
Join Date: Dec 2002
Location: Amsterdam/Rotterdam, NL
Posts: 2,086
Quote:
Originally Posted by diggleblop
They both work because I just used the one I posted.
It might work but it's not properly coded. After every command you should use a ";".

On a sidenote: instead of <?php you could also just use <?

Reply With Quote
  #7  
Old 05-18-2006, 09:45 AM
dollar dollar is offline
Retired Moderator
 
Join Date: Sep 2004
Location: Flint, Michigan
Posts: 5,768
Quote:
Originally Posted by Apoc
On a sidenote: instead of <?php you could also just use <?
So long as the machine you are on is configured to support short tags In a sitaution like this it is fine, but if you were to create a piece of PHP software for commercial pruposes I would always use the full tags.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Selling a Cloud Services Portfolio, with Stephanie Rowan of Parallels Web Hosting News 2013-02-06 15:50:29
New on WHIR TV: Video from WHIR Networking Events Europe Whir Tv 2012-07-24 16:24:36
Google+ Business Pages – Implications for Search Marketing Blog 2012-01-25 09:58:46
goMobi Offers Dutch Version of Mobile Site Creator Service Web Hosting News 2011-10-13 16:13:43
Landing Page Practices to Improve Marketing ROI with Tim Ash of SiteTuners Web Hosting News 2011-08-09 22:20:06


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?