Re: [PHP] Printing within functions

2007-11-12 Thread Jake
*better practice*? I'd say 98% of the time I return a value back so I can verify the result. You could verify the result within the function, but that would cause the function to become less portable, and most of the time I use the same function in more than one place, or try to. Jake -

Re: [PHP] Trigger an action on session timeout - feature request?

2007-11-12 Thread Jake
Is there any possibility to trigger an action when the session is inactive for some time? I need to log users' login and logout, and so I need to know about logouts caused by timeout. Neither there seems to be a possibility of a workaround like walking through all my sessions for timeouted ones

Re: [PHP] Scrape? (Fetch email)

2007-11-12 Thread Jake
edd I made one using procmail instead of aliases, but same idea... here is a snippet Jake $buffer = ''; $fp = fopen("php://stdin", "r"); if ($fp) { while(!feof($fp)) { $buffer .= fgets($fp, 4096); } fclose($fp); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Email question

2007-10-31 Thread Jake
Jake wrote: while($begin < $end) { if ($start == 'false') { if (empty($temp[$begin])) { $start = 'true'; } } else { $data .= chop($temp[$begin]) . "\n"; } $begin++; } return "$from|$subject|

[PHP] Email question

2007-10-31 Thread Jake
correctly formatted email from any standard client. In most of my tests, everything works fine, but a test with many spaces trying to wrap them, it gives a =20 in the email result. It's probably simple.. sitting here too long and its halloween!! Thanks, Jake function par

RE: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Jake McHenry
p at all? Instead of relying on our own known dictionary and numbers Everyone knows about animals.. My 0.02 Jake > -Original Message- > From: tedd [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 12, 2007 10:27 PM > To: Robert Cummings; Tijnema > Cc: tedd; Stut; J

RE: [PHP] Why do some pages repeat a previous page's action(s) after redirect?

2007-04-03 Thread Jake McHenry
click cancel, the "work offline" page appears instead of the page you were on.. Just another reason not to use IE But this was the only place I remembered that warning from Jake > -Original Message- > From: Chris W. Parker [mailto:[EMAIL PROTECTED] > Sent: T

RE: [PHP] Downloads for subsrcibers only

2007-04-03 Thread Jake McHenry
k was deleted. As long as the original file is not web accessable, no one can ever get it unless they're logged in. :) Jake > -Original Message- > From: Daevid Vincent [mailto:[EMAIL PROTECTED] > Sent: Monday, April 02, 2007 4:10 PM > To: php-general@lists.php.net > Cc:

RE: [PHP] finding the index name of an associative array

2007-04-01 Thread Jake McHenry
foreach ($myarray as $key => $value) { echo "$key = $value"; } > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Man-wai Chang > Sent: Sunday, April 01, 2007 3:59 AM > To: php-general@lists.php.net > Subject: [PHP] finding the index name of an associative array >

RE: [PHP] Parsing database variables

2007-03-31 Thread Jake McHenry
Yep, that's what I did last night right after I sent the email out... All is working good now.. THANKS! Jake > -Original Message- > From: Jim Lucas [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 31, 2007 4:15 AM > To: Jake McHenry > Cc: php-general@lists.php.net

RE: [PHP] Alternative/Addition to using a CAPTCHA

2007-03-30 Thread Jake McHenry
> -Original Message- > From: Tijnema ! [mailto:[EMAIL PROTECTED] > Sent: Friday, March 30, 2007 6:04 PM > To: Jake McHenry > Cc: tedd; php-general@lists.php.net > Subject: Re: [PHP] Alternative/Addition to using a CAPTCHA > > On 3/31/07, Tijnema ! <[EMAIL PRO

RE: [PHP] Parsing database variables

2007-03-30 Thread Jake McHenry
same problem as I did with str_replace... As long as the variable names have any kind of similar names Correct? I can resolve this I suppose, but the data is already in place and trying to work around it... Thanks, Jake > -Original Message- > From: Jim Lucas [mailto:[EMA

RE: [PHP] Parsing database variables

2007-03-30 Thread Jake McHenry
way... Jake _ From: Daniel Brown [mailto:[EMAIL PROTECTED] Sent: Friday, March 30, 2007 5:02 PM To: Jake McHenry Subject: Re: [PHP] Parsing database variables Jake, could you use ereg_replace() to do that? mailto:[EMAIL PROTECTED]"[EMAIL PROTECTED]> wrote: Sorry

RE: [PHP] Parsing database variables

2007-03-30 Thread Jake McHenry
Sorry.. Typos... But that's not the point... I looked the function... Dunno how I missed it Thanks... Do you know if eval() has any size limitations to it? The database fields are about a page each Thanks, Jake > -Original Message- > From: Jay Blanchard [mailto:[EMAI

[PHP] Parsing database variables

2007-03-30 Thread Jake McHenry
mysql_query to use the current script variables in place of the same variable name within the database output? Thanks, Jake -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.23/740 - Release Date: 3/30/2007 1:15 PM -- PHP General

RE: [PHP] Alternative/Addition to using a CAPTCHA

2007-03-30 Thread Jake McHenry
there could > >>throw in their 2 cents.. > >> > >>JC > > > >This looks maybe hard to crack, but actually it isn't very hard. All > >the clicking does is calling a javascript function. You still could > >submit the page without clicking t

RE: [PHP] Audio CAPTCHA review request

2007-03-29 Thread Jake McHenry
Looks good to me... Had to use my laptop since none of my office sets have speakers, tested it, tried bunch of stuff and it only let me in when I typed in the code... So seems good :) Jake > -Original Message- > From: tedd [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 29

RE: [PHP] link on user uploaded pic

2007-03-29 Thread Jake McHenry
Not quite sure what you mean, what you posted is what you need to do to make the image a link... And that's what you wanted... So.. What are you asking? Jake > -Original Message- > From: Tana [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 29, 2007 1:02 PM >

Re: [PHP] Performance: While or For loop

2007-03-26 Thread Jake Gardner
He said if you run the /script/ itself 1000 times, not a loop with 1000 iterations. This is quite possible; I am fairly certain there are websites out there that get accessed well over 1000 times a minute, yes? So every minute, that website is saving a total of 2.6 seconds to do... whatever it is

RE: [PHP] Re: My own "captcha" from 2 years ago......

2007-03-26 Thread Jake McHenry
o out what is currently in the pic > -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED] > Sent: Monday, March 26, 2007 3:49 PM > To: Jake McHenry > Cc: 'itoctopus'; php-general@lists.php.net > Subject: RE: [PHP] Re: My own "captcha" f

RE: [PHP] My own "captcha" from 2 years ago......

2007-03-26 Thread Jake McHenry
The try again button doesn't work... And geez I had this working ok the entire time When I saw yours it hit me... I don't have a form. It would never echo out the code to match whats in the picture... When the form is submitted it will check.. But I didn't have it on a form... I was j

RE: [PHP] My own "captcha" from 2 years ago......

2007-03-26 Thread Jake McHenry
> -Original Message- > From: tedd [mailto:[EMAIL PROTECTED] > Sent: Monday, March 26, 2007 8:49 AM > To: php-general@lists.php.net > Subject: RE: [PHP] My own "captcha" from 2 years ago.. > > At 10:02 PM -0400 3/25/07, Jake McHenry wrote: > >L

RE: [PHP] My own "captcha" from 2 years ago......

2007-03-25 Thread Jake McHenry
id that this happened until session_start was called again.. But it said it was fixed back in php4... Not sure what I missed :( Thanks, Jake > -Original Message- > From: tedd [mailto:[EMAIL PROTECTED] > Sent: Sunday, March 25, 2007 7:54 PM > To: Jake McHenry; 'tedd

RE: [PHP] What is wrong with this function please?

2007-03-25 Thread Jake McHenry
Ok.. It all looks ok... I did some googling and found that Exchange requires the Message-ID to be unique Which it really should be anyways... and yours isn't. try adding time() or something to make it unique :) Jake > -Original Message- > From: Robin Wilson [mailto:[EMAI

RE: [PHP] My own "captcha" from 2 years ago......

2007-03-25 Thread Jake McHenry
Do I call the image creation file in an html -Original Message- > From: tedd [mailto:[EMAIL PROTECTED] > Sent: Sunday, March 25, 2007 10:33 AM > To: Jake McHenry; php-general@lists.php.net > Subject: Re: [PHP] My own "captcha" from 2 years ago.. > > At

RE: [PHP] Array Question

2007-03-24 Thread Jake McHenry
Like I said.. I'm half crocked... So I'm trying my best here... Give me some time... >> > What if you put $temp = $data->legs->leg[$k]['legId']; Does $temp have anything in it? Jake > -Original Message- > From: [EMAIL PROTECTED] [mailto:[E

RE: [PHP] Array Question

2007-03-24 Thread Jake McHenry
What is the result your getting? Jake > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 24, 2007 11:57 PM > To: Jake McHenry > Cc: php-general@lists.php.net > Subject: RE: [PHP] Array Question > > Hi Jake >

RE: [PHP] Re: My own "captcha" from 2 years ago......

2007-03-24 Thread Jake McHenry
quot;, $_SESSION['start_time']), date("d", $_SESSION['start_time']), date("Y", $_SESSION['start_time'])); echo 'Before: ' . $before . 'After: ' . $after . 'Time: ' . date("H:i:s m-d-Y", $running_time) . '' . $_SES

RE: [PHP] Array Question

2007-03-24 Thread Jake McHenry
What if you put $temp = $data->legs->leg[$k]['legId']; And then put that into $legrow[$temp]; Do you have anything in $temp? Jake > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 24, 2007 11:27 PM > T

RE: [PHP] Array Question

2007-03-24 Thread Jake McHenry
$legrow["$data->legs->leg[$k]['legId']"] ?? See if that works... Jake > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 24, 2007 11:27 PM > To: php-general@lists.php.net > Subject: [PHP] Array Qu

[PHP] My own "captcha" from 2 years ago......

2007-03-24 Thread Jake McHenry
orks me even on saturdays after happy hour :( Thanks, Jake -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.17/731 - Release Date: 3/23/2007 3:27 PM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

RE: [PHP] Computing and calculating dates

2007-03-24 Thread Jake McHenry
u could explode that back into mktime, or just into a string. There are many ways to do what your asking :) Jake > -Original Message- > From: Otto Wyss [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 24, 2007 4:37 PM > To: php-general@lists.php.net > Subject: Re: [PHP

RE: [PHP] What is wrong with this function please?

2007-03-24 Thread Jake McHenry
treef Datum Eventueel eigen produkt ideeën Opmerkingen / > aanvullende info > Content-Type: text/html; charset=iso-8859-1 > Content-Transfer-Encoding: 8bit > Dear Robin Wilson > > Below are the details of the Proposal Submission Form you > filled in at > 2HostMe Me

RE: [PHP] Question before upgrading to 5

2007-03-23 Thread Jake McHenry
ra 10 minutes... No biggie.. Thanks Jake > -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED] > Sent: Friday, March 23, 2007 8:59 PM > To: Jake McHenry > Cc: php-general@lists.php.net > Subject: RE: [PHP] Question before upgrading to 5 > > On Thu,

RE: [PHP] Configure question

2007-03-23 Thread Jake McHenry
I scanned over it quick.. Looks interesting.. Thanks :) I'll get into it more tomorrow Jake > -Original Message- > From: Jochem Maas [mailto:[EMAIL PROTECTED] > Sent: Friday, March 23, 2007 7:58 PM > To: Jake McHenry > Cc: php-general@lists.php.net > Subje

RE: [PHP] What is wrong with this function please?

2007-03-23 Thread Jake McHenry
Have you changed anything in an hour? I'm too lazy to compare the two emails... Jake > -Original Message- > From: Robin Wilson [mailto:[EMAIL PROTECTED] > Sent: Friday, March 23, 2007 10:46 PM > To: php-general@lists.php.net > Subject: [PHP] What is wrong with

RE: [PHP] What is wrong with this function please?

2007-03-23 Thread Jake McHenry
I take it there are no errors... And your using windows... Sending to exchange... I guess with seeing what you posted, I would start by echoing out what you have in $to, $subject, $msg, $headers. Are there any errors in Exchange logs? Do you see the message coming into Exchange queue? Jake

RE: [PHP] High quality image resizing

2007-03-23 Thread Jake McHenry
> > > On Fri, March 23, 2007 10:57 am, Markus Fischer wrote: > >> I'm searching for a high quality image resizing facility to be used > >> within PHP in an Unix/Linux environment. > >> > >> Probably everyone will now answer: imagecopyresampled() > >> > >> However, the quality of that functionality

RE: [PHP] Alternatives to PHPLib for authentication, session management, etc

2007-03-23 Thread Jake McHenry
If it still works, then why switch? I wrote my own auth routines Phplib was last released last summer? That's not TOO old http://phplib.sourceforge.net/ Jake > > Hi. > > Been using PHP since the 2.0 days, and been using PHPLib > since 2000 as > the main method

[PHP] Configure question

2007-03-23 Thread Jake McHenry
" for code maintainers only What exactly does this do? I found one reference by google that says funky stuff may happen with this enabled...?? I haven't tested it, I could try and let everyone know, but thought I would ask first. Thanks, Jake -- No virus found in this outgoing message.

RE: [PHP] php support

2007-03-23 Thread Jake McHenry
Look at phpinfo(), you probably don't have PQSql support installed... Jake > -Original Message- > From: Richard Dunne [mailto:[EMAIL PROTECTED] > Sent: Friday, March 23, 2007 1:31 PM > To: php-general@lists.php.net > Subject: [PHP] php support > > Can a

RE: [PHP] Question after php5 SOLVED... For now

2007-03-22 Thread Jake McHenry
ed it so that the module must be loaded before something else in httpd.conf instead of calling it from an external config file.. Ok.. Now off to testing my scripts to see if they'll work under php5...... Jake > -Original Message- > From: Jake McHenry [mailto:[EMAIL PR

RE: [PHP] Question after php5

2007-03-22 Thread Jake McHenry
I get a 200, with both I get a 200 but no php output. What did I miss??? Thanks, Jake > > Hi everyone, > > I decided I would spend the extra time and install separate > copies of apache > and php5. All went successfully, I thought. Apache starts and > runs on 8080,

[PHP] Question after php5

2007-03-22 Thread Jake McHenry
at will be served as directory # indexes. # DirectoryIndex index.php Thanks, Jake -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.17/730 - Release Date: 3/22/2007 7:44 AM -- PHP General Mailing List (http://www.php.net/) To u

RE: [PHP] close session when browser is closed

2007-03-22 Thread Jake McHenry
Also, on a daily basis last week after a windows update glitch... I had to kill rogue IE processes after it was closed, which I found kept some of my users logged in, which was fun... > > Travis Doherty wrote: > > By default the session cookie expires when the browseris closed. > this is not alwa

RE: [PHP] Date functions differences between php 4 and 5

2007-03-22 Thread Jake McHenry
I just asked this a bit ago. Time and Date seem to be the same, but strtotime is definitly different, as that was what broke in my script in php4, and I was told it worked as expected in php5. > -Original Message- > From: Chris [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 22, 2007

RE: [PHP] Passing variables

2007-03-22 Thread Jake McHenry
I was going to say the same thing, but was too busy to worry about it > -Original Message- > From: Chris [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 22, 2007 7:14 PM > To: Tijnema ! > Cc: php-general@lists.php.net > Subject: Re: [PHP] Passing variables > > Tijnema ! wrote: > > On

RE: [PHP] Question before upgrading to 5

2007-03-22 Thread Jake McHenry
I'll think about it.. We only use php for intranet applications I create, so the server is basically dead at nights, which is when I do most of my work. > > Jake McHenry wrote: > > I don't want 2 instances of apache running, your over > thinking this... I >

RE: [PHP] Creating an FTP account on the fly from PHP

2007-03-22 Thread Jake McHenry
gt; Tijnema > > Make sure your system is secure, users created are in their own group and can't get to anything... Can't run anything, etc. I made that mistake a long time ago when I was first starting out.. Ended up with a root kit installed Yippe Jake -- No virus fou

RE: [PHP] Performance: While or For loop

2007-03-22 Thread Jake McHenry
does this help? http://www.php.lt/benchmark/phpbench.php Jake > -Original Message- > From: Tijnema ! [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 22, 2007 4:38 PM > To: PHP > Subject: [PHP] Performance: While or For loop > > Hi, > > Does somebod

RE: [PHP] Question before upgrading to 5

2007-03-22 Thread Jake McHenry
execdir=/usr/libexec \ --localstatedir=/var \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-exec-dir=/usr/bin \ Thanks, Jake > Jake McHenry wrote: > > Sorry about the delivery and read requests.. I was tired > and forgot to turn > > them off for the list.. >

RE: [PHP] Question before upgrading to 5

2007-03-22 Thread Jake McHenry
p5 ... his explanation should give you enough info > to set it up. > I don't need them running parallel, only both installed > Tijnema ! wrote: > > On 3/22/07, Jake McHenry <[EMAIL PROTECTED]> wrote: > >> Hi everyone, > >> > >> I just got d

[PHP] Question before upgrading to 5

2007-03-21 Thread Jake McHenry
. If I had more time I would do this the right way, but we all know how that goes... If this will work, I can then just uninstall 4.. Hopefully it won't break anything. I'll post my configure options if anyone would like to double check Thanks, Jake -- No virus found in this ou

Re: [PHP] Limited text fields on phpMyAdmin?

2007-03-16 Thread Jake McHenry
Hey all, I have a client that uses phpMyAdmin quite a bit as sort of an end user type app, but that's another story altogether (they actually get a lot of use out of it when they're PHP app won't give them the data the way they want.) But anyway, they've created a table with 9 fields type

Re: [PHP] Limited text fields on phpMyAdmin?

2007-03-16 Thread Jake McHenry
On 3/17/07, Skip Evans <[EMAIL PROTECTED]> wrote: Hey all, I have a client that uses phpMyAdmin quite a bit as sort of an end user type app, but that's another story altogether (they actually get a lot of use out of it when they're PHP app won't give them the data the way they want.) But any

Re: [PHP] Limited text fields on phpMyAdmin?

2007-03-16 Thread Jake McHenry
software checks are probably a good idea). MEDIUMTEXT will store 16 million characters and LONGTEXT can handle over 4 trillion. Check the mysql docs for exact info, but this should help in general. The user should be able to change the field type without loosing their data. Jake -- PHP Ge

Re: [PHP] dst and strtotime

2007-03-14 Thread Jake McHenry
, and its kinda hard to mess up. And it only needs an hour to kick it back into the right date I found. time() and date() return correctly, its just strtotime that pulls from EST instead of EDT for some reason On Tue, March 13, 2007 11:52 am, Jake McHenry wrote: On 3/13/07, Jake McHenry

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Jake McHenry
It worked for you? It didn't for me until i changed if ($s%$d=0) to if($s%$d == 0) Jake - Original Message - From: "Jonathan Kahan" <[EMAIL PROTECTED]> To: "Tijnema !" <[EMAIL PROTECTED]> Cc: "php Lists" Sent: Tuesday, March 13, 200

Re: [PHP] dst and strtotime

2007-03-13 Thread Jake McHenry
nloaded and ran configure for php 5.2.1 and it won't be happening at the moment... it errored out on my compilier, said gcc couldn't create the executables. so.. for now.. the fix Tijnema posted is working... and thanks for the info Rob :) Jake -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] dst and strtotime

2007-03-13 Thread Jake McHenry
-Original Message- From: Jake McHenry [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 13, 2007 11:22 AM To: For users of Fedora; PHP-General Subject: Re: [PHP] dst and strtotime A little more info: strtotime("last monday") or yesterday, is correct, but strtotime(&q

Re: [PHP] dst and strtotime

2007-03-13 Thread Jake McHenry
On Tue, 2007-03-13 at 17:58 +0100, Tijnema ! wrote: On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Tue, 2007-03-13 at 17:50 +0100, Tijnema ! wrote: > > On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > On Tue, 2007-03-13 at 1

Re: [PHP] dst and strtotime

2007-03-13 Thread Jake McHenry
On 3/13/07, Jake McHenry <[EMAIL PROTECTED]> wrote: Has or can anyone try this on PHP5 to see if it does the same? I'll upgrade if needed, but didn't really want to at the current time.. Thanks Jake As i said before i don't think it has to do with PHP version, b

Re: [PHP] dst and strtotime

2007-03-13 Thread Jake McHenry
On 3/13/07, Jake McHenry <[EMAIL PROTECTED]> wrote: >> -Original Message----- >> From: Jake McHenry [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, March 13, 2007 11:22 AM >> To: For users of Fedora; PHP-General >> Subject: Re: [PHP] dst and strtotime >&

Re: [PHP] dst and strtotime

2007-03-13 Thread Jake McHenry
Has or can anyone try this on PHP5 to see if it does the same? I'll upgrade if needed, but didn't really want to at the current time.. Thanks Jake On Tue, 2007-03-13 at 12:31 -0400, Jake McHenry wrote: >> -Original Message----- >> From: Jake McHenry [m

Re: [PHP] dst and strtotime

2007-03-13 Thread Jake McHenry
yes. echo date("Y-m-d g:i A T", time()); echo date("Y-m-d g:i A T", strtotime("last sunday")); returns 2007-03-13 12:38 PM EDT 2007-03-10 11:00 PM EST Thanks, Jake does return the time() command the right date for you? Tijnema On 3/13/07, Jake McH

Re: [PHP] dst and strtotime

2007-03-13 Thread Jake McHenry
after a week?? anyone else have anything to add? thanks, Jake On 3/12/07, Jake McHenry <[EMAIL PROTECTED]> wrote: Anyone know of anything I can check? I've been trying different things all afternoon and I'm still getting the wrong date from strtotime. date() work

Fw: [PHP] dst and strtotime

2007-03-12 Thread Jake McHenry
anyone else have anything to add? thanks, Jake On 3/12/07, Jake McHenry <[EMAIL PROTECTED]> wrote: Anyone know of anything I can check? I've been trying different things all afternoon and I'm still getting the wrong date from strtotime. date() works fine. Thanks, Jake

Re: [PHP] dst and strtotime

2007-03-12 Thread Jake McHenry
On 3/12/07, Jake McHenry <[EMAIL PROTECTED]> wrote: Anyone know of anything I can check? I've been trying different things all afternoon and I'm still getting the wrong date from strtotime. date() works fine. Thanks, Jake - Original Message - From: "

Re: [PHP] dst and strtotime

2007-03-12 Thread Jake McHenry
Anyone know of anything I can check? I've been trying different things all afternoon and I'm still getting the wrong date from strtotime. date() works fine. Thanks, Jake - Original Message - From: "Jake McHenry" <[EMAIL PROTECTED]> To: "PHP-General&qu

Re: [PHP] dst and strtotime

2007-03-12 Thread Jake McHenry
yepper date Mon Mar 12 12:25:33 EDT 2007 - Original Message - From: "Peter Lauri" <[EMAIL PROTECTED]> To: "'Jake McHenry'" <[EMAIL PROTECTED]>; "'PHP-General'" Sent: Monday, March 12, 2007 5:23 PM Subject: RE: [PHP] d

[PHP] dst and strtotime

2007-03-12 Thread Jake McHenry
iod = strtotime('last sunday'); echo date("Y-m-d", $recent_period); print_r($periods); $test_recent_period = array_search($recent_period, $periods); if ($test_recent_period == '') $recent_period = strtotime('last sunday', $recent_period); Thanks, Jake

Re: [PHP] Intro to PHP question

2007-03-08 Thread Jake McHenry
Sorry, I didn't even think about that. I use many php files as "shell" scripts... and u need this for any interpreter your using if you want to execute the file directly from the command line, otherwise you would have to type php scriptname.php from the command line. - Original Message --

Re: [PHP] why did it stop working?

2007-03-08 Thread Jake McHenry
concatenation changes?? I've noticed this too, you can either do what you did, or put {} around variable within quotes.. - Original Message - From: "Ross" <[EMAIL PROTECTED]> To: Sent: Thursday, March 08, 2007 4:57 AM Subject: [PHP] why did it stop working? Can someone explain

Re: [PHP] Links

2007-03-07 Thread Jake McHenry
You have to add the href tags in the html output for the text to be a link in your while statement or whatever your using to obtains the links from the database already, instead of just displaying $link_value, change it to $link_value Jake - Original Message - From

Re: [PHP] help with script needed

2007-03-07 Thread Jake McHenry
LOL I told'ya I rememberd it from my 2nd semester :) Ok, this is commonly known as the FizzBuzz problem and is used a lot as a university project or interview question. If you can't do it, be afraid!! http://dev.stut.net/php/fizzbuzz.php -Stut -- PHP General Mailing List (http://www.php.net

Re: [PHP] help with script needed

2007-03-07 Thread Jake McHenry
Are you only using 3 and 5? just echo 3 and 5 instead of Foo and Bar. and for both, just have a 3rd condition including both ... if (($i%3 ==0) && ($i%5 == 0)) echo both or foobar.. does this help? Jake - Original Message - From: "Bruce Gilbert" <[EMAIL PRO

Re: [PHP] help with script needed

2007-03-07 Thread Jake McHenry
lol . i remember this from a 2nd semester quiz 5 years ago :) I have a little script that prints a number out from 1 to 100 [php] "; } ?> [/php] I just need to add code to print something different, say "foo" if the output is a multiple of 5 or 10 for example. How do I go about doing

Re: [PHP] order/reorder pull out data from arrays

2006-07-11 Thread Jake Gardner
Ok I understand your method now. your code does not match your output. how would your print line produce that , $customerid ? anyways... $data = orders($id,$status); $c = count($data); $currentId; $n = 1; for($i=0; $i<$c; $i++) { $orderid = $data[$i]['orderid']; $customerid = $data[$i]['cu

Re: [PHP] Is there a way to display data from database for Select Options in a form?

2006-01-10 Thread Jake Gardner
Jochem: Your method is long, probably takes more time to run, and is therefore inefficient in this circumstance. There is a time and place for a good solid reusable function, or even a class. Of course things could go wrong when using mySQL connections, but things can always go wrong. Bringing pe

Re: [PHP] Type of form element

2005-11-09 Thread Jake Gardner
Uh isset will work in this particular instance because $_POST is an array whose values are of one type and one type only: STRINGS. Yes, it is true that: $myArray['a'] = NULL; isSet($myArray['a']); //Will return FALSE. However, because $_POST contains STRINGS AND STRINGS ONLY, isSet works: $m

Re: [PHP] Re: comment more than a question

2005-11-09 Thread Jake Gardner
Yeah I never really look at what the error message actually says, it usually turns out to be unhelpful because of those line numbers. I just look, for example, to see if it says the error happened past the last line of the script, and I know im missing a } somewhere. The errors PHP returns are more

[PHP] Object Function-call handling in PHP5

2005-09-28 Thread Jake Gardner
This is a toughy I've been working over for a bit. I was wondering if there is a way to cause objects to have certain behaviors when builtin functions are called, or maybe a way of setting, for example, a "primary" string which is used whenever a function requiring a string calls it. IE: Class my

Re: [PHP] serializing result sets or what?

2005-09-28 Thread Jake Gardner
"You may download this PECL extension DLL from the PHP Downloads page or at http://snaps.php.net/. Note: On Windows, APC expects c:\tmp to exist, and be writable by the web server." On 9/28/05, Thomas <[EMAIL PROTECTED]> wrote: > Thanks, that looks good. But what do I do if OS is WinDoze? The i

[PHP] Pre global configuration

2005-09-27 Thread Jake Gardner
This is a stretch and I doubt you can do this very easily, but I was wondering if there is a way to define behaviors that happen throughout a script before execution for example if the OS is windows, all strings are terminated with \r\n, if Linux, then \n without adding addition ifs throughout the

Re: [PHP] PCRE false match with preg_match?

2005-09-26 Thread Jake Gardner
Murray: I could kick myself for not seeing that one (* = 0 or more, well it sure found 0) On 9/26/05, Murray @ PlanetThoughtful <[EMAIL PROTECTED]> wrote: > > I recently encountered a strange behaviour, could someone please > > countercheck it, to either tell me there is an error in my pattern? >

Re: [PHP] serialize

2005-09-26 Thread Jake Gardner
able result = recieved serialized version of $Joe) $Joe = unserialize($Result); $Results = $Joe->ListVars(); etc. On 9/26/05, Jake Gardner <[EMAIL PROTECTED]> wrote: > I would use a table such as > Table > |_UserData > > Then use objects per user to store the data. > class

Re: [PHP] Trigger root script?

2005-09-26 Thread Jake Gardner
make sure to set www-data's login script to nologin if you are going to do that. On 9/26/05, Michael Sims <[EMAIL PROTECTED]> wrote: > Jeffrey Sambells wrote: > > I need a php script to trigger another script to run as root on a > > machine. Currently, the scripts run as the www-data user, but tha

Re: [PHP] PCRE false match with preg_match?

2005-09-26 Thread Jake Gardner
When using "/([0-9]*)(.*)/i" it matches substring 1: 7005 substring 2: -N/52 When using "/([0-9]*)\/(.*)/i" it matches substring 1: substring 2: 52 It looks to me as though its trying to match either or subgroup in order. On 9/26/05, Jens Schulze <[EMAIL PROTECTED]> wrote: > I recently encounter

Re: [PHP] PHP in a commandline shell?

2005-09-23 Thread Jake Gardner
That depends on several things, chief among which are: What version did you install? What options did you supply ./configure? **Did you delete your old install?** The reason for that is because the difference between the CLI and CGI versions of PHP is the binary w

[PHP] Re: Retrieving variable name?

2005-09-21 Thread Jake Gardner
Maybe something fancy with references? http://us2.php.net/manual/en/language.references.php On 9/21/05, Thorsten Suckow-Homberg <[EMAIL PROTECTED]> wrote: > > Short Answer : No > > Longer Answer : Maybe, if you have knowledge of PHP internals and a > > willingness to write an extension. Even then

[PHP] sending HTML (incl. embedded images) to browser

2005-08-17 Thread Jake Sapirstein
y pointers! -Jake

Re: [PHP] counting chars..

2004-12-15 Thread Jake Press
Hi Louie, Excellent example! i wish more users would take the time to provide such clear examples. The strlen() exists for you :) ie. echo $display; ?> :) Best Regards Jake Press Louie Miranda wrote: echo $display; ?> i know this is wrong, but how can i count chars used here? -- PHP G

[PHP] Re: off list RE: [PHP] PHP and Frames?

2004-11-29 Thread Jake McHenry
- Original Message - From: "Chris W. Parker" <[EMAIL PROTECTED]> To: "Jake McHenry" <[EMAIL PROTECTED]> Sent: Monday, November 29, 2004 6:36 PM Subject: off list RE: [PHP] PHP and Frames? Jake McHenry <mailto:[EMAIL PROTECTED]> on Monday, Novem

Re: [PHP] PHP and Frames? solved

2004-11-29 Thread Jake McHenry
- Original Message - From: "Jake McHenry" <[EMAIL PROTECTED]> To: "M. Sokolewicz" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, November 29, 2004 6:46 PM Subject: Re: [PHP] PHP and Frames? - Original Message - From: "M.

Re: [PHP] PHP and Frames?

2004-11-29 Thread Jake McHenry
- Original Message - From: "M. Sokolewicz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 29, 2004 6:34 PM Subject: Re: [PHP] PHP and Frames? Jake McHenry wrote: - Original Message - From: "Chris W. Parker" <[EMAIL PRO

[PHP] Re: off list RE: [PHP] PHP and Frames?

2004-11-29 Thread Jake McHenry
- Original Message - From: "Chris W. Parker" <[EMAIL PROTECTED]> To: "Jake McHenry" <[EMAIL PROTECTED]> Sent: Monday, November 29, 2004 6:36 PM Subject: off list RE: [PHP] PHP and Frames? Jake McHenry <mailto:[EMAIL PROTECTED]> on Monday, Novem

Re: [PHP] PHP and Frames?

2004-11-29 Thread Jake McHenry
- Original Message - From: "Chris W. Parker" <[EMAIL PROTECTED]> To: "Jake McHenry" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, November 29, 2004 6:26 PM Subject: RE: [PHP] PHP and Frames? Jake McHenry <mailto:[EMAIL PROTECTED]>

[PHP] PHP and Frames?

2004-11-29 Thread Jake McHenry
erson clicks on. This is simple if it's just html, but I need to have the person logged in, and the php file is generating the list of links based on the files contained in the directory. So when the person uploads files, they are immediatly in the list. Thanks, Jake McHenry Nittany Travel MIS C

Re: [PHP] Getting static member for a class which name is stored

2004-11-28 Thread Jake Press
his thread) Best Regards Jake Press -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Getting static member for a class which name is stored in a variable

2004-11-27 Thread Jake Press
Simas Toleikis wrote: Jake Press wrote: Hi Francisco, Your not alone, a number of other users have enountered this bug. string get_class ( object obj ) Its not a bug... You are getting class name as a string for output purposes etc.. Doing something like "TestClass"::some_static i

  1   2   3   >