[PHP] Comparison Problems with 5.2.5

2007-12-30 Thread Magnus Anderson
Hi, I have runned into a slight annoying problem with my code, that I have never had before. Either I have something wrong in my code or PHP 5.2.5 that I user is acting weird in windows. I have recently installed PHP on my windows machine for local developement instead of a remote server. What I

[PHP] Check valid chars in string

2002-12-02 Thread magnus nilsson
7;I','O','P','L','K','J','H','G','F', 'D','S','A','Z','X','C','V','B','N','M','0','1','2','3', '4','5','6','7','8','9', '.', '_'))) {  return false; } else {  return true;   } } Found this snippet of code on php.net (http://www.php.net/manual/sk/ref.strings.php), but it just reurns a parse error. OS: OS X 10.2 PHP: PHP 4.2.3 MYSQL: 3.23.51 // magnus n. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] strange parse error at EOF

2002-12-01 Thread Bård Magnus Fauske
file ("/,/; etc.). I use ?> as start/end tags in php Address to webpage: http://studorg.nlh.no/storband/wopen.php Address where you can download the file http://studorg.nlh.no/storband/docs/wopen_was_php Bård Magnus -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Upload wont work, OS X

2002-11-29 Thread magnus nilsson
It works, partially. I can upload the file, but it's named "array". On fredag, nov 29, 2002, at 16:28 Europe/Stockholm, Beth Gore wrote: Hi Magnus, Your problem was you weren't using the correct part of the $_FILES array when using copy(); Cut and Past This: if

[PHP] Upload wont work, OS X

2002-11-29 Thread magnus nilsson
I have trouble using upload scripts - none of them work on my current config. I'vq got php 4.2.3 and global registerd = off. The problem is that the script doesnt send the variable $_FILES['my_file'] as it should. I can only upload if i hard code the filename into the script. OS: OS X 10.2 PH

[PHP] DomDocument->dump_file don't work!

2002-10-25 Thread Magnus Stålberg
I can't get the DomDocument->dump_file($file, false, true); to work.! help needed! Everyting else works just fine. Running IIS5 PHP 4.2.3 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] unless something...

2002-09-12 Thread Magnus Solvang
I'm used to the unless-statement in perl... How do I do this: if string A or B are NOT in string C, then do something and quit. In perl, I would do this: unless ($c =~ /$a|$b/) { blabla exit 0 } - M -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

[PHP] Checking Insert to Postgre, whats wrong?

2002-07-28 Thread Bård Magnus Fauske
tring $fornavn[$i] and similar strings not listed above, not the whole string. What is the reason for this? Has it something to do with the pg_last_oid()? I can't see how since this only identify the inserted row (or am I wrong?) which I select afterwards. Thanks for answer. Bård Magnus

[PHP] mail() returned a strange error, what is this?

2002-05-29 Thread Magnus Hammar
on line 216 -- Can anyone explaun why I get these errors, mail() with sendmail is working fine with other php-sites on the server... Thanks. /Magnus Hammar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Re: Serious problem with Cookies..

2001-11-15 Thread Magnus
t it for the highest time-limit > possible? =) If you set it like this: There is not a good way to set a permanent cookie, the user can always delete them if he wants to. Thanks. /Magnus Hammar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] Need a little help with IMAP (OT?)

2001-11-14 Thread Magnus
est stable version of PHP and IMAP and Apache. Thanks. /Magnus Hammar -- -- 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] SSL and PHP = problems?

2001-09-11 Thread Magnus
amming or is it because of the SSL, or do you have any other sugestions? I find it hard to beleve that it is because of the programming because before the SSL-connection when I only have a regular HTTP-connection there were never any problems, and it works fine with MacOS users. Please help! ;) Thanks.

Re: [PHP] Cookie Not Setting..

2001-07-11 Thread Magnus Hammar
ot;/my/index.php". 3. To really see if the cookie is set you can use Netscape and let it warn you before accepting a cookie, in that way you will see the cookiename and it's value and then you can be sure the cookie is set. 4. You can do the same thing with IE.

Re: [PHP] SMTP-access with PHP...

2001-06-20 Thread Magnus
Den 01-06-20 18.28, skrev "Andreas D. Landmark" <[EMAIL PROTECTED]>: > Contact your mailserver admin and get him/her to open for relay from the IP > of your > webserver. Thanks, I'll try that and see what will happen. Sincerely, /Magnus Hammar --

[PHP] SMTP-access with PHP...

2001-06-20 Thread Magnus Hammar
eturn_value.fgets($smtp_connection,128).""; fputs($smtp_connection, "Subject: $subjekt\n"); fputs($smtp_connection, "Reply-To: $from\n"); fputs($smtp_connection, "MIME-Version: 1.0\n"); fputs($smtp_connection, "Content-Type: text/plain; charset=

[PHP] carriage return (writing files)

2001-05-09 Thread Magnus Lawrie
hello, I'm writing to files with php. How do I include a carriage return, i.e. write strings to different lines in a text file? Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the l

[PHP] " appended with \

2001-05-04 Thread magnus lawrie
I am using a form to test posting a variable. If my variable looks like this in script post_var.php3 : "stringinaaform" then it comes out like this in recieve.php3 : \"stringinaaform\" why? thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMA

[PHP] slashes \" appearing

2001-05-04 Thread magnus lawrie
I am using a form to test posting a variable. If my variable looks like this in script post_var.php3 : "stringinaaform" then it comes out like this in recieve.php3 : \"stringinaaform\" why? thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL