[PHP] RE: . [PHP] Possible to Google search the news.php.net past post with keywords???

2004-06-09 Thread Cody Phanekham
you could use the following in the search field: Patch memory limit site:news.php.net This will tell google to search news.php.net for any reference of "Patch" "memory" "limit" -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED] Sent: Thursday, June 10, 2004 12:18 AM To: [

RE: [PHP] enum('part1','...')

2004-02-23 Thread Cody Phanekham
>-Original Message- >From: John Taylor-Johnston [mailto:[EMAIL PROTECTED] >Jason, >Sigh ... What would I look for in the archives Jason? > >Don't see anything here that would give me a hint where to start Jason: > >http://www.php.net/manual-lookup.php?pattern=enum umm that would be the onl

RE: Re[2]: [PHP] unexpected results using sprintf() with %u

2003-10-02 Thread Cody Phanekham
Yeah abs() looks like it would do the trick I wonder if the same output would be generated using C's sprintf() Too bad i dont have access to C... oh well > -Original Message- > From: Tom Rogers [mailto:[EMAIL PROTECTED] > Sent: Friday, 3 October 2003 16:27 > To: Tom

[PHP] unexpected results using sprintf() with %u

2003-10-02 Thread Cody Phanekham
Im trying to retrieve the unsigned value of an integer. sounds pretty simple... [code] $i = -86; echo "" . sprintf("%d", $i); echo "" . sprintf("%u", $i); [/code] produces: -86 4294967198 what i expected: -86 86 Ive searched the archives but most of the messages refer to %s or %d... nothing in

RE: [PHP] Accumulated Information in DB??

2003-09-30 Thread Cody Phanekham
> -Original Message- > From: [EMAIL PROTECTED] > Can the MySQL DB hold > all this big chunk of info? > I'm no authority on MySQL but i dont see any problems with holding 'big chucks' of info, The only limiting factor would be the size of your hard drive. You might get a more accurate a

RE: [PHP] SQL statement

2003-09-23 Thread Cody Phanekham
http://www.mysql.com/doc/en/Reserved_words.html [snip] 6.1.7 Is MySQL Picky About Reserved Words? A common problem stems from trying to create a table with column names that use the names of datatypes or functions built into MySQL, such as TIMESTAMP or GROUP. You're allowed to do it (for exampl

RE: [PHP] SQL statement

2003-09-23 Thread Cody Phanekham
I havent used mysql for a while... but here goes... http://www.mysql.com/doc/en/Date_and_time_functions.html DATE_FORMAT(date,format) Formats the date value according to the format string. mysql> SELECT DATE_FORMAT('1997-10-04 22:23:00', '%W %M %Y'); -> 'Saturday October 1997' mysql> SE

RE: [PHP] non-php issue

2003-09-21 Thread Cody Phanekham
heres my 2cents If you know what your doing, it is possible to secure a windows machine. It depends on the user, i keep my windows machine upto date, plus ive got a firewall running on it just incase. I havent had a virus or been compromised (not that i know of) since i bought my laptop. Dont

RE: Re[2]: [PHP] MySQL timestamp to desired date function

2003-09-17 Thread Cody Phanekham
I'd have to agree with Tom, it would be better to do the formatting using the DB since MySQL stores its timestamp differently than the UNIX timestamp. however, if you really want to do it in PHP you can use MySQL's function UNIX_TIMESTAMP() to convert the db timestamp to a unix timestamp, then u

RE: [PHP] MySQL timestamp to desired date function

2003-09-17 Thread Cody Phanekham
[snip] > I have a a timestamp in a DB (14 digits) [/snip] strtotime() tries to convert textual dates into a UNIX timestamp. eg "10 September 2000" since you've supplied a 14 digit timestamp to strtotime(), the function will throw back unexpected results. can we get some sample data from the l

RE: [PHP] Re: PHP|Con insane pricing

2003-09-15 Thread Cody Phanekham
> -Original Message- > From: Jeremy Brand, B.S. [mailto:[EMAIL PROTECTED] > actually add value by being there, not only in supporting my > friends who are doing speaking at the conference, maybe ask your friends that are speaking at the conference if they can sneak you in? or get you a

RE: [PHP] Re: URGENT BUSINESS RELATIONSHIP

2003-09-11 Thread Cody Phanekham
from http://www.nigerian419fraud.freeserve.co.uk/ [snip] A conservative estimate from the USA is that Americans are defrauded of at least $100 million every year. [/snip] hmmm me thinks im in the wrong business ;) seriously, I didnt think there would be some many gullible people out in cybersp

RE: [PHP] Re: URGENT BUSINESS RELATIONSHIP

2003-09-11 Thread Cody Phanekham
What are you talking about? This is a once in a life time opportunity! who hasnt dreamt of receiving 15 million for doing absolutely nothing contact me benny boy !! my number is 0055 all night long O_o > -Original Message- > From: Shadow [mailto:[EMAIL PROTECTED] > Sent: Friday, 12 Septe

RE: [PHP] Persistent database connections in PHP

2003-09-04 Thread Cody Phanekham
ooppss forgot this as well... http://au2.php.net/mysql_pconnect > -Original Message- > From: Cody Phanekham > Sent: Friday, 5 September 2003 16:06 > To: [EMAIL PROTECTED] > Subject: RE: [PHP] Persistent database connections in PHP > > > do people even look at t

RE: [PHP] Persistent database connections in PHP

2003-09-04 Thread Cody Phanekham
do people even look at the manual? or search the php.net website? http://au2.php.net/manual/en/ref.mysql.php "Runtime Configuration The behaviour of these functions is affected by settings in php.ini. Here's a short explanation of the configuration directives. mysql.allow_persistent boolean Wh

RE: [PHP] Re: Animating with GD?

2003-08-28 Thread Cody Phanekham
Couldn't Unisys just renew/extend the patent? > -Original Message- > From: Edward Rudd [mailto:[EMAIL PROTECTED] > Sent: Thursday, 28 August 2003 09:49 > To: [EMAIL PROTECTED] > Subject: [PHP] Re: Animating with GD? > > > Not anymore due to the Unisys LZW patent issues.. GD has no > sup

RE: [PHP] php equivalent to asp's instr()

2003-08-28 Thread Cody Phanekham
Chris, Ive modified your sample code to use strstr() and it works fine. maybe you've mixed the $haystack and $needle around ? > -Original Message- > From: Chris W. Parker [mailto:[EMAIL PROTECTED] > Sent: Thursday, 28 August 2003 07:08 > To: [EMAIL PROTECTED] > Subject: [PHP] php equiv

RE: [PHP] How to open random Flash page with hyperlink?

2003-08-26 Thread Cody Phanekham
; To: [EMAIL PROTECTED] > Subject: Re: [PHP] How to open random Flash page with hyperlink? > > > * Thus wrote Cody Phanekham ([EMAIL PROTECTED]): > > Murugesan, > > > > main.php: > > > session_name("mysessionname"); > > session_start();

RE: [PHP] RE: Unable to get the values in next page

2003-08-25 Thread Cody Phanekham
[EMAIL PROTECTED] > Sent: Monday, 25 August 2003 17:14 > To: Cody Phanekham; [EMAIL PROTECTED] > Subject: Re: [PHP] RE: Unable to get the values in next page > > > Thanks for the reply.Actually I don't know that I have to include the > start_session in every page. > I GOT i

[PHP] RE: Unable to get the values in next page

2003-08-25 Thread Cody Phanekham
> main.php > - > echo $failed;// this is null here > -> did you start the session in main.php before "echo $failed;"? eg > -Original Message- > From: murugesan [mailto:[EMAIL PROTECTED] > Sent: Monday, 25 August 2003

RE: [PHP] How to open random Flash page with hyperlink?

2003-08-25 Thread Cody Phanekham
ll to header()]: then in main.php you need to start your session to access the session variables your employee id = $empid and the password you typed was $pwd"; ?> > -Original Message- > From: murugesan [mailto:[EMAIL PROTECTED] > Sent: Monday, 25 August 2003 15:18 > T

RE: [PHP] How to open random Flash page with hyperlink?

2003-08-25 Thread Cody Phanekham
er tries to access main.php directly without logging in they will be redirected to index.php checkout http://www.php.net/manual/en/ref.session.php for more information > -Original Message- > From: murugesan [mailto:[EMAIL PROTECTED] > Sent: Friday, 22 August 2003 20:04 > To:

FW: [PHP] How to open random Flash page with hyperlink?

2003-08-21 Thread Cody Phanekham
-Original Message- > From: murugesan [mailto:[EMAIL PROTECTED] > some more changes > > Murugesan, both ways are correct. Its just that i'm used to using the short open tag :) http://au

RE: [PHP] How to open random Flash page with hyperlink?

2003-08-21 Thread Cody Phanekham
Phillip, pretty close. only a few things that are missing/incorrect. my corrections are marked by a # > -Original Message- > From: Phillip Pang [mailto:[EMAIL PROTECTED] > // random_menu.html > > $i = rand(0,3); > ?> > > > > x # you need to go back to php mode to use $i x > > > -

RE: [PHP] datetime

2003-08-21 Thread Cody Phanekham
Convert "Jun 8 2003 12:00AM" to a timestamp which can then be used with the date() function to format the date to whatever format you want. Lets say you've inserted the date as '6/8/03' and you want the data to remain the same when you retrieve it: so all you have to do is replace "Jun 8 2003

RE: [PHP] unexpected date results

2003-08-21 Thread Cody Phanekham
Curt/Mike, > -Original Message- > From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED] > > date '+%c'# might be different -- check your man date > the date returned was correct... > -Original Message- > From: Curt Zirzow [mailto:[EMAIL PROTECTED] > > putenv('TZ=Australia/S

RE: [PHP] unexpected date results

2003-08-21 Thread Cody Phanekham
ed date results > > > * Thus wrote Cody Phanekham ([EMAIL PROTECTED]): > > > $t = time(); > > echo "\ntimestamp = $t"; > > echo "\ntime = " . date("r", $t); > > ?> > > > > if i run test.php via the web it produces th

[PHP] unexpected date results

2003-08-20 Thread Cody Phanekham
off by 10 hours: timestamp = 1061443722 time = Thu, 21 Aug 2003 05:28:42 + has this happened to anyone before? what could cause the huge difference in time? Im running PHP Version 4.3.2 on NetBSD 1.6 -- Regards Cody Phanekham Email: [EMAIL PROTECTED] E