Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
New User - Can't see phpinfo!!
Old 09-03-2010, 10:19 AM New User - Can't see phpinfo!!
Junior Talker

Posts: 2
Name: Patrick Hartnett
Trades: 0
Hi I have installed, MySQL, Apache2 and PHP 4.3.3 as new user, but no matter I do my php pages (e.g phpinfo)are not displayed, but HTML text is fine, please, please help, is there something else i need to set in PHP install
patrick
phartnett6 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-03-2010, 10:30 AM Re: New User - Can't see phpinfo!!
~ServerPoint~'s Avatar
Defies a Status

Posts: 1,687
Name: Travis
Trades: 0
What do you use to look at them?
__________________
ServerPoint.com - a true hosting company since 1998
Web Hosting, colocation,
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
~ServerPoint~ is offline
Reply With Quote
View Public Profile
 
Old 09-03-2010, 12:56 PM Re: New User - Can't see phpinfo!!
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
And what do you see instead?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-03-2010, 02:04 PM Re: New User - Can't see phpinfo!!
Junior Talker

Posts: 2
Name: Patrick Hartnett
Trades: 0
that's the point I see nothing, but any html code displays fine, is there something I can check in my PHP/SQL installation i am using PHP 4.3.3 as a beginner before i go to 5
phartnett6 is offline
Reply With Quote
View Public Profile
 
Old 09-03-2010, 02:11 PM Re: New User - Can't see phpinfo!!
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Do you see the php code in the source code when the page is rendered?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-03-2010, 08:20 PM Re: New User - Can't see phpinfo!!
Sleeping Troll's Avatar
Ultra Talker

Posts: 351
Name: Butch Begy
Trades: 0
You are obviously viewing the page source, you need to open the php file in an editor. The php file sends html to the browser, if you view the page source in the browser, all you will see is html and javascript. You need to read up on the client/ server, http header relationship.
__________________
Sleeping Troll, EMUSE, Mind Expansion...Truly serendipity!
Sleeping Troll is offline
Reply With Quote
View Public Profile
 
Old 09-04-2010, 09:46 AM Re: New User - Can't see phpinfo!!
Novice Talker

Posts: 12
Name: chris
Trades: 0
if you are setting up an apache/php/mysql setup on your box you need to check in the apache config files. basically it seems like you have not told apache about the php installation so it wont send any php files to the php interpreter.

As a result what you will get on running this sort of page

<?php
echo phpinfo();
?>

is the exact text in the file displayed on teh browser, basically apache treating the file as it would any other file and outputting it to the browser as html text.

The same instance occurs if you write a block of php coding and forget to open the php tags. <?php
cdjhosting is offline
Reply With Quote
View Public Profile
 
Old 09-04-2010, 08:25 PM Re: New User - Can't see phpinfo!!
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
<?php
echo phpinfo();
?>
Wrong syntax.

phpinfo(); has an implied echo as part of the command, so only requires

PHP Code:
<?php
phpinfo
();
?>
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to New User - Can't see phpinfo!!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.35739 seconds with 12 queries