Viewed   131 times

I have a problem running PHP in XAMPP 1.7.7 for windows. I've installed XAMPP in a local server with IIS (changed the port to 81 in httpd.conf as well as other configuration) so far it works and I could connect to the xampp/index.php but coulnd't run any .php files in my htdocs (shows blank except for the html part). It works in my local (also have an IIS installed) but couldn't make it work in a server.

Any help would be much appreciated.



If I got your question correctly, I think I had the same problem accessing a php file in XAMPP. I have been online for several hours searching forums and Google for the answer, not until I found the simple solution.

I was accessing the PHP file as a file on c drive (eg. C:xamphtdocsdata.php or file:///c:/xamp/htdocs/data.php) instead of as a webpage (ie //localhost/data.php).

I hope this will be helpful to you as well.

Sunday, November 13, 2022

I just ran this in Terminal.

sudo pecl install intl

Then just add

to php.ini.

Tuesday, November 8, 2022

Xdebug v2.0 shouldn't work with PHP 5.3. Xdebug v2.1 provides PHP 5.3 support. Otherwise I would get rid of the xdebug ini config except:

zend_extension_ts = "C:xamppphpextensionsphp_xdebug.dll"
xdebug.remote_enable   = On
xdebug.remote_host     = "localhost"
xdebug.remote_port     = 9000
xdebug.remote_handler  = "dbgp"

use this as your test and once this works then add additional configs. Make sure you comment out other zend stuff.

Wednesday, August 17, 2022

There might be a bug in your version of libcurl. Perhaps you can try to upgrade to a more recent version?

Can you run the curl command line tool on that system (on the particular URL) to debug what happens? If you can, using the -v or --trace-ascii options should be valuable to show exactly what curl does and doesn't.

Your code is supposed to work just as written.

Saturday, October 1, 2022

The script index.php located in C:xamppphpMyAdmin is trying to load file on relative path libraries/, ie on location C:xamppphpMyAdminlibraries.

The require_once has the feature that when the file is not found, then the PHP is interrupted with PHP Fatal error, more on PHP Manual: require_once

Make sure the subdirectory libraries is available and readable for the webserver/apache and the file exists.

Note: it is always better to put strings into quotation marks ' or ". Note: make sure to use correct directories separator or / based on your operating system.

Here I guess correct would be require_once('')

Thursday, August 4, 2022
Only authorized users can answer the search term. Please sign in first, or register a free account.
Not the answer you're looking for? Browse other questions tagged :