Re: [PHP] PHP vs ASP.NET "formal opinions" request

2003-08-14 Thread Tim Thorburn
I'm not so sure it's an entirely horrible idea for a university to focus on one area over another. I went to art school - so I'm sure I'll be burned at the stake for having comments :P But a great deal of my friends who took comp sci or comp eng in uni are greatly unemployed - why you ask? T

[PHP] Newbie Session Question

2003-08-14 Thread Tim Winters
Hi, Normally to start a session one would use session_start(); Is there a different command to do this if you're instead using the $http_session_vars type coding? Thx Tim Winters Creative Development Manager Sampling Technologies Incorporated 1600 Bedford Highway, Suite 212 Bedford,

[PHP] get current path

2003-08-17 Thread Tim Thorburn
Hi, The PHP site seems to be down right now ... so here's the question: Is it possible for PHP to tell me the current path of a page? For example: www.whatever.com/this/page.php - I'd like PHP to return /this/page.php ... is that possible and if so, how so? TIA -Tim -- PHP Gener

[PHP] getting value of item in list box.

2003-08-18 Thread Tim Winters
ng JS. Can anyone help? Thx Tim Winters Creative Development Manager Sampling Technologies Incorporated 1600 Bedford Highway, Suite 212 Bedford, Nova Scotia B4A 1E8 www.samplingtechnologies.com [EMAIL PROTECTED] [EMAIL PROTECTED] Office: 902 450 5500 Cell: 902 430 8498 Fax:: 902 484 7115

[PHP] deleting session variables

2003-08-19 Thread Tim Winters
Is there a way to wipe out all previous session variables with one command? Thx Tim Winters Creative Development Manager Sampling Technologies Incorporated 1600 Bedford Highway, Suite 212 Bedford, Nova Scotia B4A 1E8 www.samplingtechnologies.com [EMAIL PROTECTED] [EMAIL PROTECTED] Office

RE: [PHP] deleting session variables

2003-08-19 Thread Tim Winters
Thanks, So what does session_unset() do then? Tim Winters Creative Development Manager Sampling Technologies Incorporated 1600 Bedford Highway, Suite 212 Bedford, Nova Scotia B4A 1E8 www.samplingtechnologies.com [EMAIL PROTECTED] [EMAIL PROTECTED] Office: 902 450 5500 Cell: 902 430 8498 Fax

[PHP] back button and forms

2003-08-20 Thread Tim Winters
there any way to avoid this from happening? Thx Tim Winters Creative Development Manager Sampling Technologies Incorporated 1600 Bedford Highway, Suite 212 Bedford, Nova Scotia B4A 1E8 www.samplingtechnologies.com [EMAIL PROTECTED] [EMAIL PROTECTED] Office: 902 450 5500 Cell: 902 430 8498 Fax

RE: [PHP] back button and forms

2003-08-20 Thread Tim Winters
Hmmm, So this isn't a unique problem then? Thanks everyone for the responses Tim Winters Creative Development Manager Sampling Technologies Incorporated 1600 Bedford Highway, Suite 212 Bedford, Nova Scotia B4A 1E8 www.samplingtechnologies.com [EMAIL PROTECTED] [EMAIL PROTECTED] Office: 90

[PHP] mass mail and selected mailings

2003-03-18 Thread Tim Thorburn
rver itself. Thanks -Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Select email addresses from MySQL

2003-03-20 Thread Tim Thorburn
or most efficient way to handle this ... the more I think about it the more I think that's going to make it overly and unnecessarily complex. Any thoughts? Thanks -Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Checkbox

2003-03-26 Thread Tim Burden
Just using the readonly flag in the input tag is the easiest method, I think. - Original Message - From: "Reuben D. Budiardja" <[EMAIL PROTECTED]> Newsgroups: php.general To: "CPT John W. Holmes" <[EMAIL PROTECTED]>; "shaun" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, Marc

[PHP] Re: php.ini question

2003-03-26 Thread Tim Burden
does phpinfo(32) show the $action variable anywhere? If so just use the global array variable it shows up under. Personally I'd just use the $_GET['action'] alias. You can safely turn register_globals on if you're the only guy that runs scripts on that server and your scripts will never have to ru

Re: [PHP] Default setting garbage

2003-03-26 Thread Tim Burden
Obviously PHP got confused with your data types. I'll bet that $basedate had been set to "5". Try this instead: GetNextDate("4", "2003-03", 5); Now I bet $frequency is 5 and $basedate is "" - Original Message - From: "Liam Gibbs" <[EMAIL PROTECTED]> Newsgroups: php.general To: "php lis

[PHP] Re: Include Question

2003-03-28 Thread Tim Burden
You could try this instead: Checklogin.php if (!$name || !password) { $message = $enter_info; } if ($message){ include ("login.php"); echo $message; exit; } But the way you had it should work, you might just need to global $message; right before the echo in login.php in case it is insi

[PHP] Re: Can't connect to mysql

2003-03-29 Thread Tim Burden
MySql is not compiled into PHP What does phpinfo say? (And not just the configure line) - Original Message - From: "Cditty" <[EMAIL PROTECTED]> Newsgroups: php.general To: <[EMAIL PROTECTED]> Sent: Saturday, March 29, 2003 12:07 AM Subject: Can't connect to mysql > I just setup my home

Re: [PHP] mysql ending at start up

2003-03-29 Thread Tim Burden
Wow, Joe! You post to the wrong list, and your problem is sufficiently unusual (you have no err log?) that we can't give quick supportive answers, and then you whine at us. Not too cool. Please use the appropriate list. - Original Message - From: "Joseph Bannon" <[EMAIL PROTECTED]> Newsg

Re: [PHP] require/include from a different directory

2003-03-30 Thread Tim Burden
The call to include() must be relative to one of the directories listed in open_basedir, regardless of which file the call is made from. Usually the dir mentioned in open_basedir is the docroot, so in your case require "include/inc_file.php"; should work from any file, in any folder. - Orig

[PHP] if statment

2003-03-31 Thread Tim Haskins
tements, and so on? Thanks so much! -- Tim Haskins -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] if statment

2003-03-31 Thread Tim Haskins
My bad, I actually meant that the "nothing" was like, if the pr_ID in the url is empty then show the following text. -- Tim Haskins "Jennifer Goodie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > if( $HTTP_GET_VARS["pr_ID"] ==

Re: [PHP] if statment

2003-03-31 Thread Tim Haskins
Wow, that's weird- I had just tried it and that didn't work, so I thought it might be some special php thing goin on- thanks for your help! -- Tim Haskins "Jennifer Goodie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > so change it to ""

Re: [PHP] if statment

2003-03-31 Thread Tim Haskins
e sense, I would like to have an if statement the says, if HTTP_GET_VARS["id"] is NOT empty then show something else Thanks for you guy's help and time -- Tim Haskins "Tim Haskins" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Wow, that'

[PHP] Re: Files uploads problem

2003-03-31 Thread Tim Burden
You should tell us 1. What happens 2. What you expected to happen that didn't happen. As Kevin points out your enctype will be wrong but if that doesn't fix it then I'd guess at the Apache 2. But tell us what the output is anyway. - Original Message - From: "Adrian Greeman" <[EMAIL PROTEC

Re: [PHP] problem with mysql.

2003-03-31 Thread Tim Burden
Right, defaults to /usr/local/ for the source versions of MySQL, in that case, use --with-mysql=/usr/local - Original Message - From: "Jon Haworth" <[EMAIL PROTECTED]> Newsgroups: php.general To: "Ryan Vennell" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, March 31, 2003 5:00 PM S

[PHP] Re: php and mysql

2003-03-31 Thread Tim Burden
Assuming Month_Start is stored in MySQL date format (-mm-dd) you could Select blah blah From blah Order By DATE_FORMAT(Month_Start,%m) ASC The %m will pad on the zeroes. http://www.mysql.com/doc/en/Date_and_time_functions.html - Original Message - From: "Tyler Durdin" <[EMAIL PROTECTE

Re: [PHP] Array Question

2003-04-01 Thread Tim Burden
If you added a dummy field in the table that is minus one field, you might use the merge table, but I honestly have no idea whether this would be more or less efficient than sorting arrays in memory. Guess that would depend on the sizes of the tables and the number of records you'll be returning.

[PHP] Re: Can php run as a script?

2003-04-02 Thread Tim Burden
Look for PHP CLI in google. Recent versions of PHP install at CLI PHP executable by default. e.g I ended up with one in: /usr/local/apache/bin/php [EMAIL PROTECTED] root]# /usr/local/apache/bin/php -v PHP 4.3.1 (cli) (built: Feb 20 2003 14:09:35) Copyright (c) 1997-2002 The PHP Group Zend Engin

Re: [PHP] Html forms to php scripts

2003-04-02 Thread Tim Burden
php.ini file that needs to be changed, but I can't identify what exactly. Any help would be appreciated. php 4.2.2 Tim Van Zee ITS Network Specialist Governors State University -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Can php run as a script?

2003-04-02 Thread Tim Burden
find / -name php -print - Original Message - From: "Poon, Kelvin (Infomart)" <[EMAIL PROTECTED]> To: "'Tim Burden'" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, April 02, 2003 12:35 PM Subject: RE: Can php run as a script?

[PHP] Re: Can php run as a script?

2003-04-02 Thread Tim Burden
I used to use wget and run cleanup scripts from cron in the usual way. Some people also used to use lynx to do it, I believe. But the best way would be to install latest version of PHP, IMHO. - Original Message - From: "Poon, Kelvin (Infomart)" <[EMAIL PROTECTED]>

Re: [PHP] chill out

2003-04-02 Thread Tim Thorburn
Hi, I'd have to agree with the original poster on this topic - I've been on this list for about 3 years now, at times it is helpful - and then there's every other day. Granted, there are guru's out there that know all there is to know about PHP, and then there's the new kid that has no idea wh

[PHP] datetime

2003-04-03 Thread Tim Haskins
How does one retrieve the date and time off a server in the following format? 2003-04-03 11:11:38 I've read much on date and time regarding php and mysql but could not figure out the above format...please help -- Tim Haskins -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] dynamic IF statement

2003-04-04 Thread Tim Haskins
How does one create a statement that basically says: " ) { ?> Basically, I want to say, "show if url value is equal to this database record's ID value - The last part is what I can't seem to get to work- any ideas??? Thanks! -- Tim Haskins -- PHP Gen

[PHP] secure code

2003-05-27 Thread Tim Burgan
;block' hackers. Thanks Tim Burgan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Long screen display cut short.

2003-06-01 Thread Tim Burden
I had same problem and it involved an array. In my case there was a typo, and the array I was trying to do something with didn't even exist, but it was hard to find because instead of dying with an error it would just sort of sit there, not outputting anything further, until I clicked stop in the b

[PHP] Planning a new job

2003-06-03 Thread Tim Burgan
posal? Any help would be wonderful, thanks. Tim Burgan [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] setting up a cron job for a PHP script

2003-06-04 Thread Tim Thorburn
e cron tab command line ... is it possible to have a PHP script execute on command from a cron tab? And if so, could someone proide an example of say having the script run on the first of every month? We're using 4.3.0 if that helps. Thanks -Tim -- PHP General Mailing List (http://w

[PHP] selecting first character from a MySQL table

2003-06-04 Thread Tim Thorburn
mean doing a query for each letter of the alphabet - is there a better way, or shall I start querying away? Thanks -Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] getting page title using PHP

2003-06-10 Thread Tim Thorburn
few scripts that can get page titles if they are given a URL to go seek - but these scripts seem to store most of the pages HTML code in memory and I don't think my web host would enjoy that. TIA -Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Pipe $var to a shell command

2003-06-13 Thread Tim T
I have a mem var $myoutput I would like to pipe it to the input of a shell_exec command. I tried shell_exec("command < $myoutput") however this is not quite right. Anybody have any ideas?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Pipe $var to a shell command

2003-06-13 Thread Tim T
YYYEE! Finally - It works!! I used the following: $fp = popen("$mycommand", "w+"); fwrite($fp, $myoutput); Thank you for your assistance. I've been looking at this for 2 days and nothing was coming to mind! Again thank you! Tim "Dvdmandt

[PHP] reverse DNS lookup with PHP

2003-06-14 Thread Tim Thorburn
e, and the very few real results I've come across are large perl programs which make little to no sense to me. Any help would be greatly appreciated. Thanks -Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] changing PHP include location without .htaccess

2003-06-22 Thread Tim Thorburn
t; However, on this particular server that command produces an error 500 on all PHP files with the above command in the .htaccess file. Is there another way that I can change the default include path? The server is running FreeBSD 4.4 and PHP 4.3.2RC4 Thanks -Tim -- PHP General Mailing List

[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

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

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

2002-07-23 Thread Tim Fountain
ment, storing the message in your array, e.g.: $result = @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

Re: [PHP] preg_match() occurence position

2002-07-25 Thread Tim Fountain
a test'; > if(preg_match("/(.*)test/",$mem,$matches)) { > echo strlen($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 mak

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

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 > > &

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

[PHP] RE: dir to array?

2002-08-01 Thread Tim Ward
ir = opendir("/path/to/directory/"); > while($imgs = readdir($dir)) { >if (($imgs != ".") && ($imgs != "..")) { > $cnt[count($imgs)] = $cnt; is this typo in the original code? surely should be " = $imgs;" >} else { > print &q

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: R

[PHP] Maximum in SQL query?

2002-08-12 Thread Tim Stoop
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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.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 ", ,"

[PHP] Redhat Linux 7.2

2002-08-14 Thread Tim Haynes
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
: a: a: 2 b: b: 5 What am I forgetting here? Tia for answers! -- Kind 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
s this class, it works (checked it). You can see three echo's in there. The result from those are: 1: 0 20 2: 0 20 3: 0 Can anyone explain to me why in findFotos() the defining of $limiet doesn't work correctly? Why isn't a reference made to $this->limiet? I'm really

[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 is correct (i.e. the one that is sent to the client, after php-parsing), no problem at all. -- Kind regards, Tim -- PHP Gene

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

[PHP] Re: Simple Mail

2002-08-14 Thread Tim Stoop
in php.ini 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 unsub

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

[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'.

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

2002-08-16 Thread Tim Fountain
I know I can use in_array() to check whether, say, 'orange' 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
$foto = unserialize($_SESSION['foto']); } With exactly the same effect. Any idea on how I can solve this? Tia! -- Kind regards, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: array_unique & multi-dimensional arrays

2002-08-20 Thread Tim Ward
ill prevent duplicate combinations 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:

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

2002-08-20 Thread Tim Ward
een added to the array then it overwrites the existing 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 >

[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 ... Tim Ward www.chessish.com > -Original Message- > From: Paul Maine [mailto:[EMAIL PROTECTED]] > Sent: 02 September 2002 00:56 >

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

[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] PHP4.2.2 Windows

2002-09-12 Thread Tim Thorburn
der Unix it works by doing 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] adding unix account via system command

2002-09-17 Thread tim tom
ease help -- tim __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 c

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

2002-09-19 Thread Tim Ward
learn - not PHP. 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

[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

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

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, >

[PHP] RE: redefining a function

2002-09-20 Thread Tim Ward
eem to remember 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 --

[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] 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: Update undefined List Values in DB

2002-09-23 Thread Tim Ward
each($_POST["status"] as $custid=>status) { ... // update query for each customer } Tim www.chessish.com > -Original Message- > From: Sascha Braun [mailto:[EMAIL PROTECTED]] > Sent: 22 September 2002 18:43 > To: PHP Mailingliste > Subject: Update undefined L

[PHP] file reading/writing question.

2002-09-23 Thread Tim Nields
ile with no graphics, 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: 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 re

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

[PHP] RE: local resource variables

2002-09-26 Thread Tim Ward
result data set, 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 var

[PHP] $_SESSION only takes 1 character?

2002-10-01 Thread Tim Stoop
uot;something-intelligent"] = $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"][&

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

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

[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;$i<56;$i++){ to loop 56 times. -- 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 unsub

[PHP] html form array

2002-10-13 Thread tim tom
} } else { ?> method=post> One Two Three -- 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

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

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

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 Messa

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" <[EMA

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

2002-10-15 Thread Tim Molendijk
I don't see why it does 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://ww

[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

[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] Weird behaviour with references to objects...

2002-11-07 Thread Tim Molendijk
'child->parent->property = \'' . $this->child->parent->property . '\''; } } class Child { var $id; var $parent; function Child($id) { $this->id = $id; } } ?> end third code snippet ---

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

2002-11-07 Thread Tim Molendijk
useful... If anyone has 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

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