Dokku heroku-buildpack-php with mail? - dokku

Does anyone know how to add, use or replace the regular phpmail functionality in the heroku-buildpack-php?

Related

How to set values of alfresco-global.properties programmatically

I was working in a client application with alfresco and in need to capture the changes in docs from user's alfresco account. From further reading I came to know that I need to set some properties in alfresco-global.properties file to enable change log audit. So is there anyway I can do this using an API without requesting user to do this ? Please help
I'm not sure something like that is possible, other then using JMX. I'd be happy is someone would prove me wrong, though.
http://docs.alfresco.com/5.1/concepts/jmx-intro-config.html
For Community there is no direct way to do this other than using addon's or writing your own custom code.
There are some ways you can use when using the JavaScript Api of Alfresco.
There is an Open Source module here using JMX and a paid one here using a custom Share page.

Automate Wordpress Installation on Client Side

I want to allow users to create name path websites on my domain. I don't want them to have to use any sort of cPanel, rather just enter basic information in a form and have automation take care of the rest. Does anyone know if bitnami or softalicious or whatever has an API that can run behind the scenes to automatically create name path websites on our IP with unique subdomains/domains?
We can code from scratch but I'd certainly like to take advantage of any tools that exist if there are one's.
Thanks in advance.

How to get all domains on server using PHP?

Im working on a small php script and i want to add a feature that allow visitors to get all domains hosted on a server . But i don't know how to do it with php .
You do not tell many details...
Try system("ls /var/www/directory/with/domains")
Of course, you must have privileges.
I do not know if I understand your problem.

Is there any way to set & bypass default value to the captcha?

Currently i am want to automate the banking application (with the selenium web-driver) in which more use of captcha. i know very well captcha is used to prevent automation & there is one way to block the captcha functionality from testing environment & do the work.
But my Question is that, is there any way to set & bypass the default value to captcha, so that we can automate the captcha functionality without hiding the captcha code?
Thanks in advance for your valuable suggestions.
I think you need to ask whoever wrote the banking application.
If it is possible for a user to bypass the captcha through the web front-end then webdriver should be able to automate it fairly easily. If it's not possible for a user to bypass it, then webdriver may be able to do something clever with javascript. But it all depends on what the application allows.
If there are hidden inputs which can be used to bypass the captcha for example, then WebDriver deliberately can't interact with them, but custom javascript can. However the point of captchas is to make it impossible to for an automated script to get through, so no well-designed captcha would have such an obvious loophole.

Link checking a password protected website

I have a requirement to check that all the hyperlinks still work on a password protected, private website. What's the best way of doing this?
The site is mix of HTML and ASP.NET Webforms.
EDIT: Sorry - I don't think this question was clear.
I need something like this:
http://validator.w3.org/checklink
But for a site hidden behind a user/pass form. I don't mind doing something programmatically or purchasing something if it's reasonable.
You should seriously look at the unix command line tools to do this. Esp wget
take a look at the --spider option in combination with the --user and --password options...
Also take a look at curl or libcurl+php
There are two things that are not terrible clear about your question.
First, what sort of user/password are required. These can be POST values or they can be the username and password from the http protocol. Which do you want? There are several ways to provide a username and password to a website, and whatever solution you use has to work with your website. That means that you have to have a very accurate understanding of which method you are using. Just the fact that it has a username and password is not nearly enough information.
Second it is unclear what you mean by "links still work" do you mean internal links that will or will not work based on the proper functioning of your application, or do you mean links to public Internet sites that happen to be on a password protected site?
I am assuming the later with this answer. But if you meant the former then you should look into one of several web application test suites that have recently come available.
HTH,
FT
Rel Software's Web Link Validator works quite happily with Forms Auth based sites - we've been using it on client sites for some time now.
The main things to watch out for are:
Send the link checker to your Login Page first.
Ensure you tell it to ignore all Logout URLs (so it doesn't inadvertently log itself out).
I enjoy using SimpleTest for testing my own websites, but there's no built-in link checker.You could use it to navigate the login and fetch the page body. You'd then parse the content using regular expressions to find all links, and use SimpleTest again to verify those links (and even crawl them to verify recursively).
Of course, using cURL (or libcurl with your language of choice) gets you pretty close, too.
You just need to authenticate the WebRequests ...
Where are you stuck?
-- Edit
Well, it depends on what you mean by 'password protected'. How do is the login scheme implemented?
You can do this using Apache httpclient has the features

Resources