Programmers of proprietary software: Why they don't belong here
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
i would say LQ is about a community of people volunteering their time to answer questions, no questions asked (well with the exception of where it comes to telling someone how to do something illegal)
even homework questions are acceptable as long as the poster understands he/she might not get a direct answer but a reply that will help the poster understand how to find the answer or an answer that lead the poster to the solution, so why would a professional programmer who gets stuck be treated any differently? even if the code in question ends up in a proprietary program the answer to the question might help out someone else doing a similar open source project. That's what this forum is about, not discriminating why a question is being asked and by whom.
1 members found this post helpful.
Click here to see the post LQ members have rated as the most helpful post in this thread.
This is LinuxQuestions.org, and people who post here are forced to give away their code anyway when they need help, and I agree with that trend. As such, programmers of proprietary software shouldn't be here unless they want their entire source code revealed to the public. Thanks LQ programming forum for doing its best to kill at least *new* proprietary software!
You are ridiculous with this one! People who write code for contract in no way should be required to adhere to such a ridiculous rule. Loads of Open Source programmers code and program snippets are developed by people who have day jobs or contracts to program for hire.
I have not contracted for a while but in no way would adhere to such an absurd rule.
"Wisdom is only found in truth."-Goethe
Grow up! When you get a job then the picture will change for you or the job will change you or else you won't have that job.
“Politeness goes far, yet costs nothing.”- Samuel Smiles
Your questions may have been answered but what about direct queries to you. How do you justify this position.
Onebuck, one of Kenny Strawn's merits is that he knows when to quit. The position he took in his first post was indefensible, and he should be allowed to drop it quietly if he wants to. Personally, I think it was the result of partying too hard during the New Year celebrations.
If it's a password to get into your system, you store a hash and a salt. When the you get a password to verify, you apply the salt to the password, hash the combination, and compare what you get to the stored hash.
If it's a password to get into another system, you store it in a configuration file and have your source code read that file.
In neither case do you put the password in your source code.
No, I was talking about passwords for MYSQL databases in PHP code. OK, I'll have to read what you said again to understand it , but how do I do all that in PHP?
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
Quote:
Originally Posted by resetreset
No, I was talking about passwords for MYSQL databases in PHP code. OK, I'll have to read what you said again to understand it , but how do I do all that in PHP?
file config.inc
Code:
$user=user;
$pwd=password;
$database=dbname;
$dbhost=dbhost(often localhost except on hosting providors);
index.php
Code:
require_once('config.inc');
$sqli = new mysqli($dbhost,$user,$pwd,$database);
hope this helps
even if you don't do something like that you can still replace usernames/passwords with dummy usernames/passwords when posting, most everyone, myself included does that, i even do that with IP addresses in config files/scripts for routers as not to reveal the internal workings of a network, it's called Redaction
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.