[PHP] Sending files to the user...?

2002-02-05 Thread Alan McFarlane
The problem: How to I send a file to the user? Sounds simple but, assume I have a 'daily report' option from my main web page. When the user clicks on it, they are taken to the file 'generate_report.php' (sample included). Now, this code should generate the report, compress it if required and se

Re: [PHP] mysql fails

2002-02-05 Thread DL Neil
Hello val, > a have following mysql problem: > i need to execute several inserts at one query like this-> > > $sql->action("insert into words(word) values ('php'); > insert into words(word) values ('general'); > insert into words(word) values ('list');"); > > The word fild is unique > > My pro

[PHP] add value to serialized array?

2002-02-05 Thread Bas Jobsen
Hi, At start test.txt contains a serialized array with value "one" and "two". a:2:{i:0;s:3:"one";i:1;s:3:"two";} after one run this is: a:3:{i:0;s:3:"one";i:1;s:3:"two";i:2;s:4:"tree";} But the last row prints nothing. Why? Tnx, Bas -- PHP General Mailing List (http://www.php.net/) To uns

[PHP] Re: Tricky array question

2002-02-05 Thread Rainer
Hi Andy, What Niklas wrote is true, at this moment it works fine, but. when I write code, I always ask myself which factors are constant and still will work in, let's say, about 3 years from now. The fact is that you cannot know which kind of useragents (read browsertypes) there will be in fu

RE: [PHP] Tricky array question

2002-02-05 Thread Niklas Lampén
Ahem... So you want to have a two dimensional variable? "; ?> Is this what you are looking for? Niklas -Original Message- From: Andy [mailto:[EMAIL PROTECTED]] Sent: 5. helmikuuta 2002 12:54 To: [EMAIL PROTECTED] Subject: Re: [PHP] Tricky array question This was just an error in

[PHP] mysql fails

2002-02-05 Thread val petruchek
Sorry, incorrect subj! Hello! a have following mysql problem: i need to execute several inserts at one query like this-> $sql->action("insert into words(word) values ('php'); insert into words(word) values ('general'); insert into words(word) values ('list');"); The word fild is unique My prob

[PHP] Seams not to be possible

2002-02-05 Thread Andy
This was just an error in my explenation I ment categories. Meanwhile I tryed var vars, but it does not work for any reason?!?!? My code looks like: $field = $categories[0]."[0]"; echo $field;// returns glacier[0] echo 'var '.$$field.''; // returns bluddy noth

Re: [PHP] Re: Tricky array question

2002-02-05 Thread Andy
Put an @ infront of your comand Andy "Val Petruchek" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 000801c1ae32$6fc1e360$[EMAIL PROTECTED]">news:000801c1ae32$6fc1e360$[EMAIL PROTECTED]... > Hello! > > a have following mysql problem: > i need to execute several inserts at one query like this-> > >

Re: [PHP] Tricky array question

2002-02-05 Thread Andy
This was just an error in my explenation I ment categories. Meanwhile I tryed var vars, but it does not work for any reason?!?!? My code looks like: $field = $categories[0]."[0]"; echo $field;// returns glacier[0] echo 'var '.$$field.''; // returns bluddy noth

Re: [PHP] Re: Tricky array question

2002-02-05 Thread val petruchek
Hello! a have following mysql problem: i need to execute several inserts at one query like this-> $sql->action("insert into words(word) values ('php'); insert into words(word) values ('general'); insert into words(word) values ('list');"); The word fild is unique My problem is: when certain wo

RE: [PHP] Re: Tricky array question

2002-02-05 Thread Niklas Lampén
I think you should ignore that. I use it all the times, and it works fine. Niklas -Original Message- From: Andy [mailto:[EMAIL PROTECTED]] Sent: 5. helmikuuta 2002 12:37 To: [EMAIL PROTECTED] Subject: [PHP] Re: Tricky array question Hello Rainer, what kind of disadvantages do I tak

[PHP] Re: Tricky array question

2002-02-05 Thread Andy
Hello Rainer, what kind of disadvantages do I take with me, if my form does not validate? Is this a problem because of the spiders, or the functionality? It works fine so far on all browsers I know. Can you please give more details? Thanx Andy "Rainer" <[EMAIL PROTECTED]> schrieb im Newsbeit

Re: [PHP] Re: Changes in Sessions (PHP Versions)

2002-02-05 Thread Yasuo Ohgaki
If you really need to use 4.0.6, try to use different session save handler and/or serializer. Try WDDX serializer at first, then try verious combinations. If you use other save handler/serializer, it may work. I suggest you to upgrade, though... -- Yasuo Ohgaki Travis Simpson wrote: > Sorry, I

[PHP] Find the nearest dealer in Germany on a given ZIP (PLZ)

2002-02-05 Thread Markus Straessle
Hi List ! I have a question on a topic that's been dealt with here before (but only for the US). I am looking for a soultion to find - via php /database - a way to search for the shortest distance between a given ZIP Code and available dealers nearby. So, let's assume I am living in German ZIP C

[PHP] Re: Tricky array question

2002-02-05 Thread Rainer
Hi Andy, I was just reading your message, do I see that you send an array with a form? Like ? I just wanted you to know that using brackets [] is not allowed in the html-name attribute! Your html-page will not validate :( The sollution is sending al your vars as simple vars (no array) and colle

RE: [PHP] Tricky array question

2002-02-05 Thread Niklas Lampén
It should be $category[0] = $glacier; ^--- ERROR in you code Niklas -Original Message- From: Andy [mailto:[EMAIL PROTECTED]] Sent: 5. helmikuuta 2002 11:59 To: [EMAIL PROTECTED] Subject: [PHP] Tricky array question Hi there, I have a tricky array questio

Re: [PHP] Tricky array question

2002-02-05 Thread Edward van Bilderbeek - Bean IT
try using something like this: $varname = $categories[0]; echo ${$varname}[0]; Greets, Edward "Andy" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Hi there, > > I have a tricky array question. > > My app is passing via post a array variable called glacier. Now I

[PHP] Tricky array question

2002-02-05 Thread Andy
Hi there, I have a tricky array question. My app is passing via post a array variable called glacier. Now I am checking for the content of this array. Because there are more of those arrays, I am getting all the names out of a db. How is it possible to get the value and keep the name of the arr

[PHP] Re: HTTP Error 405 using POST method

2002-02-05 Thread Rainer
In your example I see that you forgot after your ... maybe that's the problem! "Scott Adams" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi. I'm learning PHP3 on an IIS 4.0 box and I started by trying out this > simple HTML form. The form lets the user i

[PHP] Compare values in an array

2002-02-05 Thread Rainer
Can anybody tell me how I easily compare values in an associative array? I have for instance an array like: $foo['key1'] = 'abc'; $foo['key2'] = 'def'; $foo['key3'] = 'abc'; $foo['key4'] = 'ghi'; and I want to get the value 'abc' ... Please send me an email ([EMAIL PROTECTED]) because my newsg

[PHP] cURL

2002-02-05 Thread Sandeep Murphy
Hi, Can anyone point me out to some good resources on cURL?? Have to send 3 fields, Action,Username and Password for authentification to a Servlet and receive its response.. TIA, sands -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] date( ) - function

2002-02-05 Thread Mike Maltese
try date("H:i:s",time()). Mike - Original Message - From: "soma" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 05, 2002 12:32 AM Subject: [PHP] date( ) - function > i have one question > > linux system's time is right but php's date () function time is wrong.

Re: [PHP] PHP script for command line

2002-02-05 Thread Lars Torben Wilson
On Tue, 2002-02-05 at 00:36, Alex Shi wrote: > I am now trying to use php script from command line. Everything is > Ok except only one thing: it will always send out header msg. How > can stop it from sending header? > > Alex Shi There are full instructions in the manual. Essentially, you are

RE: [PHP] Limit 15 where "Newest"

2002-02-05 Thread Tim Ward
If (!$start) $start=0; $sql="select author, title, chapter from table order by date DESC limit $start, 15"; ... and a link on the same page: echo("next"); or something like that Tim www.chessish.com

[PHP] 72dpi with gdlibrary2?

2002-02-05 Thread Andy
Hi there, I would like to create images with 72 dpi with gdlibrary2.01 Is this possible? Thanx Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] date( ) - function

2002-02-05 Thread soma
i have one question linux system's time is right but php's date () function time is wrong... different system time and php's date( ) time is date () function call to the system time ? thansk /soma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

[PHP] PHP script for command line

2002-02-05 Thread Alex Shi
I am now trying to use php script from command line. Everything is Ok except only one thing: it will always send out header msg. How can stop it from sending header? Alex Shi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: MySQL

2002-02-05 Thread jtjohnston
$date = date ("Y-m-d"); #works? :) Jtjohnston wrote: > In MySQL, I have a date field that is formatted 000-00-00 Is there a > function in PHP I did not find yet that does this? > John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MySQL

2002-02-05 Thread jtjohnston
In MySQL, I have a date field that is formatted 000-00-00 Is there a function in PHP I did not find yet that does this? John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    1   2