How are you calling the php file - what address in the browser?malatang wrote:when I open a php file in my browser
Remove these additions as they will give errors and revert your httpd.conf file to the defaults in place after you installed.malatang wrote:I have tried adding
LoadModule php5_module "c:/xampp/php/php5apache2_2.dll"
AddType application/x-httpd-php .php .phtml
to the apache httpd.conf file with no luck.
Izzy wrote:How are you calling the php file - what address in the browser?
Whare is this file located in your XAMPP installation?malatang wrote:http://localhost/mysqltest.php
Did you restart Apache after editing the httpd.conf file?malatang wrote:I removed them.
Izzy wrote:Whare is this file located in your XAMPP installation?
Izzy wrote:Can you go to http://localhost and see the XAMPP Welcome page?
Izzy wrote:Can you run http://localhost/xampp/phpinfo.php and what do you see?
Izzy wrote:Did you restart Apache after editing the httpd.conf file?
Search your PC for any other php.ini files and either rename them or delete them except the one in the xampp\apache\bin folder and any in your XAMPP installation folder, then restart Apache and try again.
Then your issue is related only to the file mysqltest.php because the links I gave are all php files and they work without issue.malatang wrote:C:\XAMPP\htdocs\mysqltest.php
Yes, I get the welcome page
I get the PHP page that show the version and all the other info.
I searched the computer and found no other php.ini files. I uninstalled xampp, restarted the computer, re-installed xammp, placed the mysqltest.php back into
C:\XAMPP\htdocs\ and got the same thing again.
Users browsing this forum: No registered users and 45 guests