Re: [PHP] Unknown column 'peterspeters' in 'where clause'

2005-05-18 Thread Tom Rogers
ot;password"]); $result = mysql_query(" SELECT customer_id FROM Customers WHERE customer_username = '$username' AND customer_password = '$password'") or die (mysql_error()); $myrow = mysql_fetch_row($result); $customer_id = $myrow[0]; $_SESSION['customer_id'] = $customer_id; -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem with multiple fields

2005-05-19 Thread Tom Rogers
list pcid itemid table pc pcid location then these could contain items itemid name 1 memory module 2 floppy drive pc pcid location 1reception item_list pcid itemid 11 11 12 so reception pc contains 2 memory modules and 1 floppy Hope that helps -- regards, Tom

Re[2]: [PHP] problem with multiple fields

2005-05-19 Thread Tom Rogers
True V> so i need to keep the informations of the reference too V> 2005/5/19, Tom Rogers <[EMAIL PROTECTED]>: In that case use the reference as the key to the item id name hs 22055 sdram256 true 22056 sdram512 true then the item list table would be pc id 1 22055 1 22056 -- rega

Re[2]: [PHP] Serializing objects and storing them is sessions [fixed]

2004-04-09 Thread Tom Rogers
ng the array required by serialization ? -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP time zone

2004-04-13 Thread Tom Rogers
n> thanks I have this in an auto_prepend file or you can put it before using any of the date() functions putenv('TZ=Australia/Brisbane'); -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Single HTML form post affecting multiple HTML frames/PHP scripts

2004-04-14 Thread Tom Rogers
an HTML 'submit' RL> button)? RL> Cheers, RL> Richard Post your details to the main page that defines the frames and get that page to pass the new details on to the sub pages. that way all frames will be regenerated after the post operation. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Never mind ... stupid me :-/ {was Re: [PHP] ereg-replace ... how to catch :'( [crying smiley] ???}

2004-04-14 Thread Tom Rogers
the function now looks like this RB> and works : You might find this very useful :) http://weitz.de/regex-coach/ Helps my old brain -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Single HTML form post affecting multiple HTML frames/PHP scripts

2004-04-14 Thread Tom Rogers
Hi, Wednesday, April 14, 2004, 7:59:43 PM, you wrote: RL> Tom Rogers wrote: >> Hi, >> >> Wednesday, April 14, 2004, 6:57:53 PM, you wrote: >> RL> So is there a way of making a single form post affect two scripts in >> RL> different HTML frames? Or

Re[2]: [PHP] Never mind ... stupid me :-/ {was Re: [PHP] ereg-replace ... how to catch :'( [crying smiley] ???}

2004-04-14 Thread Tom Rogers
Hi, Thursday, April 15, 2004, 8:56:05 AM, you wrote: RB> At 15:02 14-04-2004, Tom Rogers wrote: >>Hi, >> >>Thursday, April 15, 2004, 12:51:20 AM, you wrote: >>RB> Never mind y'all ... me stupid ... >> >>RB> obviously the ( has meaning, and need

Re[2]: [PHP] mysql connect function in my class

2004-04-14 Thread Tom Rogers
the wheel exist in the world today? ...not many hacked out of stone I bet :-) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[4]: [PHP] mysql connect function in my class

2004-04-14 Thread Tom Rogers
Hi, Thursday, April 15, 2004, 2:57:48 PM, you wrote: >>How many versions of the wheel exist in the world >today? ...not many >>hacked out of stone I bet :-) >> >>-- >>regards, >>Tom AB> what does that mean?? is everybody saying i should give up on this

Re: [PHP] FPDF Help

2004-04-15 Thread Tom Rogers
; P.O. Box 1482 NM> Northampton, MA NM> 01061-1482 NM> [EMAIL PROTECTED] NM> (413) 587-3133 NM> (413) 210-7984 Mobile NM> (512) 681-7043 Fax NM> -- NM> PHP General Mailing List (http://www.php.net/) NM> To unsubscribe, visit: http://www.php.net/unsub.php looks like your missing the closing } to your class proper indenting would probably help -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] PHP editor

2004-04-15 Thread Tom Rogers
es for a total of 123 bytes - over double. So Arthur is probably correct. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[3]: [PHP] PHP editor

2004-04-15 Thread Tom Rogers
bs = 60 bytes TR> with 4 spaces/tab thats 54 spaces = 100 bytes TR> and the default of 8 (what clown came up with that one I wonder..maybe TR> they had very small spaces) thats 72 spaces for a total of 123 bytes - TR> over double. So Arthur is probably correct. TR> -- TR> regards

Re: [PHP] Array Problem

2004-04-17 Thread Tom Rogers
im sure there is a nicer way of solving my prob FF> thx Flavio If you treat the variable as a string it is already an array of characters try echo $a{0}; -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session var puzzle

2004-04-18 Thread Tom Rogers
t. KB> BTW, if I print $_SESSION['CategoryID'] from mod_sub KB> right after setting, it holds the expected value. KB> This is really frustrating, I must be missing KB> something basic about the way session vars can be set. KB> Kathleen put this at the top of each page and see if you get any undefined variables warnings as it may be a problem of variable scope error_reporting(E_ALL); -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Program that'll parse HTML form with results and send HTML email?

2004-04-19 Thread Tom Rogers
$tail = "FROM: ".$_POST['Email']; else: $tail = "FROM: ".$_POST['email']; endif; } else{ $tail = &quo

[PHP] Re: Resizing Pictures

2004-04-19 Thread Tom Reed
This will resize JPG images: function get_image_width($image) { $imgsize = getimagesize($image); return $imgsize[0]; } function get_image_height($image) { $imgsize = getimagesize($image); return $imgsize[1]; } function resize_image($originalimage, $dest_width, $save_path, $newfilename)

Re: [PHP] Moving a file

2004-04-19 Thread Tom Rogers
Hi, Tuesday, April 20, 2004, 7:41:18 AM, you wrote: LL> Hello LL> Is there a build-in function to move files in php ? LL> or sholud i just open file A and copy it content to file B , then del file LL> A. LL> Thanks for help. rename() may do what you want -- regards, Tom

Re[2]: [PHP] Program that'll parse HTML form with results and send HTML email?

2004-04-20 Thread Tom Rogers
Hi, Tuesday, April 20, 2004, 11:29:41 PM, you wrote: JWH> From: "Tom Rogers" <[EMAIL PROTECTED]> >> JWH> Does anyone know of a script that'll receive the results of a form, >> JWH> parse the original form and substitute the user supplied data in for JWH&g

Re[4]: [PHP] Program that'll parse HTML form with results and send HTML email?

2004-04-20 Thread Tom Rogers
ple form I could play with? It would be quite a class. I assume you have access to the original form :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Classes and their members

2004-04-22 Thread Tom Rogers
DN> please explain to me what dumb mistake I've made becuase I'm DN> tearing my hair out over something so simple! DN> Thank you, DN> Dickon... You are accessing the members incorrectly change echo "Bob's Name: ".$bob->$name."\n"; to echo "Bob's Name: ".$bob->name."\n"; PHP will try to substitute $bob and will end up with null which is not what you want. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Counting number of characters without spaces between them?

2004-04-23 Thread Tom Rogers
'/(\w)\1{4,}|(\W)\2{4,}/',$string,$match)){ echo "too many repeated characters"; print_r($match); } That will catch everything, except numbers, that is repeated 4 or more times. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Counting number of characters without spaces between them?

2004-04-23 Thread Tom Rogers
($split); $out = ''; foreach($split as $key=>$val){ $out .= $val; if(!empty($match[1][$key])) $out .= $match[1][$key]; elseif(!empty($match[2][$key])) $out .= $match[2][$key]; } echo $out.''; The tricks you learn with this PHP :-) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] OK SQL experts...

2004-04-23 Thread Tom Rogers
D JB> status = 'active'"; JB> The single quoted variables do not get parsed JB> -- JB> PHP General Mailing List (http://www.php.net/) JB> To unsubscribe, visit: http://www.php.net/unsub.php They do if they are themselves inside double quotes :) echo "'$var'"; will get parsed ok -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[4]: [PHP] OK SQL experts...

2004-04-23 Thread Tom Rogers
ld like to see the "whole truth" as well :) including the mysterious search word. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] formatting a string

2004-04-24 Thread Tom Rogers
at i want to do is format the string on display like this: (123)456-7890 AB> but dont quite know how to start with that. what function(s) would i use for AB> that? Try this: $phone = '1234567890'; $newphone = preg_replace('/(\d{3})(\d{3})(\d)/','(\1)\2-\3',$ph

Re[2]: [PHP] formatting a string

2004-04-24 Thread Tom Rogers
1 with a number below 10 tells it to use what it captured at that point. \D btw captures everything that is not a digit so you can use that to cleanup the user input with $input = preg_replace('/\D/','',$input); -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] dinamic hashes

2004-05-13 Thread Tom Rogers
vious, but I keep hitting my head Y> against the wall. Light would be greatly appreciated. Y> Thanks for your help. Y> Regards, Y> I.- you have to do it like this: $table["$searchSource"]["$searchDomain"]["$searchTerm"]["total"]= (isset($table["$searchSource"]["$searchDomain"]["$searchTerm"]["total"]))? $table["$searchSource"]["$searchDomain"]["$searchTerm"]["total"] + $row['order_total'] : 1; -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Breaking out of a loop...

2004-05-12 Thread Tom Rogers
ibe, visit: http://www.php.net/unsub.php Try doing this at the error point } elseif ($elapsed > 5) { echo "TOO LONG!\n"; break 2; //kill both loops } -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Trouble with using isset and form posting

2004-05-13 Thread Tom Chubb
ant to use isset so that if there is no variable the field is pre-filled to prompt for Your Name? A simplified version of the code is shown below and is posting to itself. Any idea what I'm doing wrong? Thanks in advance, Tom Untitled Document Please Enter -- PHP Gener

Re: [PHP] Socket looping challenge

2004-05-13 Thread Tom Rogers
F> return to waiting (for another three seconds). I've got some good help RF> from Curt and Tom (thanks guys), but there are evidently still issues RF> with my code. Here's simplified snippet: you need to use break 2; to exit the while and the do - while or set $connection = fa

Re: [PHP] references

2004-05-13 Thread Tom Rogers
int_r($allpages); VS> echo ''; ?>> VS> Any ideas? VS> Thanks You need the =& in the addChild function function addchild(&$node) { if (!is_array($this->childs)) $this->childs = array(); $this->childs[$node->absnum] =& $node; } -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Socket looping challenge

2004-05-13 Thread Tom Rogers
nded or is there more expected? If there is more to come I would use non blocking socket and the socket select function in the loop. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] What is the GD library and what can I do with it ?

2004-05-11 Thread Tom Chubb
** Upload this to your webspace and then view your .php page and it will tell you everything you need to know about your server's PHP install. Regards, Tom -Original Message- From: Pete [mailto:[EMAIL PROTECTED] Sent: 11 May 2004 09:15 To: [EMAIL PROTECTED] Subject: [PHP] What is t

RE: [PHP] tracking ip and its location

2004-05-14 Thread Tom Chubb
Try: http://www.1phpstreet.com/vb/scripts/ShowCode.asp?txtCodeId=318&lngWId=8 Regards, Tom -Original Message- From: adwinwijaya [mailto:[EMAIL PROTECTED] Sent: 14 May 2004 07:39 To: PHP Subject: [PHP] tracking ip and its location Hello PHP, Is there any function/class to search

[PHP] PHP Sockets

2004-05-14 Thread Tom Chubb
g a text box to submit the ascii string) This is for simulating comms between a UNIX server and a piece of electrical equipment (for which I'm using my laptop). Does anyone know of similar examples. Thanks in advance, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] How to find path for PHP script

2004-05-10 Thread Tom Chubb
Does anyone know a quick way to find the full path on a shared hosting plan to use in an include file? Thanks, Tom

Re: [PHP] Re: global vars inside includes inside functions?

2004-04-29 Thread Tom Rogers
der is that everything dies at the conclusion of the function. It may be better to do this via a class construct -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] variable-length arguments passed by reference... how?

2004-04-29 Thread Tom Rogers
e = 'variable'.$i; $$varname =& $arg_list[$i]; $vars .= "\$$varname"; } $vars .= ');'; //that leaves you with a string you can use eval on eval($vars); -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] variable-length arguments passed by reference... how?

2004-04-29 Thread Tom Rogers
s); JB> http://www.php.net/manual/en/function.call-user-func-array.php The only time eval can be a problem is if you use it on client supplied data otherwise it is no worse than any other function. How does call_user_func_array() cope with pass by reference ? which is the op problem. -- regards

Re: [PHP] strip comments from HTML?

2004-05-06 Thread Tom Rogers
ench JF> http://indent.com.au you may need '//s' if your comment spans lines -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Template Engine

2004-05-15 Thread Tom Rogers
', its small (I use it in an auto-prepend file) and pretty fast. You can view the code here http://kwiktemplates.com/download.php and the syntax is here http://kwiktemplates.com/ (still working on the site) Anything you don't understand drop me a line. -- regards, Tom -- PHP General M

Re: [PHP] GET and POST variables name

2004-05-15 Thread Tom Rogers
---> index.php?id=2&a=4 DC> it writes DC> GET: DC> Parola = 2 DC> Parola = 4 DC> POST: DC> I want it to write: DC> GET: DC> id = 2 DC> a = 4 DC> POST: DC> how can I do it? DC> thx for any help. You

Re: [PHP] eval() with CONSTANTS

2004-05-20 Thread Tom Rogers
rying to figure GD> it out but I don't know what else to try. GD> TIA. GD> -- GD> Greg Donald GD> [EMAIL PROTECTED] There is no way for php to what is a constant and what is text so you have to put it in a variable to use it in a string. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php and java applets

2004-05-21 Thread Tom Playford
ads I get a permissions error (the perms on /tmp are fine). I'm not 100% sure I understand sessions, is my method utterly implausible? Does anyone have any better suggestions? Thanks, Tom Playford -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: php and java applets

2004-05-21 Thread Tom Playford
That was my original plan. The problem is that if someone works out the commands needed to communicate with the php control page, they will be able to bypass the Java access control systems. I suppose I could use https, but does that encrypt the url and post data? Tom Aidan Lister wrote: >

Re: [PHP] php and java applets

2004-05-21 Thread Tom Playford
jon wrote: Can you just send a command line java app commands from php? I'm not sure what you're getting at. Do you mean writing the Java code in the php page? I didn't know php could compile the code on the fly, can it? Or do you mean something else? Tom -- jon Tom Playford

Re: [PHP] php and java appletsf

2004-05-24 Thread Tom Playford
can't drag things around. I don't think I explained myself very well. You can see the applet here: http://tom.playford.net/control/control.html It does very little at the moment. Tom > Tom Playford wrote: > > >jon wrote: > > > >>Can you just send

Re: [PHP] Re: php and java applets

2004-05-24 Thread Tom Playford
Am I? I thought that applets were allowed to connect to the same host they were loaded from. Which is what I'm trying to do. Nice site BTW, useful for a few other things I'm working on, thanks. Tom On Sat, May 22, 2004 at 07:46:21AM +0600, raditha dissanayake wrote: > Tom P

Re[2]: [PHP] Sessions simply do not work?

2004-05-26 Thread Tom Rogers
trans_sid worked with forms in 4.1.2) MRW>session.gc_maxlifetime 1440 MRW> Other things people have asked about: MRW> MRW> url_rewriter.tags a=href,area=href,frame=src,input=src,form=fakeentry if your not using cookies you have to pass the sessionid in your form as a hidden

Re[3]: [PHP] Sessions simply do not work?

2004-05-26 Thread Tom Rogers
Hi, Wednesday, May 26, 2004, 10:21:57 PM, you wrote: TR> if your not using cookies you have to pass the sessionid in your form TR> as a hidden variable somewhere. Or maybe I missed it :) TR> -- TR> regards, TR> Tom ok ignore me I found it btw you can drop the ; it is not neede

[PHP] File Upload within form

2004-05-26 Thread Tom Chubb
on to: But, what do I need to change to update the script? I'm a newbie, but trying hard to learn! Thanks in advance for any help. Tom /n"); print("File size: $file_size bytes/n"); if(copy($file, "$path/$filename")){ print(&

Re: [PHP] Delete Multiple Records From Checkboxes

2004-05-26 Thread Tom Rogers
following query: AP> DELETE FROM ref_events_reg WHERE id IN ('') AP> Both attempts fail to delete any records even though several records AP> are checked. AP> Where have I gone wrong? AP> Thanks. AP> Albert Padley change it to Then you can do something li

Re[2]: [PHP] Delete Multiple Records From Checkboxes

2004-05-26 Thread Tom Rogers
Hi, Thursday, May 27, 2004, 3:07:28 PM, you wrote: AP> On May 26, 2004, at 7:55 PM, Tom Rogers wrote: >> Hi, >> >> Thursday, May 27, 2004, 11:34:03 AM, you wrote: >> AP> I've checked the archives and several other sources, but still >> can't >

[PHP] ISSET problem with Form

2004-05-27 Thread Tom Chubb
If you use ISSET together with a hidden field when posting a form to itself to enter a second-state, is there a way of using it again to get to a third-state. Basically, I'm trying to convert a 3 file script into a single file and first I check to see if it's been submitted and then using ELSE I e

[PHP] Test Email

2004-06-01 Thread Tom Chubb
Sorry if anyone else gets this, but I'm not receiving any emails at the moment and wanted to check my subscription.

[PHP] imploding a multi-dimensional array

2004-06-03 Thread Tom Wuyts
----- [EMAIL PROTECTED]/ http://www.wuyts.org/tom/phpbb2/

Re: [PHP] Dynamic Function Call

2004-06-07 Thread Tom Rogers
// {$_class}::sayHello(); > // $_class.'::sayHello()'; > } > Any suggestions! > =P e p i e D e s i g n s > www.pepiedesigns.com > Providing Solutions That Increase Productivity > Web Developement. Database. Hosting. Multimedia. You could try eval() -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] controling mjpg streams

2004-06-09 Thread Tom Playford
iding they have a valid session? Thanks, Tom pgptPriJJtwbp.pgp Description: PGP signature

Re: [PHP] PHP

2004-06-09 Thread Tom Rogers
http://www.phpclasses.org/browse/package/1672.html -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] <![CDATA[HOTEL AC MALAGA PALACIO]]>

2004-06-09 Thread Tom Rogers
<[cdata[ starts and ]]> ends the cdata section -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Export data from word ducument

2004-06-10 Thread Tom Rogers
Page" option in Ms word and it will extract the images for you and they usually saved in a sub directory as image1.jpg image2.jpg or .whatever off the directory where you save the document. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regular Expressions Tester/designer

2004-06-20 Thread Tom Rogers
t and it really A> doesn't seem to be entirely PCRE compatible. A> Thanks This works with perl regular expressions http://weitz.de/files/regex-coach.exe -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Regular Expressions Tester/designer

2004-06-20 Thread Tom Rogers
Hi, Sunday, June 20, 2004, 5:30:39 PM, you wrote: USK> Tom Rogers sagde: >> >> >> This works with perl regular expressions >> >> http://weitz.de/files/regex-coach.exe >> USK> Thanks! Great tool! I really needed something like that. USK> It just se

[PHP] Posting Data to MySQL

2004-06-24 Thread Tom Chubb
one advise how they code large forms like that and if you know of any software to make it easier? I've searched Google for hours and checked loads of Database scripts on sites like Hotscripts, but can't find anything. Thanks, Tom -- PHP General Mailing List (http://www.php.net/) To unsu

RE: [PHP] Posting Data to MySQL

2004-06-24 Thread Tom Chubb
database table also has a datepost so I can select from the week ending when I posted them. Thanks to everyone who has responded. Tom -Original Message- From: Robert Sossomon [mailto:[EMAIL PROTECTED] Sent: 24 June 2004 15:30 To: 'Tom Chubb'; [EMAIL PROTECTED] Subject: RE: [PHP] Po

[PHP] Date Select

2004-06-25 Thread Tom Chubb
How can I query a MySQL table to get the latest results from a date field? Basically, I am inserting several records at a time at the end of each week. I want to have a page that displays the results for the last week only. The date format in the field is -MM-DD

[PHP] RE: [PHP-DB] Date Select

2004-06-25 Thread Tom Chubb
Jeffrey, Thanks for this, I've just realised that it's always the same no of inserts, so perhaps I should just order by date then my previous sort field and then limit the result to 20? (It's all 20 results that I need displayed) Thanks, Tom -Original Message- From: [

[PHP] Error Reporting

2004-06-28 Thread Tom Chubb
I ave a strange problem with my error reporting! I have set php.ini to: error_reporting = E_ALL but I don't see any errors. (After I was happy things were working on my Apache Test Server, I uploaded to my web host and discovered errors.) Thanks, Tom -- PHP General Mailing List

[PHP] Send a page using mail()

2004-06-28 Thread Tom Chubb
I've read the manual for the mail function and extensively searched google, but I can't work out how I can email an html page (actually a php page). I want to query a DB and the email the displayed table to the user. Any help most appreciated. Tom -- PHP General Mailing

[PHP] Best table structure

2004-06-30 Thread Tom Chubb
have one row for all 81 variables ($name, 20 x Position, 20 x Artists, 20 x Titles, 20 x Labels.) I know that the latter will be easier to query. Also, without maintenance, the size of the table for the current method will get extremely large. Will that affect server performance? I am still a newbie, so plain explanations would be most appreciated. Thanks very much in advance. Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] call_user_func and call-time pass-by-reference

2004-07-02 Thread Tom Rogers
ar); AN> echo $var; //echoes 0 instead of 1 AN> Is their anyway to do this: AN> call_user_func("fun", &$var); AN> Thanks for any help with this! AN> Andrew Nagy With call_user_function() you need to do this: call_user_func("fun", &$var); -- regards, To

Re[2]: [PHP] call_user_func and call-time pass-by-reference

2004-07-02 Thread Tom Rogers
Hi, Saturday, July 3, 2004, 3:00:22 AM, you wrote: AN> Tom Rogers wrote: >>With call_user_function() you need to do this: >> >>call_user_func("fun", &$var); >> >> AN> Tom, this won't work due to the Call-Time Pass-By-Reference deprecatio

Re: [PHP] Session tracking and multiple form updates

2004-07-04 Thread Tom Rogers
can not be changed. MG> Thanks. MG> Michael. store it in the session like: $_SESSION[session_id()]['dbkey'] = $dbkey; then get it back with $dbkey = (isset($_SESSION[session_id()]['dbkey']))? $_SESSION[session_id()]['dbkey'] : 0; -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Web Mail

2004-07-05 Thread Tom Rogers
AG> Does anyone know a good PHP-based (free if possible) web mail other than IAG> UebiMiau that they would recommend? IAG> Best wishes, IAG> Ian I have used this in the past with good results http://thegraveyard.org/vamp/ -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] call_user_func and call-time pass-by-reference

2004-07-07 Thread Tom Rogers
uot;After:$var"; ?> What version of PHP are you using? -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to specify compiler options on Win32

2004-07-08 Thread Tom Rogers
t;I am not young enough to know everything." - Oscar Wilde php-x.x.x/main/config_w32.h is where they are set, but I don't think --enable-memory-limit will work in windows (at least I couldn't get it to report anything meaningfull :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[3]: [PHP] How to specify compiler options on Win32

2004-07-08 Thread Tom Rogers
Hi, Thursday, July 8, 2004, 7:38:49 PM, you wrote: RD> Hello Tom, RD> I have to admit I did look in there, but couldn't see anything RD> relating to it (or how to specify it). But if it doesn't work on RD> Windows anyway then I guess it's not much use! :) RD> Best

Re: [PHP] Re: [Q] Why does my php file gets displayed instead of executed

2004-07-11 Thread Tom Rogers
Hi, Monday, July 12, 2004, 10:28:59 AM, you wrote: MTP> Here is some additional info: MTP> My other PHP scripts execute just fine, including the php script init.php MTP> which uses header(...) to dispatch to the member_login.htm page. Recall that MTP> the problem arises when validate_member_login

Re: [PHP] placing values in html teaxtarea

2004-07-12 Thread Tom Rogers
://www.php.net/) HDD> To unsubscribe, visit: http://www.php.net/unsub.php the text has to go between the like -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Disk serial number

2004-07-22 Thread Tom Rogers
Buffer).") Serial number $serialNo\n"; ?> (The stock win32api dll will probably crash with that many variables so let me know if you want a working version.) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] adding "Back to Search results" link

2007-08-16 Thread Tom Rogers
. Once they make changes, they would like to go back to the search D> results, instead of having to run the same search again and again. Have form 3 open in a new window and they just close it when finished leaving the original on form 2. -- regards, Tom -- PHP General Mailing List (http://ww

[PHP] Merging PDF Documents

2007-09-24 Thread Tom Chubb
timesheets instead of different files every week. What I'd like to know is which function I can use on PHP4? Is it PDF_begin_page_ext? Any help appreciated. Thanks, Tom -- Tom Chubb [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] Merging PDF Documents

2007-09-24 Thread Tom Chubb
Unfortunately I can't use shell or install anything on my shared box. Any other suggestions? On 24/09/2007, George Pitcher <[EMAIL PROTECTED]> wrote: > Tom, > > I use a Java app called itext to merge PDFs. In my case, it's to add a PDF > cover created in PHP to a file

Re: [PHP] trouble trying to connect to gmail server.

2007-09-27 Thread Tom Chubb
gmail as I am unable to access it at work as the Gmail site is blocked so please let me know if you find a successful way of connecting! Thanks, Tom On 27/09/2007, Fábio Generoso <[EMAIL PROTECTED]> wrote: > *Hi Cris,* > > *I have tried to use:* > > *$mbox = > imap_open(&#x

Re: [PHP] strpos error (I'm missing something obvious)

2007-10-01 Thread Tom Swiss
"If needle is not found, strpos() will return boolean FALSE." Checking strpos($foo,$bar) !== False is exactly right; since 0 == False, you want to use !==, not !=. -- Tom Swiss / tms(at)infamous.net / www.infamous.net / www.unreasonable.org "What's so funny abo

[PHP] possible GMP bug?

2007-10-01 Thread Tom Swiss
hat's why it doesn't work!", would be greatly appreciated. Thanks! -- Tom Swiss / tms(at)infamous.net / www.infamous.net / www.unreasonable.org "What's so funny about peace, love, and understanding?" - Nick Lowe "Power to the Peacefu

Re: [PHP] inserting ´ in a db

2007-10-03 Thread Tom Swiss
DB - especially DB_common::quoteSmart() or the more modern http://pear.php.net/package/MDB2 I'm still partial to DB but suppose I will eventually have to move to MDB2. -- Tom Swiss / tms(at)infamous.net / www.infamous.net / www.unreasonable.org "What's so funny about

[PHP] Re: The Context of 0

2007-10-03 Thread Tom Swiss
uot;x equals y" and "x is identical to y", and the implicit type conversions that occur. Novices, study http://www.php.net/manual/en/language.operators.comparison.php http://www.php.net/manual/en/language.types.type-juggling.php until you grok why gives 0 == False 1 == True -1 == True

Re: [PHP] Php session settings

2007-10-06 Thread Tom Friedhof
hing which CMS to use, don't forget to check out Drupal at http://drupal.org. You can learn a lot about PHP by diving into a well written project. The Drupal code is very clean and organized. Tom Friedhof On 10/6/07, Jeff Benetti <[EMAIL PROTECTED]> wrote: > > SERVER_SOFTWARE

Re: [PHP] Moodle: Add field to user listing

2007-10-07 Thread Tom Friedhof
You will probably get better luck in getting an answer to this question by mailing the Moodle mailing list or forums. On 10/7/07, RalfGesellensetter <[EMAIL PROTECTED]> wrote: > > Dear list, > > is there any approach to patch any PHP files within moodle in order to > gain further columns for the u

Re: [PHP] Something you can do with AJAX + PHP as well

2007-10-08 Thread Tom Friedhof
I had to download the video and open it up in VLC to play. I'm on Mac OS X, not sure what windows program will open it. Tom Friedhof On 10/8/07, Jim Lucas <[EMAIL PROTECTED]> wrote: > > Mark wrote: > > Hey, > > > > I've made a nice video where you see

Re: [PHP] Help securing a server : Owned by W4n73d H4ck3r

2007-11-09 Thread Tom Chubb
Me too. Guess a lot of us can learn something here from another's misfortune. Thanks Robert and good luck On 09/11/2007, Edward Kay <[EMAIL PROTECTED]> wrote: > > > > > > I'd be interested in reading this thread. OK with me to keep it > > on the list. > > > > Ditto. > > -- > PHP General Mailing L

[PHP] Gallery Script

2007-11-27 Thread Tom Chubb
Hi all, I have a working gallery script which reads a directory then shows all thumbnails, each linking to the full size image. I'm trying to change it so that the page shows an image (fullsize) then links to the previous/next images in the sequence & then all the thumbnails below (the bit that's w

Re: [PHP] Re: Gallery Script

2007-11-27 Thread Tom Chubb
On 27/11/2007, Colin Guthrie <[EMAIL PROTECTED]> wrote: > Tom Chubb wrote: > > Hi all, > > I have a working gallery script which reads a directory then shows all > > thumbnails, each linking to the full size image. > > I'm trying to change it so that the p

Re: [PHP] Re: Gallery Script

2007-11-27 Thread Tom Chubb
al pictures, you could add the prev and > next files to the link: > > > $pictureLink = " href="picture.php?picture=pic2.jpeg&prev=pic1.jpeg&next=pid3.jpeg">Picture > 2 > > Make sense? > > -Andrew > > > PS - You could also google "PHP

[PHP] Glob

2007-11-29 Thread Tom Chubb
Please can someone help me understand the following: I have 4 images with a .jpg extension in a folder. The following reads all four: $files = glob("thumbs/{*.gif,*.jpg,}",GLOB_BRACE); All good, however, I noticed that if the extension is in capital letters, eg .JPG it doesn't work. Apparently thi

Re: [PHP] Glob

2007-11-29 Thread Tom Chubb
On 29/11/2007, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Thu, 2007-11-29 at 17:19 +, Tom Chubb wrote: > > Please can someone help me understand the following: > > I have 4 images with a .jpg extension in a folder. > > The following reads all four: > > $

Re: [PHP] Command-line PHP script CPU usage goes sky-high, stays there--why?

2007-12-10 Thread Tom Rogers
conds. RF> Anyway, although the number of child processes isn't concurrent, RF> would there be a problem with the number of historical child RF> processes in view of ulimits or kern.maxfilesperproc? RF> Anyway suggestions, tips, or links are much appreciated. Thanks. RF> ...Rene Put a usleep(1000) in the listen while() loop and give the cpu a break. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    10   11   12   13   14   15   16   17   18   19   >