Re: [PHP] SESSION array problems [THE REASON]

2008-10-02 Thread Jim Lucas
Daniel Brown wrote: And fear not, Sergeant Sperling register_globals is deprecated and is removed as of PHP6. so long, farewell, bye bye -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act

Re: [PHP] SESSION array problems [THE REASON]

2008-10-02 Thread Jim Lucas
Daniel Brown wrote: On Thu, Oct 2, 2008 at 12:57 PM, Jim Lucas [EMAIL PROTECTED] wrote: so long, farewell, bye bye If you say so. Do you realize how many websites are going to break now? ;-P https://www.example.com/secure/shop.php?page=creditcardinfo.php ?php include($page

Re: [PHP] Selecting all records between a date range

2008-10-02 Thread Jim Lucas
always add this... http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_unix-timestamp SELECT * FROMtimeStore WHERE timeinUNIX_TIMESTAMP(DATE_SUB(NOW(),INTERVAL 7 DAYS)) -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have

Re: [PHP] SESSION array problems

2008-10-01 Thread Jim Lucas
($_SESSION['first_name'][$i]); } How about this? Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Wanted PHP Developers LogicManse

2008-09-30 Thread Jim Lucas
address and spammed the hell out of us if they'd wanted. Why do you think they are looking for a programmer... *what's wrong with me 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

Re: [PHP] Time Loop

2008-09-30 Thread Jim Lucas
, '/td'; } # Don't forget to reset the $days array # otherwise the array pointer is at the last index reset($days); echo '/tr'; } echo '/table/form'; ? -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth

Re: [PHP] Wanted PHP Developers LogicManse

2008-09-30 Thread Jim Lucas
Nathan Rixham wrote: Jim Lucas wrote: Nathan Rixham wrote: Richard Heyes wrote: Thanks for quoting the whole message then! :P Maybe he just wanted to make sure you got it... I'm always really tight on these guy's - but it is just somebody offering us a job I guess; they could have scoured

Re: [PHP] Wanted PHP Developers LogicManse

2008-09-30 Thread Jim Lucas
Wolf wrote: Nathan Rixham [EMAIL PROTECTED] wrote: Jim Lucas wrote: Nathan Rixham wrote: Jim Lucas wrote: Nathan Rixham wrote: Richard Heyes wrote: Thanks for quoting the whole message then! :P Maybe he just wanted to make sure you got it... !-- SNIP -- I just wish you guys

Re: [PHP] Sterilizing regexp

2008-09-30 Thread Jim Lucas
[$key][] = FALSE; } } return $result; } ? 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

Re: [PHP] Wanted PHP Developers LogicManse

2008-09-30 Thread Jim Lucas
total for the week. BTW- What happened to your weekly report emails? -- 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

[PHP] OT - Visio Network Charting Application

2008-09-29 Thread Jim Lucas
. I want to know by looking, or reading on the chart, that our Customer #1234 is connected to FSB slot t1-1/0/1:16 on our Juniper M20. So, if anybody has suggestions for software, I'm all ears. TIA -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have

Re: [PHP] Math problems (No not high school math!)

2008-09-25 Thread Jim Lucas
total to that doesn't get reset when the new DAY is started. -- 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

Re: [PHP] Math problems (No not high school math!)

2008-09-25 Thread Jim Lucas
Jason Pruim wrote: On Sep 25, 2008, at 11:28 AM, Jim Lucas wrote: Jason Pruim wrote: So I'm trying to figure out how to do a little math in php to add up the number of hours that people have worked (Still on the timecard for anyone following along at home) I have it inserting time

Re: [PHP] spreadsheets are opened read only

2008-09-24 Thread Jim Lucas
) machine and try to view it then. I think it is a simple mistake of uploading the file when you had it open. -- 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] Re: $this-value VS $value

2008-09-23 Thread Jim Lucas
General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php No -- 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

Re: [PHP] br was [PHP] Re: render html

2008-09-22 Thread Jim Lucas
Philip Thompson wrote: Nothing ever goes between br tags! There should never be a between regarding a br tag -- 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] Function parameters and arrays

2008-09-18 Thread Jim Lucas
($WhereList AS $cond) { $where_parts[] = $cond[0].' '.$cond[1].' '.$cond[2]; } $WHERE = ''; if ( count($where_parts) ) { $WHERE = 'WHERE ' . join(' AND ', $where_parts); } # put it all together. } -- Jim Lucas Some men are born to greatness, some achieve greatness, and some

Re: [PHP] Error message

2008-09-18 Thread Jim Lucas
it is causing the problem. -- 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

Re: [PHP] Re: header

2008-09-16 Thread Jim Lucas
get_http_protocol(); ? That is about as simple as you can get. -- 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

Re: [PHP] The Best PHP Editor.

2008-09-11 Thread Jim Lucas
jmatt wrote: Hi, I was using NVU to edit PHP but when I upload the index.php file back there will always be a slight error in disorientation. Example using NVU I edited the text just a bit then bam..The webpage became really funny What is the best to edit my PHP file? Thanks - Popular free

Re: [PHP] Unsetting variables less then 256 bytes

2008-09-11 Thread Jim Lucas
, try starting your own thread if you have a question. Thanks -- 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

Re: [PHP] pulling data from array

2008-09-08 Thread Jim Lucas
, {allowHtml:true}); } /script/head bodydiv id=chart_div/div/body /html -- 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

Re: [PHP] CSV output.

2008-09-08 Thread Jim Lucas
will see 234.00 in your file. So, the question becomes, what _exactly_ are you doing when you are writing this stuff out. -- 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] PHP: Mulitiple Arrary Sort

2008-09-04 Thread Jim Lucas
Jochem Maas wrote: Diogo Neves schreef: On Wed, Sep 3, 2008 at 12:35 AM, Vernon [EMAIL PROTECTED] wrote: I've gotten the one array down and I've figured out how to sort that array, however, I need to sort the array by the modified date of the file. Here's what I got so far: ?php // Open

Re: [PHP] PHP: Mulitiple Arrary Sort

2008-09-03 Thread Jim Lucas
Jim Lucas wrote: Vernon wrote: I've gotten the one array down and I've figured out how to sort that array, however, I need to sort the array by the modified date of the file. Here's what I got so far: ?php // Open current directory if($handle = opendir($dir)){ // Loop through all files while

Re: [PHP] Google Chrome

2008-09-03 Thread Jim Lucas
Nathan Nobbe wrote: On Wed, Sep 3, 2008 at 3:27 AM, Richard Heyes [EMAIL PROTECTED] wrote: when will Google bring out the Google levitation device...? i heard they programmed it in c++ :) -nathan I would think something that sophisticated should be written in LISP -- Jim Lucas Some

Re: [PHP] PHP: Mulitiple Arrary Sort

2008-09-03 Thread Jim Lucas
; } } } else { echo 'Directory listing call failed!'; } ? Thanks That is because you have to build the array, then sort it, then use it. you are building, using { sorting } So, move the if ( array_multisort() ) call out side and after the foreach loop -- Jim Lucas Some men are born

Re: [PHP] PHP: Mulitiple Arrary Sort

2008-09-03 Thread Jim Lucas
-- 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] PHP: Mulitiple Arrary Sort

2008-09-02 Thread Jim Lucas
Vernon wrote: I've gotten the one array down and I've figured out how to sort that array, however, I need to sort the array by the modified date of the file. Here's what I got so far: ?php // Open current directory if($handle = opendir($dir)){ // Loop through all files while(false !== ($file

Re: [PHP] Re: With regard to: [PHP] ASCII Captcha

2008-08-29 Thread Jim Lucas
Robert Cummings wrote: On Sat, 2008-08-30 at 00:01 -0400, Eric Gorr wrote: No, I will not help you troll. But, I certainly cannot prevent you from doing so. Hopefully the list moderators will shut you down. This is PHP General. We discuss PHP and related issues. CAPTCHA is certainly an

Re: [PHP] comments function being spammed, how do I stop it?

2008-08-26 Thread Jim Lucas
Stut wrote: On 26 Aug 2008, at 15:23, tedd wrote: At 3:14 PM -0700 8/25/08, Jim Lucas wrote: Here is the function that I added to a generic guest book script. It works great for me. I have a predefined list of sexual, pharmaceutical, rude, vulgar, etc... words that I have

Re: [PHP] Bug in array_key_exist?

2008-08-26 Thread Jim Lucas
Korgan wrote: Hi, I have a problem with array_key_exists in if statement. I have a class with this function class XXX { private items = array(); ... ... ... public function addXXX($id, $count) { $count = (int)$cout; Let me point at it Check your spelling If

Re: [PHP] comments function being spammed, how do I stop it?

2008-08-25 Thread Jim Lucas
for separated on each line. -- 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

Re: [PHP] Sorting Arrays

2008-08-22 Thread Jim Lucas
Tom Shaw wrote: I'm having a problem sorting my array and wondered if anybody had experience sorting arrays by their values. What I need to do is resort the array below where the most expensive product shipping price starts at position zero no matter how big the array is. array(2) {

Re: [PHP] Displaying files

2008-08-14 Thread Jim Lucas
to and will not display the file in a browser. Any ideas? Thx, Dan Who needs PHP... :) The following will open a new browser window and load the href in it. a href=http://examples.com/123.xls; target=_blankOpen It!!!/a If that isn't what you are looking for, please give a little more details. -- Jim Lucas

Re: [PHP] More math fun

2008-08-13 Thread Jim Lucas
automatically round it to 0. I think. I will test, brb.. hmmm weird, if I set my precision to 20 and restart, I still get 0 for the value. Odd, I would have thought it would have then shown me the expected value. -- Jim Lucas Some men are born to greatness, some achieve greatness

Re: [PHP] More math fun

2008-08-12 Thread Jim Lucas
' -- 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: SV: SV: [PHP] Send a cookie with a file_get_contents( ) request?

2008-08-10 Thread Jim Lucas
Anders Norrbring wrote: Anders Norrbring wrote: Thanks Per, I think so too, I glanced it, but unfortunately I have no idea whatsoever about *how* to do it... So, if anyone have suggestions, or concrete examples, please do share! Anders. I did play around with it once, but I don't have any

Re: [PHP] php File upload

2008-08-08 Thread Jim Lucas
Per Jessen wrote: How about if I upload a 1Gb file to a webserver on a machine that only has 256Mb memory - would you say that's impossible? /Per Jessen, Zürich In my experience that would the correct. -- Jim Lucas Some men are born to greatness, some achieve greatness

Re: [PHP] Graph type

2008-08-08 Thread Jim Lucas
tedd wrote: At 7:45 PM +0100 8/8/08, Richard Heyes wrote: Hi, Well, whatever it is, I made one. Just a picture at the moment because I have no website... :-( http://picasaweb.google.com/richard.heyes -- Richard Heyes http://www.phpguru.org Seriously, it looks just like a horizontal bar

Re: [PHP] php File upload

2008-08-07 Thread Jim Lucas
, Fedora 1 - 7, OpenBSD 3.6-current, and older versions of NetBSD and FreeBSD. I have also frequented a number of friends installs and I have never seen uploads happen any other way. Nor have I heard of uploads happening any other way. Just my 2cents :) -- Jim Lucas Some men are born

Re: [PHP] php File upload

2008-08-07 Thread Jim Lucas
Simple answer is yes. But others might argue this answer. Luke wrote: Tom's machine only has 1 GB of physical memory doesn't it? Could that be the problem? 2008/8/7 Jim Lucas [EMAIL PROTECTED] Tom wrote: Hi, on a linux system (Suese 10.2) with 1 GB memory its not possible to upload via

Re: [PHP] Variable number of parameters

2008-08-05 Thread Jim Lucas
})); } myFunction (1, 5, 'Hi'); // This will result in calling anotherFunction as such anotherFunction ('1, 5, Hi'); // and not anotherFunction (1, 5, 'Hi'); ? If this isn't what you are looking for, please explain a little more! -- Jim Lucas Some men are born to greatness, some achieve

Re: [PHP] RPM

2008-08-04 Thread Jim Lucas
VamVan wrote: Hello All, Does any body create installable RPM's for reinstalling their PHP based websites? Is it possible If yes could you please share your experience. Oh yes you could tar it but that's a primitive method. My quest is to make all my websites installable on any given

Re: [PHP] remembering where the user is on the page??

2008-08-01 Thread Jim Lucas
are looking for... :) -- 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

Re: [PHP] accessing variables within objects

2008-07-31 Thread Jim Lucas
Philip Thompson wrote: On Jul 30, 2008, at 1:29 PM, Jim Lucas wrote: Marten Lehmann wrote: Hello, I'm using some php-classes which worked fine with php-5.0.4. Now I tried to upgrade to php-5.2.6, but the classes give a lot of errors. If I set error_reporting(E_ALL); I see messages like

Re: [PHP] Why PHP4?

2008-07-30 Thread Jim Lucas
to the customer. But, on the flip side, you don't want to be just a knowledge base that people could login to on your website. Isn't that they reason you have live support? Anyways... -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust

Re: [PHP] accessing variables within objects

2008-07-30 Thread Jim Lucas
in a similar manner (unfortunately I have no ressources to code these classes from scratch)? Thanks. Kind regards Marten -- 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

Re: [PHP] Not able to load the extensions

2008-07-30 Thread Jim Lucas
John Meyer wrote: Apache 2.2 PHP 5.2.6 (as a module) Windows Relevant parts of php.ini ; Directory in which the loadable extensions (modules) reside. extension_dir = I:\php\ext extension=I:\php\ext\php_mssql.dll extension=I:\php\ext\php_mysql.dll Note: I did try it with just the name

Re: [PHP] PHP4 vs PHP5 classes

2008-07-29 Thread Jim Lucas
. -- 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] Php CLI Parser not working

2008-07-29 Thread Jim Lucas
the short_open_tag = Off to short_open_tag = On in your php.ini file. Older versions of PHP had this On by default. Newer versions do not. -- 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] PHP4 vs PHP5 classes

2008-07-29 Thread Jim Lucas
Chris wrote: Don't forget that in PHP5, the constructor named has changed. In PHP4 it called a method with the same name as the class. But, in PHP5, it looks for __construct() instead. If __construct doesn't exist then it falls back to the php4 way - makes it backwards compatible :) But,

Re: [PHP] Multi-array - What am I missing?

2008-07-24 Thread Jim Lucas
) { $both[$date] = array(null,linked-day {$myCalTime['reason'][$i]},$date); } -- 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

Re: [PHP] Help with an error...

2008-07-24 Thread Jim Lucas
)); print($mailsend); ? -- 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

Re: [PHP] Help with an error...

2008-07-24 Thread Jim Lucas
Payne wrote: Jim Lucas wrote: So, to summarize everything said, with my own added notes. [EMAIL PROTECTED] wrote: Hi, I am currently working on a php script that will be called by cron. But I have an error that keeps coming up. Parse error: syntax error, unexpected T_VARIABLE

Re: [PHP] Questions about finding ranges

2008-07-23 Thread Jim Lucas
variable search engine, that is finding the root cause of the symptoms that are the very best fit given the multi-variables... Thanks heaps for any assistance, Aslan. -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them

Re: [PHP] Apache blocking certain requests instead of php

2008-07-23 Thread Jim Lucas
httpd.conf file do this. UserDir disabled That way it will not process url that starts with a tildy ~... That should take care of it. Apache should then only report a 404 error to the error log for the given virtual host. -- Jim Lucas Some men are born to greatness, some achieve greatness

Re: [PHP] php help.

2008-07-19 Thread Jim Lucas
that the allow_url_fopen is set to '1'. If you need to change the value, make sure that you restart your web server so the settings will take effect. Hope this helps. -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night

Re: [PHP] An HTML5 radar chart

2008-07-19 Thread Jim Lucas
Richard Heyes wrote: http://www.phpguru.org/downloads/HTML5_radar/ Look at me, I'm so cool. This perhaps shows the magnitude of the data a little better than a pie chart. Not quite a normal radar, but this is finished... :-) Hey, your title tag has an undefined variable in it... -- Jim

Re: [PHP] OpenID

2008-07-18 Thread Jim Lucas
Alex Chamberlain wrote: Hi, Has anybody had any success implementing an OpenID server in PHP?? Alex Third result on a search in Google using openid server php returned this page. http://wiki.openid.net/Run_your_own_identity_server -- Jim Lucas Some men are born

Re: [PHP] Removeing duplicates inside for/foreach loop.

2008-07-15 Thread Jim Lucas
http://www.php.net/array_unique Cheers, tedd -- 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

Re: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-11 Thread Jim Lucas
in that ISO have already been fixed in the current releases. -- 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

Re: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-11 Thread Jim Lucas
Shawn McKenzie wrote: Jim Lucas wrote: tedd wrote: The only downside of the classroom environment is that I can honestly learn more from this group et al than I can in a classroom. I just don't see academia keeping up with technology. By time the instructors prepare their class-notes

Re: [PHP] how to change session timeout output text

2008-07-10 Thread Jim Lucas
do this? Any hints, Encouragements, #1 is in your PHP code and is unique to your php scripts. It is not a generic message that PHP generates. #2 is done client side with either Javascript or meta .../ tag redirects -- Jim Lucas Some men are born to greatness, some achieve greatness

Re: [PHP] include_path, permissions question

2008-07-10 Thread Jim Lucas
by uid/gid 191739/191739 in /**/local/home/**/dev.**.net/alb**acl.php on line 11 Thanks in advance for any assistance. -dg -- 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

Re: [PHP] Logic sought

2008-07-09 Thread Jim Lucas
tedd wrote: Hi gang: Here's the logic problem. First the site: http://php1.net/b/zip-files/ Now, the site works well enough. The user selects what they want, clicks Submit, the order is assembled in zip file and presented to the user for downloading. However, as it stands now, before the

Re: [PHP] What font/size do you use for programming?

2008-07-08 Thread Jim Lucas
with a 22in wide screen -- 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

Re: [PHP] PHPExcel

2008-07-03 Thread Jim Lucas
)); // Echo done echo date('H:i:s') . Done writing file.\r\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 List (http://www.php.net

Re: [PHP] PHPExcel

2008-07-03 Thread Jim Lucas
=ExamplesreferringTitle=Home You can see that infact they do give the column/row combo in the setCellValue() method. -- 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

Re: [PHP] PHPExcel

2008-07-03 Thread Jim Lucas
']); $offSet++; $row = ifx_fetch_row($query, NEXT); } ifx_free_result($query); ? -- 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

Re: [PHP] PHPExcel

2008-07-03 Thread Jim Lucas
that I submitted that he should try. -- 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

Re: [PHP] Variable not showing up.

2008-07-02 Thread Jim Lucas
' . str_replace('.php', '', $filename) . /a; } } else { # well duh... echo 'No results!'; } ? their is no need for a condition, because the way that you have it, if it fails, then it doesn't print anything at all. ? -- Jim Lucas Some men are born to greatness, some achieve

Re: [PHP] unset in foreach breaks recrusion

2008-07-01 Thread Jim Lucas
David Sky wrote: Hey, Can't use your example, as you check weather $sorted is empty, if it is - run the foreach and return, but on next recursion when it's not empty - do nothing :) Though I found how to cut a few seconds (on very big array), removing the first if, and adding a $return=true to

Re: [PHP] Simple array problem

2008-07-01 Thread Jim Lucas
Roberto Costumero Moreno wrote: I think the problem is easier... and also the solutions doing a for instead of foreach are not good solutions because if the array is not index-consecutive the loop fails. So, if you has an array with the colors as indexes and the integer value X as the value for

Re: [PHP] V4 Vs V5 Issue

2008-07-01 Thread Jim Lucas
had it enabled by default. This setting would be found in your php.ini file on the server. If you need to change the setting, make sure you restart your httpd server before testing. Just a couple of thoughts -- Jim Lucas Some men are born to greatness, some achieve greatness

Re: [PHP] Re: Inspiration for a Tombstone.

2008-06-28 Thread Jim Lucas
Robert Cummings wrote: On Sat, 2008-06-28 at 11:27 -0400, Andrew Ballard wrote: On Sat, Jun 28, 2008 at 9:44 AM, Colin Guthrie [EMAIL PROTECTED] wrote: Robert Cummings wrote: I will never do it... it looks ugly, Only if you're not used to it. IMO this is how it should be taught in all the

Re: [PHP] de lester

2008-06-27 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

Re: [PHP] fwrite() Append Files

2008-06-27 Thread Jim Lucas
://www.php.net/unsub.php -- 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

Re: [PHP] fwrite() Append Files

2008-06-27 Thread Jim Lucas
Jim Lucas wrote: Wei, Alice J. wrote: Hi, This is my current code: $lines = file(http://www.mysite.com/hello.txt;); $file=http://www.mysite.com/hello.txt;; You are referring to the file from the website point of view. You must access it from the filesystem point of view $file

Re: [PHP] FW: [SPAM] RE: [PHP] fwrite() Append Files

2008-06-27 Thread Jim Lucas
snippet, but it is not from what she originally posted to the list. -- 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

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

Re: [PHP] Include Problem

2008-06-24 Thread Jim Lucas
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 William Shakespeare -- PHP General Mailing List

Re: [PHP] Variables in forms

2008-06-23 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] Output Blank?

2008-06-23 Thread Jim Lucas
// Create a new row of data and append it to the last row $data .= join(',', $row).\n; } // End while ? BTW: what are you doing, if anything, if your data has a comma in it? -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness

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

2008-06-19 Thread Jim Lucas
. with no contract! Dedicated servers, VPS, and hosting from $2.50/mo. -- 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

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

2008-06-19 Thread Jim Lucas
Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with 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

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

Re: [PHP] climb up the path

2008-06-18 Thread Jim Lucas
, 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. -- 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

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

2008-06-18 Thread Jim Lucas
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, some achieve greatness, and some have greatness

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] substr?

2008-06-17 Thread Jim Lucas
) ) { // Correct extension; do what ever } else { // Incorrect extension; do nothing } } } ? -- 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] How to prevent DoS on PHP script?

2008-06-16 Thread Jim Lucas
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 with the op. -- Jim

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

2008-06-16 Thread Jim Lucas
, 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 problem

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, Jim Lucas [EMAIL

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

Re: [PHP] Row Count

2008-06-10 Thread Jim Lucas
,$connect_id); $row = ifx_fetch_row($result); echo $row[0]; ? Daniel Brown, did you read through this too quickly also??? You and Jay both need to slow down a bit... -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act

Re: [PHP] Row Count

2008-06-10 Thread Jim Lucas
a function like mysql_real_escape_string() that will escape/filter you input. But until then, you will need to sanitize it yourself. -- 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

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

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
']; 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 Mailing List (http

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