Solved

Problem to run file

Posted on 2016-07-21
9
90 Views
Last Modified: 2016-07-23
Hi,
I run the file like
5j.png
but it cannot show the web-page as expected.
0
Comment
Question by:HuaMinChen
  • 5
  • 4
9 Comments
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 41724176
Since you are running from the command line, the most you should expect is a text display in the terminal.  That will not launch a browser that will show you a web page.  And if the PHP command line is not installed or enabled, it may not show you anything but an error.
0
 
LVL 10

Author Comment

by:HuaMinChen
ID: 41724209
PHP command line is installed already. How to run the .php file?
0
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 41724224
This is all I have to do.

[root@dibscos6 html]# php phpinfo.php
0
 
LVL 10

Author Comment

by:HuaMinChen
ID: 41724227
I'm running that in the same way like you. Why can't the .php file be displayed on browser?
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 41724233
That command runs the PHP program in the terminal and the web browser (Firefox) does not run in the terminal.  To run Firefox from the command line to view that page, you would have to start Firefox, not PHP.  I'll show you in the next comment.
0
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 41724235
This opens Firefox to the same page.

[davidc@dibscos6 ~]$ firefox http://localhost/phpinfo.php
0
 
LVL 10

Author Comment

by:HuaMinChen
ID: 41724257
I then get this
Screenshot-1--1-.png
0
 
LVL 10

Author Comment

by:HuaMinChen
ID: 41724406
I get the current problem when issuing
firefox http://localhost/info5.php

while info5.php does exist within
/var/www/html/
0
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 41724534
Can you connect to any other page like index.html?
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now