php-general Digest 6 Oct 2002 06:51:40 -0000 Issue 1627

2002-10-05 Thread php-general-digest-help
php-general Digest 6 Oct 2002 06:51:40 - Issue 1627 Topics (messages 118961 through 118983): Re: recent encrpyt decrypt code... (problems) 118961 by: Tom Rogers 118980 by: Tom Rogers 118981 by: Jeff Bluemel flash - php 118962 by: Zeljko Bozic 118963

Re: [PHP] Record Sorting Using Up and Down Arrows

2002-10-05 Thread David Pratt
I'm hoping someone can help me solve this problem. I've almost got something working. Only problem is I am having some difficulty trying to come up with a case or condition for the single value (ie. devmodfile value = file 3 in example below) that it won't print any arrows up, up/down, or down.

[PHP] what is the best way to handle connectivity

2002-10-05 Thread Jeff Bluemel
I've got informix on a sco open server box, and my webserver has php 4.2.3 with apache. I'm wondering what the best way to handle the connectivity into the sco box is (not concerned with how difficult this is to setup, but rather pure speed) do I try to use a native driver? if I use the native

Re: Re[2]: [PHP] recent encrpyt decrypt code... (problems)

2002-10-05 Thread Jeff Bluemel
ok Tom - that worked... thanks for your help and assistance... I never would have figured this out without the help. Jeff "Tom Rogers" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > Sunday, October 6, 2002, 7:32:11 AM, you wrote: > JB> ok - that mad

Re[2]: [PHP] recent encrpyt decrypt code... (problems)

2002-10-05 Thread Tom Rogers
Hi, Sunday, October 6, 2002, 7:32:11 AM, you wrote: JB> ok - that made things work... here is the output. it looks like it is JB> still encrypting it. what would the resolution be for this, or can I set JB> the key to anything I want? Ok I have got to the bottom of it :) You changed the name

Re: [PHP] Re: Sessions

2002-10-05 Thread Justin French
To clarify, and correct a few typos: Instead of: $ssun = "foo"; session_register("ssun"); Try: $_SESSION['ssun'] = "foo"; HTH Justin on 06/10/02 12:11 PM, Jeff Bluemel ([EMAIL PROTECTED]) wrote: > instead of using the session_register try $_SESSTION[' ssun'] > > > "Steve Vernon" <[EMAI

[PHP] Re: Sessions

2002-10-05 Thread Jeff Bluemel
instead of using the session_register try $_SESSTION[' ssun'] "Steve Vernon" <[EMAIL PROTECTED]> wrote in message 056a01c26cb2$509f2260$a5e387d9@extreme">news:056a01c26cb2$509f2260$a5e387d9@extreme... > Hiya, > Just upgraded to 4.2.3 and I am using the attatched PHP.ini file. I use > session

Re: [PHP] mobile number

2002-10-05 Thread David T-G
Ryan, et al -- ...and then Ryan A said... % % Hi guys, Hi! Your project sounds interesting, but it pretty much won't work for the US -- or at best it would be unworkable. In the US, the area code is three digits, the exchange is three digits, and the number itself is four digits. For years p

Re: [PHP] More Detailed Gettext() article?

2002-10-05 Thread Sascha Cunz
Try the GNU Documentation on gettext: http://www.gnu.org/manual/gettext/index.html Regards Sascha Am Sonntag, 6. Oktober 2002 01:51 schrieb Wee Keat [Amorphosium]: > Hi everyone.. > > Sorry for bothering u guys for such trivial matter... > > But where can I get a good article on how to use

[PHP] More Detailed Gettext() article?

2002-10-05 Thread Wee Keat [Amorphosium]
Hi everyone.. Sorry for bothering u guys for such trivial matter... But where can I get a good article on how to use the gettext() function in PHP? I am building a website that supports multilingual capability and I've tried searching for it (Google, Yahoo, etc) the best that I could f

RE: [PHP] Static constants? Server persistent?

2002-10-05 Thread Lance Lovette
I wrote the PWEE PHP extension to solve this exact problem. http://pwee.sourceforge.net It's great for constants but it's true power comes from "executor persistent" variables. I haven't updated the web site but it does work with PHP 4.2.3. Lance > -Original Message- > From: Jean-Chris

[PHP] Open Source Mailing Lists

2002-10-05 Thread Jonathan Chum
Hi Guys, I'm looking for open source mailing lists. I'm aware of hotscripts.com and the mailing lists listed there was not what I had in mind. What I'm looking for is possible some code snippets or applications where the scripts handles much like Mailman in which one person can post a new message

Re: [PHP] Re: Stuck at PHP4 installation( with Apache2 )

2002-10-05 Thread Rasmus Lerdorf
Keep in mind that we do not officially support Apache2 yet. Will be a while before it will be anywhere near stable. -Rasmus On Sat, 5 Oct 2002, kramer wrote: > Ok guys, > To correcte all the typos, this is what I did. > 1. Removed PHP( directory ) completely. > 2. Start Apache - went fine( wit

[PHP] Re: Stuck at PHP4 installation( with Apache2 )

2002-10-05 Thread kramer
Ok guys, To correcte all the typos, this is what I did. 1. Removed PHP( directory ) completely. 2. Start Apache - went fine( without any reference of PHP ) 3. Installed PHP in a simple directory( not Program Files et al. ), so now its e:\php-4.2.3-Win32\... 4. Copied php4ts.dll to \WINNT\system32

Re: [PHP] More On: Good Practice: Variables, Error Reporting and Security

2002-10-05 Thread Adam Royle
What I mean is, by using functions to do the hard work for you, it is less common to make an obvious mistake. I have a couple of functions that I use in most of my scripts. eg. securityCheck(); // authenticates the user dbConnect(); // connects to database with default parameters (in config

Re: [PHP] More On: Good Practice: Variables, Error Reporting and Security

2002-10-05 Thread Sascha Cunz
Am Samstag, 5. Oktober 2002 20:44 schrieb Adam Royle: > I very much appreciate the suggestions made by the people on this list, > although for me, when developing, the less typing I have to do, the > less errors I am bound to come across, and therefore the less debugging > I must do. (Now, doesn't

Re: [PHP] unexpected t varable

2002-10-05 Thread Gary
Marek Kilimajer wrote: > Sorry, my fault, I forgot ) before {, > This line is right: > if( $res->numRows() ) { > Yeah, I figured it out after walking away from it for a while if( $res->numRows() > 0) { while ($row = $res->fetchRow()){ $id = $row[0]; $question = $row[1]; $re

[PHP] Re: Sessions

2002-10-05 Thread nicos
Do you use globals on or off ? -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Steve Vernon" <[EMAIL PROTECTED]> a écrit dans le message de news: 056a01c26cb2$509f2260$[EMAIL PROTECTED] > Hiya, > Just upgraded to 4.2.3 and I am using the attat

[PHP] MySQL>Limit size

2002-10-05 Thread Christian Ista
Hello, I have a form with a textarea. When I put a long text(one word page for example), when I submit, the form is not submitted. I have to remove some line to submit. I don't have any limit in the textarea. The content of this form is sorted in a MySQL database. I tried to set the field where t

[PHP] Sessions

2002-10-05 Thread Steve Vernon
Hiya, Just upgraded to 4.2.3 and I am using the attatched PHP.ini file. I use sessions on my website, and they dont seem to work now after the upgrade. Just wondering which lines do I need to alter please? After I logon, they loose the session after choosing another page. Every page runs the f

Re: [PHP] unexpected t varable

2002-10-05 Thread Marek Kilimajer
Sorry, my fault, I forgot ) before {, This line is right: if( $res->numRows() ) { Gary wrote: > Doesn't work, get unexpected { for if( $res->numRows() {. If I remove > braces or rearrange them it fall apart piece by piece. > > Thanks for the try > Gary > > Marek Kilimajer wrote: > >> what about

[PHP] Re: flash - php

2002-10-05 Thread Joseph Szobody
Couple good places to start... http://www.phpbuilder.com/columns/hill20011214.php3 http://www.macromedia.com/desdev/mx/flash/articles/flashmx_php.html Joseph "Zeljko Bozic" <[EMAIL PROTECTED]> wrote in message 001b01c26ca2$cc79c7b0$b3411ad9@stuntssw9fdkdl">news:001b01c26ca2$cc79c7b0$b3411ad9@s

[PHP] flash - php

2002-10-05 Thread Zeljko Bozic
I'm new to php. want to build swf appl. with sql support need some example (source) please help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] recent encrpyt decrypt code... (problems)

2002-10-05 Thread Tom Rogers
Hi, Sunday, October 6, 2002, 4:20:40 AM, you wrote: JB> here is the URL that will give you the php compile info on my website JB> (phpinfo) Looks identical to mine as far as mcrypt is concerned. Try changing the $key = to this: $key = 'test'; As it looks like the key is getting truncated to

php-general Digest 5 Oct 2002 18:44:28 -0000 Issue 1626

2002-10-05 Thread php-general-digest-help
php-general Digest 5 Oct 2002 18:44:28 - Issue 1626 Topics (messages 118943 through 118960): Re: Findng a pattern 118943 by: Rasmus Lerdorf 118951 by: Marek Kilimajer Record Sorting Using Up and Down Arrows 118944 by: David Pratt 118954 by: Marek Kilimajer

[PHP] More On: Good Practice: Variables, Error Reporting and Security

2002-10-05 Thread Adam Royle
I very much appreciate the suggestions made by the people on this list, although for me, when developing, the less typing I have to do, the less errors I am bound to come across, and therefore the less debugging I must do. (Now, doesn't this seem sensible?) Anyway, I have developed a function

Re: [PHP] unexpected t varable

2002-10-05 Thread Gary
Doesn't work, get unexpected { for if( $res->numRows() {. If I remove braces or rearrange them it fall apart piece by piece. Thanks for the try Gary Marek Kilimajer wrote: > what about > > if( $res->numRows() { >while( $row = $res->fetchRows() ){ >... do what you've got to do >} >

Re: [PHP] Looping?

2002-10-05 Thread Marek Kilimajer
Thanks, never been there ;) @ Edwin wrote: >Actually, there *is* ("mysql_numrows"). > >I think you've missed this one. ;) > > http://www.php.net/manual/en/printwn/aliases.php > >- E > >On Saturday, October 05, 2002 11:40 PM >Subject: Re: [PHP] Looping? >Marek Kilimajer wrote: > > > >>Just che

Re: [PHP] Looping?

2002-10-05 Thread @ Edwin
Actually, there *is* ("mysql_numrows"). I think you've missed this one. ;) http://www.php.net/manual/en/printwn/aliases.php - E On Saturday, October 05, 2002 11:40 PM Subject: Re: [PHP] Looping? Marek Kilimajer wrote: > Just checked the manual and there are no functions named *mysql_numrows

Re: [PHP] Looping?

2002-10-05 Thread Marek Kilimajer
Just checked the manual and there are no functions named *mysql_numrows* or *mysql_num_row*, but only *mysql_num_rows* (notice the S at the end) Steve Jackson wrote: >Nope doesn't make any difference >mysql_numrows or mysql_num_row returns the same: > >In this case nothing! > > > >>-Origi

Re: [PHP] Looping?

2002-10-05 Thread Marek Kilimajer
typo: Justin French wrote: >This should get you started: > > > >$dbreturn = mysql_query("SELECT * FROM Items WHERE ItemID = '$ItemID'"); >echo mysql_error(); >$ItemHits = mysql_numrows($dbreturn); > mysql_num_rows() >while($row = mysql_fetch_array($dbreturn)) >{ >$ItemID = $row['ItemID']; >$Ima

Re: [PHP] Record Sorting Using Up and Down Arrows

2002-10-05 Thread Marek Kilimajer
PhpNuke has something like this in blocks management. Try looking at it. David Pratt wrote: >Hi there. I am trying to write a routine to allow me to sort the contents of >a table by clicking on up or down arrows. >The idea is that top record will have down arrow, bottom record up arrow and >reco

Re: [PHP] unexpected t varable

2002-10-05 Thread Marek Kilimajer
what about if( $res->numRows() { while( $row = $res->fetchRows() ){ ... do what you've got to do } } else { ... no rows } Gary wrote: > John W. Holmes wrote: > >>> John W. Holmes wrote: >>> >>> > Can someone tell where I messed up on this code snippit? > >

Re: [PHP] Looping?

2002-10-05 Thread Justin French
This should get you started: "; echo ""; echo ""; echo ""; echo ""; echo ""; echo "Product Name:"; echo "$ItemName"; echo ""; echo ""; echo "Product Code:"; echo "$ItemSKU"; echo ""; echo ""; echo "Unit price:"; echo "€$ItemCost"; echo ""; echo ""; echo "Description"; echo ""; echo ""; echo "";

Re: [PHP] Findng a pattern

2002-10-05 Thread Marek Kilimajer
preg_match("Results ([0-9]+) - ([0-9]+) of about ([0-9]+). Search took ([0-9]+) seconds.",$string, $hits); $hits[1], $hits[2], $hits[3], $hits[4] will contain your numbers Henry wrote: >Yes > >But that the string is contained within a much bigger string as well > >I want to search for the f

[PHP] Looping?

2002-10-05 Thread Steve Jackson
Anyone help me? this is probably quite simple but I'm pretty new to PHP. All I want to do it loop through some DB records and display them in the format written in this PHP file: Anyone see where I'm going wrong? the error I get says: Warning: Unable to jump to row 0 on MySQL result index 2 "; ec

[PHP] Array getting chopped up

2002-10-05 Thread PHP
Hello, I'm having a problem on my server where any time there is more than one element in an array, all elements prior to the last one get a portion of the beginning chopped off. This portion is pretty random (I have yet to find any pattern) other than it seems if there is a space it will chop of

RE: [PHP] post(ing) data without a form

2002-10-05 Thread Timothy J Hitchens
The other thing.. the header will redirect and the rest won't happen??? > header ( 'Location: ../test/test.php' ); Just out of interest sake do you or not have register global on/off?? Timothy Hitchens (HITCHO) [EMAIL PROTECTED] HITCHO has Spoken! -Original Message- From: Pablo

[PHP] post(ing) data without a form

2002-10-05 Thread Pablo Oliva
OK, I'm attempting this again: header ( 'Location: ../test/test.php' ); sendByPost(); function sendByPost() { $host = "localhost"; $port = 80; $postdata = "field1=value1&field2=value2&field3=value3"; if ($sp = fsockopen($host, $port)) { fputs($sp,"POST /jotr/test/test.php HTTP/1.0\

Re: [PHP] Uploading Files

2002-10-05 Thread Justin French
on 05/10/02 5:53 AM, Jason ([EMAIL PROTECTED]) wrote: > I would like to be able to upload files from the client computer to the > server via a form. I know how to build the form, but am not sure of the > best way to process this. I know there are certain ftp functions that can > do this, which

[PHP] Re: sending post without a form

2002-10-05 Thread Jome
> Did the individual trying to send post(ed) data without the use of a > form succeed? I tried doing this before and didn't have any luck with > it... And I eventually gave up. Check out Rasmus' solution: http://www.php-faq.com/postToHost.html Jome -- PHP General Mailing List (http://www.