[PHP] Re: Form Name Attribute Help!

2001-11-10 Thread jimw
Kal Amry [EMAIL PROTECTED] wrote: If I have a form in named formName1 such as: form name=formName1 action=file.php method=post How can I get the name formName1 from within file.php you can't. but you can add a hidden form field to each form to pass along a value. for example: form

Re: [PHP] Form Name Attribute Help!

2001-11-10 Thread Chris Hobbs
It doesn't appear that the name attribute is passed (ref: http://www.blooberry.com/indexdot/html/tagpages/f/form.htm). Instead, try including the following in each of your forms: input type='hidden' name='formname' value='formName1' Then you can check $formname in file.php for the value.

[PHP] MORE: mail() attach png

2001-11-10 Thread jtjohnston
ImagePNG($image); imagedestroy($image); I tried adding headers, but am missing something. Can anyone help? ?php mail([EMAIL PROTECTED], Test Image, Test message,Content-Type: multipart/mixed; boundary=\15E3B1D587950C2CAADCBF93\ This is a multi-part message in MIME format.

[PHP] Session probs with SSI

2001-11-10 Thread Christian Dechery
At 12:03 10/11/01 -0800, Rasmus Lerdorf wrote: Perhaps because you keep asking non-PHP related questions on the PHP lists. I see a bunch of questions about Apache and .htaccess from you which you yourself admitted has nothing to do with PHP. So, yes, your history of lame questions work against

Re: [PHP] Form Name Attribute Help!

2001-11-10 Thread Kal Amry
Thanks guy, well I have to edit a lot of forms then :) Chris Hobbs [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... It doesn't appear that the name attribute is passed (ref: http://www.blooberry.com/indexdot/html/tagpages/f/form.htm). Instead, try including the

[PHP] Class for database-access doesn't work

2001-11-10 Thread Alexander Czernay
Hi, I just tried to write a simple class for opening a MySQL-database with PHP. The database get's opened, but the handle isn't transfered back. I can then use the database, but only if I don't specify the handle in mysql_query. Any ideas? Code: db.php: ? class Database { var $connect; var

[PHP] gdImageGif errors

2001-11-10 Thread Forrest Aldrich
In follow-up to my bug report, here is the compiler output: gmake[3]: Entering directory `/usr/local/src/php-4.0.6/ext/gd' /bin/sh /usr/local/src/php-4.0.6/libtool --silent --mode=compile gcc -I. -I/usr/local/src/php-4.0.6/ext/gd -I/usr/local/src/php-4.0.6/main -I/usr/local/src/php-4.0.6

[PHP] Where can I find a routine ......

2001-11-10 Thread Roy W
Where can I find a routine or PHP prog that will evaluate the distances between zip codes or find within X miles of a zip code Any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] Drawing line onto an image

2001-11-10 Thread Torkil Johnsen
Hello. I'm looking for sample code on how I can solve this problem: - I have a webpage. - On the webpage I have a map. (gif image) - I have two points on the map: a and b, with coordinates ax,ay and bx,by - Now... I want to create a straight line that is drawn from a to b, and I want this

[PHP] SetCookie return

2001-11-10 Thread Christian Dechery
what does SetCookie() returns??? I did a var_dump() on it and it gave me 'bool(true)' when in fact the cookie was not set... _ . Christian Dechery . . Gaita-L Owner / Web Developer . . http://www.webstyle.com.br . . http://www.tanamesa.com.br -- PHP General

Re: [PHP] SetCookie return

2001-11-10 Thread Rasmus Lerdorf
SetCookie() cannot know whether the client accepts the cookie or not. It can only send it. You will need to check in a subsequent request if the client decided to accept it or not. -Rasmus On Sat, 10 Nov 2001, Christian Dechery wrote: what does SetCookie() returns??? I did a var_dump()

Re: [PHP] Drawing line onto an image

2001-11-10 Thread Rasmus Lerdorf
Grab an old version of GD (one with GIF support), and simply use ImageCreateFromGif() followed by ImageLine() and ImageGif() and you are done. -Rasmus On Sun, 11 Nov 2001, Torkil Johnsen wrote: Hello. I'm looking for sample code on how I can solve this problem: - I have a webpage.

[PHP] converting string to double

2001-11-10 Thread Kal Amry
Any handy function to convert a string such as $string1 = '55.32' To A Number such as 55.32 -- 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

[PHP] Re: converting string to double

2001-11-10 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Kal Amry) wrote: Any handy function to convert a string such as $string1 = '55.32' To A Number such as 55.32 http://www.php.net/manual/en/language.types.type-juggling.php -- CC -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] converting string to double

2001-11-10 Thread Christian Dechery
try floatval() At 21:13 10/11/01 -0500, Kal Amry wrote: Any handy function to convert a string such as $string1 = '55.32' To A Number such as 55.32 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] HTTP_POST_VARS: Data there, but can't get to it

2001-11-10 Thread Christopher William Wesley
Name the form element without the brackets ... just whatdo instead of whatdo[]. When $whatdo[] makes it to your formhandler, it's an array. (You _could_ access $whatdo[0] ... but that may or may not be more confusing.) ~Chris /\

[PHP] Help with array in class needed

2001-11-10 Thread Alexander Czernay
I've written a class that reads a database into an array. This works fine, but when I try to copy the array outside the class using a function that only does a return $this-$data, I only get one sub-array of the whole one. Any ideas? Thanks Alexander Code: class Adressen { var $connect; //

Re: [PHP] HTTP_POST_VARS: Data there, but can't get to it

2001-11-10 Thread Tom Rogers
Hi This works (save as whatdo.php) !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN html headtitleWhatdo/title/head body ?php $rowcount = 2; $row = 0; //check for submit button pressed if($submit == Submit): while($row $rowcount): $postvar = whatdo-.$row;

[PHP] Problems with the fopen() function

2001-11-10 Thread Tim Harvey
Can somebody PLEASE help me with this problem I'm having. This is a script to search the web. It sends the parematers q,c i to the SeacrhHippo server using the fopen function. When the script executes the following error messages are displayed: Warning: php_hostconnect: connect failed in

Re: [PHP] Problems with the fopen() function

2001-11-10 Thread Matt Friedman
I would try urlencoding the query-string in that url. Or put the url in single quotes instead. Just shots in the dark, but try it out. M. - Original Message - From: Tim Harvey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 10, 2001 9:44 PM Subject: [PHP] Problems

[PHP] Recompiling under new kernel

2001-11-10 Thread Gaylen Fraley
I've updated the linux kernel and just noticed that phpinfo (obviously) still only knows about the system info under the previous kernel. In order to bring the information up to date, do I have to recompile from scratch, or is there an easier way? I seem to remember reading that if I don't want

[PHP] e modifier

2001-11-10 Thread Brian Clark
Does anyone know when the PCRE modifier 'e' was added into PHP? Is it version dependant, or has it been there since 3.0? In 3.0.18 with `PCRE library version: 2.05 21-Apr-1999' I get: Warning: Unknown option 'e' in [...] But in 4.2.0-dev it is, of course, fine. -Brian -- PHP General

[PHP] Re: e modifier

2001-11-10 Thread Kal Amry
I just came across this so check it - It might help: http://www.php.net/manual/en/pcre.pattern.syntax.php#regexp.reference.backsl ash Kal Brian Clark [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Does anyone know when the PCRE modifier 'e' was added into

[PHP] Random Row From Database

2001-11-10 Thread HEW Staff
Hi, I'm trying to pull a random row from my database and display the contents. I know that the code: SELECT * FROM TABLENAME WHERE RAND() LIMIT 1 should work. However, there are 19 rows in the database and only the first row ever shows up. Is there a way to do this to ensure uniqueness? The

Re: [PHP] HTTP Headers

2001-11-10 Thread Brent Rieck
On Fri, 2001-11-09 at 15:55, Mike Harvey wrote: Is it possible to redirect to an IP address but have the browser address bar show an URL? assuming you have a valid url with a hostname, just wrap the ip address url inside of a frame that takes up the entire window. --Brent -- PHP General

[PHP] Form Name Attribute

2001-11-10 Thread Kal Amry
Hi guys, If I have a code in file1.php such as: form name=formName1 action=file2.php method=post code.. code.. /form And form name=formName2 action=file2.php method=post code.. code.. /form Now in file2.php, I need to check which form I am receiving!! How do I

Re: [PHP] Text Wrapper

2001-11-10 Thread Brian Clark
Hi jtjohnston, @ 2:16:38 AM on 11/10/01, jtjohnston wrote: $string = Mary had a little lamb whose face was icy cold. Everywhere that Mary went the townsfolk were sure to know; I want to display the text where the max number of characters on any one line is 34.

[PHP] Passing vars...

2001-11-10 Thread Ashley M. Kirchner
Small problem... I used to have a single file that included others based on some variables set. However, I've decided instead of including a different file, I would set a location header and redirect the browser to the (once included) file instead. Problem is, now my variables aren't

Re: [PHP] Text Wrapper

2001-11-10 Thread jtjohnston
How long have I been f***ing around with perl? Thanks someone for thinking that one up! :) Brian Clark wrote: Hi jtjohnston, @ 2:16:38 AM on 11/10/01, jtjohnston wrote: $string = Mary had a little lamb whose face was icy cold. Everywhere that Mary went the townsfolk were sure to know;

php-general Digest 10 Nov 2001 09:03:21 -0000 Issue 986

2001-11-10 Thread php-general-digest-help
php-general Digest 10 Nov 2001 09:03:21 - Issue 986 Topics (messages 74057 through 74090): can't insert into mssql smalldatetime 74057 by: aaron putting the result of PHP code into a string 74058 by: Morten Gjetanger 74061 by: Jason Stechschulte What is the

[PHP] Nope: Text Wrapper

2001-11-10 Thread jtjohnston
In This case, nope, won't work: ImageString($image,2,20,60,wordwrap($string,34),$blue); http://www.collegesherbrooke.qc.ca/languesmodernes/course/postcard.php How can I break wordwrap($string,34) into an aray and do something like this: $ypos = 60; for i to array_length {

Re: [PHP] putting the result of PHP code into a string

2001-11-10 Thread Morten Gjetanger
Ok. Maybe a bad example. But what if it's a function, e.g. $id = 2; $code = td?php echo Func1($id) ?/td $html = someFunction($code); Now, $html should contain td{the result of the Func1 function}/td The reason why I want this is that I have a site where all the text on each side lies in a

RE: [PHP] putting the result of PHP code into a string

2001-11-10 Thread power jessie
$id = 2; $code = td . Func1($id) . /td $html = someFunction($code); hope that helps! jessie -Original Message- From: Morten Gjetanger [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 10, 2001 1:23 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] putting the result of PHP code into a

Re: [PHP] Re: Faking MS Access on MySQL linux box

2001-11-10 Thread mweb
John, thanks for the link, but isn't it a bit of overkill in my case? What I need is to write PHP pages which manipulate a MS Access DB via ODBC, because this is what the hosting company makes available (and it's not going to change because of several reasons) So, I am looking for explanation

Re: [PHP] Nope: Text Wrapper

2001-11-10 Thread Andrew Brampton
now use explode with /n as the seprating character, Andrew - Original Message - From: jtjohnston [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 10, 2001 9:15 AM Subject: [PHP] Nope: Text Wrapper In This case, nope, won't work:

[PHP] imageCopy :-(

2001-11-10 Thread jtjohnston
Not that I'm sleep deprived ... :o) Simple, I create an image, add a bunch of text and what not. Now I want to add a graphic. (Probably a couple, who knows?) imageCopy(test.bmp,$image,10,10,10,10,350,500,50); == doesn't work. Is this even the right function?? Description: int

[PHP] URGENT FUND TRANSFER

2001-11-10 Thread MALIK ZULU
3/5 RIDER HAGGARD CLOSE, JO, BORG SOUTH AFRICA. E [EMAIL PROTECTED] URGENT AND CONFIDENTIAL (RE: TRANSFER OF ($ 152,000.000.00 USD ]ONE HUNDRED AND FIFTY TWO MILLION DOLLARS Dear sir, We want to transfer to overseas ($

Re: [PHP] Losing Session Variable in IE Only?

2001-11-10 Thread Herb Wiser
I was doing some stupid shit like doing a session_unregister() on my variables, then later, after successful login, redoing a session_register(). When I made a separate logoff.php page to unregister the variable, then a redirect back to index.php to allow users to login again, everything worked

[PHP] Total Newbie - concatenating variables.

2001-11-10 Thread David Mitchell
Hi, This is my first foray into PHP (coming from a VB, ASP background). What I am trying to do should be ridiculously easy, but for some reason I can't figure out how to do this. I have a form that builds a dynamic number of text boxes in a loop: for($i=0;$i$count;$i++) { print(input

[PHP] SSL php

2001-11-10 Thread Colm Rafferty
Dear all, If I use a php script in a SSL webpage I will be using a remote email address to send the incoming data (personal details, name address etc...) to... e.g. [EMAIL PROTECTED] using the standard mail() function. SSL is secure for the interface between the user and the webpage and I

Re: [PHP] Total Newbie - concatenating variables.

2001-11-10 Thread Matt Friedman
Try: for($i=0;$i$count;$i++) { // in the global array, print the variable with the name: item$i print $GLOBALS[item$i]; } or even: for($i=0;$i$count;$i++) { // in the post vars array, print the variable with the name: item$i // this one is probably more secure. print

Re: [PHP] SSL php

2001-11-10 Thread Cece
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello! How secure is the email in transit from the SSL page to the recipient's mailbox? A Does SSL offer any security in this regard? B Or does it need to be encrypted? Answer is: B :) you - ssl encrypted line - server

RE: [PHP] imageCopy :-(

2001-11-10 Thread Andrew Kirilenko
Hello! You should open test.bmp first. Best regards, Andrew Kirilenko. -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 10, 2001 1:15 PM To: [EMAIL PROTECTED] Subject: [PHP] imageCopy :-( Not that I'm sleep deprived ... :o) Simple, I

Re: [PHP] HTTP_POST_VARS: Data there, but can't get to it

2001-11-10 Thread Lara J. Fabans
My bad for typing it in from memory. I'd retyped it in a few times, so I thought i had it perfect. Here's the exact code: print_r ($HTTP_POSTVARS); // yeilds the array that I pasted down below if ($flag==process) { $whatdo = $HTTP_POSTVARS['whatdo']; print_r($what_do); // blank . . . for

[PHP] Why no one helps?

2001-11-10 Thread Christian Dechery
Why doesn't anyone say something about my messages probelms with sessions and SSI? Is it such a lame question??? _ . Christian Dechery . . Gaita-L Owner / Web Developer . . http://www.webstyle.com.br . . http://www.tanamesa.com.br -- PHP General Mailing List

[PHP] Re: putting the result of PHP code into a string

2001-11-10 Thread Morten Gjetanger
Ok. To be a bit more precise. the $code part could be any php code, e.g. $code = ENDM require_once(someFile.inc); $array1 = someFunc1($param1); foreach($array1 as $val) { echo td$val/td\n; } ENDM; regards Morten Gjetanger Morten Gjetanger [EMAIL PROTECTED] skrev i melding [EMAIL

Re: [PHP] Re: Faking MS Access on MySQL linux box

2001-11-10 Thread John Lim
Hi Mweb, yes it is overkill, but I don't know any other way to do it unless you want to buy a 3rd party odbc driver for Access on Linux (is there one?) Bye, John Mweb [EMAIL PROTECTED] wrote in message 2000104958.B3706@polaris">news:2000104958.B3706@polaris... John, thanks for the

RE: [PHP] SSL php

2001-11-10 Thread Robert Klinkenberg
SSL encrypts the data between the user and your webserver only It does not encrypt data send by you to your mailserver, nor does it influence the way your mailserver sends the mailmessage to the mailserver of the user. (in plain text) So, you need to encrypt the data in the email. It is however

Re: [PHP] Why no one helps?

2001-11-10 Thread Kurt Lieber
On Saturday 10 November 2001 08:42 am, Christian Dechery wrote: Why doesn't anyone say something about my messages probelms with sessions and SSI? This list gets 2000 - 3000 messages per month and you find it surprising that not all messages get a response? My suggestion regarding SSI and

Re: [PHP] Why no one helps?

2001-11-10 Thread Christian Dechery
At 10:33 10/11/01 -0800, you wrote: On Saturday 10 November 2001 08:42 am, Christian Dechery wrote: Why doesn't anyone say something about my messages probelms with sessions and SSI? This list gets 2000 - 3000 messages per month and you find it surprising that not all messages get a

Re: [PHP] HTTP_POST_VARS: Data there, but can't get to it

2001-11-10 Thread Lara J. Fabans
Just an addendum, I changed it from radio buttons to a pop up menu p select name=whatdo[] id=whatdo option value=load selectedLoad/option option value=deleteDelete/option option value=changeChange Category/option /select

[PHP] amp; in url's

2001-11-10 Thread GaM3R
; The separator used in PHP generated URLs to separate arguments. ; Default is . ;arg_separator.output = amp; ; List of separator(s) used by PHP to parse input URLs into variables. ; Default is . ; NOTE: Every character in this directive is considered as separator! ;arg_separator.input = ;

[PHP] ASP, ODBC, IIS 5, and PHP

2001-11-10 Thread Kevin Pratt
I appear to be having a problem where when I run a PHP script that uses ODBC calls my ASP/ODBC driven pages stop functioning. When I run a PHP script that does not use ODBC there does not seem to be any problems with my ASP/ODBC pages. I was wondering if anyone out there has ever run in to a

Re: [PHP] Why no one helps?

2001-11-10 Thread Rasmus Lerdorf
Perhaps because you keep asking non-PHP related questions on the PHP lists. I see a bunch of questions about Apache and .htaccess from you which you yourself admitted has nothing to do with PHP. So, yes, your history of lame questions work against you. But to answer your question, it is

Re: [PHP] amp; in url's

2001-11-10 Thread Matt Friedman
I'm not sure if this answers your question but it seems to me that amp; is an html encoding whereas if you want to put something in the url you should urlencode it. This will eliminate the s. Matt. - Original Message - From: GaM3R [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

[PHP] Install on Darwin fix?

2001-11-10 Thread PHP Mail
Apple broke the GCC on Mac OS X 10.0 Running make on PHP install produces this error: /usr/bin/ld: -undefined error must be used when -twolevel_namespace is in effect Here's the fix from Apple but it's over my head. http://developer.apple.com/techpubs/macosx/ReleaseNotes/TwoLevelNamespaces.

Re: [PHP] amp; in url's

2001-11-10 Thread Rasmus Lerdorf
On Sun, 11 Nov 2001, GaM3R wrote: ; The separator used in PHP generated URLs to separate arguments. ; Default is . ;arg_separator.output = amp; ; List of separator(s) used by PHP to parse input URLs into variables. ; Default is . ; NOTE: Every character in this directive is considered

[PHP] rules for headers?

2001-11-10 Thread jtjohnston
I'm creating an image, but I want to do as below so when I do http://www/image.php it displays html and ... http://www/image.php?newimage=1 displays my image However it crashes if $newimage=1 My image doesn't display. My image works otherwise if I simply erase the if loop. Is this a

[PHP] Apache User Groups?

2001-11-10 Thread Eric
Does anyone know of a usergroup for Apache? I am having difficulties finding one and am having some troubles with Apache. Thanks Eric -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

[PHP] global variable for all scripts

2001-11-10 Thread sascha biber
hi ppl, id like to set something like a global variable or constant. i need this, to set the path of my document root. all scripts should then use this path. e.g. my apache document root is: /www all my skriptfiles are in /www/my_subdir i include a special php script in all script files with:

php-general Digest 10 Nov 2001 21:29:14 -0000 Issue 987

2001-11-10 Thread php-general-digest-help
php-general Digest 10 Nov 2001 21:29:14 - Issue 987 Topics (messages 74091 through 74124): Re: Text Wrapper 74091 by: jtjohnston 74095 by: Andrew Brampton Re: putting the result of PHP code into a string 74092 by: Morten Gjetanger 74093 by: power jessie

Re: [PHP] global variable for all scripts

2001-11-10 Thread Kurt Lieber
On Saturday 10 November 2001 01:29 pm, you wrote: if i like to move my scripts to /www/my_newdir i habe to change the include() function in every script A few options: 1. Don't use absolute paths -- use relative paths. Then you don't have to worry about it as long as the overall structure

[PHP] mail() attach jpeg

2001-11-10 Thread jtjohnston
Anyone have an example of mail() attaching a png or jpeg? I'm doing this: ... ImagePNG($image); imagedestroy($image); -- 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

[PHP] Date help (no not that kind)

2001-11-10 Thread sundogcurt
I am trying to determine if todays date ($today) is within a week ($startcheck) of a given date ($dob). This is what I have so far. $todaydate = (date(Y-d-m)); $today = strtotime($todaydate); // $today prior to strtotime = 2001-10-11 $startcheck = strtotime(2001-08-11); $dob =

[PHP] gdImageGif compile errors with 4.0.6

2001-11-10 Thread Forrest Aldrich
I'm trying to compile php-4.0.6 on FreeBSD-4.4-STABLE for Apache, and I've tried using both version 1 and 2 of the gd library; however, the compile continues to crash with undefined calls to gdImageGif. I can see that in the code there are mentions of a drop-in replacement gd_png for this

Re: [PHP] rules for headers?

2001-11-10 Thread Chris Hobbs
Just for kicks, try this instead: if (!isset($newimage)) {... jtjohnston wrote: However it crashes if $newimage=1 My image doesn't display. ?php if(!$newimage) { header(Content-type: text/html); echo hibr; echo rendu: $rendubr; }else{ header(Content-type: image/png); $image =

Re: [PHP] Apache User Groups?

2001-11-10 Thread Chris Hobbs
http://www.apache.org/foundation/mailinglists.html Eric wrote: Does anyone know of a usergroup for Apache? I am having difficulties finding one and am having some troubles with Apache. Thanks Eric -- ___ ____ _ Chris Hobbs / \ \/

[PHP] Form Name Attribute Help!

2001-11-10 Thread Kal Amry
I have posted this question before so I'm giving another try in case new people are looking at the news list!! If I have a form in named formName1 such as: form name=formName1 action=file.php method=post How can I get the name formName1 from within file.php My original question was: Hi