Re: [PHP] PHP Sessions

2003-01-21 Thread Tim Thorburn
to ON and register_argc_argv ON as well ... I'm not entirely sure what register_argc_argv does, but could this be the problem? At 09:41 PM 1/21/2003 +1100, Justin French wrote: on 21/01/03 9:25 PM, Tim Thorburn ([EMAIL PROTECTED]) wrote: There is some discussion as to whether my globals

[PHP] PHP and Sessions?

2003-01-20 Thread Tim Thorburn
Hi, I've created a password protected area on the site I'm working on using PHP Sessions - I've done this several times before without any difficulty. This time, I've copied my old code - made the necessary changes for login/passwd/database names, yet the sessions don't appear to be working.

Re: [PHP] PHP and Sessions?

2003-01-20 Thread Tim Thorburn
OFF sendmail_from [EMAIL PROTECTED] variables_order GPCS Thanks -Tim

[PHP] Mass Mailing with PHP MySQL

2003-01-19 Thread Tim Thorburn
them directly, however it's been several weeks since they've answered the phones. Does anyone have any other/better options that I should pursue? This will be my first mass mailing typed job so I'm not really sure where to begin or if I'm on the right path at all. Thanks -Tim -- PHP General

Re: [PHP] Error in variable when looping

2003-01-14 Thread Tim Ward
you're not differentiating between form elements on different rows. all the hidden elements have the same name and are in the same form so only the last one will be available as all the submit buttons are in the same form. you need to put form ../form tags around each submit/hidden pair. Tim

Re: [PHP] Weird Errors

2003-01-14 Thread Tim Ward
surely you can post the part of the code that checks the e-mail is blank or not? Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: Mike Bowers [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 14, 2003 12:04 AM Subject: [PHP] Weird Errors

Re: [PHP] Error in variable when looping

2003-01-14 Thread Tim Ward
print form ...; printINPUT TYPE='submit' value='View details' Name='Details'; printinput type='hidden' name='SelectedItemNumber' value='{$row[Id]}'; print /form; you'll then have as many forms as you have rows and which one is submitted will depend on which button is pressed. Tim Ward http

Re: [PHP] dumb time question

2003-01-13 Thread Tim Ward
use the date() function, in this case date(i) and date(h) or date(H) Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: Pag [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 13, 2003 10:25 PM Subject: [PHP] dumb time question Ok

Re: [PHP] checkboxes, radio buttons and $_POST['name']

2003-01-09 Thread Tim Ward
isset($_POST[chk1]) will only be true if the checkbox is checked. Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: John-Erik Omland [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 09, 2003 6:25 PM Subject: [PHP] checkboxes, radio

Re: [PHP] Slow file uploads.

2003-01-07 Thread Tim Meader
directly to disk. Is there any settings for this? Server info: Cobalt RaQ 4 512 Mb RAM Cobalt Linux release 6.0 (Shinkansen-Decaf) apache 2.0.43 PHP 4.2.3 /Claes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- Tim Meader ODIN Unix

[PHP] unpack() - how to handle bitfields??

2002-12-28 Thread Tim Molendijk
of syntaxes but none of them seem to work. Can someone please shortcut whether it is possible or not and if yes, *how*? Thanks in advance, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] unpack() based on C struct

2002-12-26 Thread Tim Molendijk
('profile', 'r'); $binaryData = fread($f, filesize('profile')); $data = unpack('a32id/[...etc]', $binaryData); My problem is: which formats should I use for char vala:3, char valb:1 char valc:7 ? In other words: what should be on the spot of [...etc] ? cvala/cvalb/cvalc doesn't work. Thanks, Tim

[PHP] Flushing image from database to browser - how to get it cached??

2002-12-22 Thread Tim Molendijk
is: how can I get browser to cache image.php?id=1 (... etc.) just as it caches image1.jpg (... etc.)?? The only thing I've thought of is using mod_rewrite to rewrite URI's like image1.jpg into image.php?id=1 but I haven't tried it yet -- don't know if it's a logical idea. Thanks in advance, Tim

[PHP] Function returning a reference - how ?!?

2002-12-21 Thread Tim Molendijk
the line $p = createParent(); by $p = new Parent(); -- this works perfectly fine! Conclusion: createParent() does not return the object it creates! Someone knows why this ain't working and how to solve it?!? Hope so, can't wait to hear from you guys. Thanks in advance, Tim Molendijk -- PHP General

Re: [PHP] Function returning a reference - how ?!?

2002-12-21 Thread Tim Molendijk
nows why this ain't working and how to solve it?!? Hope so, can't wait to hear from you guys. Thanks in advance, Tim Molendijk __ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/

Re: [PHP] URL parsing

2002-12-18 Thread Tim Ward
you could use a combination of the string functions (strstr(), substr(), strpos()) or you could work out something with regular expressions. Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: Mako Shark [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent

Re: [PHP] Use of undefined constant error

2002-12-17 Thread Tim Ward
. Thats why you can get away with not using the quote marks (as long as there's no white space in the string). On a live site (and, I'd have thought, most default set-ups) you'd expect error reporting to be set all off and you'd never see the message. Tim Ward http://www.chessish.com mailto:[EMAIL

Re: [PHP] key pairs

2002-12-17 Thread Tim Ward
mysql_insert_id(). 5. insert the data into the other table(s) with this order_id(). Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: Ashley M. Kirchner [EMAIL PROTECTED] To: PHP-General List [EMAIL PROTECTED] Sent: Tuesday, December 17, 2002 8:15 PM Subject

Re: [PHP] key pairs

2002-12-17 Thread Tim Ward
what do you mean by key pairs - I assumed you meant a key that could link the records in each table. If you've already done that then what's the problem? Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: Ashley M. Kirchner [EMAIL PROTECTED] To: Tim

Re: [PHP] nested if in a for statement

2002-12-17 Thread Tim Ward
looks ok as long as you are really testing what you mean to. As you've written it if any of the variables are an empty string, zero, logical false or not set then the if statement will be true. what is $auth? Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message

Re: [PHP] Update query

2002-12-12 Thread Tim Ward
The best way would be to design the table so that it had an item_id field that was an auto-incremented integer and not updateable. It shouldn't be too late to add such a field, then it can be passed from the form as a hidden field (as I assume you're currently doing with $oldItemCode). Tim Ward

Re: [PHP] Returning multiple values from function

2002-12-12 Thread Tim Ward
you can always return an array of arrays ... return array($array1, $array2, ...); but in your case why not make the column names the array keys so the one array holds both column names and types. Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: Lisi

Re: [PHP] How do I populate a select?

2002-12-10 Thread Tim Ward
- I use an abstraction layer these days Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: Steve Jackson [EMAIL PROTECTED] To: PHP General [EMAIL PROTECTED] Sent: Tuesday, December 10, 2002 3:24 PM Subject: [PHP] How do I populate a select? How do I

Re: [PHP] fopen have a setTimeout feature?

2002-12-08 Thread Tim Ward
how about something like... $start = time(); $timeout = 60; // number of seconds to try while (!$file = fopen(...) time() $start + $timeout); if ($file) { // do stuff with file } Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: Phil Powell [EMAIL

Re: [PHP] Hiding URL Variable

2002-12-08 Thread Tim Ward
store them in a session or cookie Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: Stephen [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Sunday, December 08, 2002 8:10 PM Subject: [PHP] Hiding URL Variable How can you hide URL variables

Re: [PHP] Simple text editor for Windows?

2002-12-07 Thread Tim Ward
I like arachnophilia. Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: John W. Holmes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, December 07, 2002 4:11 PM Subject: [PHP] Simple text editor for Windows? I know the text editor question

Re: [PHP] Output of MySQl sorted query to text or Word file.

2002-12-06 Thread Tim Ward
everything you need is here http://www.php.net/manual/en/ref.filesystem.php in particular fopen(), fputs(), fwrite(), etc. Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 06, 2002 1:25

Re: [PHP] More $_ array question...

2002-12-06 Thread Tim Ward
not quite ... if the form elements are (e.g) input name='array[0]' ..., etc. then you need $_POST[array][0] to refer to the element (just like any other array of arrays in PHP). but you're right about count($_POST[array]) ... and foreach ($_POST[array] as $key=$value), etc. Tim Ward http

Re: [PHP] A small problem with input feilds.

2002-12-05 Thread Tim Ward
only checked checkboxes are submitted therefore you have to number the form fields if you want to keep the relationship between the arrays - this should be easy enough if the form is generated by your code. Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message

[PHP] Use PHP for reading binary files created by C software

2002-11-25 Thread Tim Molendijk
() in PHP 4.3.0 or higher but then I still don't have a clue how to actually *do* it... Is it even possible to read binary files created by C software and if so, how to do this in practice - examples would be very welcome. Thanks in advance, Tim -- PHP General Mailing List (http://www.php.net

[PHP] RE: OOP-classes in PHP

2002-11-18 Thread Tim Ward
you can't access $overall-foo because you've never defined it you need: function load($class){ eval(\$this-$class = new $class;); return true; } Tim -Original Message- From: Tularis [mailto:[EMAIL PROTECTED]] Sent: 17 November 2002 22

[PHP] RE: Problem with Class - incomplete object error

2002-11-18 Thread Tim Ward
you've included the class definition at the top of every page, right? and why don't you just use $_SESSION[cart] directly instead of using $cart? that way you don't have to worry about scoping issues and continually passing $cart through to functions. Tim -Original Message- From: Paul

[PHP] Finding last entry in MySQL database

2002-11-15 Thread Tim Thorburn
until 5am working on this site - it's slipped by caffeine powered brain. Thanks -Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Weird behaviour with references to objects...

2002-11-09 Thread Tim Molendijk
Ernest E Vogelsinger [EMAIL PROTECTED] wrote in message news:5.1.1.6.2.20021108175627.00b44880;mail.vogelsinger.at... This is clearly said in your PHP.ini file: ; Whether to enable the ability to force arguments to be passed by reference ; at function call time. This method is deprecated

[PHP] fopen() using non-standard port

2002-11-09 Thread Tim Lan
in advance. Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Weird behaviour with references to objects...

2002-11-08 Thread Tim Molendijk
Ernest E Vogelsinger [EMAIL PROTECTED] wrote in message news:5.1.1.6.2.20021108092657.02befe20;mail.vogelsinger.at... At 03:36 08.11.2002, Tim Molendijk said: [snip] Ahh - culprit 1: You said the container is creating a child instance - I assume it's

Re: [PHP] Weird behaviour with references to objects...

2002-11-08 Thread Tim Molendijk
Ernest E Vogelsinger [EMAIL PROTECTED] wrote in message news:5.1.1.6.2.20021108165218.03238948;mail.vogelsinger.at... One more: True for now, but this is officially deprecated. Functions or methods accepting a reference are required to be prototyped that way - this helps you not to forget to

Re: [PHP] Weird behaviour with references to objects...

2002-11-08 Thread Tim Molendijk
Ernest E Vogelsinger [EMAIL PROTECTED] wrote in message news:5.1.1.6.2.20021108170633.00b8cb60;mail.vogelsinger.at... You might always simply omit the parameter when calling the function (you'll get a notice about that if enabled). You just cannot pass constants: function Product($language)

[PHP] Weird behaviour with references to objects...

2002-11-07 Thread Tim Molendijk
someone can help me on this. I'm not a person who asks for help very quick. I prefer finding it out myself, also because I'm pretty experienced at PHP. But this is the first time I really can't figure out what it is... I really NED you now :) Good luck and a lot of thanks in advance, Tim

Re: [PHP] Weird behaviour with references to objects...

2002-11-07 Thread Tim Molendijk
additional information on this subject feel free to post! Thanks everyone! Tim. Mike Mannakee [EMAIL PROTECTED] wrote in message news:20021108044622.68446.qmail;pb1.pair.com... This sounds like a matter that ought to make it to the programmers who code PHP itself. In the meantime can you code around

[PHP] Include: Warning: Failed opening

2002-10-30 Thread Tim Kucejko
I am trying to use include statements, but am having no luck. I set the include path in php.ini to include directories of the files, I tried CHMOD 777 on both files, and I restarted the server. I can't get any include files working. I got this message: Warning: Failed opening '/common.php' for

[PHP] RE: newbie: php/mysql

2002-10-28 Thread Tim Ward
the best way to do password validation is using one way encryption (e.g. MySQL PASSWORD() function). That way you check the encrypted user entered password against the database ... ... WHERE pass = PASSWORD('{$_POST[password]}') Tim Ward www.chessish.com -Original Message- From: Mr

Re: [PHP] Shipping problem...

2002-10-15 Thread Tim Monaghan
I have tried adding a weight category to my products table and calculating total weight (then a simple if statement would do the trick) but it leads to other problems which I couldn't de-bug. That sounds like the best idea to me, whats the big you had? Tim

Re: [PHP] Shipping problem...

2002-10-15 Thread Tim Monaghan
hehe I meant to say BUG ;) That sounds like the best idea to me, whats the big you had? Tim =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Custom Programming Web Programming community discussion http://www.inter-apps.com - Original Message - From: Steve Jackson [EMAIL PROTECTED

Re: [PHP] Adding users to a linux system?

2002-10-15 Thread Tim Monaghan
Is it better to use a c wrapper to do this? thats what Ive always done. Which is more secure? Tim =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Custom Programming Web Programming community discussion http://www.inter-apps.com - Original Message - From: Shane Wright [EMAIL PROTECTED] To: [EMAIL

[PHP] Difference between $object = new Class and $object = new Class

2002-10-15 Thread Tim Molendijk
NOT work when assigning the object while it DOES work when assigning a reference to the object. Does anyone have a clue why this could be happening?? I'm _very_ curious coz I simply don't get it. 8[ Greetz, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] upload directory

2002-10-14 Thread Tim Monaghan
Are you trying to do this via a web-script? Meaning, your php script is the server, and windows would be the client? Or is your script uploading a file to another server? Tim =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Custom Programming Web Programming community discussion http://www.inter-apps.com

[PHP] html form array

2002-10-13 Thread tim tom
name=submit /form ? } ? -- best regards tim __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] simple array in mysql

2002-10-12 Thread tim tom
What's the 'normal' way of storing array values in mysql table? -- tim __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: getimagesize or loop pblm

2002-10-07 Thread Tim Toohey
Arnaud Gonzales wrote: for($i=0;$i=56;$i++){ should be for($i=0;$i56;$i++){ to loop 56 times. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: No ouput until program end, why?

2002-10-04 Thread Tim Ward
does output buffering not work with command line PHP? http://www.php.net/manual/en/ref.outcontrol.php Tim Ward www.chessish.com -Original Message- From: Jean-Christian Imbeault [mailto:[EMAIL PROTECTED]] Sent: 04 October 2002 05:59 To: [EMAIL PROTECTED] Subject: No ouput until

[PHP] RE: Incrementing the value

2002-10-03 Thread Tim Ward
I think you mean ++$hid, otherwise the value is inserted before it is incremented, and why not change to $_GET[hid] for future compatibility and just to make sure. Are there any scoping issues we don't know about, e.g. is this snippet within a function? Tim Ward www.chessish.com -Original

[PHP] $_SESSION only takes 1 character?

2002-10-01 Thread Tim Stoop
] = $myName; echo($_SESSION[something-intelligent]); I get Tim on my screen. But when I do: $nr = 12; $_SESSION[things][$nr][intelligent] = $myName; echo $_SESSION[things][$nr][intelligent]; I don't get any output at all! Can anyone shed any light on this? Thanks in advance!! -- Kind regards

[PHP] Re: $_SESSION strange behaviour? (was: $_SESSION only takes 1 character?)

2002-10-01 Thread Tim Stoop
Hmm... subject wasn't what I wanted it to be :) Sorry about that. -- Kind regards, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: local resource variables

2002-09-26 Thread Tim Ward
, if the memory hasn't been freed you should still be able to get to it ... I think Tim www.chessish.com -Original Message- From: lallous [mailto:[EMAIL PROTECTED]] Sent: 26 September 2002 11:20 To: [EMAIL PROTECTED] Subject: local resource variables Hello, I was wondering if i

[PHP] RE: PHP Form and Arrays help

2002-09-25 Thread Tim Ward
use a hidden input in front of each checkbox with the same name and the value '0' (as opposed to '1' for the checkbox). Tim www.chessish.com -Original Message- From: Tom Ray [mailto:[EMAIL PROTECTED]] Sent: 24 September 2002 17:24 To: [EMAIL PROTECTED] Subject: PHP Form and Arrays

[PHP] RE: Maybe a stupid question but can it be done?

2002-09-24 Thread Tim Ward
for the ID field. Tim www.chessish.com -Original Message- From: Chuck PUP Payne [mailto:[EMAIL PROTECTED]] Sent: 24 September 2002 02:45 To: PHP General Subject: Maybe a stupid question but can it be done? Ok, Let's try this again, for some reason this didn't post from early

[PHP] RE: Update undefined List Values in DB

2002-09-23 Thread Tim Ward
]}]'); if ($cust[status]) echo( checked); echo(); ... echo(/tr); } and when processing foreach($_POST[status] as $custid=status) { ... // update query for each customer } Tim www.chessish.com -Original Message- From: Sascha Braun [mailto:[EMAIL PROTECTED

[PHP] file reading/writing question.

2002-09-23 Thread Tim Nields
, however the file I am using has graphics embedded in it. Any ideas??? Thanks in advance, Tim Nields -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: redefining a function

2002-09-20 Thread Tim Ward
that that isn't always the case at first. Tim -Original Message- From: David T-G [mailto:[EMAIL PROTECTED]] Sent: 19 September 2002 17:13 To: PHP General list Cc: Tim Ward Subject: Re: redefining a function Tim, et al -- ...and then Tim Ward said... % % is using classes

[PHP] RE: PHP source code

2002-09-20 Thread Tim Ward
then keep this info in a config file off root and use a data abstraction class to connect. Tim www.chessish.com -Original Message- From: Oliver Witt [mailto:[EMAIL PROTECTED]] Sent: 19 September 2002 19:15 To: [EMAIL PROTECTED]; Stephan Seidt Subject: Re: PHP source code

[PHP] HTML 2 TEXT

2002-09-20 Thread Tim Haynes
Does anybody know of a class or a solution to converting an HTML page to a text only page via PHP, but leaving in href links in and a certain degree of formatting. Cheers, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: How to approach a new project?

2002-09-19 Thread Tim Ward
. Tim Ward www.chessish.com -Original Message- From: Wm [mailto:[EMAIL PROTECTED]] Sent: 18 September 2002 23:25 To: [EMAIL PROTECTED] Subject: How to approach a new project? I'm trying to work out the best way to approach a new project, and would appreciate any

[PHP] RE: use of mysql_free_result (was Re: [PHP] Efficiency)

2002-09-19 Thread Tim Ward
if your query is within a loop then it would probably help, e.g. for ($i = 1; $i = 1000; $i++) { $result = mysql_query(...); ... } in this case as $result is a resource identifier then reusing it doesn't release the original result. Tim Ward www.chessish.com

[PHP] RE: redefining a function

2002-09-19 Thread Tim Ward
is using classes an option? Tim Ward www.chessish.com -Original Message- From: David T-G [mailto:[EMAIL PROTECTED]] Sent: 19 September 2002 04:54 To: PHP General list Subject: redefining a function Hi, all -- Is there any way to redefine or undefine

Re: [PHP] adding unix account via system command

2002-09-19 Thread tim tom
Dear Marek, Where do find that? I am no C programmer. -- tim --- Marek Kilimajer [EMAIL PROTECTED] wrote: It's a shell script, and your shell drops root privileges. Use a shell that doesn't or use a C-wraper. tim tom wrote: Dear Pete, Yes, apache runs as nobody. But I have setuid

[PHP] adding unix account via system command

2002-09-17 Thread tim tom
and passwd=n and it was ok) What's wrong with those scripts. It DOESN'T even create the user timtom752002. Please help -- tim __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- PHP General Mailing List (http

RE: [PHP] adding unix account via system command

2002-09-17 Thread tim tom
Dear Pete, Yes, apache runs as nobody. But I have setuid add.sh. Wouldn't that be sufficient ? -- tim --- Peter Houchin [EMAIL PROTECTED] wrote: you need to make sure that the web has permission to use that file .. my guess is it don't have permission hence why you can run add.sh from

[PHP] PHP4.2.2 Windows

2002-09-12 Thread Tim Thorburn
the following: php_value include_path .:/client/site/docs Is there some little step that I've completely missed? Thanks -Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Problems with GD 2.0.1

2002-09-09 Thread Tim
/ld.so.conf? I can confirm that RH7 with GD-1.8 RPM and custom built PHP+GD-2.0.1 does work. I normally install libgd in /usr/local and have /usr/local/lib as the first entry in /etc/ld.so.conf (From memory, I think I did this to get libgd working with PHP) Tim Ville Mattila wrote: Hello everyone

[PHP] PHP and Apache

2002-09-06 Thread Tim Haynes
Is there any easy way of creating,editing and deleting virtual hosts using PHP via a website?? I have already thought of a way but seems a little long winded. Thanks in advance. Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: Pass array in HTTP_POST_VARS question

2002-09-04 Thread Tim Ward
you just name the form elements as array elements, e.g. with explicit keys name='array[0]' name='array[1]' etc. or allowing php to assign the keys name='array[]' name='array[]' etc. then the array is an element of $HTTP_POST_VARS[] when the form is posted Tim Ward

[PHP] RE: PHP checkbox/hidden field question

2002-09-02 Thread Tim Ward
you need to define the key for checkbox arrays in order to distinguish them (as only the checked ones will be posted).. something like ... tdinput type=checkbox name=d_c_arr[?php echo($count++); ?]/td Tim Ward www.chessish.com -Original Message- From: Paul Maine [mailto:[EMAIL

[PHP] RE: array_unique multi-dimensional arrays

2002-08-20 Thread Tim Ward
of month and year (and, incidentally, allow you to sort on year and month very easily). Tim Ward www.chessish.com -Original Message- From: sasha [mailto:[EMAIL PROTECTED]] Sent: 19 August 2002 19:10 To: [EMAIL PROTECTED] Subject: array_unique multi-dimensional arrays I am trying

[PHP] RE: RE: array_unique multi-dimensional arrays

2002-08-20 Thread Tim Ward
one instead of adding a new element. Tim Ward -Original Message- From: sasha [mailto:[EMAIL PROTECTED]] Sent: 20 August 2002 14:36 To: Tim Ward Subject: Re: RE: array_unique multi-dimensional arrays It may just have been that I was not putting your sample code

[PHP] RE: sessions don't work

2002-08-16 Thread Tim Ward
why do you think the session isn't working? If there is a run time error in 'file' then an error would be reported and the output terminated. If you have error reporting off then you would expect to get eactly what you see. Sounds like a problem inside 'file'. Tim Ward St Ives

[PHP] Array query - finding the key for a value

2002-08-16 Thread Tim Fountain
' is in the array; but how do I then find out which index 'orange' is at? -- Tim Fountain ([EMAIL PROTECTED]) http://www.tfountain.co.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] [Session-objects] Call to a member function on a non-object

2002-08-16 Thread Tim Stoop
! -- Kind regards, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: Destroy session variable when IE close

2002-08-15 Thread Tim Ward
yes but the variables are still held and would be available if you knew the session id. until the garbage collection clears it out the session variables are still there. the session doesn't die when the browser closes, just the browser's reference to it. Tim Ward Please refer

[PHP] Redhat Linux 7.2

2002-08-14 Thread Tim Haynes
by explaining what I need to do to resolve these problems. Many Thanks Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] [Class] Behaviour global variables

2002-08-14 Thread Tim Stoop
regards, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] [Class] global again, not working?

2002-08-14 Thread Tim Stoop
in findFotos() the defining of $limiet doesn't work correctly? Why isn't a reference made to $this-limiet? I'm really at a lost, here... Any help is appreciated! -- Kind regards, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP AND JAVA

2002-08-14 Thread Tim Stoop
Alexandra Aguiar wrote: may i use php with JAVA (note. not JAVASCRIPT , but JAVA APPLETS) !?! Depends on what you want to achieve. As long as the final embed is correct (i.e. the one that is sent to the client, after php-parsing), no problem at all. -- Kind regards, Tim -- PHP General

[PHP] Re: mysql statement (still a semi newbie)

2002-08-14 Thread Tim Stoop
Alexander Ross wrote: That first column is an auto_incrementing column so i don't want any data INSERT INTO cast VALUES(DEFAULT, 'Rick', 'Blaine', 'Humphrey', 'Bogart', 'male'); I think you need to use NULL instead of DEFAULT... I'm not 100% sure. Just try it :) -- Kind regards, Tim

[PHP] Re: Simple Mail

2002-08-14 Thread Tim Stoop
for that, but I know for sure it's a part of the output from phpinfo()). Connect to where And yes, line 236 is my mail line... Connect to a SMTP-server, so it can send the mail :) -- Kind regards, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Maximum in SQL query?

2002-08-12 Thread Tim Stoop
/html/foto/0/0/0/0/0001.jpg, /foto/0/0/0/0/0001.thumb.jpg, / foto/0/0/0/0/0001.jpg, 200, 150, 500, 375, FALSE, Array) Database error: You have an error in your SQL syntax near ' /var/www/html/foto/0/0/0/0/0001.thumb.jpg, /var/www/html/ foto/0/0/0/0/0001.j' at line 1 -- Kind regards, Tim -- PHP

RE: [PHP] Maximum in SQL query?

2002-08-12 Thread Tim Stoop
Hi Jay, Jay Blanchard wrote: I believe the error is a space prior to 'var' Brunssum, , / var/ try Brunssum, , /var/ Nope, that wasn't the error, but the error was in there... it's the , , in there :) An empty value... Thanks for the quick reply! -- Kind regards, Tim -- PHP

[PHP] RE: dir to array?

2002-08-01 Thread Tim Ward
= readdir($dir)) { if (($imgs != .) ($imgs != ..)) { $cnt[count($imgs)] = $cnt; is this typo in the original code? surely should be = $imgs; } else { print Cannot create array of files in directory!; } } closedir($dir); } Tim Ward www.chessish.com

RE: [PHP] String Question

2002-08-01 Thread Tim Ward
or ... while($new = substr($old, $i++ * $strlen, $strlen)) $array[] = $new; Tim Ward www.chessish.com -Original Message- From: Richard Baskett [mailto:[EMAIL PROTECTED]] Sent: 31 July 2002 20:47 To: Randy Johnson; PHP General Subject: Re: [PHP] String Question

[PHP] PHP implementation of something like Apache's mod_speling?

2002-07-31 Thread Tim Luoma
As I assume most of you know, mod_speling (sic) is a feature of the Apache httpd that will suggest possible corrections to URLs. i.e. if you look for /sidebar/ on my site you'll get a 404 because the actual URL is /sidebars/ The problem is that some sites don't enable mod_speling and some

RE: [PHP] Re: Table formatting -- PARTIALY SOLVED

2002-07-30 Thread Tim Ward
that? Tim Ward www.chessish.com -Original Message- From: César Aracena [mailto:[EMAIL PROTECTED]] Sent: 29 July 2002 16:39 To: 'Martin Towell'; [EMAIL PROTECTED] Subject: RE: [PHP] Re: Table formatting -- PARTIALY SOLVED Thnx a lot Martin and all, this worked. Anyway

[PHP] Re: Q:What is the easiest way to test my PHP+Html pages?

2002-07-27 Thread Tim Luoma
Marcus Unlimited wrote: So what is the absolute simplest and easiest path to open my .html pages with some php mysql in em. and see them as they will work on the web??? To quote a friend of mine: The only way to see how this will work is to see how this will work. Get some server space

[PHP] Re: Q:What is the easiest way to test my PHP+Html pages?

2002-07-27 Thread Tim Luoma
Marcus Unlimited wrote: What is the easiest way to test locally (on my desktop) without having to upload? If you follow the route that several folks suggest and go with one of the 'install everything' routes, be sure to install the same versions ... for example, some of them install older

Re: [PHP] preg_match() occurence position

2002-07-25 Thread Tim Fountain
($matches[1]); } Of course, if test occurs more than once then the above won't work, since regex's are greedy... If you add a ? after the * then that'll make it non-greedy won't it? -- Tim Fountain ([EMAIL PROTECTED]) http://www.tfountain.co.uk/ -- PHP General Mailing List (http

Re: [PHP] redirecting after login

2002-07-23 Thread Tim Thorburn
on the side of the pond :P Thanks -Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using PHP with MySQL - Can I supress MySQL errors?

2002-07-23 Thread Tim Fountain
= @mysql_connect('blah','blah','blah') or some_error_function(); or I guess you could also do: $result = @mysql_connect('blah','blah','blah'); if (!$result) { $error_array[] = mysql_error(); ... } -- Tim Fountain ([EMAIL PROTECTED]) http://www.tfountain.co.uk/ -- PHP General Mailing List (http

[PHP] redirecting after login

2002-07-22 Thread Tim Thorburn
to the page they're login gives them access to. I've tried using header(), but since the redirection takes place about mid-script, it doesn't work. I've also tried using meta tag redirects, but those don't seem to accept the PHP/MySQL combo. Any ideas? Thanks -Tim -- PHP General Mailing List (http

[PHP] Re: Redirect Question

2002-07-21 Thread Tim Luoma
FWIW, a user note at http://www.php.net/manual/en/function.header.php says : There is this nasty bug in IE 5 for Windows prior to service pack 2, described in Microsoft knowledgebase article Q281197 which causes a problem with redirecting.. if you submit a POST form to a page that uses

[PHP] Re: Formmail replacement?

2002-07-16 Thread Tim Luoma
JJ Harrison wrote: Does anyone know a good PHP-based Formmail Replacement(From matt's script archive)? http://www.google.com/search?q=Formmail+php gave http://www.lumbroso.com/scripts/formmail.php as one of the top results -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: Crazy idea about detecting visitor's connection speed

2002-07-16 Thread Tim Luoma
César Aracena wrote: I think that the best way you can achieve this, considering all the troubles and different configurations you will have to make for each user, is to make them choose the type of connection they want, and set a cookie in the visitor's browser with a one year life time

<    2   3   4   5   6   7   8   9   10   11   >