[PHP] Looking for content writers for new IT magazine
Hi Everyone, I`m working on an IT magazine called InfoEdit, and now I have gotten far enough with the back-end to say that the programming will be finished very soon. Now it`s time to get superb content editors for the site. If someone of you feels he/she knows enough about some IT subject and would like to share what you know, then please be sure to contact me, either at this email or [EMAIL PROTECTED] . The subjects that the mag will cover will be from employment,creating CV`s to administrating linux server and more, so if you know much about something and feel you would like to work with the magazine, get in touch. You will have the chance to be with a new online magazine from the beginning and help it grow, You will also have a word to say about the overall contents of this magazine, also we can arrange some advertising for you or your company on the site. So in case of any interest in this, please get back to me with informal information about yourself and your skills and what 'column' would you like to write. Expected are different articles as well as series or articles and also tutorials, so once again,in case of interest, please contact me asap. Best wishes, Siim Einfeldt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Php-Mysql Work Wanted
Hi, If anyone has some good separate projects or part-time php-mysql related job to offer, I would appreciate if you let me know. I know php&mysql pretty good and have also some pretty nice things in my portfolio (both programming and design). For more information I can be contacted at [EMAIL PROTECTED] Best wishes, Siim EInfeldt EIP - Everything is Possible -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] uploading to another server
Hi, My scripts and the site itself are on one server, but I need to upload files to another server. How could I do it without using ftp functions? Thanks Siim EInfeldt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] globalize all variables not coming from a certain form...
Hi everybody, Is it possible (and if it is, how) to globalize all the variables, that come from some form, automatically? For example: function do_something(){ global $form; if($form != "func"){ /* globalize all the variables that come from a form called $form . How to do it? */ } } Yes, I could it manually - global $firstname,$lastname,$addres, etc etc...but the function is being used by different scripts and I need to globalize only these variables that come from that particular form ... and all that 'automatically'. Any ideas? Thanks, Siim Einfeldt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] checking the mp3 bitrate
Hi, When uploading an .mp3 file, is it possible to check its bit rate with php? If you know anything about it, please send a mail to my private email as well. Thanks Siim EInfeldt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] .doc to .txt
Hi all, I need to convert .doc files into text. I know it`s possible to do it by converting it in word, but I need to give the people of the site opportunity to upload a .doc file and then I need to display it (and not in another window, but rather 'in the site' like you would normally display some text). All the info, code examples, urls you can provide me conserning this one, I would appreciate it. And when answering, please send it to my private email as well, [EMAIL PROTECTED] Thank you in advance, Siim EInfeldt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] displaying pictures form db [problem]
I`m trying to display the picture from the database, but I can`t get it to work. That`s just a short version of your script. I try to display the picture like that: and showpic looks like this: Any ideas why it might not work as expected? I have written picture to the db, but ...? I write them like: $main = addslashes(fread(fopen($main_pic, "r"), filesize($main_pic))); $sql -> insert("pildid","section,productid,picnr,file_name,file_type,file_data","'$section','$productid',0,'$main_pic_name','$main_pic_type','$main'"); Thanks in advance; Siim EInfeldt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] SMS again
Hey I know this topic has been 'in the area' lots od times, but does anybody know of any scripts that are out there whichi I could use to let users of my website send SMS? And secondly, can I offer it as a free service (this would assume I don`t have to pay for it myself either)? Or is anyone using some related script on his/her website? Thanks Siim EInfeldt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Re: Creative solution with XML,PHP,MYSQL
> Maybe Flash is an option? Well, I know I could probably do it some way in flash (if I had experiences with it), but this is just a bit out 'of the box'. But still, thanks for offering. Siim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Creative solution with XML,PHP,MYSQL
But I`m pretty sure it is possible with XML, in theory at least, I get the data from the database, I write it into array, put into xml and then deal with it - that`s how I imagine it. DHTML doesn`t seem the best way to do it...but then maybe it`s just me. cheers Siim Einfeldt > I'm afraid XML isn't going to help you - you need to investigate DHTML > options, although you'll be lucky to find a solution which is > compatible across both Netscape and IE. > > regards, > > P > > On Sat, 17 Feb 2001, Siim Einfeldt > aka Itpunk wrote: > > > Hi everybody, > > > > I want to implement ordering something on a website without refreshing the > > page. Lets say i have four columns in the html table - name,age,skill and > > phone. All these are links - under these are the information, eg: > > Name Age Skill Phone > > Siim 23 php 051... > > Tony 18 html 132... > > > > Now, when i click on the name, it should order the listings by name, if I > > click on the age, I get the listing ordered by age and etc,etc. Generally > > it is easy to do it, but how to do it without refreshing the page every > > time I want to order by something else? > > > > It should be possible with XML; I get the data from mysql database with > > php, I write it into an array and ... now how could I make it function the > > way I just described? Could someone point me some already written code or > > explain me in detail how to do it? > > > > > > Thank you, > > Siim Einfeldt > > > > PS: Sorry about sending this message to so many lists, but I haven`t seen > > this kind of code anywhere, but at the same time I know it is possible. > > > > > > - > > Before posting, please check: > >http://www.mysql.com/manual.php (the manual) > >http://lists.mysql.com/ (the list archive) > > > > To request this thread, e-mail <[EMAIL PROTECTED]> > > To unsubscribe, e-mail <[EMAIL PROTECTED]> > > Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Creative solution with XML,PHP,MYSQL
Hi everybody, I want to implement ordering something on a website without refreshing the page. Lets say i have four columns in the html table - name,age,skill and phone. All these are links - under these are the information, eg: Name Age Skill Phone Siim 23 php 051... Tony 18 html 132... Now, when i click on the name, it should order the listings by name, if I click on the age, I get the listing ordered by age and etc,etc. Generally it is easy to do it, but how to do it without refreshing the page every time I want to order by something else? It should be possible with XML; I get the data from mysql database with php, I write it into an array and ... now how could I make it function the way I just described? Could someone point me some already written code or explain me in detail how to do it? Thank you, Siim Einfeldt PS: Sorry about sending this message to so many lists, but I haven`t seen this kind of code anywhere, but at the same time I know it is possible. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] problems with writing picture to the database.
O.K. I still got the problems. I`ll paste everything needed here and please, if anyone knows how to make it work, let me know. *First, the part of the form is the following: the enctype in my form tag is ENCTYPE="multipart/form-data" and METHOD = POST *The code that actually *should* take care of the upload process to mysql, is the following: if (isset($file) AND $file != "none" AND strlen($file)>2){ $file_data = fread( fopen($file, 'r'), filesize($file) ); $theq = "INSERT INTO pildid (file_name,file_type,file_data,tyyp,subid,picnr) VALUES ('$file', '$file_type', '".addslashes($file_data)."','travels','$it','0')"; $result = mysql_query($theq); } And the errors I get, are': Warning: fopen("C:\\ajutine\\Kevad.jpg","r") - No such file or directory in /home/einfeldt/public_html/bt2/reis.php3 on line 62 Warning: Supplied argument is not a valid File-Handle resource in /home/einfeldt/public_html/bt2/reis.php3 on line 62 INSERT INTO pildid (file_name,file_type,file_data,tyyp,subid,picnr) VALUES ('C:\\ajutine\\Kevad.jpg', '', '','travels','9','0') Thanks Siim Einfeldt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] problems with writing picture to the database.
Thanks, I will take a look at it once more, probably will come with some more questions as at first it didn`t 'look like working', but it really worked and then suddenly I get complains that it doesn`t anymore Siim > read the manual on handling file uploads. It looks like you're using > $image_name which is the original image name on the client where you > want $image which is the temporary file name on the server. If your > server is running on the machine you access the form from it may look > like things are working right when they aren't. > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] problem with classes
Thanks all for your help Siim Einfeldt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] problem with classes
I`m writing one html class for my own usage, but I`ve got some problems. Take a look at the example: $ht -> row(2,'','first,second'); This works fine ('first,second' represents an array). But now, when I want to do something like that: $ht -> row(2,'','$something,second'); then it displays $something and second, but I don´t want $something, rather the value of it. When I write just $ht -> row(1,'',$something); it works as expected. Note: Don`t ask about the other atributes, they are not important. How could I get it to work? If I do something like this: $ht -> row(2,'','".$something.",second'); Then still, it echos me ".$something." and second, but not the $somethings value (and the second). I hope you understand what I need. Thanks in advance, Siim Einfeldt PS: Give a copy to my personal email as well. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Php (&mysql) & different char-sets
Is it possible to make three textareas on one page (of course it is, but read til the end, you`ll get the point) and let the user type into each box in a different language with different charsets. For example, lets say I want to insert three versions of one text on one page (without submitting the page first). In the first box, when i start writing, I can write with english char-set, as I move to the second box, I can write in russian and in the third box, the charset could already be swedish. Is it possible? If it is, how? And then I want to write it all to mysql database as well (keeping the correct char-sets). Thanks, Siim Einfeldt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] problems with writing picture to the database.
Hi, I write all my pictures (hotels...travels, etc) to the database. it worked, but now I`m not sure what has changed, but now it gives the following error: Warning: fopen("C:\\art\\cat2.jpg","r") - No such file or directory in /home/mycatalogue/public_html/mysubcatalogue/hotell.php3 on line 19 the cat2.jpg has been chosen through a browse button from my own hdd (the problem exists wit hall the pictures). Any ideas what might be wrong? Thanks in advance, Siim Einfeldt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Pricing for PHP programming???
> So how do you know what to charge when youre independent and just starting? Actually you don`t. I doubt very many of us actually know what would be the only right price to set, I think there`s no such thing. It`s negotiable, usually. You just have to sell youreself, think of some company you could sell your services to, make some written offer, don`t send it to the company, go and talk to the boss of it, explain him what he would gain from it, tell him/her everything you can to make him/her interested (but don´t lie). Once you get his attention, you can start talking about the price. You first ask them if they were be interested in the project offer you made them. If yes, just ask what would be affordable to them, ask enough questions to get to know what they would be ready to pay. They probably don´t want to tell you anything about the price, but try to read between the lines and then make them an offer, "would $... be acceptable for you?". If not, keep talking until you have agreed on something. Well, yes it isn´t as easy at it my seem, it isn´t easy at all, but that`s one possibility. And I think this kind of approach should go mainly for small-medium sized businesses. And it`s just for starters. Siim Einfeldt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Pricing for PHP programming???
>Ok, I just started my own company and finished work for my first client >(shameless plug here: http://www.alamosawinecellars.com). The problem I >had wasn't in pricing my work by what it's worth and how much time I put >in it, but pricing it in a way that would work for my client. I ended >up making roughly $10/hr., maybe less, for the effort, but I ended up >with an extra $1000 in the bank. Actually when thinking about the projects which I`m making for one company, they end up being 10/h (not $) as well. >The part of the >project that took all my time is in a backend admin tool that allows the >client to update their pages whenever they need. The data is all stored >in a mysql db. I know, that part takes most of my time as well, but I`m working on some good template which would make my future jobs easier and cheaper as well (for the clients). >Anyways, I have noticed that for some clients, like my >first, charging too much will lose them. Right. Usually, when dealing with companies I aleady know, I first listen them out, give my suggestions and views about it, ask what they think about them, and then ask if the sum is ok for them (the sum that I have thought about). I usually give a bit higher one first, I guess quite many of us do it, many companies like to get the price lower, even if it wasn´t high at all, so now as I have the possibility to lower the sum, I will do it. But still, you can´t set the price too low, I would suggest never to do it, maybe only for friends (for them, why not for free). >For other clients, like medium >sized companies, charging too little will send them hunting for someone >else. You are probably right. But as a freelance, you can sometimes afford asking them maybe even 3-4times less than some big web development company would. >And also, everything can be negotiated. One of my mottos:-) Siim Einfeldt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Pricing for PHP programming???
> Obviously I want to be profitable. But my primary motivation is to be doing > challenging work, to enjoy what I'm doing and to build software that makes > my clients happy. Sure, we could be like this other company and charge > $100,000 for a project that's worth $5,000 but we won't do that. Why? > Because it will inevitably come back to haunt us. In this business you have > little more than your knowledge and your reputation and a tarnished > reputation won't get you far. YMMV. Well, I`m actually no ripper either, the $100,000 and $5000 example is actually a little extreme as well. But what i just wanted to say is that we shouldn`t accept the minimum, but rather add just a bit to the sum. This is probably mainly just because I unfortunately do not do enough planning work, but for me most of the works kind of get to go bigger than they were ment to be. I`m not talking about new features (though these may come too, but that`s already another story), but rather just something that you thought will be easy to handle and then it turns out to be much bigger problem, but then it`s already a bit bigger problem to get the client pay more. Yes, I admit, probably that`s mainly my problem, but usually I get *little* jobs, which take week or a few and well, if I wanted to prepare it real well, then it would be +day or more. And there`s usually just not enough time, though I`m seriously considering doing it differently, better. Just some time ago (2 months to be exact), I was asked if I would be ready to take a small little one week project. At the time I was just staring to make money with php+mysql, so I trusted the web design firm which gave me the job. But it came out that it`s really, really big project actually. I`m still working on it and hope to get it ready in some days. Anyway, what am I saying here...it`s probably something to myself, start writing project descriptions! And as to talking about this one. Could you tell me how you usually prepare for projects, how long do your projects take on the average? > Again, I think we're talking about different kinds of clients. Well, I just brought an example. > energy or expertise to make a qualified decision. My experience is that a > lot of these type of clients only speak to 1 to 3 firms. And these other > firms are often not qualified - they don't understand the business world or > don't even do programming. In fact, last week I spoke to the head of a You`re probably right about that, got to agree with you on this one. > > when talking about programming and php, well, you just can`t say it, can > > you? Most of the projects can be done even over the internet, no problems. > > My reality is different than your reality. I don't know if I want to trade > places or not. Well, if you`re talking about telecommuting, then this is actually quite good way of working, for both parties. Firms get to pay a bit lower wages, no extra offices needed, etc and programmer, he can do it wherever he wants to. I`m working myself this way and I must say there`s nothing wrong with it. For firms it might be a bit frightening thought at first, but I know some pretty successful companies who`s programmers, almost all of them work out of office. And about that 5000 and 10 again, as i said, this difference is a bit too big to talk about. And actually I was talking about it just theoretically, I don`t charge my clients amounts that make them go broke, not at all, just few days ago made an offer to one real estate company, I once made them a cheap site, just in html, poor desig, etc and now, a year they wanted to improve it, make a total redesign and make the adding of houses, etc easier (keyword is database+php)+some more features. I made them a offer which I wasn`t sure about whether it would be too much or not. And they said yes withou thinking at all. Then I started thinking...if they would have gone to some firm, instead of talking to me (freelancer), they would have paid probably 3times more. So I`m not saying that we should take all we can get, but rather we should take the amount that we are ready to work for+some extra, which can be cut off, if the client doesn`t agree with the first offer. > Amen. If you do good work for a fair price and make the experience > pleasurable for your clients the work will come. It's like any business. > People want to work with people they like and if your customers like you > they'll mention you to others. Exactly Siim Einfeldt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Pricing for PHP programming???
>As a PHP programmer and COO of a development and consulting shop, the >emphasis on hourly rate is something that really amazes me. Not all >programmers are created equal. A lot of clients don't recognize that. Some >mistakenly believe that a $120/hr. programmer is 20% more productive than a >$100/hr. programmer. Yet others think that a $200/hr. programmer must be >twice as good as a $100/hr. programmer. Yes, you`re right about that, you can´t take it that literally. That`s not the way to decide who you should hire. Even one programmer could make things for a quite different price for different clients. I know it, I`m pretty much working this way right now. I`m doing some project based work for one firm (continuing stuff) and then for separate firms I just set the price that seems to be acceptable to both of us. >I find that there is *no* >correlation between hourly rate and the quality, productivity and value of a >programmer. But here I have to disagree with you. Yes, some guys who charge only $10/h might sometimes be better than $200/h, but you can´t say that there is *no* corralation between rates and quality. Sometimes there actually is. First, when you start with something, let it be php or something else and when you start then selling your services, you know you`re new, you just give your hours away for smaller money, you`re productivity is a bit lower, etc. In the other hand, an experienced guy already knows how much work it actually takes, he knows he can do it well and because of that, he charges more. Yes, it`s not always so, but still. >We've talked to a number of prospective clients who were >charged $100,000+ for projects we could have done for $5,000. I couldn't >sleep at night if we gouged clients like that and in the long run I think >gouging clients will come back to bite you. We try to emphasize the total >cost to the client along with the benefits of our proposed solutions. We >try to state these benefits in terms of time savings, exposure, value-added >capabilities, revenue and process improvement. When you can put what you >can bring to the table in these terms the hourly rate becomes less critical >and it makes it easier to compete with inferior competitors that compete on >price alone. I usually don´t charge for hour either, rather per project, but your example of $5000 and $100,000. Well, what is the purpose of your doings? Many of us like what we do, but the second reason (if not the first) for doing it, is money, you can say whatever you want, but this is true for mosy of the peops. I just read somewhere (maybe from this list itself), that when setting the price, first think of your own needs, how much work would it take and how much would you charge for it and then think about the value of it to your customer (who may sometimes think bigger is better), what would he be ready to pay for it and then ask the higher amount. You say you couldn´t sleep at night, but the price you set, it actually pretty much depends on the country, area, where you live, so maybe the ones who asked $200/h just had to ask it (probably not, but just think of the idea for a moment). I could afford making something for 30$/h, maybe even cheaper, lets say you do it for $50 - you can`t say you charge too much because I charge less and neiter vice versa. And lets talk about clients just a bit more. A decent firm, before it starts buying something, it looks on more than one direction, they make their job on getting to know the prices and services that are being offered to decide where to order something. Now, the ball is in their side, it`s totally their choice who,which firm they choose to do the job, so why should you worry, if your customer feedback was the best, your marketing guys made great job, why should you worry about charging $100,000 instead of $5000? You shouldn´t. In some other fields you could say that they just didn`t have any other candidates to choose from, but when talking about programming and php, well, you just can`t say it, can you? Most of the projects can be done even over the internet, no problems. But yes, when talking about starting, then it might seem quite hard to find work at first, I was in this situation 6 months ago myself, but right now I could soon probably give work to a whole team. At first, you shouldn`t count on all the jobsites available in the internet, rather word of mouth, this is the best way. Maybe, for some contract work, go to some company for which you think you could really do something and convince them as well. And then don´t worry, it might take time, but if try hard, there`s a green light in the end of the year. Siim Einfeldt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]