{"id":8610,"date":"2013-12-30T04:27:52","date_gmt":"2013-12-30T04:27:52","guid":{"rendered":"http:\/\/2slick.com\/web\/?p=8610"},"modified":"2013-12-30T07:06:13","modified_gmt":"2013-12-30T07:06:13","slug":"useful-tips-for-setting-up-wamp-to-develop-in-php-and-mysql","status":"publish","type":"post","link":"https:\/\/2slick.com\/web\/useful-tips-for-setting-up-wamp-to-develop-in-php-and-mysql\/affordablewebsitestips\/tutorials","title":{"rendered":"Useful tips for setting up Wamp to develop in PHP and MySQL"},"content":{"rendered":"<p>Installing WAMP using the WAMP's &nbsp;site instructions is straight forward enough, but I noticed a few things where left out.<\/p>\n<h3>Accessing WAMP controls<\/h3>\n<p>You can access 'phpMyAdmin', 'local host', 'MySQL', 'online\/offline' and many other WAMP features by clicking on the WAMP icon in the system tray.<\/p>\n<h3>Setting up Want to work with DreamWeaver<\/h3>\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=sWfNVRWD1KU\">http:\/\/www.youtube.com\/watch?v=sWfNVRWD1KU<\/a><\/p>\n<h3>Signing in to the database<\/h3>\n<p>Click on the WAMP icon in the system tray to access phpMyAdmin. You can sign in with the default database login:<\/p>\n<p>username: root<\/p>\n<p>password:<\/p>\n<p>Yes that's right, the password is blank.<\/p>\n<h3>Connecting to the MySQL database using PHP<\/h3>\n<p>In your PHP scripts you will use the default WAMP database login:<\/p>\n<p>username: root<\/p>\n<p>password:<\/p>\n<p>Yes that's right, the password is blank.<\/p>\n<h3>Turning off PHP error reporting<\/h3>\n<p>If you're getting \"Notice: Undefined variable:\" warnings all the time:<\/p>\n<p><a href=\"http:\/\/2slick.com\/web\/wp-content\/uploads\/2013\/12\/php_warnings_on.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8612\" title=\"php_warnings_on\" src=\"http:\/\/2slick.com\/web\/wp-content\/uploads\/2013\/12\/php_warnings_on.jpg\" alt=\"\" width=\"605\" height=\"159\" srcset=\"https:\/\/2slick.com\/web\/wp-content\/uploads\/2013\/12\/php_warnings_on.jpg 605w, https:\/\/2slick.com\/web\/wp-content\/uploads\/2013\/12\/php_warnings_on-300x78.jpg 300w\" sizes=\"auto, (max-width: 605px) 100vw, 605px\" \/><\/a>&nbsp;<\/p>\n<p>it's because you have to turn off PHP error reporting. Most hosting companies have PHP error reporting turned off by default, why WAMP doesn't is beyond me. To turn off PHP error reporting follow the instructions below.<\/p>\n<ol>\n<li>Click on the WAMP icon in the systems tray.<\/li>\n<li>Select 'PHP'.<\/li>\n<li>Select 'php.ini'.<\/li>\n<li>Use the text editor find text tool and find the text 'error_reporting = E_ALL' and replace it with 'error_reporting = E_ALL &amp; ~E_NOTICE'.<\/li>\n<li>Save and restart WAMP. You restart WAMP by clicking on the WAMP icon in the system's tray and selecting 'Restart All Services'.<\/li>\n<\/ol>\n<h3>Enabling PHP short open tags<\/h3>\n<p>If you're PHP developer like me then you like using the short open tags&nbsp;<img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-8620\" title=\"short_open_tag_php\" src=\"http:\/\/2slick.com\/web\/wp-content\/uploads\/2013\/12\/short_open_tag_php2.jpg\" alt=\"&lt;? instead of &lt;?php \" width=\"232\" height=\"18\" \/>&nbsp;. WAMP has short open tags turned off by default, but turning them of is easy.<\/p>\n<ol>\n<li>Click on the WAMP icon in the systems tray.<\/li>\n<li>Select 'PHP'.<\/li>\n<li>Select 'PHP Settings'.<\/li>\n<li>Check the 'Short Open Tags' option.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Installing WAMP using the WAMP&#8217;s &nbsp;site instructions is straight forward enough, but I noticed a few things where left out. Accessing WAMP controls You can access &#8216;phpMyAdmin&#8217;, &#8216;local host&#8217;, &#8216;MySQL&#8217;, &#8216;online\/offline&#8217; and many other WAMP features by clicking on the WAMP icon in the system tray. Setting up Want to work with DreamWeaver http:\/\/www.youtube.com\/watch?v=sWfNVRWD1KU Signing [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":8611,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[715,714,592,713],"class_list":["post-8610","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-database-connection","tag-mysql","tag-php","tag-wamp"],"_links":{"self":[{"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/posts\/8610","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/comments?post=8610"}],"version-history":[{"count":7,"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/posts\/8610\/revisions"}],"predecessor-version":[{"id":8622,"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/posts\/8610\/revisions\/8622"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/media\/8611"}],"wp:attachment":[{"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/media?parent=8610"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/categories?post=8610"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2slick.com\/web\/wp-json\/wp\/v2\/tags?post=8610"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}