Re: [PHP] Firefox/IE (sometimes) wants to download .php files from my Apache2 server

2004-12-23 Thread Stephan Fiedler
Hi Rinke, check Mime-Types.. Stephan Rinke Hoekstra wrote: Hi All, I have a rather odd problem. Since a few days, my otherwise perfect SuSe 9.0 Apache2 server started to do some funny stuff. In general, php works fine, and I can do anything I want... after a little while Firefox/IE starts asking

Re: [PHP] Permissions

2004-11-19 Thread Stephan Fiedler
Hi Phil, Phil Ewington - 43 Plc wrote: Hi All, I have a need for a PHP application to read/write Linux system files that have root.root ownership. At present reading not a problem but writing obviously is denied. I know there are probably some serious security issues here, but what should I be

Re: [PHP] Submitting info from a form to a db

2004-09-15 Thread Stephan Fiedler
Hi Logan, 1stly My cristall ball tells me it's an unexpected ; expected was a ) here. .md5($_POST['password']).')); ---^ 2ndly. Please Submit the error you get. 3rdly. check posted values before inserting them into db. Have a nice day Stephan [oops, 1st time sent it went to the

Re: [PHP] Submitting info from a form to a db

2004-09-15 Thread Stephan Fiedler
Hi Dirk, dirk wrote: Try it with escaped qutation marks (\) This is completely wrong here, because mysql doesn't understand those marks(). The string delimiter in mysql (in sql in general) is ' (http://dev.mysql.com/doc/mysql/en/index.html) Grusz Stephan -- PHP General Mailing List

Re: [PHP] Checkbox Question

2004-09-02 Thread Stephan Fiedler
Hi Nick, Nick Wilson wrote: Hi all, [...] INPUT TYPE=checkbox NAME=a VALUE=on so, what is it? a=what? [...] if a was checked a=on is posted (or 'get'ed) if not checked a isn't set. Thanks very much! You're welcome Stephan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] mail() on *nix using ssmtp or an external smtp server?

2004-08-16 Thread Stephan Fiedler
Hi Markus, do I get you right, you can't invoke mail() because php can't find the sendmail executable? perhaps this does the trick: function my_mail_inject($mail) { $sendmail = ini_get(sendmail_path); if(!$sendmail) $sendmail = /var/qmail/bin/qmail-inject; $p = popen($sendmail, w); if($p) {

Re: [PHP] mail() and the From: attribute...

2004-08-13 Thread Stephan Fiedler
Hi Tristan, [EMAIL PROTECTED] wrote: HAving: ...From: [EMAIL PROTECTED]); doesn't work on all recipients... BUT.. ... From: justaname); Works on others... but not all...? Surely this can't be? I've never come accross this before? Any ideas what's up? Well, what I do when sending mail with a

Re: [PHP] Template Question

2004-08-13 Thread Stephan Fiedler
Hi Jonathan, Jonathan Hadddad wrote: [code in a template] Think you're right this IS a problem. Use Templates to seperate code from the ouput 'layer'. If you still have code in your template, maybe it's bad design. why don't you simply add some more variables to your template and tell the

Re: [PHP] Changing MySQL Date Format

2004-08-12 Thread Stephan Fiedler
Hi Harlequin, Harlequin wrote: [...] I'm just getting a little hacked of having to explode the damn things every time I use them. You EXPLODE them?? When you want it human readable why not simply preg_replace(/(\d{4})-(\d{2})-(\d{2})/, $3-$2-$1 [*], $input); it? or preg_replace it to something