Re: [PHP] Re: combine empty and trim

2007-03-26 Thread Tim
Richard Davey schrieb: Tim wrote: Ross schrieb: I want to trim any whitepace and check if it is empty in the same line this is not working. if (empty(trim($_POST['_createcategory']))) { Hi, try this: if (isset($_POST['_createcategory'])) { $value = trim($_P

[PHP] Re: short open tags not working even if enabled - lighttpd + fastcgi

2007-03-26 Thread Tim
s expected? Regards, Matt Hi, maybe it's because of the whitespace after the Best regards, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Saving css state in javascript and passing to php via form submit

2007-03-30 Thread Tim
s that cover this type of datatransfer ie: javascript->php. Regards, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Saving css state in javascript and passing to php via form submit

2007-03-30 Thread Tim
> -Message d'origine- > De : Tijnema ! [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 30 mars 2007 16:56 > À : Tim > Cc : php-general@lists.php.net > Objet : Re: [PHP] Saving css state in javascript and passing > to php via form submit > > On 3/30/0

RE: [PHP] Saving css state in javascript and passing to php via form submit

2007-03-30 Thread Tim
> -Message d'origine- > De : Tijnema ! [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 30 mars 2007 17:06 > À : Tim > Cc : php-general@lists.php.net > Objet : Re: [PHP] Saving css state in javascript and passing > to php via form submit > > On 3/30/0

RE: [PHP] Saving css state in javascript and passing to php via form submit

2007-03-30 Thread Tim
> ps. Maybe you could also use AJAX instead of submitting forms > > > > > the whole time. > > > > > > > > In the next version of my framework i would like to, i still > > > > havent quite understood the whole concept, not enough research > >

RE: [PHP] Saving css state in javascript and passing to php via form submit

2007-03-30 Thread Tim
of storing the current state :P Regards, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Saving css state in javascript and passing to php via form submit

2007-04-03 Thread Tim
#x27;m more familiar with your input i oppted for this list ;) Tim > -Message d'origine- > De : Richard Lynch [mailto:[EMAIL PROTECTED] > Envoyé : dimanche 1 avril 2007 07:39 > À : Tim > Cc : php-general@lists.php.net > Objet : Re: [PHP] Saving css state in javas

RE: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-13 Thread Tim
#x27;t we tone it down in here where their is some resemblance of peace? ;) Regards, Tim > -Message d'origine- > De : Jarrel Cobb [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 13 avril 2007 15:24 > À : Robert Cummings > Cc : tedd; [EMAIL PROTECTED]; Jochem Maas; [EMAI

RE: [PHP] IE6 & PHP

2007-04-13 Thread Tim
uot; all sub-elements of a float element you will end up tearing less hair out then you would by mixing non float elements with float elements, try giving that img a float:left style and see what happens... Also what is that br doing there? Could you give more code onhow you are generating this thumbnail ta

RE: [PHP] IE6 & PHP

2007-04-13 Thread Tim
Oh and if it really is a pure css problem try a css list ;) > -Message d'origine- > De : elk dolk [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 13 avril 2007 16:16 > À : [EMAIL PROTECTED] > Objet : [PHP] IE6 & PHP > > Hi all, > I have a bunch of thumbnail images that link to larger >

RE: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-13 Thread Tim
> -Message d'origine- > De : Jochem Maas [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 13 avril 2007 16:32 > À : Tim > Cc : 'Jarrel Cobb'; 'Robert Cummings'; 'tedd'; [EMAIL PROTECTED]; > [EMAIL PROTECTED] > Objet : Re: [PHP] WWE

RE: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-13 Thread Tim
> -Message d'origine- > De : tedd [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 13 avril 2007 16:37 > À : Tim; 'Jarrel Cobb'; 'Robert Cummings' > Cc : 'tedd'; [EMAIL PROTECTED]; 'Jochem Maas'; [EMAIL PROTECTED] > Objet

RE: [PHP] PHP editor

2007-04-13 Thread Tim
27;filename'] && strlen($_POST['php_editor'] == 0) { $file_path = '/tmp/' . $_POST['filename']; if (file_exists($filename)) { $file_content = file_get_contents($filename); } } $content .= ''; $content .= 'Filename:'; $content .= 'PHP:$file_content'; $content .= ''; $content .= ''; ?> There is now :P Regards, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP editor

2007-04-13 Thread Tim
> -Message d'origine- > De : Tim [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 13 avril 2007 18:19 > À : 'Philip Thompson'; 'php General List' > Objet : RE: [PHP] PHP editor > > > > > -Message d'origine- &g

RE: [PHP] auto page generation

2007-04-16 Thread Tim
a to buy a few of books on the > subject like the PHP Cookbook, MSQL Cookbook, PHP Developer's > Cookbook and PHP Security (not a cookbook). As you see, I'm > big into Cookbooks. Also can i reccomend: "Web Database Applications with PHP and MySQL" > > How

RE: [PHP] Saving css state in javascript and passing to php via form submit

2007-04-16 Thread Tim
to upload images :P You have a suggestion for that by any chance Tijnema? Regards, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

TR: [PHP] auto page generation

2007-04-16 Thread Tim
tim says: forwarding to list as was sent to me directly: Thanks everyone, I'll look into all of this. I'm trying to learn all of this since I'm starting school next semester for Computer programming and am trying to get some understanding of the concepts by building web pag

RE: [PHP] Re: header('Location:') works locally but not remotely

2007-04-16 Thread Tim
scheme, hostname and absolute path, but some clients accept relative URIs. You can usually use $_SERVER['HTTP_HOST'], $_SERVER['PHP_SELF'] and dirname() to make an absolute URI from a relative one yourself Could this be your issue? I always use full URI for "header('location:" Regards, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: header('Location:') works locally but not remotely

2007-04-16 Thread Tim
> -Message d'origine- > De : Tim [mailto:[EMAIL PROTECTED] > Envoyé : lundi 16 avril 2007 19:54 > À : 'Ross'; php-general@lists.php.net > Objet : RE: [PHP] Re: header('Location:') works locally but > not remotely > > > > >

RE: [PHP] isset

2007-04-17 Thread Tim
dering how you get this "internals" information you all seem to know so much about, it is very interesting and i'd like to add it to some of my "late night" reading if possible :) Regards, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-17 Thread Tim
> -Message d'origine- > De : Jochem Maas [mailto:[EMAIL PROTECTED] > Envoyé : mardi 17 avril 2007 16:19 > À : [EMAIL PROTECTED] > Cc : Robert Cummings; Tim; 'Jarrel Cobb'; 'tedd'; > php-general@lists.php.net > Objet : Re: [PHP] WWE

[PHP] Fatal error: Call to undefined function: mysql_connect()

2004-04-16 Thread Tim
one on a different server all together. What do you think? Thanks, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] overloaded, overworked ereg statement?

2004-04-23 Thread Tim
This script worked on one server, but started choking after I moved it to a new server. Summary: I use the php_auto_prepend script to start output buffering, then use the php_auto_append script to extract the content between the title tags and between the body tags. When the size of the conte

Re: [PHP] overloaded, overworked ereg statement?

2004-04-24 Thread Tim
bove and including $body = preg_replace("/.*/iU",'',$file_text); // strip everything after and including $body = preg_replace("/<\/body>.*/i",'',$body); Works lik a charm! Thanks :) Tim Since you're looking for certain tags, it stands to reas

RE: [PHP] Session with microtime

2007-04-21 Thread Tim
s > > the > > session_start() then the if( ) block and after that the > login script > > registering the $_SESSION's. I moved the login script to > the middle of > > the > > session_start() and the if( ). > > > > Am I the only one that us

RE: [PHP] should I be looking to eliminate all notices?

2007-04-21 Thread Tim
rstanding of your script wich then leads itself into 3. easier debugging (yup their are a lot of people who have scripts that "work" but don't really know why! ) Regards, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Preventing SQL Injection/ Cross Site Scripting

2007-04-21 Thread Tim
cript that filters xss.. You might even be able to modify it to suit your needs and/or to harden/better it... Regards, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: how to detect type of image

2007-04-27 Thread Tim
case 13: return 'swc'; case 14: return 'iff'; case 15: return 'wbmp'; case 16: return 'xbm'; default: return false; } } else return false; } Best regards, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: how to detect type of image

2007-04-28 Thread Tim
faster than getimagesize because it only gets the file type. getimagesize does also get the width/height, MIME type, etc. I think getimagesize depends on exif_imagetype and will work even if exif is disabled, but I am not sure. Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] file uploads Q?

2006-12-12 Thread Tim
. So no I don't think he's on crack mate :) > > Take a look at my earlier questions with the subject "A general UL > script" and > > the replies with various ppl here 'bout the use of $_FILES. > > This way it will check anything listed in the file(s) input of form(s). > > er, whatever. whose next? Some people generate large amounts of irrelevant crap traffic for nothing imo :) Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] file uploads Q?

2006-12-12 Thread Tim
> -Message d'origine- > De : Jochem Maas [mailto:[EMAIL PROTECTED] > Envoyé : mardi 12 décembre 2006 14:10 > À : Tim > Cc : php-general@lists.php.net > Objet : Re: [PHP] file uploads Q? > > Tim wrote: > >> Børge Holen wrote: > >>> O

RE: [PHP] php redirection..

2006-12-12 Thread Tim
time variable and a location variable. But then I wonder what affect this has regards to html standards? Are dynamic meta tags depreciated? Regards, Tim > -Message d'origine- > De : Stut [mailto:[EMAIL PROTECTED] > Envoyé : mardi 12 décembre 2006 19:52 > À : [EMAIL PROTECT

RE: [PHP] php redirection..

2006-12-12 Thread Tim
time variable and a location variable. But then I wonder what affect this has regards to html standards? Are dynamic meta tags depreciated? Regards, Tim > -Message d'origine- > De : Stut [mailto:[EMAIL PROTECTED] > Envoyé : mardi 12 décembre 2006 19:52 > À : [EMAIL PROTECT

RE: [PHP] php redirection..

2006-12-13 Thread Tim
> -Message d'origine- > De : Youri LACAN-BARTLEY [mailto:[EMAIL PROTECTED] > Envoyé : mercredi 13 décembre 2006 09:09 > Cc : 'php' > Objet : Re: [PHP] php redirection.. > > > Tim wrote: > > Just a quick question regarding this issue. > >

[PHP] Excel not opened in browser when changing header

2001-02-19 Thread Tim
t is wrong?? -- "; echo ""; echo "F1F2"; echo "HiHi"; echo ""; echo ""; ?> -- Thanks Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EM

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

2002-11-25 Thread Tim Molendijk
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

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

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

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

2002-12-06 Thread Tim Ward
not quite ... if the form elements are (e.g) , 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),

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

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

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 hid

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

2002-12-10 Thread Tim Ward
t the function names wrong - 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] H

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).

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] "Use of undefined constant" error

2002-12-17 Thread Tim Ward
f id and proceeds accordingly. 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

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,

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 PROTEC

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 Me

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 PROTECT

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

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

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

2002-12-21 Thread Tim Molendijk
child->parent->property . ''; > > > >?> > >[end code]--- > > > >Now the problem is: IT DOES NOT PRINT TWICE THE SAME!!! > >Instead it prints 'two' and then 'one', which indica

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

2002-12-22 Thread Tim Molendijk
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 adv

[PHP] unpack() based on C struct

2002-12-26 Thread Tim Molendijk
ck(). So like this: $f = fopen('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

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

2002-12-28 Thread Tim Molendijk
tried a lot 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

Re: [PHP] Slow file uploads.

2003-01-07 Thread Tim Meader
uploaded file to be written 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.ph

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

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

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

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 ... tags around each submit/hidden pair. Tim Ward

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:

Re: [PHP] Error in variable when looping

2003-01-14 Thread Tim Ward
print ""; print""; print""; 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://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: Denis L. Menezes <[

[PHP] Mass Mailing with PHP & MySQL

2003-01-19 Thread Tim Thorburn
y, I'd contact the ISP and ask 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 o

[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
le-mbstr-enc-trans' '--enable-track-vars' '--enable-wddx=shared' '--enable-mm=shared' '--enable-xml' '--enable-ftp' '--disable-debug' '--with-libdir=/usr/lib' '--with-db3' '--with-interbase=shared' '--with-pgsql=shared' '--with-ldap' '--with-imap' '--with-curl=shared' '--with-pdflib=shared' Settings: allow_call_time_pass_reference OFF extension_dir /usr/lib/apache/php magic_quotes_gpc OFF register_argc_argv OFF sendmail_from [EMAIL PROTECTED] variables_order GPCS Thanks -Tim

[PHP] PHP Sessions

2003-01-21 Thread Tim Thorburn
cords and make changes to the site). I'm at the point of desperation and sleep deprivation ... If there are no obvious PHP settings that need to be altered - what else could be producing this problem? Thanks -Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP Sessions

2003-01-21 Thread Tim Thorburn
erver that does not work - 4.1.2 ... and from the server that does work 4.2.2 After the Configure Command of each is a list of settings that differ. Much thanks for responding so quickly and at such a late hour!! Thanks -Tim PHP 4.2.2 (works fine) './configure' '--with-apxs=/

Re: [PHP] PHP Sessions

2003-01-21 Thread Tim Thorburn
pt to change a PHP setting through .htaccess since it is hosted on a shared server. I've tried the example from the manual on several other sites - works everywhere but on this problem server. Thanks -Tim At 05:56 PM 1/21/2003 +0800, you wrote: On Tuesday 21 January 2003 17:39, Tim Thorburn w

RE: [PHP] PHP Sessions

2003-01-21 Thread Tim Thorburn
4.1.2 - and make much sense in the long run. Thanks -Tim At 05:19 AM 1/21/2003 -0500, you wrote: > Yes, the examples from the manual do work on the server using PHP 4.2.2 - > however they do not work on the server using PHP 4.1.2. > > I've been using this same script for many sites w

Re: [PHP] ADV SQL Help Needed.

2003-01-21 Thread Tim Ward
off the top of my head SELECT risk_level, COUNT(risk_level) AS rl_count GROUP BY risk_level should do it, though I'd have to experiment with what's inside the COUNT(). Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: [-^-!-%- <[EMAIL P

Re: [PHP] PHP Sessions

2003-01-21 Thread Tim Thorburn
session_start(); echo "Members only"; // check session variable if (session_is_registered("valid_user")) { echo "You are logged in as $valid_user."; echo "Members only content goes here"; }

Re: [PHP] PHP Sessions

2003-01-21 Thread Tim Thorburn
s set 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 m

Re: [PHP] nested queries/loops

2003-01-23 Thread Tim Ward
} } // then do ... foreach($partners as $services) {... foreach($services as $service) {... } } this may not be quite what you need but you get the general idea. looks like services as effectively a many to many link table, nothing wrong with that as far as I ca

Re: [PHP] Why PHP doesn't work with Apache2?

2003-01-23 Thread Tim Thorburn
Just to add a little fuel to the fire, the only way I've seen or been able to get PHP and Apache 2 working together is by installing each from my Red Hat 8.0 CD's. When I tried to compile each together, I got many an error. When I start doing some actually web work on my testing server, I imagi

[PHP] NEWBIE: request querystring

2003-01-24 Thread Tim Haskins
I am crossing over from ASP to PHP and was wondering how to get the same affect as request.questring ? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Update row problems

2003-01-27 Thread Tim Ward
your query needs to be inside the foreach loop so that it runs for every item, at the moment it just runs after you've scanned through all the items so just does the last one. Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: Steve Jackson &l

Re: [PHP] Update row problems

2003-01-27 Thread Tim Ward
what version of PHP? try $HTTP_POST_VARS instead. Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: Steve Jackson <[EMAIL PROTECTED]> To: PHP General <[EMAIL PROTECTED]> Sent: Monday, January 27, 2003 1:14 PM Subject: RE: [PHP] Update

Re: [PHP] Sorting multidimensional arrays..

2003-01-30 Thread Tim Ward
if 'EXTENSION' is unique then you can make life a lot easier by making that the key of the root array (this is a heirarchy of arrays). Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: Chad Day <[EMAIL PROTECTED]> To: php general <[EMA

[PHP] Possible PHP/MySQL Bug?

2003-02-01 Thread Tim Lan
t; '", "',", "')"), array("('", " ''", "',", "')"), $sql).''; mysql_query($sql, $desDB); } ?> Any idea? Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Possible PHP/MySQL Bug?

2003-02-01 Thread Tim Lan
and by the way, the query on line 16 (the problematic one) works fine when run directly in MySQL. Tim "Tim Lan" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... The following code is supposed to migrate data from an old database to a n

[PHP] Re: Possible PHP/MySQL Bug?

2003-02-01 Thread Tim Lan
Thomas, I changed it so that the two connections use different username/password combination, and everything went smoothly. Thank you very much for your rapid response. Tim "Thomas Seifert" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED].

Re: [PHP] processing form with unknown number of checkboxes, each with a unknown name.

2003-02-02 Thread Tim Ward
howabout making the checkboxes an array i.e. then when processing ... foreach($_REQUEST["checkbox"] as $checkbox) { ... } Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: anders thoresson <[EMAIL PROTECTED]> To: <[EMAIL PROTE

Re: [PHP] Help with classes (oop)

2003-02-03 Thread Tim Ward
the function with the same name as the class is the constructor and is called when the instance is created. So "$first = new first" runs first::first() without passing any parameters hence the warning. Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message

[PHP] MySQL Login Setup not working with PHP

2003-02-12 Thread Tim Burgan
ocal machine.. that even I can understand. Thanks Tim Burgan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sososoosos!!!!

2003-02-13 Thread Tim Thorburn
ROTFLMAO!! Strong Bad on PHP ... we totally need to make Strong Bad the PHP mascot ;) At 03:32 PM 2/13/2003 -0500, you wrote: Do you know how many internet etiquette rules you're breaking by typing in all caps like that? Well you're breaking one. Don't type in all caps. --Strong Bad Anyw

Re: [PHP] form variable problem

2003-02-15 Thread Tim Ward
you need to use $_POST["userid"], etc. accessing the form elements by name directly is unsafe and doesn't work anyway with register_globals off, which is the default setting in your veresion of PHP. Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Mess

RE: [PHP] internal site search

2003-02-18 Thread Tim Fletcher
hi, if you can use Perl scripting in your site, have a look at this script http://www.fluffy.co.uk/fs/ it will not be of any help for the php pages , but will be fine for the html. HTH t. > -Message d'origine- > De : David Otton [mailto:[EMAIL PROTECTED]] > Envoye : mardi 18 fevrier 20

RE: [PHP] BBS software in PHP?

2003-02-19 Thread Tim Fletcher
PoserSQL? do you mean PostgreSQL? my favorite is PHPBB (www.phpbb.com) HTH t. > -Message d'origine- > De : Jean-Christian Imbeault [mailto:[EMAIL PROTECTED]] > Envoye : mercredi 19 fevrier 2003 10:25 > A : [EMAIL PROTECTED] > Objet : [PHP] BBS software in PHP? > > > Can anyone recomme

Re: [PHP] Counting table fields having specific values

2003-02-27 Thread Tim Ward
the just the first row) if ($result = mysql_query("...")) {if ($array = mysql_fetch_array($result)) {... } } // for multiple return rows if ($result = mysql_query("...")) {while ($array = mysql_fetch_array($result)) {... } } Tim Ward http://w

Re: [PHP] PHP SQL Code

2003-03-02 Thread Tim Ward
I'd use ... WHERE UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(sUpdated) > 60*60*24*60 but I'm sure someone will come up with something more efficient. Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: Philip J. Newman <[EMAIL PROTECT

[PHP] Hello, php is awsome.

2003-03-12 Thread Tim Hoffmeyer
Hello everyone. This is kinda off topic but im new. Not to php the list. Im going to post some of my php in here for the fun of it. Incase anyone needs some cool php or anything. Thankyou. -- - Tim Hoffmeyer - Zizzo.biz

[PHP] PHP XML Reference

2003-03-13 Thread Tim Funk
appreciated. Thanks, Tim - Do you Yahoo!? Yahoo! Web Hosting - establish your business online

[PHP] Regex nightmare:(

2003-07-09 Thread Tim Steele
i need to uses reg ex to change to the < brackets have to be represented using < and > I have tried so many ways, but none work. here is an example of my faliure. $body = preg_replace("/(href=\/?)(\w+)(>\/?)/e","'\\1'.'\\2'./'target=_blank/ '.'\\3'", $body); Thanks

[PHP] problem with php-4.3.2 and gblib 2 on apache server

2003-07-09 Thread Tim Grote
Hello people, I updated my linux apache server to php-4.3.2. It works fine but the promised 'embedded' gdlib 2 doesnt seem to work. gd_info always ends in 'call to undefined function'. Can anybody tell me what's wrong or how to get gdlib 2 working? Thanks. -- PHP General Mailing List (http:/

[PHP] IMAP issues

2003-07-10 Thread Tim Steele
I have just recently written a complete webmail software using PHP, and need to implement features that determin whether the email has been read or not. The function imap_setflag_full can set the flag, but i have no way of seeing which e-mails have what flags. imap_search allows you to search

[PHP] mail()

2003-07-14 Thread Tim Thorburn
tell if an email was not sent to a specified address? I'm on a shared server, so I don't have access to logs other than the standard ones from apache for web tracking. We're using PHP 4.3.0, MySQL 4.0.13, and Apache 1.3.26 Thanks -Tim -- PHP General Mailing List (htt

[PHP] HTML email with Outlook

2003-07-15 Thread Tim Thorburn
ved HTML email before with Outlook Express on my machine without changing any settings at all. Also, I had sent an email from my script to hotmail and the HTML email worked fine there too. Any thoughts? Thanks -Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP] HTML email with Outlook

2003-07-15 Thread Tim Thorburn
Thanks to all those who responded, as always, spelling is key. Where I had -Type: text/html ... it should have read Content-Type : text/html ... So it works for now, and hopefully will continue to. I know that there are a number of email programs out there that do not support HTML mail, as wel

[PHP] images in databases & Flash via PHP

2003-07-22 Thread Tim Baker
d movieclips etc. and want to do the next step which is to combine that with databases (I'm currently using text files, files on a webserver etc.) thanks Tim Baker -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Newbie Session Question

2003-08-14 Thread Tim Winters
Sorry, Lazy typing! Thanks for the quick response! 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

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