[PHP] sessions without cookies?

2001-03-27 Thread duirfire
Hi, can someone point me toward a tutorial that shows how to register info (e.g. username, login status, and user preferences) and do this in a session without using cookies... is this even possible? thanks! duirfire -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EM

Re: [PHP] $myfile[$count]_type?!

2001-03-27 Thread FredrikAT
Hi, again! Didn't work... This is the scene: (file.php?a=input) (file.php?a=reg) Trying to echo type... ${$myfile[$count] . '_type'} // NOT WORKIN' ${$myfile$count}_type // NOT WORKIN' Any suggestions? Fredrik A. Takle Bergen, Norway ""FredrikAT"" <[EMAIL PROTECTED]> skrev i melding 99qqq

Re: [PHP] $myfile[$count]_type?!

2001-03-27 Thread Philip Olson
Try this example : Regards, Philip On Wed, 28 Mar 2001, FredrikAT wrote: > Hi, again! > > Didn't work... > > This is the scene: (file.php?a=input) > > > (file.php?a=reg) > Trying to echo type... > ${$myfile[$count] . '_type'} // NOT WORKIN' > ${$myfile$count}_type // NOT WORKIN' > > A

[PHP] data entry validation

2001-03-27 Thread Chris Worth
I'm working with some forms that need the data validated. Dates, times etc. my question is, how do I "reset" the form back to the original screen with variables intact so they can make the changes? is there a code snippet some place i can work with? thanks, chris -- PHP General Mailing

Re: [PHP] data entry validation

2001-03-27 Thread Miles Thompson
Chris, Go to www.thickbook.com. Julie Meloni has a tutorial there which gives you exactly what you want. It's the one which has to do with custom error messages, which , believe or not, are on the subject of data validation. Miles At 06:31 PM 3/27/01 -0500, Chris Worth wrote: >I'm working wi

[PHP] Array in Form Elements

2001-03-27 Thread Jason Lotito
Okay, here is the question, I have a form that will continue to grow in the number of elements that it contains. The values are passed into a function, and then written out to a file. Currently, I have 38 seperate values that are being passed into this function, making the arguments for the func

[PHP] pdflib

2001-03-27 Thread Steffen Wieschalla
Hi! Is there any possibility to import an existing pdf file in PHP 4.0.4pl1 (pdflib 3.0.3) to modify it? Thanks in advance! Ciao Steffen --- +---+ | Steffen Wieschalla| |

[PHP] Dynamic constant names -SOLVED

2001-03-27 Thread Geoff Caplan
Art, Thanks for the suggestion, but I think there is a flaw in your solution. The original issue was how to get at the value of a constant where the $constant_name is dynamically created as a variable. In your solution you have defined constant_name as a constant! So when you assign it, it does

Re: [PHP] sort multidimensional array?

2001-03-27 Thread Stuart J. Browne
> while ($row = mysql_fetch_array($results)) { > $tmp = get_item_reorder_priority($row["item_sku"]); > $list[$r]["priority"] = $tmp[0]; > $list[$r]["sku"] = $row["item_sku"]; > $r++; >} > >$list = array_multisort($list["priority"], SORT_NUMERIC, SORT_DESC); > > and it retur

[PHP] Number/Letter Passwords

2001-03-27 Thread Matt Stone
Hi,Hi, I have this code below which is supposed to be generating a password like QCCQCN2-IUZ with 10 characters - All but three in the first section (7) and three in the last part - but does not work in all cases. Sometimes it prints LPSA3WD-IM or G22G2G9-FC. Is there a catch in the code that will

[PHP] Re: Dynamic constant names -SOLVED

2001-03-27 Thread Art Wells
My apologies for assuming too much of the variable names. Thank you for correcting me. Your response has caused me good confusion though. If I remove the ${...} notation I get quite a different output (specifically, there's no output). Are you sure the parser ignores it? This is the code I sug

Re: [PHP] setting Check box

2001-03-27 Thread S. Efurd
This worked for me as well, and helped me with a problem I was having! How would you show what option was selected in a drop down box. I have a form the user fills out, this goes to a confirmation page to ensure the data enetered is correct. I have a drop down box for states, and I cant seem to m

Re: [PHP] Array in Form Elements

2001-03-27 Thread Jack Dempsey
i used something like this in a series of checkbox's to grab all the values in an arrayi'm not sure if it can be used in this way though, but give it a go... -jack Jason Lotito wrote: > > Okay, here is the question, I have a form that will continue to grow in the > number of elements that

RE: [PHP] setting Check box

2001-03-27 Thread Peter Houchin
use >foo bar Peter Ps thanks again David & Jason M & Phillip for your help :> -Original Message- From: S. Efurd [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 28, 2001 10:48 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] setting Check box This worked for me as well, and he

Re: [PHP] setting Check box

2001-03-27 Thread S. Efurd
I thought about doing it this way, but repeating this 50 times seems a bit ineffecient, perhaps i am looking for a shortcut that does not exist? I had hoped I was missing something obivious. Thanks Steve - Original Message - From: "Peter Houchin" <[EMAIL PROTECTED]> To: "S. Efurd" <[EMAI

[PHP] array in sessions

2001-03-27 Thread Christian Dechery
How do I store (and update) an array within a session... Like I'd have cuz I'll have more pages... $time["page20"]="300"; is this going to automatically load into the session vars or I have to do something first? . Christian Dechery (lemming) . http://www

Re: [PHP] GD problem

2001-03-27 Thread David Robley
On Tue, 27 Mar 2001 18:48, Daniel B I wrote: > It.s me, again :) > There is trick to find out if php will be compiled well > (I mean with jpeg support): > > when issuing the ./configure command in php, > after putting all the options, put something like this: > ./configure ... > cf.log > > (this i

[PHP-CVS] cvs: php4 /pear/DB ibase.php oci8.php

2001-03-27 Thread Thomas V.V.Cox
cox Tue Mar 27 16:54:05 2001 EDT Modified files: /php4/pear/DB ibase.php oci8.php Log: oci8.php * added not capable for fetchInto when $rownum !== null (feature not supported yet) * fix fetchInto to return null on no more data * Removed extra che

RE: [PHP] setting Check box

2001-03-27 Thread Peter Houchin
am not sure if it would work or not but maybe if you tried $foo= if ($areacode == '$bar') { echo 'SELECTED '; } >foo bar -Original Message- From: S. Efurd [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 28, 2001 11:20 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] setting Chec

Re: [PHP] setting Check box

2001-03-27 Thread David Robley
On Wed, 28 Mar 2001 10:18, S. Efurd wrote: > This worked for me as well, and helped me with a problem I was having! > > How would you show what option was selected in a drop down box. I have > a form the user fills out, this goes to a confirmation page to ensure > the data enetered is correct. I h

Re: [PHP] Connect local->remote

2001-03-27 Thread David Robley
On Tue, 27 Mar 2001 18:48, Jochen Kaechelin wrote: > how can I connect to a remote-database from > my local dos-window? > > I use the following without success: > > mysql -u XXX -h mysql-XXX -p -D > > > Jochen Kaechelin Should you not have a full hostname as the argument for -h ? --

Re: [PHP] sort multidimensional array?

2001-03-27 Thread phpman
I'm still confused. I'm looking to sort the list[$r] part of the array based on what value $list[$r]["priority"] is. What would the function's arguments be? ""Stuart J. Browne"" <[EMAIL PROTECTED]> wrote in message 99rajk$i0v$[EMAIL PROTECTED]">news:99rajk$i0v$[EMAIL PROTECTED]... > > while ($row

[PHP] No output

2001-03-27 Thread Sean B.
I'm attempting to write a chat which streams HTML. There's a problem with the main function that's responsible for 'streaming'. It loops endlessly and if anytihng new appears in the database, it parses it into HTML and outputs it via the echo command. The chatboxDisplay method is what is respon

Re: [PHP] setting Check box - THANKS!

2001-03-27 Thread S. Efurd
Thanks, that did it. Steve - Original Message - From: "David Robley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 27, 2001 7:58 PM Subject: Re: [PHP] setting Check box > On Wed, 28 Mar 2001 10:18, S. Efurd wrote: > > This worked for me as well, and helped me with a

[PHP] Problems getting php to restart samba

2001-03-27 Thread Tim Churchward
I've an interesting problem that after using php to restart SAMBA the server no longer parses php to that particular browser. This is really really weird!! The situation is that I've built a php tool to restart server services such as atalk and samba. Starting/Restarting/Stopping atalk works bea

Re: [PHP] No output

2001-03-27 Thread Jack Dempsey
you can't stream output like that...netscape will wait until your HTML output is done, but if you're infinitely looping, it won't be, and you'll never get your tags.i've seen a number of posts trying to do chats and flush() the output, but bottom line, if you don't send it a complete html

RE: [PHP] No output

2001-03-27 Thread Jason Murray
> you can't stream output like that...netscape will wait until your > HTML output is done, but if you're infinitely looping, it won't be, and > you'll never get your tags.i've seen a number of > posts trying to do chats and flush() the output, but bottom line, if you > don't send it a com

[PHP-CVS] cvs: php4 /pear/HTML Page.php

2001-03-27 Thread Adam Daniel
adaniel Tue Mar 27 19:17:00 2001 EDT Modified files: /php4/pear/HTML Page.php Log: bug fix in toHtml Index: php4/pear/HTML/Page.php diff -u php4/pear/HTML/Page.php:1.1 php4/pear/HTML/Page.php:1.2 --- php4/pear/HTML/Page.php:1.1 Fri Mar 23 20:36:38 2001 +++

[PHP] New PHP-GTK Site

2001-03-27 Thread Joe Stump
I've noticed there isn't really a jumping off point for the PHP-GTK beginners and users. I spent the last few hours throwing a site together that has the basics to fill this void. It has: 1.) An application archive 2.) News 3.) Discussion 4.) Helpful Links I've put up one of my initial apps an

[PHP] Re: [PHP-GTK] New PHP-GTK Site

2001-03-27 Thread Joe Stump
So tired I forgot to put in the URL: http://gtk.php-coder.net --Joe On Tue, Mar 27, 2001 at 10:32:26PM -0500, Joe Stump wrote: > I've noticed there isn't really a jumping off point for the PHP-GTK beginners > and users. I spent the last few hours throwing a site together that has the > basics t

[PHP] Blah I'm Stupid

2001-03-27 Thread chris herring
I got a question here. How would you go about calling variables from a form. I'm sure this is super-easy, but I'm a newbie. Any help would be greatly appreciated.

RE: [PHP] Blah I'm Stupid

2001-03-27 Thread Peter Houchin
The input type name is the variable so say you have your variable = $foo Peter -Original Message- From: chris herring [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 28, 2001 2:15 PM To: [EMAIL PROTECTED] Subject: [PHP] Blah I'm Stupid I got a question here. How wou

Re: [PHP] Blah I'm Stupid

2001-03-27 Thread David Robley
On Wed, 28 Mar 2001 13:44, chris herring wrote: > > I got a question here. How would you go about calling variables from a > form. I'm sure this is super-easy, but I'm a newbie. Any help would be > greatly appreciated. Just prefix the form object names with $ Say you have a text box set up like

[PHP] How to send attachment with email with php?

2001-03-27 Thread Carfield Yim
How to send attachment with email with php? -- 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]

Re: [PHP] Blah I'm Stupid

2001-03-27 Thread chris herring
how would you go about writing that data do a text file then? - Original Message - From: "David Robley" <[EMAIL PROTECTED]> To: "chris herring" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, March 27, 2001 10:19 PM Subject: Re: [PHP] Blah I'm Stupid > On Wed, 28 Mar 2001 13:44,

Re: [PHP] Blah I'm Stupid

2001-03-27 Thread David Robley
On Wed, 28 Mar 2001 14:31, chris herring wrote: > - Original Message - > From: "David Robley" <[EMAIL PROTECTED]> > To: "chris herring" <[EMAIL PROTECTED]>; > <[EMAIL PROTECTED]> > Sent: Tuesday, March 27, 2001 10:19 PM > Subject: Re: [PHP] Blah I'm Stupid > > > On Wed, 28 Mar 2001 13:44,

Re: [PHP] Blah I'm Stupid

2001-03-27 Thread chris herring
ok here's the script i have, and i keep getting errors $text", "r+"); $fp = fclose("file.txt"); echo ""; echo ""; echo ""; echo ""; echo ""; ?> what's wrong with it. it says it's with the fputs and fclose things. - Original Message - From: "David Robley" <[EMAIL PROTECTED]> To: "chris

Re: [PHP] Im getting better :-) was Blah I'm Stupid

2001-03-27 Thread David Robley
On Wed, 28 Mar 2001 14:47, chris herring wrote: > ok here's the script i have, and i keep getting errors > > $fp = fopen("file.txt", "w"); > $fp = fputs("file.txt", "$text", "r+"); > $fp = fclose("file.txt"); > > echo ""; > echo " value=\"http://\">"; echo " size=\"20\">"; > echo " Link\">"; > >

Re: [PHP] "DF" output

2001-03-27 Thread Joe Brown
heh, dunno, maybe the $PATH environment var doesn't include /sbin or /usr/sbin. Test w 'ls' see if you can get a directory listing, at least? "Steven Shepherd" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Brad, > > Thanks for the response. Either method t

Re: [PHP] sessions without cookies?

2001-03-27 Thread Yasuo Ohgaki
You can use URL mode for PHP4 session if you want session w/o cookie. How about read this link? http://www.zend.com/zend/tut/session.php -- Yasuo Ohgaki "duirfire" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, can someone point me toward a tutorial tha

Re: [PHP] Opening Remote Files

2001-03-27 Thread Yasuo Ohgaki
""Nick Norton"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Does anyone know of a method to read a remote password protected file > without actually downloading it locally and then reading? I suppose you must download file before reading. There are so many

[PHP] Curious

2001-03-27 Thread YoBro
Hi, I am curious to know why you need to use the /n, and what it actually does, because I had a page that used them, and i removed them all and it still works fine. Also, is it seen as good or bad practive to use \" only when required or all the time. i.e echo ""; //Doesn't need to use \" echo "

Re: [PHP] Curious

2001-03-27 Thread Chris Aitken
At 06:04 PM 28/03/2001, you wrote: >Hi, > >I am curious to know why you need to use the /n, and what it actually does, >because I had a page that used them, and i removed them all and it still >works fine. As far as the HTML output, it wont affect how it shows up on the screen, but if you look a

[PHP] guide on IMAP installation

2001-03-27 Thread Szeto
Hello, * i am new to linux environment, where can i get IMAP installation guide * where to get a proper IMAP software -- -- Any suggestions would be appreciated. Thank You Khai Mun, Ng -- PHP General Mailing List (http://www.php.ne

[PHP] where to get info on developing web e-mail

2001-03-27 Thread Szeto
Hello, * i wondering where to get ifo on developing web e-mail * what standard should i use to deveping to software -- -- Any suggestions would be appreciated. Thank You Khai Mun, Ng -- PHP General Mailing List (http://www.php.net/

Re: [PHP] Curious

2001-03-27 Thread Philip Olson
> I am curious to know why you need to use the /n, and what it actually does, > because I had a page that used them, and i removed them all and it still > works fine. Have a look here (the main manual is down this second) : http://uk.php.net/manual/en/language.types.string.php An example use

[PHP] Passing Special Characters in Query String

2001-03-27 Thread Thomas Edison Jr.
I'm facing a problem with Special Characters ($, %, &, \, /, ;, :, ", ') etc.. We are sending a varibale in a query string like this : with $title containing multiple words & these special characters, it is not passed. I get an error. Without urlencode, multiple words are not passed with

[PHP-I18N] Jstring does'nt seemed to be working,,,

2001-03-27 Thread Tatsuro Nakagawa
Hi. I've installed a module named... php-4.0RC2_jstring-1.0.tar.gz and an instalation seemed prety good, with no errros. BUT, it doesn't work! An error like this shows on my browser: -- ERROR MES -- Warning: Unable to load dynamic library './jstring.so' - ./jstring.so: cannot open shared ob

[PHP] Betr.: [PHP] where to get info on developing web e-mail

2001-03-27 Thread M. Verheijen
Dear Khai, If you're planning to your webmailapplication in PHP visit www.phpposta.com. Right now it's in a developing stage but you can download the code and have a look at it. Ofcourse it's GPL, if you make some additions, changes in the code please let me know! Best regards, Maarten Verheij

[PHP] Caller's Line number?

2001-03-27 Thread elias
Hello, can i make a function that displays the __LINE__ of it's caller? ie: function show_caller_s_line() { echo "my caller's line is:" . __LINE__; } 1: blahblahblah 2: show_caller_s_line() 3: blahblah output should be: my caller's line is: 3 is that possible? thanks. -elias -- PH

Re: [PHP] Curious

2001-03-27 Thread Stuart J. Browne
> >I am curious to know why you need to use the /n, and what it actually does, > >because I had a page that used them, and i removed them all and it still > >works fine. > > As far as the HTML output, it wont affect how it shows up on the screen, > but if you look at the HTML code, you will notice

php-i18n Digest 28 Mar 2001 06:20:46 -0000 Issue 60

2001-03-27 Thread php-i18n-digest-help
php-i18n Digest 28 Mar 2001 06:20:46 - Issue 60 Topics (messages 146 through 146): Jstring does'nt seemed to be working,,, 146 by: Tatsuro Nakagawa Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL

Re: [PHP] array in sessions

2001-03-27 Thread Yasuo Ohgaki
"Christian Dechery" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > How do I store (and update) an array within a session... > > Like I'd have > > session_start(); > $time["page1"]="20"; > > //here, should I do this? > session_register("time["page1"]"); > > //o

Re: [PHP] Number/Letter Passwords

2001-03-27 Thread Yasuo Ohgaki
""Matt Stone"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi,Hi, > I have this code below which is supposed to be generating a password like > QCCQCN2-IUZ with 10 characters - All but three in the first section (7) and > three in the last part - but does no

[PHP] browscap.ini

2001-03-27 Thread Joseph Blythe
Hey all, I know you do not want to hear this question but after reading the list archives and doing extensive searches with google I have a really large internet headache, so here we go: Where do I get a browscap.ini file that is current and will work in Linux? The one suggested in the manual

php-general Digest 28 Mar 2001 07:16:28 -0000 Issue 593

2001-03-27 Thread php-general-digest-help
php-general Digest 28 Mar 2001 07:16:28 - Issue 593 Topics (messages 45762 through 45842): Re: Question on manually instantiating a file download 45762 by: Nuno Silva Re: Environment extract 45763 by: Mark Maggelet 45764 by: Philip Olson Re: Simple If-else statemen

Re: [PHP] How to send attachment with email with php?

2001-03-27 Thread Michael Hall
Use a mime_mail class. Have a look at the mail() function in the annotated PHP manual. There are a few mime_mail classes mentioned there with links. Mick On Wed, 28 Mar 2001, Carfield Yim wrote: > How to send attachment with email with php? > > -- > PHP General Mailing List (http://www.php.

Re: [PHP] How to send attachment with email with php?

2001-03-27 Thread Yasuo Ohgaki
Nothing special. You can compose and send with mail(). Read related RFC or grab code does that from elsewhere on net. -- Yasuo Ohgaki "Carfield Yim" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > How to send attachment with email with php? > > -- > PHP Gener

RE: [PHP] How to send attachment with email with php?

2001-03-27 Thread Jack Dempsey
this has been on the list many many times...check the e-mail functions at php.net and check the archives at http://marc.theaimsgroup.com -jack -Original Message- From: Carfield Yim [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 27, 2001 11:54 PM To: [EMAIL PROTECTED] Subject: [PHP] How

[PHP] HOWTO: arrays with forms

2001-03-27 Thread Philip Olson
-- HOWTO : Information on using arrays with forms (part 1 of n): -- A few array/form questions have popped up recently so here begins a HOWT

[PHP] Re: [PHP-GTK] New PHP-GTK Site

2001-03-27 Thread Richard Watson
On Wednesday 28 March 2001 04:32, Joe Stump wrote: > I've noticed there isn't really a jumping off point for the PHP-GTK > beginners and users. Thanks for doing that. I'm PHP developer and I've been following this list for a while and I've been looking around for a good place to start on PHP-

[PHP] ab post file

2001-03-27 Thread Paul Juliano
Hello, I have a php page that accepsts posted data. I'd like to benchmark it using ab (apache benchmark). In the ab man page, it has a -p POSTFILE option. Does anyone here know what format should this post file contain? Thanks. __ www.edsamail.com -- PHP Gene

RE: [PHP] Blah I'm Stupid

2001-03-27 Thread Tim Ward
if (isset($url) && isset($text)) { $fp = fopen("file.txt", "w"); $anothervar = fputs($fp, "$text", "r+"); $anothervar = fclose($fp); } echo ""; echo ""; echo ""; echo ""; echo ""; Tim Ward Senior Systems Engineer Please refer to the following disclaimer i

RE: [PHP] Spacing between $row["City"],$row["State"]

2001-03-27 Thread Matt Williams
> Is there a way to get spacing between > $row["City"],$row["State"] in the html output? > I've tried echo "$row["City"], nbsp; $row["State"]"; > and a bunch of other things and get Parse error: parse > error, expecting `STRING' or `NUM_STRING' or `'$'' . Try echo $row["City"]." ".$row["State"

Re: [PHP] New PHP-GTK Site

2001-03-27 Thread elias
What is PHP-GTK? Can you just write me a short list of what it can do? "Joe Stump" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I've noticed there isn't really a jumping off point for the PHP-GTK beginners > and users. I spent the last few hours throwing a s

[PHP] Post but not Post

2001-03-27 Thread elias
Hello. we all know that we can send variables to another PHP file via tag and with post method. now i wonder if i can send variables from a script to another like POST method but not using form tags. like my question is how can i transfer data from form to form like the POST of the tag, but w/o

Re: [PHP] Sessions to password protect directory?

2001-03-27 Thread Kyutums
Will this be able to protect the images in the directory? For example, if someone tries to access an image in the directory, will the "auth.php" be executed? Thanks for everything. - Kyutums "PHPBeginner.com" wrote: > All you need is to add this into .htaccess > > php_value auto_prepend auth.p

[PHP] how can I set up session

2001-03-27 Thread Jacky
Very stupid question, but I have one variable, say $name = "foo"; and I want that to assign on to session, reditect that to one cgi page and then go to one html page, and I want to have that session value here at this html page, see what I mean? I am using php3. How do I set session up at the f

[PHP] JavaScript and Submit

2001-03-27 Thread elias
Actually, when I want to submit a form programmatically i do myform.submit() but what if i got like 3 submit buttons and each one with a name? ie: submit1 button, submit2 button, and submit3 button. if the users clicks on of them, i can check in the action file like: if (isset($submit1)) { ... } e

<    1   2