Re: [PHP] redirecting after login

2002-07-22 Thread Tim Thorburn
s one? Or even friendly caffeine addicts 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

[PHP] redirecting after login

2002-07-22 Thread Tim Thorburn
e person 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 tag redirects, but those don't seem to accept the PHP/MySQL combo. Any ideas? Thanks -T

[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 hea

[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 w

[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: Variables aren't being passed to php page

2002-07-15 Thread Tim Luoma
Jason Wong wrote: > On Monday 15 July 2002 03:55, Tim Luoma wrote: > >>Jason Wong wrote: >> >>>This list gets at least one question a day on this subject ... >> >>And there will be a lot more as people scan the web for example scripts >>and find one

[PHP] Re: Variables aren't being passed to php page

2002-07-14 Thread Tim Luoma
Jason Wong wrote: > This list gets at least one question a day on this subject ... And there will be a lot more as people scan the web for example scripts and find ones that assume 'register_globals' is set to on. TjL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Dealing with spaces and punctuation in uploaded filenames (tjlq)

2002-07-13 Thread Tim Luoma
I am using this basic example (from the manual iirc) for uploading files Upload this file: What I am trying to do then is to remove any spaces or punctuation that might be in the filename. This is what I am using for the filename: $FILENAME = $_FILES['userfile']['name']; and

[PHP] Setting include_path

2002-07-13 Thread Tim Thorburn
to/account/root/" php4_include_path ".:/path/to/account/root/" Could someone please shed some light on this subject? I'm in a sort of bind as my client desperately needs their site up for a week long sporting event that just began this past Friday (yesterday). Thank

[PHP] Gainesville, Florida PHP Users? (Re: [PHP-WIN] PHP meetup [CROSS-POST]Meet other PHP Developers in Your Area)

2002-07-12 Thread Tim Luoma
Well I don't see a user group listed for Gainesville, FL... and we could have a cool acronym too PUGG (php users group of gainesville) ok, that's a first attempt, but anyway So are there other Gainesville, Florida folks around? If so please drop me a link and maybe we can form

[PHP] Anybody using PEAR Auth_HTTP?

2002-07-11 Thread Tim
crypt passwords all to no avail. I also can't find any further documentation other than what's on pear.php.net. Any ideas? I've e-mailed pear-general but no response so far. Thanks!! Tim "pgsql://tim@localhost/auth", "table" =>

[PHP] MS SQL Server and ODBC

2002-07-11 Thread Tim Nields
the database server. I have mulitple databases on my database server. How do I specify the database that I'm trying to reach? Are there any configuration flags that I could be missing to use odbc_connect, etc.? Any help would be greatly appreciated. Tim -- PHP General Mailing List

[PHP] Re: PHP: Script Security: Best coding practices

2002-07-08 Thread Tim Luoma
olinux wrote: >A little off your request, but may be of interest: > >Top 21 PHP Programming Mistakes from Zend.com >http://www.zend.com/zend/art/mistake1.php >http://www.zend.com/zend/art/mistake2.php > Hrm... I wonder if someone @ Zend has messed up their template for s The titles are coming

Re: [PHP] Moving a file with 'rename'?

2002-07-04 Thread Tim Stoop
Latex Master wrote: > Hello Tim, > Tim why don't you try shell_exec ? As a last resort, I might, but I'd rather do it in PHP... Code-portability, y'know :) -- Kind regards, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Moving a file with 'rename'?

2002-07-04 Thread Tim Stoop
Marek Kilimajer wrote: > rename can "move" the file only on the same partition, it is realy just > _rename_, not full _move_ So there is no full-features move in PHP? -- Kind regards, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Moving a file with 'rename'?

2002-07-04 Thread Tim Stoop
; to 'apache' (the user under which the httpd is running), I can do the following without any error: mv /var/www/html/webfotos/tmp/thumb_phpibmGBF.jpg /var/www/html/foto/0/0/0/0/.thumb.jpg Any ideas on why I get the error and how I can solve it? Tia! -- Kind regards, Tim -- PHP

[PHP] Query String...

2002-07-01 Thread Tim Nields
being produced when I echo or print this as $action. Is there a setting that I've missed somewhere? Any help will be much appreciated. Thanks Tim Nields -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Searching for string in text file help?

2002-07-01 Thread Tim Loepp
t;, "$search_str")) { echo ""; readfile("$target_filename"); echo ""; } Thanks Tim Loepp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] [Session] SID automatically add on all pages?

2002-06-30 Thread Tim Stoop
case, I prefer de php. If anyone knows of a template-engine that can recognise the difference between a custom-tag with <> and a HTML-tag, I'd appreciate the URL :) For now, I'm going to make this work. -- Kind regards, Tim -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] [Session] SID automatically add on all pages?

2002-06-30 Thread Tim Stoop
--enable-trans-sid on and (as noted in this mail) session.auto_start. I think this would work? I made a test-site locally, but I need to know the exact options that make this work, so I can inform the provider what to change (very helpful chaps over there, just don't know sh*t about

Re: [PHP] [Session] SID automatically add on all pages?

2002-06-30 Thread Tim Stoop
y have started, do I need to re-affirm the session on every page, or will it hold for a few pages, until the session-variables will be used again ... > simply converting your files to .php and compiling with enable-trans-sid > will not give you sessions. ... when I do this? -- Kind re

[PHP] [Session] SID automatically add on all pages?

2002-06-30 Thread Tim Stoop
stead of .html, would did be enough if --enable-trans-sid is used (and php.ini is correctly configured)? It seems to work here, but I want to know if I forgot something important... -- Kind regards, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

[PHP] PHP include_path

2002-06-27 Thread Tim Nields
I am running php4.2.1. I tried to use a simple include() coommand, but the path that it defaults to is /usr/local/lib/php. Can anyone tell me how to change this? Thanks Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PEAR-DEV] phpDocumentor 1.1.0rc2 RELEASE ANNOUNCEMENT

2002-06-18 Thread Tim Gallagher
hey hey hey looks great to me. "can't we all just get along?" :) -timmyg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] beginner in PHP

2002-06-14 Thread Tim Ward
then destroy the session locally by unsetting that array. If I have a function that I want to change session variables at all I make it take the session in as a parameter and pass it back as the return value. Tim Ward > -Original Message- > From: Phillip Perry [SMTP:[EMAI

RE: [PHP] beginner in PHP

2002-06-13 Thread Tim Ward
>From the symptoms it sounds like you're destroying the session okay but leaving the variables In the script. Are you sure you're unsetting them at the appropriate scope level. Tim Ward www.chessish.com <http://www.chessish.com> -- From: Phillip

[PHP] RE: simplicity with 2 queries..

2002-06-10 Thread Tim Ward
ure your code a bit if you want the desired result. Tim Ward www.chessish.com <http://www.chessish.com> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> -- From: Jule Slootbeek [SMTP:[EMAIL PROTECTED]] Sent: 10 June

RE: [PHP] PHP function for listing number of columns in table

2002-06-10 Thread Tim Ward
Just off the top of my head wouldn't describe then mysql_num_rows() be a lot more efficient. Tim Ward www.chessish.com <http://www.chessish.com> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> -- From: John Holmes [SMTP:[EMAIL PROTECTED]] Sent:

[PHP] Setting PHP Include Dir

2002-06-02 Thread Tim Thorburn
nternal Server Error. My site is using Apache 1.3.12 and PHP 3.0.18, any thoughts on how I might get this to work? Thanks -Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: Month Values in UNIX timestamps and workaround(Newbie)

2002-05-30 Thread Tim Ward
If you just want the number of seconds in each month then ... function SecondsInMonth($month, $year) { return mktime(0,0,0,$month + 1, 1, $year) - mktime(0,0,0,$month, 1, $year); } ... works, although you may need to play around with the is_dst parameter to fine tune it. Tim ward

[PHP] RE: Global variables

2002-05-30 Thread Tim Ward
What about storing them in database or (below root) flat files? Tim Ward www.chessish.com <http://www.chessish.com> -- From: serge gedeon [SMTP:[EMAIL PROTECTED]] Sent: 29 May 2002 14:35 To: [EMAIL PROTECTED] Subject: Global var

[PHP] RE: your philosophy on php-design

2002-05-30 Thread Tim Ward
(); echo(""); echo(" Footer(); echo(""); echo(""); } } you get the idea Tim Ward www.chessish.com <http://www.chessish.com> -- From: Wilbert Enserink [SMTP:[EMAI

[PHP] RE: odd class/session/db behaviour

2002-05-29 Thread Tim Ward
the case above but the connection isn't. This may not have anything to do with your problem but it's something that tripped me up when I started doing OOP stuff in PHP. Tim Ward www.chessish.com <http://www.chessish.com> -- From: Nick Wilson [SMTP:[EMAIL

[PHP] header solved

2002-05-29 Thread Tim Thorburn
Hi, Just wanted to thank you for your responses ... I solved my header problem - I wasn't using the full address (I left out the http:// bit) Thanks again ... must be working at 3.30am thats not so good for the brain ... -Tim -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP command for redirect?

2002-05-29 Thread Tim Thorburn
I've been trying to add an extra feature to the form - sending an email to the admins if the form doesn't get entered into the database, but even when I take the email part out its still giving this error message. Any ideas? Thanks -Tim

[PHP] PHP command for redirect?

2002-05-29 Thread Tim Thorburn
;t all that enlightening. Thanks -Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Include directory

2002-05-27 Thread Tim Thorburn
g wrong? Here's my setup: Apache 1.3.12 PHP 3.0.18 Sun Solaris Thanks -Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Create table with varying results

2002-05-23 Thread Tim Greenleaf
d see if the results are different. Thanks for the help. Tim "Tim Greenleaf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a search page that creates a dynamic table of results from MS SQL > Server. The table created

Re: [PHP] Create table with varying results

2002-05-23 Thread Tim Greenleaf
several times (both Mac and Windows IE) and never got > anything funny. How many times do you usually have to refresh before you > see the problem? (I think I viewed it 4 times). > > miguel > > On Thu, 23 May 2002, Tim Greenleaf wrote: > > The errors appear to be the resul

Re: [PHP] Create table with varying results

2002-05-23 Thread Tim Greenleaf
print ""; $i++; endwhile; // close table print ""; return; } ?> "Miguel Cruz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > What is the specific nature of the errors in the HTML? Are random >

Re: [PHP] Create table with varying results

2002-05-23 Thread Tim Greenleaf
still have the same problem. I also thought maybe there were issues with the data...i.e. with nulls and non-alpha-numeric characters. I cleaned all the data so there is no null data and all characters are alpha-numeric. Still have the same problem. Very strange. Tim "Miguel Cruz&quo

[PHP] Create table with varying results

2002-05-23 Thread Tim Greenleaf
the script properly. I would think if I had a syntax issue with the script or HTML it would either error out or return the same results everytime. Has anyone else seen this problem before? w2k SP2 IIS PHP 4.2.1 Thanks for the help. Tim -- PHP General Mailing List (http://www.php.net/) To

[PHP] Apache & IIS with PHP - Same System

2002-05-23 Thread Tim Greenleaf
Are there any issues with running Apache and IIS on the same system both using PHP? The only obvious problem I can think of is I will need to configure Apache to use some other port (other than 80). Any pointers would be greatly appeciated. Tim -- PHP General Mailing List (http

[PHP] Retrieving Session Variables

2002-05-21 Thread Tim Greenleaf
I am having a problem getting a session variable in the function (currentlogin) below. I can process the script and in the else statement "print ($HTTP_SESSION_VARS['name']);" the session variable is printed but when the function tries to print the session variable, I get an error indicating an u

Re: [PHP] Getting only 255 chars from SQL Server

2002-05-21 Thread Tim Greenleaf
FYI: MS SQL Server 7 and greater, Varchar is a max of 8000 characters so it sounds like there is some limitation in the PHP functions that is limiting this. "Niklas lampén" <[EMAIL PROTECTED]> wrote in message 008901c1fa7b$14539d30$ba93c5c3@Niklas">news:008901c1fa7b$14539d30$ba93c5c3@Niklas... >

[PHP] Post form values - script flow

2002-05-21 Thread Tim Greenleaf
I am very new to PHP about two hours. I have a search page that I post back to the same URL. When the form is loaded I check to see if the seach variable is set ($srch is the name of the text box on the form) and then determine what function to call. I either call a welcome message function to

[PHP] RE: array_search in 2-d arrays

2002-05-15 Thread Tim Ward
is no built in way to search down this tree. I think you'll need To walk the array and check the first element of each e.g. Foreach($layerDes as $count=>$array) { if ($array[0] == $searchstring) { $key = $count; break; } } Tim Ward www.chess

[PHP] RE: textarea problem

2002-05-14 Thread Tim Ward
Are you POSTing or GETting the data? Tim Ward www.chessish.com <http://www.chessish.com> -- From: Enrique Vadillo [SMTP:[EMAIL PROTECTED]] Sent: 14 May 2002 01:33 To: [EMAIL PROTECTED] Subject: textarea problem Hi, I

[PHP] RE: An array of objects?

2002-05-14 Thread Tim Ward
$_SESSION["rooms"][1] = array("room_name"=>"Bob's Room", room_status=>1) $_SESSION ["rooms"][2] = array("room_name"=>"Jeff's Room", room_status=>0) etc. then for a given room_id ... echo($_SESSION [

[PHP] PHP 5??

2002-05-11 Thread Tim Thorburn
.net ... So my question is, was the guy I was talking to knowledgeable of inside things, or did he not have a clue what he was talking about? Thanks -Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Hosting ...

2002-05-11 Thread Tim Thorburn
osting.com and Verio - www.verio.com Does anyone here use either of these companies? If so, could you please let me know your opinions of each? Thanks -Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] problems with

2002-05-10 Thread Tim Ward
I've only just picked up on this thread, but why not put each form inside a element? i.e. ... ... http://www.chessish.com> -- From: David Freeman [SMTP:[EMAIL PROTECTED]] Sent: 09 May 2002 22:24 T

RE: [PHP] Self Destruct code

2002-05-07 Thread Tim Thorburn
I'm sure we've all had our problems with the client who just doesn't feel like paying. In my particular market, summer resorts and vacation spots are pretty much the main source of web work. Now alot of these businesses are very good in paying, normally I receive payment within a week of sen

[PHP] File uploading fails

2002-05-01 Thread Tim Decker
ex: file in addimage.php on line 6 I get this message with all the variations of file upload testing. FYI I'm trying to upload a 160K jpg file for testing. Using Apache and Linux server. WIN IE Client. Help would be greatly appreciated. TIA, Tim unka_tim

[PHP] RE: Problem with array

2002-04-30 Thread Tim Ward
oop. It doesn't really have any significance in this context. Is there any reason why you're not naming the checkboxes RG[1], RG[2], etc.? This would make everything much easier - you can then do ... Foreach ($HTTP_POST_VARS["RG"] as $value) $RGs[] = $value Tim Ward Inter

RE: [PHP] build array dinamicaly

2002-04-30 Thread Tim Ward
Be careful - I fell into this trap when I first started doing this sort of thing. This code will produce an extra element on your array with value logical false. You need to do ... While ($array = mysql_fetch_array($result)) $myarray[] = $array; ... to avoid this Tim Ward Internet Chess

[PHP] Session.save_path in php.ini

2002-04-25 Thread Tim Loram
session_save_path("my/path/here") but if I don't specify a path like this it always attempts to save in /tmp (c:\tmp\) even though the value in the php.ini file says otherwise Why is this happening ? HELP! Cheers. Tim Loram LaTiS Centre University of Exeter Queens Building Queens Drive

[PHP] RE: Array indices

2002-04-24 Thread Tim Ward
Why not just... Foreach (array_diff($array1, $array2) as $value) { $newarray[] = $value; } or am I missing something? Tim Ward Internet Chess www.chessish.com <http://www.chessish.com> -- From: esivertsen [SMTP:[EMAIL PROTECTED]] Sent: 23 April 2

RE: [PHP] .inc over .php

2002-04-19 Thread Tim Ward
I've settled on .inc.php, .class.php, etc. that way you get the best of both worlds. Your files are identified as what they are and don't get sent out unparsed Tim Ward Internet Chess www.chessish.com <http://www.chessish.com> -- From: Jason W

[PHP] RE: how to get row by row from CSV file

2002-04-19 Thread Tim Ward
sv that you can walk through in php. Using fopen and while fgets may be more efficient, especially if you don't want the whole file If ($fhandle = fopen("yourfile.csv", "r")) { while ($row = fgets($fhandle)) { ... // etc. } } Tim Ward Internet Ch

RE: [PHP] save html created by loop in variable

2002-04-18 Thread Tim Ward
} } Please treat this as pseudo code, but you get the idea. Arrays of arrays can be really powerful for stuff like this. Tim Ward Internet Chess www.chessish.com <http://www.chessish.com> -- From: Jason Dulberg [SMTP:[EMAIL PROTECTED]] Sent: 18 April

RE: [PHP] Is While needed in MySQL Result with a Limit of 1

2002-04-11 Thread Tim Ward
Why not just use an if instead of a while? This way you test for a result and get it at the same time If ($array = mysql_fetch_array($result)) { foreach($array as $key=?$value) echo("$key=?$value"); } else echo("sorry didn't get anything"); Tim Ward Internet Che

RE: [PHP] Re: mysql

2002-04-11 Thread Tim Ward
That's not quite right, if (!$result = mysql_query($sql, $db)) { echo "Query failed"; } else { if (!$row = mysql_fetch_row($result)) { echo "No records found."; } } Tim Ward Internet Che

[PHP] RE: simple question

2002-04-03 Thread Tim Ward
vailable as variables in the php page the form submits to (the action property of the form tag, which can be the same page). Tim Ward Internet Chess www.chessish.com <http://www.chessish.com> -- From: Denis L. Menezes [SMTP:[EMAIL PROTECTED]] Sent: 0

RE: [PHP] check form - save arrays in hidden fields?

2002-03-26 Thread Tim Ward
Why in a scalar? Why not pass the array through, i.e. Foreach($test as $element) { echo(""); } Tim Ward Internet Chess www.chessish.com <http://www.chessish.com> -- From: Fabian Krumbholz - 2k web solutions [SMTP:[EMAIL PROTECTED]] Sent

[PHP] RE: Browser Detection without use of browsecap.ini file

2002-03-22 Thread Tim Ward
$HTTP_ENV_VARS["HTTP_USER_AGENT"] contains this info if it's been sent Tim Ward Internet Chess www.chessish.com <http://www.chessish.com> -- From: R'twick Niceorgaw [SMTP:[EMAIL PROTECTED]] Sent: 21 March 2002 17:06

RE: [PHP] Re: Return the column names of MySQL table?

2002-03-20 Thread Tim Ward
ield as $key => $val) { echo "$key : $val |"; } echo(""); } } Tim Ward Internet Chess www.chessish.com <http://www.chessish.com> -- From: Kevin Stone [SMTP:[EMAIL PROTECTED]]

[PHP] RE: Invalid Argument ??? Not sure how to debug this

2002-03-18 Thread Tim Ward
Try ... If ($result = ...) { ... ... } else echo(mysql_error()); I always do querying like this anyway (without the error echo in live stuff obviously) Tim Ward Internet Chess www.chessish.com <http://www.chessish.com> -- From: Daniel Negron/KBE

RE: [PHP] OBJECT£ºWHAT'S THE RALATION BETWEEN A,B AND C?

2002-03-18 Thread Tim Ward
The line you've marked prints the "value" attribute of $a->b->a, which is a pointer to the base object ($a). You have just changed the "value" attribute of this to 11 and it prints 11 ... what's wrong? Tim Ward Internet Chess www.c

Re: [PHP] Re: PHP based search engine

2002-03-13 Thread Tim Thorburn
ng I'm not allowed to do. I think I've got the Fluid Dynamics search engine working fairly well now - its not perfect, but it'll do until I can come up with something better. Thanks -Tim At 11:39 AM 3/13/2002 +0100, you wrote: >David Robley wrote: >>PHP from around 4.05 ha

RE: [PHP] Re: A stupid question...

2002-03-11 Thread Tim Ward
uot; ... if you mean sort all records but don't sort past the first letter then "SELECT ..., LEFT(lastname, 1) AS lastname_first ... ORDER BY lastname_first" or you might even be able to do " ... ORDER BY LEFT(lastname, 1)" you'll have to experiment with t

[PHP] PHP based search engine

2002-03-10 Thread Tim Thorburn
abase that are DATE formatted. Is it even possible to have a PHP search engine search a site that is mixed with MySQL and static pages? Thanks -Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: User accounts

2002-03-08 Thread Tim Ward
Surely an empty string is == false. In fact I'd be interested if anyone can come up with a situation where !$x doesn't return the same as empty($x) i.e. can anyone get a value of $x such that !$x !== empty($x) Tim Ward Internet Chess www.chessish.com <http://www

RE: [PHP] Does anyone follow?

2002-03-05 Thread Tim Ward
" "); echo($author.""); echo("(". count[$ids] .") ["); foreach ($ids as $id) echo($id); // need something a bit fancier here, but you get the idea echo("]\n"); } Tim Ward Internet chess www.chessish.

[PHP] comparing string values, etc

2002-03-03 Thread Tim Martens
Hi - I'm a major newbie. - I have a file that pulls an include into a for a user to edit - before pulling the include, I'd like to open it and check it's value - if the include's value is exactly equal to the string: Hello World then I want to overwrite that string with nothing; close the inc

[PHP] Reuse variables?

2002-02-28 Thread Tim Thorburn
here is nothing left over - and vice versa. Is it not possible to do two things with the same form data? Thanks -Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] a question of syntax ...

2002-02-27 Thread Tim Thorburn
e the addslashes() command, or if I don't need it, should I not use it? Thanks again, -Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] apostrphe's entered into MySQL database

2002-02-27 Thread Tim Thorburn
Apache 1.3.12 and PHP 3.0.16 with MySQL 3.22.32 Thanks in advance, -Tim "; echo "ADD A RECORD"; } elseif ($delete) { // delete a record $sql = "DELETE FROM ai_data WHERE id=$id"; $result = mysql_query($sql);

[PHP] RE: Help with showing tables in DB

2002-02-27 Thread Tim Ward
} I think you'll find the field you want is something like "Tables_in_dbname". Tim Ward www.chessish.com <http://www.chessish.com> -- From: Ron Clark [SMTP:[EMAIL PROTECTED]] Sent: 26 February 2002 21:02 To: [EMAIL PROTECTED]

[PHP] RE: Sessions and switching between php and htm documents

2002-02-27 Thread Tim Ward
I haven't experienced this myself, but I'd have thought that if you're propagating the session via the URL rather than a cookie then it won't get added if the page isn't parsed. If it's not passed on just once it's lost. Tim Ward Internet chess www.ch

[PHP] cannot see LDAP userPassword and createTimestamp attr

2002-02-26 Thread tim tom
... Data for 1 items returned: dn is: uid=tim,ou=subdept,o=dept,dc=myorg,dc=com first cn entry is: Tim Tom first email entry is: [EMAIL PROTECTED] first createTimestamp entry is: first userPassword entry is: Closing connection why can't i see the createTimestamp and userPassword bcos i d

Re: [PHP] is PHP4.0.3 on a commercial webserver Justifiable ?

2002-02-26 Thread Tim Thorburn
Hi, Consider yourself lucky - my hosting company is still using 3.0.16. Even though at least once a month I complain about this bitterly (the client has already paid several years in advance so moving is not in the cards). They tell me that there are major security issues with PHP version 4 a

[PHP] RE: word wrapping again

2002-02-26 Thread Tim Ward
This is really an html issue. HTML will only text wrap (in a compliant browser) on white space. If you want a server side solution to solve this you'll need to break up long words with a space or line-break. Tim Ward Internet chess www.chessish.com <http://www.ches

RE: [PHP] Re: php - assigning date variables

2002-02-26 Thread Tim Ward
arlier then make the startdate blank, etc. Tim Ward Internet chess www.chessish.com <http://www.chessish.com> -- From: Craig Westerman [SMTP:[EMAIL PROTECTED]] Sent: 25 February 2002 19:32 To: Lerp Cc: [EMAIL PROTECTED] Subject: RE

[PHP] RE: str_replace and associative arrays

2002-02-26 Thread Tim Ward
as the subject the search and replace was performed on the string "array". Tim Ward Internet chess www.chessish.com <http://www.chessish.com> -- From: Michael Crowl [SMTP:[EMAIL PROTECTED]] Sent: 25 February 2002 22:01 To: [EMAIL PROTE

[PHP] magic_quotes_gpc

2002-02-25 Thread Tim Thorburn
content management system I'm working on. Thanks -Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Entering data into MySQL

2002-02-24 Thread Tim Thorburn
that will work on an older version of PHP such as 3.0.16? I'd be eternally grateful for any prompt replies as its already 2.38am and my deadline is 9am :P Thank you -Tim Thorburn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] overwriting PHP_SELF and PHP_AUTH_xxxx

2002-02-22 Thread Tim Ward
Forgive me if I'm treating pseudo as real but surely print ""; should be print ""; same goes for the array element in the sql statement Tim Ward Internet chess www.chessish.com <http://www.chessish.com> -- From:

[PHP] RE: timestamp confusion

2002-02-21 Thread Tim Ward
Time() returns unix timestamp (which is GMT), date() is interpreting that according to the local time zone. Tim Ward internet chess at www.chessish.com <http://www.chessish.com> -- From: Justin French [SMTP:[EMAIL PROTECTED]] Sent: 21 February 2002

[PHP] RE: novice question -- array_push($real[$i][$j],$s[$j]);????????

2002-02-20 Thread Tim Ward
e. if you have $fred[0] = array(1,2,3); $fred[1] = array(4,5,6); array_push($fred[1], 7) will leave $fred[0] = array(1,2,3); $fred[1] = array(4,5,6,7); or array_push($fred[0], 7) will leave $fred[0] = array(1,2,3,7); $fred[1] = array(4,5,6); Tim Ward www.chessish.com <http://www.ches

RE: [PHP] What Do You Think?

2002-02-19 Thread Tim Ward
Timothy Taylor's and Sam Smith's are much better example of Yokshire beer. I know people who've found bottled Sam's all over the world Tim Ward www.chessish.com <http://www.chessish.com> -- From: Richard Crawford [SMTP:[EMAIL PROTECTED]]

RE: [PHP] HTTP_POST_VARS problem

2002-02-08 Thread Tim Ward
Make the name of the select an array e.g. http://www.chessish.com> -- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: 08 February 2002 02:47 To: [EMAIL PROTECTED] Subject: Re: [PHP] HTTP_POST_VARS problem Please ignore my questi

RE: [PHP] Limit 15 where "Newest"

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

[PHP] RE: Initializing Array

2002-01-29 Thread Tim Ward
As far as using them is concerned they are already zero (as indeed are undefined elements). If you want force the type you'll have to step through the array. $pos[17][7][3] = 0; // will only set the value of that element, in PHP or C Tim www.chessish.com <http://www.ches

[PHP] Re: phpwiki save button

2002-01-25 Thread Tim Bogart
On Thursday 24 January 2002 10:07 am, Tim Ward wrote: > I think you just need to add the timestamp to the start of the story before > you save it, > i.e. > $content = date("d/m/Y H:i:s - ") . $content; > Where do I put this? I'm still floundering. Sorry. btw...T

[PHP] Re: phpwiki save button

2002-01-24 Thread Tim Bogart
So...I would create a new table in my postgresql database that's being used which would contain the timestamp. I would populate that table when the savepage.php was executed, extract the data from that table and write it to the screen, then execute the save. Does that sound right? Ti

RE: [PHP] RE: phpwiki save button

2002-01-24 Thread Tim Ward
x27;d be surprised if the table doesn't already have a field like that. Tim www.chessish.com > -----Original Message- > From: Tim Bogart [SMTP:[EMAIL PROTECTED]] > Sent: 24 January 2002 15:43 > To: Tim Ward; [EMAIL PROTECTED] > Subject:

Re: [PHP] RE: phpwiki save button

2002-01-24 Thread Tim Bogart
x27;m sure you are taking for granted that I know more than I seem, but I don't. I'm a newbie at this and have to have my nose put down into it before I understand. Where should I put the line? Thanks! Tim On Thursday 24 January 2002 10:07 am, Tim Ward wrote: > I think you just nee

[PHP] RE: phpwiki save button

2002-01-24 Thread Tim Ward
I think you just need to add the timestamp to the start of the story before you save it, i.e. $content = date("d/m/Y H:i:s - ") . $content; or am I missing something? Tim www.chessish.com > -Original Message----- > From: Tim Bogart [SMTP:[EMAIL PROTEC

[PHP] Re: phpwiki save button

2002-01-24 Thread Tim Bogart
On Thursday 24 January 2002 06:36 am, Tim Ward wrote: > What is it you actually want to do? Add the current date/time or a > timestamp entered on the submitting form? yes. That is exactly what I wish to do. See date() for the former. Once > you've got your stamp in a format you

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