Ask Question Forum:
Model Library:2025-02-08:A.I. model is online auto reply
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by duncanb7
at 2024-08-03 11:39:04
Point:500 Replies:8 POST_ID:828523USER_ID:11059
Topic:
PHP Scripting Language;Windows XP Operating System;Web Servers
I would like to run php on my Window XP instead of running php in my hosting server since
the shared-server is really busy.
And I follow the following step by step in link-1 to install Apache, finally I am successfully to install
and get the correct response from http://127.0.01 in my IE7 broswer as the link mentioned
Link-1 http://www.mac-connect.com/genericAMP2.php
And also follow the link-2 to install php at my C:php directory and I type php -v at C;php ,
it reponse the php version at C:php shell, but when following the step in link-2, and I try http://127.0.01/test.php,
but it could NOT show me php information on IE7 as link-2 mentioned.
When go to http://127.0.0.1/test.php in IE7 , Window XP always give me
dialog file download message box, ask me open the file or save the file. I don't know why ?
Please advise for any setting I need to do more before I get test.php result with phpinfo() working in my IE broswer
Link-2 http://www.mac-connect.com/genericAMP3.php
The problem , is it related I put test.php in wrong area at C:Program FilesApache GroupApache2htdocs?
it seems Window XP system treat the http://127.0.0.1/test.php as file not php program
Duncan
the shared-server is really busy.
And I follow the following step by step in link-1 to install Apache, finally I am successfully to install
and get the correct response from http://127.0.01 in my IE7 broswer as the link mentioned
Link-1 http://www.mac-connect.com/genericAMP2.php
And also follow the link-2 to install php at my C:php directory and I type php -v at C;php ,
it reponse the php version at C:php shell, but when following the step in link-2, and I try http://127.0.01/test.php,
but it could NOT show me php information on IE7 as link-2 mentioned.
When go to http://127.0.0.1/test.php in IE7 , Window XP always give me
dialog file download message box, ask me open the file or save the file. I don't know why ?
Please advise for any setting I need to do more before I get test.php result with phpinfo() working in my IE broswer
Link-2 http://www.mac-connect.com/genericAMP3.php
The problem , is it related I put test.php in wrong area at C:Program FilesApache GroupApache2htdocs?
it seems Window XP system treat the http://127.0.0.1/test.php as file not php program
Duncan
Expert: lost_and_unfound replied at 2024-08-03 13:27:55
ok, your code in test.php appears to be the problem
//test.php
<?php
<?php phpinfo(); ?>
?>
if you connect to localhost/test.php and the code is incorrect, the webserver COULD give you a blank page (error display en supression of warnings)
1.) fix your test.php
//test.php
<?php
<?php phpinfo(); ?>
?>
if you connect to localhost/test.php and the code is incorrect, the webserver COULD give you a blank page (error display en supression of warnings)
1.) fix your test.php
If that does not work, look at your apache error logs or test the php.ini file in command line with
Author: duncanb7 replied at 2024-08-03 13:18:20
finally I uninstall apache
from the link I download before
and install xampp again, and
put test.php
to xamphtdocxampp
and type http://localhost/xampp/test.php
and it work and show php information
Thanks for all of your reply
Duncan
from the link I download before
and install xampp again, and
put test.php
to xamphtdocxampp
and type http://localhost/xampp/test.php
and it work and show php information
Thanks for all of your reply
Duncan
Assisted Solution
Expert: haloexpertsexchange replied at 2024-08-03 12:27:48
125 points GOOD
you should also check the apache error log which is usually kept under the logs folder.
Assisted Solution
Expert: haloexpertsexchange replied at 2024-08-03 12:26:25
125 points GOOD
do you have something like this
PHPIniDir "C:Program FilesPHP"
LoadModule php5_module "php5apache2_2.dll"
in your httpd.conf document for apache to know what to do with php files? If you don't that might cause it to try to download the file instead of running it.
PHPIniDir "C:Program FilesPHP"
LoadModule php5_module "php5apache2_2.dll"
in your httpd.conf document for apache to know what to do with php files? If you don't that might cause it to try to download the file instead of running it.
Author: duncanb7 replied at 2024-08-03 12:25:02
But why the link2 doesn't install WAMP, also work on test.php
And I already try to install WAMP, it is same and Window give me download file dialog window
SO it is not related to WAMP
And I already try to install WAMP, it is same and Window give me download file dialog window
SO it is not related to WAMP
Author: duncanb7 replied at 2024-08-03 12:22:57
Yes, already install from follwing link-2
and I try command line at C:phpphp.exe test.php, it works and output all php information
and I try command line at C:phpphp.exe test.php, it works and output all php information
Assisted Solution
Expert: jocasio123 replied at 2024-08-03 12:19:38
125 points GOOD
Oh, I see you installed PHP. Try installing WAMP as I mentioned previously. It's the best way to get all of the components onto your machine and has an interface to start all of the services together
Accepted Solution
Expert: jocasio123 replied at 2024-08-03 12:17:31
125 points GOOD
Did you install php? If not you should consider installing WAMP Server as it installs and configures Apache, PHP and MySQL