Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
[SOLVED] How Much Do You Personally Make as a Web Developer?
Daniel0 replied to Fluoresce's topic in Miscellaneous
Aren't PhD students paid where you are from? In Denmark it's regarded as a job and the PhD students are actually employed by the university. I was only able to find this which says anywhere the salary is from $55,541/yr to $67,075 excluding pension, or $63,213/yr to $76,423/yr including pension. It's from DTU (Technical University of Denmark), but it should be the same at all the other universities, because as far as I know it's based on government paygrades. -
but not infinite php loops, right? And what is the alleged difference between an infinite loop in PHP, C, C++, C#, Java, Python, etc.? Waiting for the server is normally called "push" and asking the server "is there anything new yet" is called "pull". Push will generally lead to better performance. Take one of the desktop IM application you might be using for instance. Imagine what a massive load it would put on servers if you constantly had to ask the server if someone IM'ed you. It would be much better just connecting to the server and say "when there are any messages for me, please send them to me" and then just wait. I don't know about shared hosting. I would imagine that most don't allow that. You could look into purchasing a VPS (or even a dedicated server if your requirements warrant it) where you can configure PHP as you see fit. I don't know what "real" web application use (whatever that's supposed to mean). I believe there is also a technique with using an invisible Flash app, and something with refreshing iframes. You should easily be able to find further information using Google. Long polling is probably the easiest to implement, and it is very widely supported. To prevent getting the connection closed prematurely you might want to send small payloads to the listening servers once in a while though.
-
Oh... that's why. Seriously, if you want proper hosting you'll have to pay for it. Ideally you would purchase a VPS so you have full control over its configuration and so other people's sites won't bring down your site as well.
-
-
You are aware that the browser you used to post that message is kept open because of infinite loops, right? Otherwise the window would have closed immediately after opening.
-
Well, if you cannot get the image then you obviously cannot resize it either. Find a real host.
-
Yes there is, you just set height = height * (200/originalWidth). It's basic mathematics. You find the relative growth of the width and multiply the height with that same growth rate. Doing that you'll retain the proportions. As GingerRobot said, you still shouldn't use HTML attributes for image resizing though.
-
One User -> Multiple Simultaneous Logins
Daniel0 replied to black.horizons's topic in Application Design
You'll have to elaborate on what exactly you mean. You can't rely on other people's knowledge of any arbitrary system. I don't see how you could pull that off seeing as HTTP is stateless. Well, strictly speaking you don't have to use PHP's support for sessions and you could use cookies, but considering PHP's sessions are implemented on top of cookies, it's still essentially the same thing. -
Push technology is a bit more difficult to pull off (no pun intended) on the HTTP protocol because it's stateless. One way of doing it is using long polling. Essentially you make a request (using JavaScript) as normal to the backend server, but if there is no information available then it'll just wait until there is. Once information becomes available the request will complete and a new one will immediately be made. That is probably the easiest way to implement it. Depending on the frequency of new information to be pushed, and the importance of receiving all message on the client end, you might have to take network latency into consideration and give each message a sequentially incremented ID. The client can then pass the last ID received while establishing a connection so the server can send all messages that was sent since the last time.
-
Where is $L['products'] defined? Also, how "doesn't it work"?
-
Actually, sandrine, you are very often misplacing your posts in places where it is blatantly obvious it does not belong. Do make an effort of reading the board descriptions. Your general PHP questions do not belong in neither our suggestions/feedback board nor in the math board.
-
[SOLVED] How Much Do You Personally Make as a Web Developer?
Daniel0 replied to Fluoresce's topic in Miscellaneous
I'd rather not publicly disclose that actually. Not so much because I regard income as a personal matter, but more due to strategic reasons. If I post some number somewhere then someone might end up saying "but you said X on this and that website". This makes negotiations more difficult. Based on what I have charged on freelance projects and assuming a 37 hour work week, which is the standard in Denmark, and four weeks per month, at least $60,000/yr. I definitely think I would be worth that. Do take things like location into account though. It's entirely possible that people generally are paid higher (or lower) in Denmark than where you are from, so unless you live near me it's probably not of much use to you. I don't even want to work full-time in web development though. I'm more interested in academia to be honest. Don't you mean, "...who I regard myself as better than"? Just saying. I guess so -
You didn't check very thoroughly then:
-
You should be able to do that with cron jobs.
-
The indices for your for your checkboxes will only be present in $_POST if they actually are checked. You can use isset or array_key_exists to check that.
-
I believe Tom means the traditional "click a link in your email" type of verifications.
-
Probably, though there are of course lawyers who specialize specifically in intellectual property.
-
[SOLVED] How Much Do You Personally Make as a Web Developer?
Daniel0 replied to Fluoresce's topic in Miscellaneous
The term "pro web developer" is rather ambiguous. I regard someone as a "professional" if they do it for a living, or in other words if it's their profession. But that doesn't necessarily mean they're good. I only do occasional freelance web development and consulting. Am I a professional? Regardless, I'd like to think I'm somewhat good though. I could, but won't, mention a few full-time web developers who I regard myself better than. Are they then professionals, or rather, does professional have any relevance regarding competence. Either way, how much you will earn depends on your skill level, sometimes your location, and on how good you are at negotiating and selling yourself. Some people charge more than they're worth, and some less (in my opinion anyways). I usually charge per hour, and I negotiate it on a per-project basis. I don't work full time though, but only whenever I have time though. You might earn more money working for a company than working freelance. If you work for a company, then you have a steady income, but there are other people who want a bite of the cake as well. If you work freelance then all the revenue goes to you alone (unless you hire sub-contractors of course), but you might sometimes find it difficult getting any projects to work on. Both types of jobs have upsides and downsides, but it's entirely up to you to determine which one is best for you. Strictly speaking you don't need to "know" more languages than the ones you listed, but knowing more will of course always help, and it will broaden your horizons making you a better programmer overall. It also depends on what "knowing" e.g. MySQL entails. Does it mean being able to construct simple database schemas and do basic CRUD, or does it mean knowing advanced database theory and being able to make normalized and highly efficient database setups? That field is large enough in itself that you could focus on it alone, and competent DBAs are generally very well paid, because it turns out that designing databases properly is actually difficult and requires a lot of knowledge. Edit: Fixed grammar, courtesy of Masna. -
No, you cannot. Just because it isn't explicitly said "© copyright, this is our stuff, do not copy" then it doesn't mean you are allowed to do it. You need explicit permission, not explicit prohibition. That's how I understand IP laws anyway, but I'm not a lawyer. If you want to be sure then ask a lawyer, or you know, ask the website owners.
-
No, an object is an instance of a class. A class can be said to be the objects "blueprint". Classes are composed of members (properties and methods). Maybe start with these tutorials and the OOP part of the PHP manual.
-
Did you create a configuration file for it? There should be a folder called setup within the phpMyAdmin directory that can create those for you.
-
No. If the DNS servers are down then you'll get incorrect results.
-
I suppose you can check the return value of dns_get_record. If it doesn't return any records then the domain name must be invalid. Do a MX record validation. Please refer to "getmxrr" function. http://www.php.net/getmxrr No, the existence or non-existence of an MX record doesn't tell you anything about the validity of the domain.
-
You should be able to add a signature here any time you want. We have no limits on that.
-
Are you talking about here, or on forums in general?