[PHP-WIN] MSSQL HELP

2003-07-02 Thread disko_kex
In MySQL is easy to page with LIMIT but it doesnt work with MSSQL. So how do I make it page in MSSQL?

[PHP-WIN] Store array in mysql?

2003-08-21 Thread Disko_kex
If I have a normal array like "Array ( [0] => 1 [1] => 3 [2] => 82 )" , and want to store the array in a mysql table and then want to use it. How can I do? // jocke

[PHP-WIN] Array question

2003-08-25 Thread Disko_kex
If I have an array like this > [0] => 1 [1] => 2 [2] => 3 ... [99] => 100 If I want to select [50] => 51 and store the value that's 2 positions before and 1 position after, how can I do? If I want to know what position value 71 have? I have search the PHP-manual and found some functions as

RE: [PHP-WIN] Array question

2003-08-25 Thread Disko_kex
) then like you sad $dataarray($key+1), that's easy. But the other way -Original Message- From: Warren Vail [mailto:[EMAIL PROTECTED] Sent: den 25 augusti 2003 09:33 To: Disko_kex; [EMAIL PROTECTED] Subject: RE: [PHP-WIN] Array question in my experience, using numeric indices to

RE: [PHP-WIN] Session Vars

2003-08-25 Thread Disko_kex
Try this instead: Session_start(); $_SESSION["id"] = $PHPSESSID; $_SESSION["user_name"] = $form_username; $_SESSION["user_pass"] = $form_pass; print "$_SESSION[id], $_SESSION[user_name], $_SESSION[user_pass]"; // jocke -Original Message- From: Dean Hayes [mailt

[PHP-WIN] Date question?

2003-09-12 Thread Disko_kex
Hi If I have a date (2003-04-02) and want to select 9 months later, how to do? Thanks. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] set_time_limit

2003-09-19 Thread Disko_kex
Is there a way to set the timelimit to infinte? I tried to set_time_limit(3600) but after 300sec its terminates.       Med vänliga hälsningar Joakim Ling Masking 5, 417 64 Göteborg. Växel 031-23 71 00, Fax 031-23 71 15 E-post   [EMAIL PROTECTED] www.lokalguiden.se  

[PHP-WIN] MySQL question

2003-09-22 Thread Disko_kex
Hi SELECT RegDate FROM table WHERE month(RegDate) = ’10’ // this is working SELECT RegDate FROM table WHERE day(RegDate) = ’2’ // why isn´t this working?

[PHP-WIN] Send Email with an attachment

2003-10-02 Thread Disko_kex
Hi, How can I send an email with an attachment? In this case a .pdf file. I found this in the php-manual. mail("[EMAIL PROTECTED]", "the subject", $message, "From: xxx\r\n" ."Reply-To: xxx\r\n" ."X-Mailer: PHP/" . phpversion()); -- PHP Windows Mailing List (http://www.php.net/) To

RE: [PHP-WIN] Send Email with an attachment - SOLVED

2003-10-03 Thread Disko_kex
I found an example on the web. The file was successfully sent!"; } else { die("Sorry but the email could not be sent. Please go back and try again!"); } ?> -Original Message----- From: Disko_kex [mailto:[EMAIL PROTECTED] Sent: den 2 oktober 2003 16:33 To: [EMAIL

[PHP-WIN] Session Problem

2003-10-05 Thread Disko_kex
Hi, How can I save a session value? I tried: but I get this warnings and its not working at all. What should I do? Warning: session_start(): open(/tmp\sess_4d5fc486fcfae10349d5bf6fb21092ea, O_RDWR) failed: No such file or directory (2) in c:\inetpub\wwwroot\session.php on line 7 Warning:

RE: [PHP-WIN] Session Problem

2003-10-05 Thread Disko_kex
>Disko_kex wrote: >> but I get this warnings and its not working at all. What should I do? >> >> Warning: session_start(): >> open(/tmp\sess_4d5fc486fcfae10349d5bf6fb21092ea, O_RDWR) failed: No such >> file or directory (2) in c:\inetpub\wwwroot\ses

[PHP-WIN] Session prob

2003-10-05 Thread Disko_kex
Why isn´t this working? Is there something I done wrong during the installation or what?

RE: [PHP-WIN] Session prob

2003-10-05 Thread Disko_kex
Still not working? -Original Message- From: Mike Brum [mailto:[EMAIL PROTECTED] Sent: den 5 oktober 2003 19:12 To: 'Disko_kex'; [EMAIL PROTECTED] Subject: RE: [PHP-WIN] Session prob You need to start the session. sesstion_start(); Read up - http://us3.php.net

RE: [PHP-WIN] Session Problem

2003-10-05 Thread Disko_kex
I've done that. Still not working. -Original Message- From: Mike Brum [mailto:[EMAIL PROTECTED] Sent: den 5 oktober 2003 19:25 To: 'Disko_kex'; [EMAIL PROTECTED] Subject: RE: [PHP-WIN] Session Problem Assuming this is tied into your other problem (which I read first), t

[PHP-WIN] Characters missingin mail source???

2003-10-06 Thread Disko_kex
Hi again. I've got this annoying problem. I made a program that sends mail to my customers, like a newsletter. The mail is in HTML and each mail is about 2000 chars, depends on the customers info. The problem I have is that there is a lot of characters missing in the mail source when the mail is d

[PHP-WIN] Every 1008th character is missing???

2003-10-06 Thread Disko_kex
Why is every 1008th character missing when Im tring to send an email? mail("[EMAIL PROTECTED]", "test"," 123456789012345678901234567890123456789012345678901234567890123456789012 345678901234567890123456789012345678901234567890123456789123456789012345 6789012345678901234567890123456789012345678901

RE: [PHP-WIN] Every 1008th character is missing???

2003-10-06 Thread Disko_kex
I just changed to Apache 2 from Apace 1.3, but I still don't get the last "5". Could it be my mail server? -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: den 6 oktober 2003 15:56 To: Disko_kex; [EMAIL PROTECTED] Subject: RE: [PHP-WIN] Every 1

RE: [PHP-WIN] Every 1008th character is missing???

2003-10-07 Thread Disko_kex
2003 15:56 To: Disko_kex; [EMAIL PROTECTED] Subject: RE: [PHP-WIN] Every 1008th character is missing??? I just tried it on my server with both PHP 4.3.2 and 4.3.3 and I got the last 5. The only thing I changed was the email address to send to. Charles -Original Message- From: Disko_kex

RE: [PHP-WIN] Every 1008th character is missing???

2003-10-07 Thread Disko_kex
Yes I did that, I noticed that "!" appered after some chars. But I still don't have a clue about the missing chars. :/ -Original Message- From: Andrei Popovici [mailto:[EMAIL PROTECTED] Sent: den 7 oktober 2003 15:15 To: Disko_kex Subject: Re: [PHP-WIN] Every 1008

RE: [PHP-WIN] Re: timeout question

2003-10-07 Thread Disko_kex
I had that problem too. set_time_limit = 0 ; in php.ini and Timeout 0 # in httpd.conf // jocke -Original Message- From: J.Veenhuijsen [mailto:[EMAIL PROTECTED] Sent: den 7 oktober 2003 06:55 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Re: timeout question see in php.ini max_execut

[PHP-WIN] timeout?

2003-10-10 Thread Disko_kex
Hi, Im running IIS and PHP 4.3.3. I have set max_execution_time = 0 in php.ini and set_time_limit(0); in my php files. But still after about 5 minutes I get CGI-timeout.. error. The scripts sends newsemail to about 3-400 customers, that's why I need it to be inifity. What should I do?

[PHP-WIN] failed to open stream: HTTP

2003-10-17 Thread Disko_kex
Hi. This has always been working for me, and now it isnt? http://www.lokalguiden.se/test.txt";, "r"); ?> I get this warning: Warning: fopen(http://www.lokalguiden.se/test.txt): failed to open stream: HTTP request failed! ^ in c:\inetpub\wwwroot\lgd\test.php on line 2 I just change from apache

[PHP-WIN] Run php file every day?

2003-10-27 Thread Disko_kex
Hi, Is there an easy way to run a php file same time every day? Im running IIS5 and PHP4.3.3. Thx

[PHP-WIN] 2 attachments

2003-11-03 Thread Disko_kex
$file = fopen($fileatt,'rb'); $data = fread($file,filesize($fileatt)); fclose($file); $semi_rand = md5(time()); $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; $headers .= "\nMIME-Version: 1.0\n" . "Content-Type: multipart/mixed;\n" . " boundary=\"{$mime

RE: [PHP-WIN] get and post in a form

2003-11-04 Thread Disko_kex
Try this instead: echo "Hartelijk welkom, $_GET["voornaam"] $_GET["naam"]."; -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-WIN] best php editor?

2003-11-04 Thread Disko_kex
Try Editplus or Editpad. You can find them at www.download.com -Original Message- From: Bobo Wieland [mailto:[EMAIL PROTECTED] Sent: den 4 november 2003 16:07 To: [EMAIL PROTECTED] Subject: [PHP-WIN] best php editor? Hi! What is the best php editor out there? Preferbly freeware... I u

[PHP-WIN] PDFlib text format

2003-11-06 Thread Disko_kex
Hi, If I have a squre 100px width and 100px height and a textstring = "hello hello hello hello hello hello hello hello hello hello", is it possible to write the text into that area. I tried a few comands but didn't succeed. / jocke

[PHP-WIN] attachment with pdf files

2003-11-13 Thread Disko_kex
Hi again.. I have a really strange problem when I sending emails with attachment. With regualar text files, images etc it works fine but with pdf files it wont work. I also tried with "MIME E-mail message composing and sending" class from phpclasses.org. When I compared the orginal file with the

RE: [PHP-WIN] attachment with pdf files

2003-11-13 Thread Disko_kex
I had magic_quotes_runtime = On, I turned it Off and now it works fine, Big thanks > -Original Message- > From: Eric COLINET [mailto:[EMAIL PROTECTED] > Sent: den 13 november 2003 10:38 > To: Disko_kex; [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] attachment

RE: [PHP-WIN] i need help

2003-11-27 Thread Disko_kex
Try use $HTTP_GET_VARS["password"] or $_GET["password"] > -Original Message- > From: Hasan Barýþ Karayel [mailto:[EMAIL PROTECTED] > Sent: den 27 november 2003 17:26 > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] i need help > > Hi > i am new in PHP... > i made very a simple code but it d

RE: [PHP-WIN] Re: mail($To problem

2003-12-04 Thread Disko_kex
Hi It's a documented bug, and its fixed in the latest release of php (4.3.4). I had the same problem and it works fine now Have a nice day jocke > -Original Message- > From: Seung Hwan Kang [mailto:[EMAIL PROTECTED] > Sent: den 4 december 2003 12:27 > To: [EMAIL PROTECTED] > Subject: [

[PHP-WIN] Is the link correct?

2004-01-15 Thread Disko_kex
Hi $link = "http://www.does_not_exists.com";; Is there a way to check if the link is correct and return true or false? Thanks //jocke -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Not about PHP, HTML question

2004-01-21 Thread Disko_kex
Hi, I know this is a PHP mail list, but I have this enoying problem with simple HTML. In my body a have: The problem I experience is that 100% is acully less then "visible" 100%, my design is based on a table (no frames) with height 100%. The first time I load the page it's a about 10px in the

[PHP-WIN] Use ASP components in PHP code?

2004-01-28 Thread Disko_kex
Hi, Im rewriting my webpage from ASP to PHP, the first problem I discovered is that I MUST use some ASP components (e.g. send SMS thru ASPSMS). Is there a way to mix the both, or incorporate ASP in the PHP code. Thx // Jocke

[PHP-WIN] Problem with form

2004-02-05 Thread Disko_kex
Hi If a have a , what is the name of the "select"? I tried with both "omr" and "omr[]", but no one works. It works fine if the name is "omr" but then it is only one value posted. Maybe its easier to understand if you see it yourself: http://www.lokalguiden.se/index2.php?action=ledigalokaler It

RE: [PHP-WIN] Problem with form

2004-02-05 Thread Disko_kex
tion. This works: //update "omr" but then only one value from "omr" is posted with PHP How can I get this work: > -Original Message- > From: John Ellingsworth [mailto:[EMAIL PROTECTED] > Sent: den 5 februari 2004 16:10 > To: Disko_kex; [EMAIL PROTECTED