Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by ash_05 · Jul 07, 2014 at 09:17 AM · wwwdatabaselocalhost

WWW does not work on localhost

I want to access the data from my WAMP based database on localhost using the below script.I have placed my php code inside wamp by creating a folder called unity_db.I have taken the build of the project,the build project is not connecting to the database.Can anybody plz help me

  IEnumerator  handleLogin(string user,string pass)
         {
         string login_url = loginCode + "?username=" + user + "&password=" + pass; 
         WWW logindata = new WWW (login_url);
         yield return logindata;
         if (logindata.text == "right") 
         {
         output = "login successful";        
         } 
         else {
             output="invalid user pass";
             }          
         }

Comment
Add comment · Show 10
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ash_05 · Jul 07, 2014 at 09:24 AM 0
Share

string loginCode="http://localhost/unity_db/login.php"; this is the value of login code

avatar image Ngoc Ngo · Jul 07, 2014 at 09:37 AM 0
Share

Were all wamp services started? Could you reach that link you gave from a browser? What's the error?

avatar image ash_05 · Jul 07, 2014 at 09:45 AM 0
Share

ys wamp service is started.

http://localhost/Database demo/Database demo.html

Even I have changed the WWW Security Emulation host url to http://localhost/unity_db where my php code is placed inside the unity_db folder.I have place the crossdomain.xml file inside my project Asset folder.

avatar image HarshadK · Jul 07, 2014 at 09:50 AM 0
Share

Did you check if that url is accessible from browser?

Also post the version of wamp server and OS you are using. (For check against compatibility issues)

avatar image ash_05 · Jul 07, 2014 at 09:53 AM 0
Share

ys from browser the url is accessible.When I take the build of the project then work it its not working. WampServer 2.0 Windows & 64-bit OS

Show more comments

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

WWW doesn't work on localhost eventhough crossdomain.xml exists 1 Answer

Why is get_url adding an extra 'http://'? -- DB request fail 1 Answer

Is it possible to open a web page inside Unity? 2 Answers

Unity - MySQL data loss 0 Answers

www php send data to mysql 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges