Re: [PHP] Phpmyadmin password

2008-12-17 Thread Jim Lucas
your password. > > http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html > > Thank you, > Micah Gersten > onShore Networks > Internal Developer > http://www.onshore.com > > > That is the case, but only if the op is using http auth if they are using config

[PHP] Variable Scope problem passing function parameters

2008-12-18 Thread Jim McIntyre
= $body; return $phpMail->Send(); } } As far as I can tell, it sends an essentially blank email to nobody (but returns true. If I replace any of my function variables with strings, like this: $phpMail->AddAddress('m...@example.com'); the email actually "gets&quo

Re: [PHP] Variable Scope problem passing function parameters

2008-12-18 Thread Jim McIntyre
metastable wrote: Jim McIntyre wrote: $phpMail = new PHPMailer(); $phpMail->From = $from; $phpMail->AddAddress($this->to); $phpMail->Subject = $subject; $phpMail->Body = $body; return $phpMail->Send(); $this -> to it has no meaning in th

[PHP] SOLVED Re: [PHP] Variable Scope problem passing function parameters

2008-12-18 Thread Jim McIntyre
Jim McIntyre wrote: metastable wrote: Jim McIntyre wrote: $phpMail = new PHPMailer(); $phpMail->From = $from; $phpMail->AddAddress($this->to); $phpMail->Subject = $subject; $phpMail->Body = $body; return $phpMail->Send(); Never mind - I found the

Re: [PHP] Re: HTTP Error 500 - IsapiModule

2008-12-19 Thread Jim Lucas
= mysql_connect() or die(mysql_error()); Mind you that the above is not recommended in production code. But, it works for trying to figure out this type of problem. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them.&quo

Re: [PHP] IE8 and HTML5

2008-12-19 Thread Jim Lucas
27;s a feature and that thrashing was > chrome indexing (read harvesting information) your hard drive. > > Mark > This is why I removed it from my system. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them."

Re: [PHP] Regular expressions (regex) question for parsing

2008-12-22 Thread Jim Lucas
> non-matched lines are saved... > > Any ideas, what's the best way to go about this? Preg_matc, preg_split > or something incorporating explode? > > Rene > Something along the line of this? $line ) { if ( preg_match('|^\$.* %\\\r\\\n$|', $line ) ) {

Re: [PHP] Help with a Search Function

2008-12-24 Thread Jim Lucas
derID FROM pd_textad WHERE WorkOrderID<>'' "; > if (!empty($CustomerName)) { > $sql .= "AND Customer LIKE '%". $CustomerName ."%' "; > } > if (!empty($SalesRep)) { > $sql .= "AND

Re: SV: [PHP] Round to a given value?

2008-12-25 Thread Jim Lucas
Anders Norrbring wrote: On Wed, 2008-12-24 at 20:38 +0100, Anders Norrbring wrote: Rounding an integer to the closest divisor by ten is easy with round() and a negative precision, but I turn out to be lost if I want to round to a given number.. Example, round to the closest 5000, or close

Re: [PHP] What does

2008-12-28 Thread Jim Lucas
i.e., after ?>): > > > > I receive a: > > Parse error: syntax error, unexpected T_STRING > > What's up with that? Apparently the php interpreter is considering > " something else? > > Cheers, > > tedd > short tags are enabled. Disable them i

Re: [PHP] IE Problem Detecting Post Variables

2008-12-31 Thread Jim Lucas
tion... You have your grey button associated with your "Default Theme" button and you have your default button associated with your "Alternate Theme" button Is this correct? -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatne

Re: [PHP] system() Question

2008-12-31 Thread Jim Lucas
ss by reference is, not saying that the function is used that way. My apologies. no worries So help me God, if you two don't stop fighting, I'm going to turn this car around (;-P) Getting in some practice for new little one? :) Happy New Year to all, and to all a safe night

Re: [PHP] Posting Data?

2009-01-02 Thread Jim Lucas
ser, then you should look into the Firebug for FF. It allows you to modify page content and then resubmit it. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by Wil

Re: [PHP] How to count transfered kBytes in File-Download

2009-01-02 Thread Jim Lucas
wnloads 2) how to allow users to make partial downloads any suggestions? Oh, I should note, that the URL's looks like: /?what=music&where=h§ion=foo&name=I_love_php5.ogg and the input to the function is already sanitized. Thanks, Greetings and nice Day/Evening Miche

Re: [PHP] Please point me in the right direction

2009-01-02 Thread Jim Lucas
php and ask if it isn't the best solution? David Hope the above helps. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare -- PHP Genera

Re: [PHP] Re: Re: How to count transfered kBytes in File-Download

2009-01-04 Thread Jim Lucas
Michelle Konzack wrote: Hello Eric, Am 2009-01-04 14:33:37, schrieb Eric Butera: On Sun, Jan 4, 2009 at 1:39 PM, Michelle Konzack wrote: [ '/usr/share/tdphp-vserver/includes/02_functions.inc' ] function fncPushBinary($type='show', $file, $mime='') { $BUFFER=1024;

Re: [PHP] How to count transfered kBytes in File-Download

2009-01-05 Thread Jim Lucas
lling flush() after each echo, just to make sure that they don't run over PHPs memory limit. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-07 Thread Jim Lyons
pera and Safari: > http://www.rgraph.org (Updated January 4th) > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/mysql?unsub=jlyons4...@gmail.com > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: [PHP] XML package on PHP

2009-01-07 Thread Jim Lucas
nk you for any hints. > > Best regards, > > Merlin > Give this a shot http://www.cmsws.com/examples/xml/xml2php/xml2php2xml-2005-09-09.tar.gz if you go to http://www.cmsws.com/examples/xml/xml2php/example.php you can see an example of the output -- Jim Lucas "Som

Re: [PHP] can a session be used in a query?

2009-01-07 Thread Jim Lucas
;]; //to print out the value of column > 'var1' for each record > } > }else{ > echo 'No records found.'; >} > ?> > > anyone have ideas for me, the session user is working, and I need to use it > in the query to pull only

Re: [PHP] Adressing XML Objects

2009-01-07 Thread Jim Lucas
know which xml library you are using. i >> believe you said youre running php4 earlier, right? >> >> so which xml library have you settled on? >> >> btw; php4 has DOMXML as a native extension, but the api is a bit >> cumbersome. >> >> -nathan >&

Re: [PHP] Adressing XML Objects

2009-01-07 Thread Jim Lucas
Jim Lucas wrote: > Merlin Morgenstern wrote: >> Hello Nathan, >> >> I upgraded to PHP 5, so I am using nativ support. >> >> Best regards, Merlin >> >> Nathan Nobbe schrieb: >>> On Wed, Jan 7, 2009 at 1:10 PM, Merlin Morgenstern >>

Re: [PHP] redoing website after 7 years

2009-01-07 Thread Jim Lucas
by turning register_globals back on would be of no concern. To me, all the above sounds logical. If I am missing something, please point it out. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II,

Re: [PHP] redoing website after 7 years

2009-01-08 Thread Jim Lucas
Robert Cummings wrote: > On Wed, 2009-01-07 at 16:16 -0800, Jim Lucas wrote: >> Nathan Rixham wrote: >>> Richard Heyes wrote: >>>>> but, I'm more concern does client has to pay the changes/upgrade or >>>>> it's still "my obligati

Re: [PHP] [SOLVED] Re: can a session be used in a query?

2009-01-08 Thread Jim Lucas
tp://ancientstones.com http://earthstones.com > > > Umm, example of the solution that actually works would be great. I understand what you are saying, but the in six months the guy that is having this same/similar problem will be looking at the above code snippet and ask hi

Re: [PHP] header("Location: ") wont show up in logs of either server

2009-01-08 Thread Jim Lucas
gt; Any ideas? > > Make sure you are looking at the right log file. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing

Re: [PHP] mysqli_query and mysqli_fetch_array

2009-01-08 Thread Jim Lucas
$results->close(); } else { die("Query Error: ".$dbc->error . " Q={$q}"); } $dbc->close(); ?> I have never used mysqli_* before, so I'm not sure if this is going to do what I think it is, but it should start you down the road to recovery

Re: [PHP] header("Location: ") wont show up in logs of either server

2009-01-08 Thread Jim Lucas
i can see the data coming back from someserver.com Again, make sure you are checking the right log file. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespe

Re: [PHP] Editing in a text area field

2009-01-09 Thread Jim Lucas
S or PDF or other output mechanisms. > > Consider their input as sacrosanct (except for dangerous/evil input). > > -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V b

Re: [PHP] is_readable() returns 1 if file is still uploading

2009-01-10 Thread Jim Lucas
status? I tried is_readable(), but this only returns false if the file is missing. It will also return false if your user doesn't have permission to read the file. This is the error msg from php: parser error : Premature end of data thank you for any help. regards, merlin -- Jim

Re: [PHP] Need List Advice

2009-01-19 Thread Jim Lucas
elpful contributor to the list in > general will buy you some Brownie Points[tm]. > Hey, are those Brownie Points calculated by "your" software? Isn't that a little weighted to your favor? On a side note: Are you going to bring the weekly summary tool back online any tim

Re: [PHP] New PHP User with a simple question

2009-01-25 Thread Jim Lucas
c-content.html The second is with Javascript and/or CSS http://www.devarticles.com/c/a/HTML/Preloading-HTML-Content-with-CSS/ http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm Hope these help. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some

Re: [PHP] New PHP User with a simple question

2009-01-26 Thread Jim Lucas
imple* answer. If you have to give him provisos >> about security, OOP, or Javascript afterward, fine. >> >> Paul >> >> -- >> Paul M. Foster >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/un

Re: [PHP] profiler web server

2009-01-26 Thread Jim Lucas
soussou97 wrote: > Hi; > > I have a web server (apache 2.2 + PHP5) which process must be watched for > measuring the perf ? > > Regards; All I see here is a statement. Do you actually have a question for us? -- Jim Lucas "Some men are born to greatness, some achiev

[PHP] Re: Re : [PHP] profiler web server

2009-01-27 Thread Jim Lucas
djamel boussebha wrote: > Hi Jim; > > My question is : if you have a server where is installed : apache2 + PHP5 and > if you execute of load/stress tests on this server => Except the system > resources of the server (CPU, RAM, ..), which are other component to watch > (fo

Re: [PHP] Empty $_REQUEST

2009-01-27 Thread Jim Lucas
AND passwd='$hashed'"; Change that last line to this: AND passwd=md5('{$passwd}')"; > $result=issue_query($query); > if (pg_num_rows($result)==0) { > $_SESSION['status']='bad'; > header("location

Re: [PHP] Connection error on URI

2009-01-28 Thread Jim Lucas
rks fine. > > Any suggestions would be greatly appreciated. > > Peace, Love & Curly Fries, > Skip > > -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V

Re: [PHP] Re: New to PHP question

2009-01-28 Thread Jim Lucas
', $total); >> ?> >> >> Thanks for the help everyone. > > It has specifically to do with how the browser renders the page. part of > the spec for rendering is that newlines are ignored, and the only way to get > a line to break in a browser window is with the

Re: [PHP] Re: help with end of line charater

2009-01-30 Thread Jim Lucas
y didn't press enter, a \r\n will be added, > and even if they did add press enter on the last line, it'll be stripped > out upon viewing the list of email addresses. > > > Taking your code, reworking it a little, this is what I came up with. Saving Page{$msg}"; ?> Hope this helps -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: help with end of line charater

2009-01-31 Thread Jim Lucas
n or not. > > Cheers, > > tedd > > I don't think majordomo can talk to a DB can it? Or maybe he doesn't want to configure it to do so even if it can. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon

Re: [PHP] Blank page of hell..what to look for

2009-02-02 Thread Jim Lucas
e other way is to cut/paste your code into sections. Cut out a large chunk of it, see if it works, if it does, paste it back in and remove a smaller chunk, rinse/repeat until your find the error of your ways... :) Better yet, use a IDE the does code highlighting. This would point you to the p

Re: [PHP] Is it possible to send POST vars through a header redirect?

2009-02-03 Thread Jim Lucas
gt; > Thanks, T > > No, it is not possible. You will need to look into cURL or something else. But it cannot be done via the header() function. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twe

Re: RES: [PHP] Mutiple SQL request

2009-02-04 Thread Jim Lucas
r. Example: if this runs a logon and you have 100 or 1000 users logging > on at roughly the same time, then you will have contention for the > resources. > > Can you check your indeces and run explain plans on the queries to see if > any of them can be optimised to run quicker? >

Re: RES: [PHP] Mutiple SQL request

2009-02-04 Thread Jim Lucas
y both need to be specified /in the same/ index for and index to be used. Otherwise, some random index might be used. But you will get the best performance if both are listed in the same index. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some

Re: [PHP] Passing an undetermined amount of arguments by reference

2009-02-04 Thread Jim Lucas
, $d); > > Than > > $a = escape($id, a); > > and so forth. > > Does this make sense? Is it possible to do? > > Thanks in advance, > Jay > -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust

Re: [PHP] Passing an undetermined amount of arguments by reference

2009-02-04 Thread Jim Lucas
Jay Moore wrote: > Shawn McKenzie wrote: >> Jay Moore wrote: >>> Jim Lucas wrote: >>>> Jay Moore wrote: >>>>> Greetings list. >>>>> >>>>> Say I have a function that escapes a string before being pas

Re: [PHP] Reg-ex help

2009-02-04 Thread Jim Lucas
[1] => seg [2] => title ) [1] => Array ( [0] => {:seg 'title' cache:} [1] => seg [2] => title [3] => cache ) ) Hope this starts you down the right path. -- Jim Lucas &quo

Re: [PHP] Connect local app to a web app

2009-02-05 Thread Jim Lucas
the data back and save into localhost database. > > Mysql replication... :) -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Maili

Re: [PHP] Connect local app to a web app

2009-02-05 Thread Jim Lucas
Paul >>> >>> -- >>> Paul M. Foster >>> >>> -- >>> PHP General Mailing List (http://www.php.net/) >>> To unsubscribe, visit: http://www.php.net/unsub.php >>> >>> >> You can set up a web service using XML-RPC

Re: RES: [PHP] Connect local app to a web app

2009-02-05 Thread Jim Lucas
, with socks, XML, XML-RPC. > > Thanks > > Zechim. > > -----Mensagem original- > De: Jim Lucas [mailto:li...@cmsws.com] > Enviada em: quinta-feira, 5 de fevereiro de 2009 18:13 > Para: Alpár Török > Cc: Paul M Foster; php-general@lists.php.net > Assunto: R

Re: [PHP] How can I use a function's default arguments but change one of the end ones in the list?

2009-02-05 Thread Jim Lucas
o your thing... } This allowed for us to include/exclude whatever we wanted from the it is a little long winded to get to what you are looking for ( I think ) But it worked for us. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness

Re: [PHP] Read a XML (not a file)

2009-02-06 Thread Jim Lucas
echim > > test.php mind you that the header() call within the include is going to change the default headers(), so be sure to reset the content-type one you come out of the include file. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and

Re: [PHP] preg_match question...

2009-02-06 Thread Jim Lucas
that you need to match on some of the text, give us an example of the text that you are trying to match. And give us examples of the input text you are trying to match to. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon th

[PHP] paging

2009-02-09 Thread Jim Douglas
Does anyone have a link to any examples of paging? I have this example up and running, http://www.w3schools.com/php/php_ajax_database.asp I have paging working as below, my problem is when I add a CSS style sheet I now have 4 panes. How can I direct the paging results to the "content

RE: RES: [PHP] paging

2009-02-10 Thread Jim Douglas
lto:tedd.sperl...@gmail.com] > Enviada em: terça-feira, 10 de fevereiro de 2009 11:26 > Para: Jim Douglas; php-general@lists.php.net > Assunto: Re: [PHP] paging > > At 3:26 AM + 2/10/09, Jim Douglas wrote: > >Does anyone have a link to any examples of paging? > >

RE: [PHP] paging

2009-02-10 Thread Jim Douglas
" pane. I have a CSS that has left, right, header, footer and a "content" pane". After I click on the drop down it outputs to the "content" pane just fine. Thanks, Jim > Date: Tue, 10 Feb 2009 08:26:23 -0500 > To: jd...@hotmail.com; php-general@lists.php.net

Re: [PHP] Re: Reverse IP lookup

2009-02-16 Thread Jim Lucas
esy | OS/2 >>* Killfiling google & banter.com: jonz.net/ng.htm >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > This one too. http://www.robtex.com/ip/XX.XX.XX

Re: [PHP] display_errors and error_reporting not enough?

2009-02-17 Thread Jim Lucas
o set it in every script during runtime as you > mentioned. > I would look at doing this only for a testing area, but not for a production area. If they are one in the same, then you could setup to different sub domains, one for testing and one for production. They can point to the

Re: [PHP] Full versus relative URLs

2009-02-17 Thread Jim Lucas
>> > for that matter, you could use variables to specify the relative path to make it absolute within each of the production and dev environments. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." T

Re: [PHP] php cli memory leak error

2009-02-17 Thread Jim Lucas
ript=./bcom.php > === Total 1 memory leaks detected === > > This is hosted on a FreeBSD 7 machine with: > PHP 5.2.8 with Suhosin-Patch 0.9.6.3 (cli) > > Anyone knows what is happening ?? > I have to mention that the array is printed as expected. > how are you call it? What

Re: [PHP] php cli memory leak error

2009-02-17 Thread Jim Lucas
ents are you passing? etc... >> >> Show us your command line params... >> >> > > I am calling it from the command line like this: > > ./bcom.php -f test -d test -o test > > :-) > > But it really doesn't matter because it seems to leak e

Re: [PHP] Opinions Please, Describing PHP as Web Framework of C and C++

2009-02-17 Thread Jim Lucas
of Assembly language. >>> >>> >> Hahaha that was a good one Shawn. I almost fall of the chair :-) . > > What's so funny? Assembly is just a framework for microcode. > > Cheers, > Rob. So, what is the level that actually polarizes the sectors on th

Re: [PHP] Having trouble with a multidimensional array menu

2009-02-18 Thread Jim Lucas
Daevid Vincent wrote: I'm trying to build a multi-array menu (but open to using classes or something if that makes this easier). Does anyone have a solution already working? I'm very close, but I can't seem to get my "directories" to work and I end up with extraneous blocks. here's what I need

Re: [PHP] Having trouble with a multidimensional array menu

2009-02-18 Thread Jim Lucas
Daevid Vincent wrote: I'm trying to build a multi-array menu (but open to using classes or something if that makes this easier). Does anyone have a solution already working? I'm very close, but I can't seem to get my "directories" to work and I end up with extraneous blocks. here's what I need

Re: [PHP] ms-word reading from PHP on linux O.S

2009-02-23 Thread Jim Lucas
ho $extracted_plaintext; # if you want to see your paragraphs in a web page, do this echo nl2br($extracted_plaintext); fclose($fh); } } This will grab the plain text out of a word document. Version 97' - 2003' It

[PHP] help installing phpDocumentor

2009-02-23 Thread jim white
I have tried to install phpDocumentor, but am having problems getting it to run. Finding install directions has so far eluded me. Are there any installation instructions for this? Jim White -- James (Jim) B. White tel: (919)-380-9615 homepage: http://jimserver.net/ -- PHP General

Re: [PHP] help installing phpDocumentor

2009-02-23 Thread Jim Lucas
jim white wrote: > I have tried to install phpDocumentor, but am having problems getting it > to run. Finding install directions has so far eluded me. Are there any > installation instructions for this? > > Jim White > > > searching google for install phpDocumentor fi

Re: [PHP] help installing phpDocumentor

2009-02-23 Thread jim white
Jim Lucas wrote: jim white wrote: I have tried to install phpDocumentor, but am having problems getting it to run. Finding install directions has so far eluded me. Are there any installation instructions for this? Jim White searching google for install phpDocumentor first result

Re: [PHP] help installing phpDocumentor

2009-02-23 Thread Jim Lucas
jim white wrote: > Jim Lucas wrote: >> jim white wrote: >> >>> I have tried to install phpDocumentor, but am having problems getting it >>> to run. Finding install directions has so far eluded me. Are there any >>> installatio

Re: [PHP] help installing phpDocumentor

2009-02-23 Thread jim white
Jim Lucas wrote: jim white wrote: Jim Lucas wrote: jim white wrote: I have tried to install phpDocumentor, but am having problems getting it to run. Finding install directions has so far eluded me. Are there any installation instructions for this? Jim White

Re: [PHP] help installing phpDocumentor

2009-02-23 Thread Jim Lucas
Back on the list... jim white wrote: > Jim Lucas wrote: >> jim white wrote: >> >>> Jim Lucas wrote: >>> >>>> jim white wrote: >>>> >>>> >>>>> I have tried to install phpDocumentor, but am having pro

Re: [PHP] help installing phpDocumentor

2009-02-23 Thread jim white
Jim Lucas wrote: Back on the list... jim white wrote: Jim Lucas wrote: jim white wrote: Jim Lucas wrote: jim white wrote: I have tried to install phpDocumentor, but am having problems getting it to run. Finding install directions has so far

Re: [PHP] syntax

2009-02-24 Thread Jim Lucas
rget=_TOP>http://badge.facebook.com/badge/1542024891.237.919247960.png"; border=0 > alt="Terion Miller's Facebook profile"> > Vince Lombardi - "Winning is habit. Unfortunately, so is losing." > Nobody has asked to confirm, but what format is `stamp`?

Re: [PHP] syntax

2009-02-24 Thread Jim Lucas
Terion Miller wrote: Nobody has asked to confirm, but what format is `stamp`? Unix Timestamp, MySQL Timestamp, MySQL Date stamp??? -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Sce

Re: [PHP] syntax

2009-02-24 Thread Jim Lucas
Jim Lucas wrote: Terion Miller wrote: Nobody has asked to confirm, but what format is `stamp`? Unix Timestamp, MySQL Timestamp, MySQL Date stamp??? -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Nig

Re: [PHP] RE: non-auto increment question

2009-02-25 Thread Jim Lucas
PJ wrote: From: PJ [mailto:af.gour...@videotron.ca] Sent: Wed 2/25/2009 2:01 PM To: MySql; php-general@lists.php.net Subject: non-auto increment question I want to insert a new table entry 1 number higher than the highest in the field (id). I cannot use auto-increment. And I want to show the v

Re: [PHP] RE: non-auto increment question

2009-02-25 Thread Jim Lucas
Jim Lucas wrote: PJ wrote: From: PJ [mailto:af.gour...@videotron.ca] Sent: Wed 2/25/2009 2:01 PM To: MySql; php-general@lists.php.net Subject: non-auto increment question I want to insert a new table entry 1 number higher than the highest in the field (id). I cannot use auto-increment. And I

[PHP] Re: catch the error

2009-02-26 Thread Jim Lyons
tabase and > table, I get the same error message. > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: [PHP] Get a list of column field names from a MS Access table

2009-02-28 Thread Jim Lucas
you how... -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: "use strict" or similar in PHP?

2009-03-01 Thread Jim Lucas
hen passing parameter separately with database doing necessary escaping and everything). Is there something like PHPDBC similar to JDBC? TIA, Hans End Quote; Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Intermittent problem sending mail with PHP

2009-03-03 Thread Jim Lucas
Stephen Hutchison wrote: I'll check with my ISP but if is that then it's a very low limit. I'm finding it's only allowing two or three through before hanging. Is there something i can put in my code so that it at least fails gracefully? It's not a good look just hanging like that. Thanks Ste

Re: [PHP] Assign 2 values from Mysql to an array

2009-03-06 Thread Jim Lucas
;> >> >> I dont know something like that, maybe Im over comlicating the question > now >> even, the main thing is wondered was in the first place was with a > standard >> query and variable assign, from the query like: >> >> select country,name,population

Re: [PHP] Unexplained Issue Using Regex

2009-03-06 Thread Jim Lucas
2000821351'; $urls[] = 'http://www.veoh.com/videos/v4609719YfsCFpf'; $url_paths = array(); foreach ( $urls AS $id => $url ) { $url_paths[$id] = parse_url($url, PHP_URL_PATH); } print_r($url_paths); foreach ( $url_paths AS $paths ) { list( , ,$value) = explode('/&

Re: [PHP] Unexplained Issue Using Regex

2009-03-06 Thread Jim Lucas
Jim Lucas wrote: > Nitsan Bin-Nun wrote: >> Hi lista, >> >> I have been trying to figure this out for the last couple of hours but I'm >> lack of luck. >> Take a look at these regex's, the string that was inputed into the >> preg_replace (using Uis

Re: [PHP] insert array values

2009-03-06 Thread Jim Lucas
d: '.mysql_error($dblink); } } } else { # Show why my book SQL entry failed echo "Book insert failed: ".mysql_error($dblink); } ?> That is about as best as can be explained. BTW - I took away the quotes around your values in your secon

Re: [PHP] PHP and named groups in regex/PCRE

2009-03-06 Thread Jim Lucas
gt; [bar] => xyz > [3] => xyz > ) > > This needs to be directed to whomever it was about six months ago that was asking about this. They were trying to figure out how to do this, but I believe they were told that it could not be done. Nice example! -- Jim Lucas

Re: [PHP] insert array values

2009-03-08 Thread Jim Lucas
PJ wrote: Jim Lucas wrote: PJ wrote: 9el wrote: On Sat, Mar 7, 2009 at 5:37 AM, PJ mailto:af.gour...@videotron.ca>> wrote: I've done some rethingking and this may be the direction to go: What I need to wind up with is something like this: $sql = &

Re: [PHP] assign array values to variables

2009-03-09 Thread Jim Lucas
27;; } ?> Wow, now that took one foot work. I combed over the past couple threads that you started to collect all the information for the above code. obviously you will need to change the SQL statements a little, but the code should pretty much work once you update the SQL for your actual column names and the related bits to that display code. Hope this points when you should and (in this case) should not use a JOIN in your SQL. -- Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RE: non-auto increment question

2009-03-12 Thread Jim Lucas
ook at the description of the link_identifier. It talks about the link_identifier being the database connection handler, not the resulting resource that is returned from a call to mysql_query(). Change the value you are passing to mysql_insert_id() to be the $db variable instead of the $resul

Re: [PHP] RE: non-auto increment question

2009-03-15 Thread Jim Lucas
PJ wrote: haliphax wrote: On Fri, Mar 13, 2009 at 1:24 PM, PJ wrote: Jim Lucas wrote: PJ wrote: am resending as this was erroneously ccd to mysql. sorry! Ashley Sheridan wrote: On Thu, 2009-02-26 at 11:27 -0500, PJ wrote: Jerry Schwartz wrote: Being rather new to all this, I understood

Re: [PHP] Anyone know of a project like Redmine written in PHP?

2009-03-17 Thread Jim Lucas
ogle.com/p/jotbug/ byebye 2009/3/17 mike : http://www.redmine.org/ Looks pretty useful; I want one in PHP though. Anyone? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Jim Lucas "Some men are born to greatness, some ac

Re: [PHP] Importing Data with Field Names

2009-03-20 Thread Jim Lucas
revDAVE wrote: Newbie... I have phpmyadmin... I'm basically looking for a quick way to import records and avoid hand- typing many field names (I can set the field types later) Is there a way to import into mySql with let's say a csv file - (or Tab delimited file) and have the first row be

Re: [PHP] Re: today i found the best function I've ever seen

2009-03-20 Thread Jim Lucas
Shawn McKenzie wrote: Daniel Brown wrote: On Fri, Mar 20, 2009 at 20:06, Shawn McKenzie wrote: How is best to update all of my code to use this new function? Should I just search and replace 'mysql_real_esacpe_string(' with 'clean_sql_term(' or does this replace all of my validations on in

[PHP] flushing AJAX scripts

2009-03-26 Thread jim white
(); echo json_encode(array("time"=>$now, "message"=>"Report has started running!")); ob_end_flush(); However, the script does not respond and (I suppose close the connection) until the report is complete. How can I fix this behaviour? Jim -- James (Jim) B. Whit

Re: RE: [PHP] flushing AJAX scripts

2009-03-27 Thread jim white
abase? Jim Andrea Giammarchi wrote: Some browser would like to receive at list N characters (bytes) even if you force the flush, before the browser will show those characters. In any case, the Ajax request will not be completed until its readyState will be 4, which means the page execution o

Re: RE: [PHP] flushing AJAX scripts

2009-03-27 Thread jim white
the report even if the original request shuts down after 3-4 minutes. Jim Andrea Giammarchi wrote: Sorry Jim, I meant Jim when I wrote Kim ... and Phico: http://webreflection.blogspot.com/2008/04/phomet-changes-name-so-welcome-phico.html Regards From: an_...@hotmail.com To: php-ge

Re: [PHP] Sort a multi-dimensional array on a certain key followed by another key

2009-03-27 Thread Jim Lucas
] = '11103'; $d[1][115][1] = '11101'; $d[1][114][3] = '11103'; $d[2][110][2] = '21102'; $d[3][114][2] = '31102'; $d[2][110][1] = '21101'; $d[3][110][3] = '31103'; $d[2][110][4] = '21104'; $d[3][111][4] = '31104'

Re: [PHP] formulate nested select

2009-03-30 Thread Jim Lucas
Chris wrote: PJ wrote: I cannot find anything on google or the manuals/tutorials that gives some kin of clear explanation of how to so nested selects with where or whatever. I have three tables: books, authors and book-authors. I need to retrieve only those books whose author's names begin with

Re: [PHP] Modifying arrays in place that are stdClass arrays

2009-04-06 Thread Jim Lucas
) . [1] => Array ( [partnumber] => 2 [part_object] => stdClass Object . But anyways, my example output might be off a little, but I should be close. give it a try... Jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] difficult select problem

2009-04-06 Thread Jim Lucas
ow['...']; $book_information[$row['id']]['authors'][$row['author_id']] = array('first_name' => $row['first_name'], 'last_name' => $row['last_name']); $book_informatio

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