-
Fix missing icons for autoindex
When enabling the auto index on WAMP you will need to make a small cahnge to the apache: httpd-autoindex.conf This can be found (apending on your version) here: c:\wamp\bin\apache\Apache2.2.17\conf\extra\httpd-autoindex.conf Find: Alias /icons/ "/apache/icons/" <Directory "/apache/icons/"> Replace: "/apache/icons/" with the absolute path to your Apache Icons directory. E.g: C:/wamp/bin/apache/Apache2.2.21/icons/ Restart APACHE. DONE You need to make sure that you use FORWARD SLASH not BACK SLASH if you are copy/paste from windows.
-
Sending emails with Wamp on Windows using SMTP
Ok assuming you already have WAMP installed on your local computer start by downloading the Fake Sendmail. sendmail.exe inside the Fake Sendmail folder, is a simple windows console application that emulates sendmail's "-t" option to deliver emails. Extract the sendmail.zip file and move the folder here: "C:\wamp\sendmail". We need to use either your ISP SMTP server name or using an SMTP email account because sendmail.exe requires an smtp server to perform the actual delivery of the messages. Next configure the settings in the sendmail.ini file located here: "c:\wamp\sendmail". [sendmail]; you must change mail.mydomain.com to your smtp server, or to IIS's "pickup" directory. (generally C:\Inetpub\mailroot\Pickup) emails delivered via IIS's pickup directory cause sendmail to run quicker, but you won't get error messages back to the calling application.smtp_server=mail.domain.co.uk; smtp port (normally 25)smtp_port=25; SMTPS (SSL) supportsmtp_ssl=auto; the default domain for this server will be read from the registry this will be appended to email addresses when one isn't provided if you want to override the value in the registry, uncomment and modify;default_domain=mydomain.com; log smtp errors to error.log (defaults to same directory as sendmail.exe) uncomment to enable loggingerror_logfile=error.log; create debug log as debug.log (defaults to same directory as sendmail.exe) uncomment to enable debuggingdebug_logfile=debug.log; if your smtp server requires authentication, modify the following two linesauth_username=mail@domain.co.ukauth_password=password; if your smtp server uses pop3 before smtp authentication, modify the following three lines. do not enable unless it is required.;pop3_server=;pop3_username=;pop3_password=; force the sender to always be the following email address this will only affect the "MAIL FROM" command, it won't modify the "From: " header of the message content;force_sender=; force the sender to always be the following email address this will only affect the "RCTP TO" command, it won't modify the "To: " header of the message content;force_recipient=; sendmail will use your hostname and your default_domain in the ehlo/helo smtp greeting. You can manually set the ehlo/helo name if requiredhostname= yourdomain.co.uk There are a few lines that need to be commented out/uncommented. Only one step left and that’s to make a change in the php.ini. Search for sendmail_path and set it to "c:\wamp\sendmail\sendmail.exe –t".
-
camelCase Table Names using WAMP on Windows
When developing websites at Web2Works to ensure all our projects are of a high standard one of our standards is using the CamelCase naming conventions set by Zend Framework http://framework.zend.com/manual/en/coding-standard.naming-conventions.html If you are using a WAMP or XAMPP, and try to create a table in camelCase (example: AdminLogin) you will notice that camelCase is not working, table name will be lowercase: adminlogin. In order to fix this, you need to add to your my.cnf file the line: lower_case_table_names=2 and restart mysql. Although please note that once you have turn on this setting you can't go back. "ButThenWhyWouldYouWantToEverGoBackCamelCasingIsCool"
