phpdocx Error while trying to open a template

I have downloaded phpdocx and I am testing my code on my local environment. I can successfully create a document from scratch with the following code: $docx = new \Phpdocx\Create\CreateDocx(); $docx->addText('This is a test'); $docx->embedHTM...
more »

2017-08-03 17:08 (0) Answers

Can't change document root for apache 2.4

I want to set up local web server using Apache and PHP on my Mac running Sierra. I followed this tutorial: And I am stuck at changing the document root from httpd.config, for whatev...
more »

2017-07-26 13:07 (1) Answers

File can't be found unless it's a .php

I'm developing a website locally using WAMP. Let's create a brand new directory on my computer at c:/wamp/www/mysite/, in this folder I create a file named page.php. I then try to access the file on my web browser through the url http://localhost/m...
more »

2017-07-23 21:07 (0) Answers

Mail function not working on XAMPP localhost

I am creating a 'Get a price enquiry' form using HTML and PHP. However, my website isn't live so I am working on XAMPP server - localhost. I have been searching through many tutorials, changed both php.ini and sendmail.ini files, changed compatibili...
more »

2017-05-25 16:05 (0) Answers

php - PDO with wrong host uses localhost

I have a WAMP installation with Windows Server 2012 R2 Datacenter Edition, Apache 2.4.23, PHP 7.0.10 (mysqlnd 5.0.12-dev - 20150407), MySQL 5.7.14. I configured a connection with: $host = 'wrong-server'; $dbase = 'db_name'; $user = 'my_user'; $pw...
more »

2017-05-16 16:05 (0) Answers

ajax cant get json data from url

Hi i want make simple call data with some ajax and json i have json data in this url : this is my php code $sql = "SELECT * FROM kasir"; $hasil = mysqli_query($mysqli, $sql); $results = array(); ...
more »

2017-05-12 02:05 (1) Answers

Can't remove virtual host on Mac

I have set a virtual host some time ago. I have set that when I go to it show the localhost folder. Now I want to remove that setting. I've gone to my host file to delete the host entry but that doesn't exist. My host file in etc/ look...
more »

2017-05-11 13:05 (1) Answers

Nette framework Url not working on localhost

The PHP Nette framework, Url is not working on localhost. On the live server it is working fine but when I installed it on localhost from the latest backup from hosting server it does not work. My .htaccess file is as: <IfModule mod_rewrite.c>...
more »

2017-04-14 09:04 (2) Answers

Cannot kill local Jenkins on port 8080

I have a local instance of Jenkins running on port 8080 on my mac machine. I want to kill this process and have tried doing so, like below : lsof -i tcp:8080 kill -9 <the pid> This closes my chrome instance. But when I open Chrome again and ...
more »

2017-04-11 16:04 (2) Answers

Facebook sdk with local host-PHP

URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs." I tried writing local hos...
more »

2017-03-19 14:03 (0) Answers

Wordpress localhost URL executing twice

Where is the site url saved? bloginfo('template_url') every time I click a link I get double my site url. localhost/postmyproject/localhost/postmyproject I set my site_url, home to: localhost/postmyproject In my wp-config.php file I have the follo...
more »

2017-03-12 19:03 (1) Answers

Cakephp project is not hosting

I got a cake php project and tried hosting in localhost. I get the following error I tired reading the solutions to various question and did understand quiet a few methods but all in vain. The index.php inside webroot is given as below Can someone...
more »

2017-03-08 11:03 (0) Answers

Cannot access localhost from Android app

Note: I know that similar questions have been asked here several times, but none of the suggested solutions fixed the problem for me (or I might have missed the correct solution). I have an Android app which is supposed to talk to a REST API, which ...
more »

2017-02-26 20:02 (1) Answers

Sqlsrv on mac os xampp

I need to start the server, but i have an error: Fatal error: Uncaught Error: Call to undefined function sqlsrv_connect() Please tell me is there any way to add extension sqlsrv for xampp server on mac os Please save my day ...
more »

2017-02-22 13:02 (0) Answers

Spring MVC skips Validator class

Recently I had to take an old project made in Spring MVC. This project have a few JSP pages that insert and update data through a simple form. The controllers of these forms have a validation controller defined into each bean, example: <!-- Contr...
more »

2017-02-16 20:02 (1) Answers

phpmailer working on site but not on localhost

I'm trying to send mail from my localhost using phpmailer, but it's not working. I literally copied and pasted a working version of the code (which works from my website), but when I try to send mail it gives me the following errors: SMTP ERROR: Fai...
more »

2017-02-05 22:02 (0) Answers

Offline web application CRM using Laravel

Guys I have Offline Laravel CRM that will manage part in a company. This project will be only on one PC in the company and it shouldn't be online or on any other PC. Problem I don't want to make the employee that uses this CRM to open XAMPP or...
more »

2017-01-29 10:01 (1) Answers

URL ReWrite still go to localhost

Kindly guide me about the solution. i have url rewrite for website, when i upload this to my server it still goes to localhost, Options +FollowSymlinks -MultiViews -Indexes RewriteEngine On RewriteBase / RewriteCond %{THE_REQUEST} ^[A-Za-z]{3,}\s/...
more »

2017-01-22 05:01 (0) Answers