FAQ Database Discussion Community


in php, How to detect the server where you work

php,localhost,server
I am currently working locally on a project that, once I finish my tasks, I have to upload the changes to a server (which is in the cloud). The problem is that there are certain addresses that I pointed directly and when uploaded to the server, I have need to...

Installing PHP Github project on localhost using composer

php,github,localhost,composer-php
I downloaded the Text-Statistics ZIP master from Github and extracted and renamed the folder to stats on /Library/WebServer/Documents/stats. Then I used cd /Library/WebServer/Documents/stats and composer update and all dependencies built on /Library/WebServer/Documents/stats as well. When I go to http://localhost/stats/ in my browser, it shows as follows: This is my first...

How to fix wamp server running different wamp server folder

localhost,wamp,wampserver
I have 3 Wamp servers for my 3 different websites.How can i fix the problem if i turn on my first Wamp server (c:/folder1/wamp) instead the third wamp server is run (c:/folder1/folder2/wamp) how can i fix this? i tried to uninstall the third one but sadly all my Wamp server...

Chrome now treating IP address of localhost same as somesite.localhost

google-chrome,iis,localhost,vagrant,hosts
For a while I have been running two different server environments on my Windows 7 OS. IIS runs on 127.0.0.1 and I have a Vagrant VM that uses 192.168.33.10. My hosts file looks something like: vagrantsite1.localhost 192.168.33.10 vagrantsite2.localhost 192.168.33.10 iissite1.localhost 127.0.0.1 iissite2.localhost 127.0.0.1 Up until a week or so back,...

Project wont reflect changes on localhost

git,apache,phpmyadmin,localhost,sublimetext2
I am developing for phpmyadmin. I have forked the repository and set it up on my local machine. However when i make changes to the code, it doesnt reflect on localhost. I am using Sublime Text and using git too. When i view the code using vim or opening it...

Test emails locally with mamp

php,email,localhost,mamp,codekit
First thing first, i'm totally new to this kind of localhost server setup and i've been spending the last couple of days trying to figure this out, but with no luck. I'm developing a php website with an email form. I'm on a MAC using codekit and MAMP FREE and...

Netbeans project deployment failure

java,tomcat,netbeans,localhost
server.xml <Connector URIEncoding="utf-8" connectionTimeout="20000" port="8084" protocol="HTTP/1.1" redirectPort="8443"/> Whenever, I'm trying to run my project then, it is redirecting it to my lan ip address resulting deployment failure. Please see below. Server Log The system cannot find the file specified. The system cannot find the file specified. Using CATALINA_BASE: "C:\Users\xxxxxx\AppData\Roaming\NetBeans\8.0.2\apache-tomcat-8.0.15.0_base" Using...

/var/www/html/index.html file recreation

apache,localhost,ubuntu-14.04
I accidentally delete /var/www/html/index.html file , now I am unable to test localhost in browser, can we recreate this file or is it downloadable? please help me..

DNSMasq Not Resolving Addresses on Mac Local Web Development Environment

osx,dns,apache2,localhost,virtualhost
I've setup my local web development environment according to -http://mallinson.ca/osx-web-development/. I have done this before, and I got on a new computer, and am trying to do it again. I'm running Apache 2.4.9 on Mac OS X Yosemite 10.10.2 and directing the DNS with dnsmasq. When I try to go...

AngularJS project deployed with grunt only works on localhost:9000

angularjs,gruntjs,localhost
I'm new to AngularJs and I've been scafolding my apps with Yeoman following the steps below as outlined in this tutorial. Steps: npm install -g yo grunt-cli bower npm install -g generator-angular yo angular npm install karma-jasmine --save-dev npm install karma-chrome-launcher --save-dev grunt serve When I do this it creates...

Mac terminal ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

mysql,osx,google-app-engine,terminal,localhost
I am following this tutorial to setup a Wordpress website on Google cloud: https://googlecloudplatform.github.io/appengine-php-wordpress-starter-project/ I am working on a Mac with OSX 10.10.3. I have installed the PHP SDK for Google App Engine software. Now I am trying to install MySQL server on my mac. I have downloaded the Mac...

R rvest connect with local host

r,localhost,rvest
I am creating a way to read in SPSS labels into R. Using library(sjPlot), view_spss(df, useViewer = FALSE) I can create a local html page such as http://localhost:11773/session/file1e0c67270a5.html that shows a nice table with columns for the variable names and the labels I am looking for. Now I want to...

Spring resource mapping not working with localhost

java,spring,spring-mvc,java-ee,localhost
Setup servlet-context.xml <resources mapping="/resources/**" location="/resources/" /> .jsp <script type="text/javascript" src="/resources/js/test.js"></script> file location webapp/resources/js/test.js Problem When I access localhost:8080/myApp/resources/js/test.js it is found but what is actually rendered in the page is localhost:8080/resources/js/test.js so /myApp is missing. Is this really the case for localhost or is there something wrong with my setup?...

XAMP Apache - load a spercific site in localhost

apache,localhost
I am using XAMP on Windows and I am interested to set the default localhost to a specific site. I have a number of sites set up in virtual hosts. What do I have to do to to make this one open as localhost and not only ng-objects.dev? <VirtualHost *:80>...

UAC error while installing Xampp 1.8.35 on windows 8

windows,xampp,localhost
I am trying to install xampp but before installation it gives me the following error: I have disabled UAC and it gives me this error.When I press ok and install the thing anyway it still won't let start apache and my sql up. Also installation was done in Program file...

How an Android phone interacts with the server?

android,localhost,android-ksoap2,android-networking
I have an app running fine in emulator but not in mobile. That is app basically fetch some records from server using webservice.(SOAP). Installation is successfull and i can open the first page.but not able to proceed further due to server communication. I need your help in making this app...

How do I configure my Android emulator to access my localhost?

php,android,android-emulator,webserver,localhost
I am attempting to change my Emulator's Network Address to 10.0.2.2 so that I can test it using PHP stored on my localhost, because 127.0.0.1 is the emulated system's own loopback interface, not the one running on my host development machine. My systems knowledge is limited, so what part of...

I cannot send mail with SwiftMailer or PHPMailer from Localhost using gmail

email,gmail,localhost,phpmailer,swiftmailer
I have recently been unable to send out mails through php on localhost. I use PHPMailer and SwiftMailer in different parts of the application. With SwiftMailer I get this: Connection could not be established with host smtp.gmail.com [ #0] With PHPMailer, the message is: SMTP Error: Could not connect to...

Run PHP code on local MacOS Jekyll site, port 4000

php,localhost,jekyll
I've build a Jekyll website on my localhost (MacOS Mavericks). The website is served at http://localhost:4000/website/ and everything regarding Jekyll is running just fine. However, I now want to have a contact form in PHP that allows me to receive emails. I placed a contact.php file in the website/ folder...

Uploading a website to a server [closed]

php,phpmyadmin,webserver,localhost,server-side
Usually when you have xampp, wamp and lamp your php files and databases are stored on your local machine and not the actual server so how would you move a finished project with its database from localhost to your server?

Python 3: Spotify Add Song To Public Playlist

python,flask,localhost,spotify,python-3.4
So currently I have in place a system using Flask running on my localhost:8080 to add 1 song at a time to a public Spotify playlist. Unfortunately how I have implemented this it requires a browser to add a song. What I want to be able to do is URLLIB...

Localhost setting for multiple projects broken links

apache,localhost,wamp
I am running wamp on my pc, with more than one project, so in order to go to my project I need to go to localhost/project1 and it works fine however href links (/mypage.html) keep pointing to localhost/mypage.html. What do I need to change in order to keep the links...

PHP move_uploaded_file to upload video into MySQL not working

php,html,sql,database,localhost
Hello I tried reading through similar problems and couldn't find answer. So I want to upload a video into my server, right now I'm testing locally using XAMPP in my Macbook. I one data base table I've a column named "path" this is meant to store the file path and...

Chrome on OS X doesn't respect etc/hosts and/or httpd-vhosts.conf localhost subdomains

osx,apache,google-chrome,localhost,mamp
this is a situation that's been bugging me a lot the past few days. i have a lot of dev environment subdomains set up in my etc/hosts file like so... 127.0.0.1 localhost 127.0.0.1 sub.localhost 127.0.0.1 another.localhost 127.0.0.1 andanother.localhost 255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 localhost and then specified in my Applications/MAMP/conf/apache/extra/httpd-vhosts.conf...

server listens on 127.0.0.1, do I need firewall?

security,networking,localhost,firewall
I run a "private" service on my computer, which I do not want to be accessible from other computers. I configured it to only listen on 127.0.0.1. Do I still need a restrictive firewall? For example, is it possible to receive a packet on eth1, which would somehow have 127.0.0.1...

why I am not able to access rails localhost on my mobile or other computer

ruby-on-rails,localhost
I am trying to access my localhost of rails running project on my mobile device. This is how I am trying. http://ip:3000 But it says the webpage is not available. I tried with another port as well and It doesn't work even there? What's wrong here? I use to check...

php server ERR_CONNECTION_REFUSED

php,mysql,apache,localhost,server
I can't make a php server run on my local computer. I tryed with wampserver and Easy PHP. I checked the usage of my port:80, I changed the port from :80 to :8080, I gave Apache and mysql the permissions required on the firewall settings... I did everything, but when...

Getting visitors on localhost site

google-analytics,localhost
I'm currently developing a web application on localhost and Thursday I integrated the google analytics trackingcode on the application. I closed my localhost on Thursday night and returned this morning to see there were 71 sessions on Friday, 41 Saturday and 25 on Sunday. You can see the referrals below....

How to share my localserver with another computer?

ubuntu,ip,localhost,localserver
I am trying to see my localhost in another computer(which is in the same network) but it doesn't seem to work. I have found my static IP address and use it to see the localserver but I get nothing back. http://xxx.xxx.x.x/project/test.php I am working on an UBUNTU system and running...

NetworkError: 500 Internal Server Error while running java services

java,php,apache,ubuntu,localhost
when i am trying to run a java services through php file(xyz), it is throwing this error (Firebug) NetworkError: 500 Internal Server Error http://127.0.0.1/dev/en/abc/xyz /var/log/apache2/error.log is showing PHP Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: ReferenceClass failed: new com.intelligent.abc.main.RunABCHandler. Cause: java.lang.ClassNotFoundException: While other java services are responding perfectly fine. Can i get suggestion,...

Difficulty running my code in web host

php,mysqli,localhost
Currently I am having problem running my code in live server even though i can run it in my localhost. if($con->connect_error){ $response['success'] =0; $response['message'] ='could not connect to database'; print(json_encode($response)); die(print(json_encode($response))); } $response['success'] =1; $response['message'] ='successfully connected to the database'; print(json_encode($response)); $depart = $_GET['depart']; $destination = $_GET['destination']; $sql = "INSERT...

Making an installer for a web app with database and a windows service

asp.net,sql-server,iis,windows-installer,localhost
I want to make an installer for a client which installs a web app on IIS a mssql db a window service I am totally naive to thinking of the solution for this automated deployment through an installer (msi or exe). The installer may hint the user for prerequisites for...

Magento: Object not found in localhost

php,magento,localhost
I'm trying to copy website made in Magento in my localhost and finished another steps: downloaded whole website via ftp account, import database from server, change parameters for database in local.xml (post root for user and empty field for password), clear cache in Magento var folder, change base_url value in...

Virtual Directory to navigate to http://localhost/MyWebsite instead of http://localhost:8080

asp.net-mvc-4,iis,iis-7,localhost
I have deployed an ASP.NET MVC 4 application to a new site I have created in IIS 7.5, which I have bound to port 8080. I can reach it by navigating to http://localhost:8080, but I want to reach it via http://localhost/MyWebsite. I have added a Virtual Directory under my website,...

I update my xampp and i face this errors Notice: Undefined variable: session in

xampp,localhost
I update my xampp and i face this errors Notice: Undefined variable: session in I try to php.ini but no solution i have more than 30 scipts in my localhost and i want to ignore this errors. How can i do this

How to allow extensionless url for subdomains on localhost?

php,apache,.htaccess,url-rewriting,localhost
I have set up up subdomain m.localhost with vhost. m.locahost is point to htdocs/m/ folder I want both m.localhost/page and m.localhost/page.php to be working and show as m.localhost/page. On my production site,I have something like this on my .htaccess file and it is working fine: RewriteCond %{REQUEST_METHOD} !POST RewriteCond %{THE_REQUEST}...

Getting UPLOAD_ERR_PARTIAL when uploading images on localhost

php,html,image,forms,localhost
I'm working on a simple html form to upload an image, then save it on a directory situated on my localhost. <form action="<?php echo htmlspecialchars($_SERVER['PHP_SELF']);?>" enctype="multipart/form-data" method="post"> <label for="img">Pick a picture</label> <input id="img" type="file" name="image"> <input type="submit" name="imageProfil" value="Upload the image"> </form> However, when I handle the image, while checking...

Can't open sql connection in cs file - asp.net

c#,mysql,asp.net,database,localhost
I am new to ASP.NET and following a tutorial where a user can register to a site and it checks a database to see if username already exist. When came time to create database, the tutorial said to create it in visual studio (mdf file), but i use MYSQL Workbench,...

How to upload wordpress theme to sub domain

wordpress,xampp,localhost,wordpress-theming,subdomain
In my localhost(xampp) wordpress themes are installed. I activate one of them And create user name and password for the wp-admin. And I backup database and wordpress site and upload it to subdomain(live site). After upload all content will load without CSS style-sheet. And wp-admin also not working. And url...

Why can't i access an image from the localhost? Is it even possible to display an image through web services?

php,database,web-services,soap,localhost
Every time i try to display the image it's like the link is not correct. Using the console i get the error Failed to load resource: the server responded with a status of 404 (Not Found) How can it not find it if it is in the same folder? I...

Dreamweaver can't connect to localhost

browser,xampp,localhost,dreamweaver
I can't preview what I'm programming in Dreamweaver in any browser anymore. The message I get (e.g. from Safari) is: Safari can't open the page "localhost/~user/mySite/index.htm", Safari can't connect to the server "localhost" I just couldn't find any answers in the internet which could solve this. What I did since...

WP development locally - Error establishing a database connection

mysql,wordpress,localhost
I'm using Linux Mint 13 (Ubuntu 12.04 based) and trying to install a local development environment of a WordPress production project which right now is in an amazon EC2 instance. First, I cloned WP project from its bitbucket repository. After, I made a db environment backup with: mysqldump -u root...

Connect to localhost:3000 from another computer | expressjs, nodejs [duplicate]

node.js,express,localhost
This question already has an answer here: How can I access localhost from another computer in the same network? [duplicate] 2 answers I'm currently working on a project and I would like to test it from another computer or phone...., this compter is connect on the same network how...

My controller keep on returning the error “The requested resource is not available”

java,spring,hibernate,localhost,controllers
I have this controller. @Controller @RequestMapping("/addr") public class AddressController { public List<Address> addresses = (List<Address>) Collections.synchronizedCollection(new LinkedList<Address>()); @RequestMapping("/new") public String getAddressForm() { return "addressProject/addressBook"; } @RequestMapping("/submit") public ModelAndView submitForm(String name, String email, String group, String phoneNumber, String address){ Address addr = new Address(name, email, group, phoneNumber, address); addresses.add(addr);...

wamp changing port number

wordpress,localhost
I use WAMP and if I go http://localhost:8080/ its working nice, If I go http://localhost:8080/source its working nice, If I go http://localhost:8080/source/auth_sample its working nice, BUT if I going http://localhost:8080/poweram/ then its not going there, this going http://localhost/poweram/ , but why ? I need to go localhost:8080 not to localhost,...

grunt-contrib-connect - Fatal error: getaddrinfo ENOTFOUND my.website - How to set up custom URL?

javascript,url,gruntjs,localhost,grunt-contrib-connect
I want to use grunt-contrib-connect to create a server under a specific URL, let's say http://my.website/. According to the documentation, all I need to do is just to change the hostname option, but I keep getting an error saying: Fatal error: getaddrinfo ENOTFOUND my.website. Here's my Gruntfile.js: connect: { dev:...

Weird Heroku issue rails admin

ruby-on-rails,heroku,localhost
So I have rails app hosted on Heroku. For some reason the admin panel of my app on localhost and on the heroku site are looking different. And the issue is causing it, the app is behaving differently too, plus the css is not loading properly as well. Since the...

Elasticsearch newbie: Integrating with Rails and localhost:9200

ruby-on-rails,ruby,curl,elasticsearch,localhost
Going to try and keep this short for readability. I need to integrate elasticsearch with Rails for a test app and did so following this tutorial: http://www.sitepoint.com/full-text-search-rails-elasticsearch/ I came across the portion that says "Validate Installation Open this url: http://localhost:9200 and you’ll see ElasticSearch respond like so: { "status" :...

Change browser/system default localhost port (80) to custom

apache,xampp,localhost,wamp,wampserver
When I using XAMPP or WAMP I getting the following issue: XAMPP - Port 80 in use by "Unable to open process" with PID 4! 12 And it`s easy to solve it by changing the .ini file of Apache and tell him to use port 8080 (for example)... But then...

Django syncdb mysql error on localhost -> (1045, "Access denied for user 'ODBC'@'localhost')

django,localhost,syncdb
Hoping someone can help me connect django to mysql db on localhost... I have installed Django site into virtualenv folder on my desktop and following django docs Tutorial step by step. I have mysqlclient installed via pip as per django docs. I have WAMP V2.5 with latest phpmyadmin installed and...

Is my /etc/hosts file broken?

localhost
I am not sure why my /etc/hosts file look like this: I tried to open it using different editor(vim, sublime, TextEdit). They all look same. Is this normal?...

How to eliminate duplicates rows in MySQL?

mysql,localhost,duplicate-removal
Even after running query asSELECT DISTINCT STATES I am getting duplicates. This is the query SELECT COUNT(*) AS `Rows`, `STATE` FROM `bank_database` GROUP BY `STATE` ORDER BY `STATE` LIMIT 100 And here is the output I need 63 ANDAMAN AND NICOBAR ISLAND 7311 ANDHRA PRADESH 150 ARUNACHAL PRADESH ... and...

MySQL LaunchDaemon on OS X Yosemite: Localhost connection fails

mysql,localhost,osx-yosemite
Starting with OS X 10.10 Yosemite, StartupItems are no longer supported. I have created a LaunchDaemon to automatically start the MySQL database on the server. So far it works, but I am unable to use "localhost" as connection parameter in a few tools (connection over socket is not intended to...

Flask: Creating a local custom host name instead of localhost?

dns,flask,localhost
Currently, my flask app runs locally on: http://localhost:5000/some_page How could I create a local custom location for my app like: http://myappname/some_page Sort of like a local domain name. Is this possible at all? Any pointers would be great. ...

Validate custom HTTP header in PHP which sent by iOS

php,ios,http-headers,localhost,nsmutableurlrequest
What I'm trying to do is, sending a HTTP request with custom header from my iOS application to my localhost which runs XAMPP in my MAC machine. Then there is a PHP page which check my particular header and respond according to that. Following is the iOS part NSString *urlStr...

Can not acces localhost:3000 ruby on rails ubuntu

ruby-on-rails,ruby,ubuntu,localhost
I have been trying to access or at least show my server in my Rails by running the command rails s or rails server and it does not work: At first it told me I had to install new gems and to run the command bundle install to upgrade them...

TABLE.label doesnt exist YII, framework

php,database,database-design,yii,localhost
I was working with YII framework, I made the models and then I used the Crud generator and I also made those things using Crud generator. Everything works fine so when I go to localHost/myprogram/index.php/myTable I can see the table myTable. I have 6 tables in my Database and they...

setting SSH access to localhost

ssh,key,localhost
I am trying to setup ssh access to my own local machine. I have created the id_rsa key using ssh-keygen. I added id_rsa.pub to authroized_keys in .ssh/ I made sure the permission of authorized_keys is 640 I enabled public-key authentication in sshd_config & restarted ssh RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile...

rails server not starting on rails 3.1.2

mysql,ruby-on-rails,localhost,uuid,ruby-1.9.3
I am using rails 3.2.1 with ruby 1.9.3 on ubuntu 13.10 with rbenv I hace everything good but when I try to start the server it gives an error anybody who know anything related to this please help. In a great need. => Booting WEBrick => Rails 4.2.0 application starting...

xampp showing folder empty in htdocs

php,xampp,localhost,htdocs
I have a folder called myfiles in htdocs and this folder contains a file with name home.php. When I open http://localhost:8080/myfiles/ it was showing no files in it. After trying few things, somehow I get a thought of changing the file name to home1.php and then the file are being...

Links are not fully working after adding active class with php

php,localhost,anchor
I'm using php to add active link state to my navigation menu which is shared dynamically across all my website pages. But when I go to other links from homepage it works fine but when I go back to homepage its give me "object not found" error. <!--start vertical menu-->...

error in python mysql where clause

python,html,mysql,apache,localhost
I am newbie to python .written a small code to connect to database and fetch the data from database .I am using python 3.4 and mysql.connector to connect the database HTML form is used to get the name and password .code is as given below <html> <head> <title>test</title> <link rel="stylesheet"...

Google AppEngine dev app server won't run on localhost

eclipse,google-app-engine,localhost,google-cloud-endpoints,dev-appserver
I'm using Eclipse Java EE and when I compile and run my Google AppEngine project on localhost:8080 the browser doesn't give any correct output, but when I'm using 127.0.0.1:8080 my program runs on the browser just fine. But when I deploy my app to the google appspot then the localhost:8080...

localhost is not working in wamp server

localhost,wampserver
My localhost is not working, But when I type 127.0.1.1 on browser its working. When I run localhost, I get following thing Please advice me how to solve this....

Is secure to let access to ip-based blocked website to 127.0.0.1?

security,ip,localhost
I have a website that should not be visible for people outside some countries. I do a ip-blocking, but for testing purposes I need to let 127.0.0.1 access to the website. I know that ip blocking isn't totally safe, but, letting 127.0.0.1 access, can create troubles?...

java applet run local host but doesn't run after publish iis , By asp.net

java,asp.net,iis,applet,localhost
I embedded java applet in my asp.net web site to make digital signature , it work greet in local host , but when publish it , java applet run on browser but java script code that call function on java applet is not defined codesignApplet = document.getElementById('SignApplet'); signApplet.SetCertificate() So when...

Facebook web app on XAMPP localhost - how to go through the review?

facebook,permissions,xampp,localhost,photos
I am currently trying to develop a simple Facebook web application on XAMPP localhost to read photos and tags. I understand one does not need to go through Login Review if the app requests the three basic permissions: public_profile, user_friends, email I would need to ask for user_photos permission, and...

PHP mail()- can't send mails to Gmail from localhost(xampp)

php,localhost,sendmail
For a schoolproject i need to send e-mails from localhost to gmail. i've downloaded and copied all of the files from http://glob.com.au/sendmail/ and pasted them into my xampp/sendmail folder. I just can't find the problem, any help is appreciated. here are my settings which should technically work. <--sendmail.ini file--> smtp_server=smtp.gmail.com...

Webstorm localhost from mobile

mobile,localhost,port,webstorm
I can't access my Webstrom localhost on port 63342 from mobile. I opened the port in Windows firewall and ESET (but port online checkers say me that the port still close). I checked option "Can accept external connections" in Webstorm (but it caused message that Built-in HTTP server on...

rails server is not starting in rails 3.2.1

mysql,ruby-on-rails,localhost,server,ruby-1.9.3
I am using rails 3.2.1 with ruby 1.9.3 on ubuntu 13.10 with rbenv I hace everything good but when I try to start the server it gives an error anybody who know anything related to this please help. In a great need. => Booting WEBrick => Rails 4.2.0 application starting...

use if condition to compare the password using python

python,html,mysql,apache,localhost
I have HTML form for getting the name and the password .And python codes are used to get that enter data and store in variable first_name and password. For given name stored password is fetched from database using WHERE clause . By using if condition I have tried to compare...

Deprecated error in pass by reference in latest version of localhost

php,localhost
All the project is error free on localhost vertrigo_222 (and also on livehost). Now I am trying to upgrade my localhost to latest version vertrigo_230. I am facing following deprecated error: Here is line number 1170 and 1171: calculate_city_row_col($row['attacker_city_id'], &$att_city_row, &$att_city_col); calculate_city_row_col($row['defender_city_id'], &$def_city_row, &$def_city_col); Please give me some solution. Thank...

ReactJS localhost Ajax call: No 'Access-Control-Allow-Origin' header

javascript,ajax,node.js,localhost,reactjs
Working on the ReactJS tutorial I spinned up a local server with >npm install -g http-server >http-server -c-1 And got local server working fine located at http://localhost:8080 Though, when I attempted to use an AJAX call within one of my components, I got the following error in my chrome console:...

Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128'

php,laravel,localhost,mcrypt
I have successfully installed Laravel, but after running php artisan serve and going to localhost:8000 I get this error: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' I have checked phpinfo() on localhost:8888 and it says that mcrypt is properly installed. However the only thing I can think of is...

insert in localhost name with '

sql,localhost
I want to add a name in localhost with apostrophe like for example i have a coumn labeled company name and the name of the company is Bob's Bistro i get error on this how to add this in localhost my code goes like this INSERT INTO `companyname_tbl` (`comp_name`,parent_id ,`company_code`)...

Pass parameter string in URL similar to -d CURL command

rest,curl,localhost
Very basic question about curl: I can successfully pass a string parameter to the application exposing REST API on localhost with: curl -d "stringParam = a b c d" 'localhost:8080/jobs?appName=testApp' How would I compose regular URL that can be entered in a browser? I've tried: localhost:8080/jobs?appName=testApp&stringParam="a b c d" ,...

Access Localhost on other devices (Same Network)

php,mysql,wordpress,apache,localhost
I am hoping that someone might be able to help me. I have searched and searched and tried a bunch of things however was unsuccessful. Here is what I would like to do. I have installed wordpress on my laptop and have been developing a website via WAMP. Localhost/wordpress works...

How would I be able to connect a local SQL database to the internet/ be internet-accessible?

sql-server,localhost,server
You may think this is a stupid question -- I'm not a computer science major by any means --- but say I want to play around with SQL Server Express (free edition). Once I install it on my local machine, how would I be able to play around with it...

golang editing previously set flag. MySQL error 1045

mysql,go,localhost,mysql-error-1045
I'm having trouble setting a flag after user input to use as a connection parameter to a MySQL Database. Below is a snippet of my code: func init() { flag.StringVar(&flagUser, "user", "root", "User") reader := bufio.NewReader(os.Stdin) fmt.Print("Enter username: ") inputUser, _ := reader.ReadString('\n') f := flag.Lookup("user") if inputUser != f.Value.String()...

Different code behaviour on localhost and Azure Cloud Services. Why?

php,azure,localhost
I have a project that works flawlessly on localhost but as soon as I run the same project on Azure Cloud Services, many features like emoticon rendering, date rendering and hyperlink rendering become inconsistent. Anyone knows why and how I could fix this problem? The whole project is in PHP,...

On local development with Wordpress on iOS, resources fail to load

ios,wordpress,localhost
Have been developing a Wordpress theme using MAMP (localhost:81), and I am now testing some responsive parts on iOS (using my IP (192.168.1.15:81). Some images are hard-coded (i.e. not changeable from the admin), using the following code: <img src="<?php echo get_template_directory_uri(); ?>/images/brand-id.svg" onerror="this.src=<?php echo get_template_directory_uri(); ?>/images/brand-id.png" alt="Brand Name" /> It...

Jenkins and Github auto trigger

github,jenkins,continuous-integration,localhost
I'm trying to setup Jenkins and Github such that Jenkins will build my project when something is pushed to Github. However, I can't seem to get the webhooks to work. I set the webhook on github to : http://localhost:8080/github-webhook/. I'm running the jenkins server on my laptop, therefore I am...

XAMPP load blank screen on codeigniter

php,codeigniter,xampp,localhost
I'm using XAMPP as my localhost server testing, and I'm using the CodeIgniter PHP framework for my web app. When I want to test my web application, XAMPP doesn't load properly. I've been waiting around a minute, and then what I get is just blank screen on the browser page....

I get 404 response trying to access a jsp page in my localhost server from my Android app

android,jsp,url,localhost
I have an android project with one main activity. And i want it to access a JSP page inside my localhost server. I have a tomcat 7 in my pc and, in /webapps/ i have a folder called JSPyDB where my ejemplo.jsp page is stored.(i get to access the jsp...