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-07-31 12:54:13
Point:500 Replies:9 POST_ID:828522USER_ID:11059
Topic:
PHP Scripting Language;Linux;Apache Web Server
I got one share-ed server website, or example, www.mywebsite.com and hosting provider
say to me I need to run less php script or not too big php script on the server , otherwise, it
will cause server over loading. That is why I google any php on Window XP and I found the
similar topic at http://www.mac-connect.com/genericAMP2.php
Now I am able to download php program into my C:php and run simple program, php.exe, it
works fine for php.exe test.php and php.exe return.php at C:php from cmd shell of Window XP
Now I try to see if test.php and return.php can be running in IE browser or not because I am successfully
installed Apache-2 software on my Window XP.
But when link to http://127.0.0.1/test.php in IE7 and it is not successfully, just popup window dialog and ask
whether to save test.php file or not ? I feel l my apache is not connected well,
But when I try http://127/0.0.1, it reply me as told by the link mentioned at http://www.mac-connect.com/genericAMP2.php
So now I get confused with Apache setup on my WIndow XP ,
Question
1- What should I try at Network Domain?
now I typed, "localhost", what is localhost meaning ?
2- What I should input at server name ?
now I typed, "pc05", how to related the server name in my cpanel at my hosting
3- What I should put at Adm Email address ?
I just arbiaraily to type abc@yahoo.com, Is it needing a real email address ?
4- Why I still not get test.php running at IE 7 even I already follow all instruction
as the link http://www.mac-connect.com/genericAMP3.php
Right click on the PHP zip archive (retrieved in step 1 of this guide) and click "Extract All..." and then "Next".
Change C:Downloadsphp-4.3.3-Win32 to C: and click "Next", followed by "Finish".
There should now exist a folder C:php-4.3.3-Win32 .
Rename the this folder from C:php-4.3.3-Win32 to C:php.
Open the httpd.conf (C:Program FilesApache GroupApacheconfhttpd.conf) file and find the line:
<IfModule mod_alias.c>
Immediately under this line insert the following lines:
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php .phtml
Action application/x-httpd-php "/php/php.exe"
Save the file as httpd.conf.
To test that PHP and Apache now work together, create a plain text file and insert the following:
<?php phpinfo(); ?>
Save this file as test.php in the C:Program FilesApache GroupApachehtdocs folder.
Restart the Apache server (Start > Programs > Apache HTTP Server > Control Apache Server > Restart) so Apache will use the altered configuration file.
If you go to http://127.0.0.1/test.php in a web browser you should see a page like this:
5- If I am not using WIndow IIS as server , WIndow XP can also do the same as server
if I provide my PC window ISP address to my users, other users can connect to
my window XP computer ?
6- I get hosting company server address like www.mywebsite.com, can it be linked into
my Window XP computer, if so, How ? Why I still need my hosting company
7- Can my window XP computer as server so I don't need my hosting service in the future ?
Please advise above question list
Duncan
say to me I need to run less php script or not too big php script on the server , otherwise, it
will cause server over loading. That is why I google any php on Window XP and I found the
similar topic at http://www.mac-connect.com/genericAMP2.php
Now I am able to download php program into my C:php and run simple program, php.exe, it
works fine for php.exe test.php and php.exe return.php at C:php from cmd shell of Window XP
Now I try to see if test.php and return.php can be running in IE browser or not because I am successfully
installed Apache-2 software on my Window XP.
But when link to http://127.0.0.1/test.php in IE7 and it is not successfully, just popup window dialog and ask
whether to save test.php file or not ? I feel l my apache is not connected well,
But when I try http://127/0.0.1, it reply me as told by the link mentioned at http://www.mac-connect.com/genericAMP2.php
So now I get confused with Apache setup on my WIndow XP ,
Question
1- What should I try at Network Domain?
now I typed, "localhost", what is localhost meaning ?
2- What I should input at server name ?
now I typed, "pc05", how to related the server name in my cpanel at my hosting
3- What I should put at Adm Email address ?
I just arbiaraily to type abc@yahoo.com, Is it needing a real email address ?
4- Why I still not get test.php running at IE 7 even I already follow all instruction
as the link http://www.mac-connect.com/genericAMP3.php
Right click on the PHP zip archive (retrieved in step 1 of this guide) and click "Extract All..." and then "Next".
Change C:Downloadsphp-4.3.3-Win32 to C: and click "Next", followed by "Finish".
There should now exist a folder C:php-4.3.3-Win32 .
Rename the this folder from C:php-4.3.3-Win32 to C:php.
Open the httpd.conf (C:Program FilesApache GroupApacheconfhttpd.conf) file and find the line:
<IfModule mod_alias.c>
Immediately under this line insert the following lines:
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php .phtml
Action application/x-httpd-php "/php/php.exe"
Save the file as httpd.conf.
To test that PHP and Apache now work together, create a plain text file and insert the following:
<?php phpinfo(); ?>
Save this file as test.php in the C:Program FilesApache GroupApachehtdocs folder.
Restart the Apache server (Start > Programs > Apache HTTP Server > Control Apache Server > Restart) so Apache will use the altered configuration file.
If you go to http://127.0.0.1/test.php in a web browser you should see a page like this:
5- If I am not using WIndow IIS as server , WIndow XP can also do the same as server
if I provide my PC window ISP address to my users, other users can connect to
my window XP computer ?
6- I get hosting company server address like www.mywebsite.com, can it be linked into
my Window XP computer, if so, How ? Why I still need my hosting company
7- Can my window XP computer as server so I don't need my hosting service in the future ?
Please advise above question list
Duncan
///test.php<?php phpinfo(); ?>///return.php<?php$str="ababv ";$str2=trim($str,"");echo $str2 ;?> 1:2:3:4:5:6:7:8:9:
Author: duncanb7 replied at 2024-08-03 13:16:59
Yes,
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
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
Author: duncanb7 replied at 2024-08-03 12:31:04
I tried it before , it the same result ,no change, download file window is also still shown up to me
for htt://127.0.0.1:8080/test.php
How I know whether I install IIS or not on Window XP ? where I can turn it off ?
for htt://127.0.0.1:8080/test.php
How I know whether I install IIS or not on Window XP ? where I can turn it off ?
Assisted Solution
Expert: Aaron Tomosky replied at 2024-08-03 12:21:23
50 points EXCELLENT
You gotta turn off iis so xampp can use port 80 or use a different port. Let's call it 8080. Then you would use http://127.0.0.1:8080/test.php
Author: duncanb7 replied at 2024-08-03 12:12:14
But when at command line at C:php est.php,
the php.exe program will show me phpinfo result, so it is no syntax error on
the simple php file of test.php
///test.php
<?php phpinfo(); ?>
the php.exe program will show me phpinfo result, so it is no syntax error on
the simple php file of test.php
///test.php
<?php phpinfo(); ?>
Author: duncanb7 replied at 2024-08-03 12:09:24
Even I install, Wampserver, and type http://127.0.0.1/test.php
Window XP always give me the download file message box and ask
save or open the file or cancel.
it seems Window treat the file at http://127.0.0.1/test.php as file not php program
Please advise
Duncan
Window XP always give me the download file message box and ask
save or open the file or cancel.
it seems Window treat the file at http://127.0.0.1/test.php as file not php program
Please advise
Duncan
Assisted Solution
Expert: bportlock replied at 2024-07-31 14:23:28
50 points EXCELLENT
Localhost is a name used by many servers to refer to themselves. locahost is the same as the IP address 127.0.0.1 however in Windows you may need to edit a system file and add this manually - I have not used Windows since 2004 so I am rusty on this.
Look for a file called HOSTS in either c:winntsystem32driversetc or c:windowssystem32driversetc
This file needs to contain a line like this
127.0.0.1 localhost
If it does not contain this line then add it, save the file and try again. If it does conatin this line then you have other problems.
If you decide to follow other advice above about WAMP or XAMPP then read on.....
Both WAMP and XAMPP run Apache rather than IIS. If you already have IIS on the server then both it and Apache will compete for traffic on port 80 and one of them will need to be moved to a different port number.
If the server lacks IIS then you should be able to install either XAMPP or WAMP without any trouble. They can be downloaded from
http://www.wampserver.com/en/download.php
http://www.apachefriends.org/en/xampp-windows.html
Either should work OK. I would recommend removing any existing PHP / MySQL or Apache code. Remember to back up any scripts that you have on this machine before removing Apache in case the htdocs folder gets deleted as part of any de-installation. So, in summary,
1. Back up your PHP scripts
2. Remove all old non-working software
3. Reboot
4. Install either XAMPP or WAMP
5. Copy saved scripts into the new htdocs folder
6. Start XAMPP/WAMP service
Look for a file called HOSTS in either c:winntsystem32driversetc or c:windowssystem32driversetc
This file needs to contain a line like this
127.0.0.1 localhost
If it does not contain this line then add it, save the file and try again. If it does conatin this line then you have other problems.
If you decide to follow other advice above about WAMP or XAMPP then read on.....
Both WAMP and XAMPP run Apache rather than IIS. If you already have IIS on the server then both it and Apache will compete for traffic on port 80 and one of them will need to be moved to a different port number.
If the server lacks IIS then you should be able to install either XAMPP or WAMP without any trouble. They can be downloaded from
http://www.wampserver.com/en/download.php
http://www.apachefriends.org/en/xampp-windows.html
Either should work OK. I would recommend removing any existing PHP / MySQL or Apache code. Remember to back up any scripts that you have on this machine before removing Apache in case the htdocs folder gets deleted as part of any de-installation. So, in summary,
1. Back up your PHP scripts
2. Remove all old non-working software
3. Reboot
4. Install either XAMPP or WAMP
5. Copy saved scripts into the new htdocs folder
6. Start XAMPP/WAMP service
Accepted Solution
Expert: Aaron Tomosky replied at 2024-07-31 13:43:15
350 points EXCELLENT
But when at command line at C:php est.php,
the php.exe program will show me phpinfo result, so it is no syntax error on
the simple php file of test.php
///test.php
<?php phpinfo(); ?>
the php.exe program will show me phpinfo result, so it is no syntax error on
the simple php file of test.php
///test.php
<?php phpinfo(); ?>
Author: duncanb7 replied at 2024-07-31 13:22:47
I don't have IIS since I scare to install IIS because all or every prgram is on Window XP.
Is Wamp server needing window IIS or it is okay for WIndow XP ?
Could you answer me from the question list above step by step ?
Because I also need to php curl function so I have to need Apache is working, RIght ?
Please advise
Duncan
Is Wamp server needing window IIS or it is okay for WIndow XP ?
Could you answer me from the question list above step by step ?
Because I also need to php curl function so I have to need Apache is working, RIght ?
Please advise
Duncan
Assisted Solution
Expert: jocasio123 replied at 2024-07-31 13:12:42
50 points EXCELLENT
Can I suggest you use Wamp Server? This will install PHP, Apache, and MySQL onto your machine. Start all of the services and you should be good to go. One thing you may want to check on your computer is wheter or not Apache is actually running. If you have IIS installed, chances are one of them is not running.