phppup Posted May 24, 2014 Share Posted May 24, 2014 I got a new laptop running Windows 7 and wanted to develop some PHP coding for test purposes. I want the data I test to go into MySQL. What do I need to do and where can I get the appropriate downloads to get started with the most basic of set-ups? Quote Link to comment https://forums.phpfreaks.com/topic/288737-mysql-php-set-up/ Share on other sites More sharing options...
Ch0cu3r Posted May 24, 2014 Share Posted May 24, 2014 (edited) Download an all-in-one package such as wamp or xampp. Place all your html/php files in the www/htdocs folder, add your data to MySQL database using phpmyadmin (usually accessed via http://localhost/phpmyadmin) and then run your code by accessing http://localhost. Edited May 24, 2014 by Ch0cu3r Quote Link to comment https://forums.phpfreaks.com/topic/288737-mysql-php-set-up/#findComment-1480707 Share on other sites More sharing options...
baltar Posted May 24, 2014 Share Posted May 24, 2014 It's relatively simple with wamp. I am very much a noob myself and I haven't had a problem with wamp and phpmyadmin. You will go into phpmyadmin through wamp. Make sure wamp is online; aka wamp's W logo is green (not orange or red). Right click the logo, click on phpmyadmin ( right below localhost option). Important: phpmyadmin prompts you for username and password. -u root -p The notation means username is root and password is left blank. Hit go. Quote Link to comment https://forums.phpfreaks.com/topic/288737-mysql-php-set-up/#findComment-1480720 Share on other sites More sharing options...
phppup Posted May 24, 2014 Author Share Posted May 24, 2014 Let me re-phrase: I want to be able to test code and forms on my laptop WITHOUT using an internet connection. No cable. No WiFi. No connectivity. Just me, the laptop, and the code. Is there a simple process so that I can I install PHP and MySQL for this purpose? Quote Link to comment https://forums.phpfreaks.com/topic/288737-mysql-php-set-up/#findComment-1480737 Share on other sites More sharing options...
Ch0cu3r Posted May 25, 2014 Share Posted May 25, 2014 I think you're confused. Once you have wamp/xampp installed you do not need to be connected to the internet. http://localhost is a local loop back address. Quote Link to comment https://forums.phpfreaks.com/topic/288737-mysql-php-set-up/#findComment-1480780 Share on other sites More sharing options...
phppup Posted May 28, 2014 Author Share Posted May 28, 2014 Trying to get WAMP working. Apparently there are some Microsoft updates required. What is the difference between WAMP and XAMPP? Am I right in saying that XAMPP is more advanced? Has more user options? Thanks for the help. Quote Link to comment https://forums.phpfreaks.com/topic/288737-mysql-php-set-up/#findComment-1481218 Share on other sites More sharing options...
Ch0cu3r Posted May 29, 2014 Share Posted May 29, 2014 They are both the same really. The difference is with the bundled software/user interface which adds no real benefit for developement. They just provide an easy to install all-in-one package for setting up the AMP stack required for developing/testing PHP code locally on your PC. Just chose the one you find easiest to use. Personally I prefer to install the AMP stack manually rather than use an all-in-one package. Trying to get WAMP working. Apparently there are some Microsoft updates required. Everything you need should come with the wamp installation package. Not sure what you mean by that... Updates reported by Windows Update has nothing to do with WAMP. Quote Link to comment https://forums.phpfreaks.com/topic/288737-mysql-php-set-up/#findComment-1481255 Share on other sites More sharing options...
phppup Posted May 29, 2014 Author Share Posted May 29, 2014 Not everything is included. I found a thread on WAMP that guided me to 4 updates to resolve an MSVCR110.DLL error. Meanwhile, I think I finally got it loaded, but nothing occurs when I hit the WAMP desktop icon (except a message asking if I want to allow the program to make changes to my computer). What should my next steps be to validate the install and utilize the download? Quote Link to comment https://forums.phpfreaks.com/topic/288737-mysql-php-set-up/#findComment-1481290 Share on other sites More sharing options...
Ch0cu3r Posted May 29, 2014 Share Posted May 29, 2014 (edited) I found a thread on WAMP that guided me to 4 updates to resolve an MSVCR110.DLL error. I would of thought WAMP shipped with that. If you want to know what it is the VC11 runtime environment. Meanwhile, I think I finally got it loaded, but nothing occurs when I hit the WAMP desktop icon (except a message asking if I want to allow the program to make changes to my computer) That will be firewall dialog box. Click allow (should only need it do it once). You need to accept it otherwise Apache will not work. What should my next steps be to validate the install and utilize the download? Go to http://localhost and you should get the WAMP project index page. That will verify the installation was a success. Also there should be a WAMP icon in taskbar next to the clock, it should be green if all wamp components are running. Edited May 29, 2014 by Ch0cu3r Quote Link to comment https://forums.phpfreaks.com/topic/288737-mysql-php-set-up/#findComment-1481293 Share on other sites More sharing options...
phppup Posted May 29, 2014 Author Share Posted May 29, 2014 Do I need to have an internet connection at that point? Quote Link to comment https://forums.phpfreaks.com/topic/288737-mysql-php-set-up/#findComment-1481316 Share on other sites More sharing options...
phppup Posted May 29, 2014 Author Share Posted May 29, 2014 There's NO icon on the taskbar, but there is one with the "USB removal" button etc. Tried opening the index page from the WWW folder, but it didn't display properly. It simply showed all the PHP coding, but did NOT translate it into functional end-product. My assumption is that something is missing, but not sure what or where. Quote Link to comment https://forums.phpfreaks.com/topic/288737-mysql-php-set-up/#findComment-1481331 Share on other sites More sharing options...
Ch0cu3r Posted May 30, 2014 Share Posted May 30, 2014 Do I need to have an internet connection at that point? Nope you can be offline. http://localhost has nothing to do with the internet. When you go to http://localhost it will send a http request to port 80 on our computer. This is the port the Apache http server listens on for serving files. There's NO icon on the taskbar Sounds like WAMP is not running. If you have installed WAMP it should already by running. If not then I think you can goto Start > WAMP > Wampserver to get it running. The taskbar icon should then appear. If you're having problems starting WAMP then I recommend to get help from their official forum. Tried opening the index page from the WWW folder, but it didn't display properly. It simply showed all the PHP coding, but did NOT translate it into functional end-product. My assumption is that something is missing, but not sure what or where. That is not how you run php files. As I said you need to go to http://localhost in order run PHP code. You only open PHP files in the WWW folder if you are going to edit the code in your code editor. Quote Link to comment https://forums.phpfreaks.com/topic/288737-mysql-php-set-up/#findComment-1481362 Share on other sites More sharing options...
Solution phppup Posted May 30, 2014 Author Solution Share Posted May 30, 2014 Thanks for you patience. I was playing around last night and EUREKA! I think I've got it. It's been a while since I worked on my PHP but I certainly managed to get something flowing through my browser. Now the next step, setting up MySQL. I generally view stored data through a "dashboard" that offers options and an Excel-styled view. Does this option exist in WAMP? I have a suspicion that it will only be generated if I create code for it. Is there a way to view the stored data without creating code for a table? Thanks for the help. Quote Link to comment https://forums.phpfreaks.com/topic/288737-mysql-php-set-up/#findComment-1481387 Share on other sites More sharing options...
Ch0cu3r Posted May 30, 2014 Share Posted May 30, 2014 Yes you can use phpMyAdmin to examine the data in your database. Head over to http://localhost/phpmyadmin (or left click the WAMP and icon and choose phpmyadmin) Quote Link to comment https://forums.phpfreaks.com/topic/288737-mysql-php-set-up/#findComment-1481388 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.