Re[2]: [PHP] Simultaneus execution

2004-08-29 Thread Eugene
pplications Development * >> -- >> Search the list archives before you post >> http://marc.theaimsgroup.com/?l=php-general >> -- >> /* >> QOTD: >> "What do you mean, you had the dog fixed? Just what made you >> think he was broken!" >> */ -- Best regards, Eugenemailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Save new page in file

2004-08-29 Thread Eugene
request to servlet its PHP page. Please give me some ideas... Thanks in advance. -- Best regards, Eugenemailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie help, pressing the submit button returns nothing

2003-04-04 Thread Eugene Mah
tice app Fill in the name and echo it back to the user. Please enter your name: --- >>Second page: named jobapp_action.php Welcome ! Unless your register_globals is set to on, you should be using instead Eugene -------

Re: [PHP] countries

2002-06-04 Thread Eugene Lee
Why not go to the source? http://www.iso.org/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html -- Eugene Lee [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_num_rows always returns 1?

2002-06-18 Thread Eugene Mah
value of count(*) rather than the number of lines returned by the query. Eugene -- ----- Eugene Mah, M.Sc., DABR [EMAIL PROTECTED] Medical Physicist/Misplaced Canuck[EMAIL PROTECTED] Department of Radiology

[PHP] issues with PHP 4.1.2 / solaris 2.6 / gcc 3.1

2002-06-26 Thread Eugene Mah
things working again. when compiling php 4.2.1 on solaris 2.6/gcc 3.1, i also get an error about not finding unix.h. Can anybody offer any suggestions? thanks eugene -- ----- Eugene Mah, M.Sc., DABR [EMAIL PROTECTE

Re: [PHP] Re: HTTP_REFERER

2003-09-12 Thread Eugene Lee
t of the HTTP spec. it is supported. : You can find it in the $_SERVER variable. : FYI: The referer is not a reliable information. Several Windoze firewalls also filter out HTTP_REFERER. -- Eugene Lee http://www.coxar.pwp.blueyonder.co.uk/ -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: HTTP_REFERER

2003-09-12 Thread Eugene Lee
On Fri, Sep 12, 2003 at 03:53:22PM +0800, Louie Miranda wrote: : "Eugene Lee" mentioned: : > : > Several Windoze firewalls also filter out HTTP_REFERER. : : what can you suggest, im trying to do a referer email program on a website : and i think HTTP_REFERER will be my first appro

Re: [PHP] Re: HTTP_REFERER

2003-09-12 Thread Eugene Lee
On Fri, Sep 12, 2003 at 04:21:16PM +0800, Louie Miranda wrote: : Eugene Lee mentioned: : > On Fri, Sep 12, 2003 at 03:53:22PM +0800, Louie Miranda wrote: : > : "Eugene Lee" mentioned: : > : > : > : > Several Windoze firewalls also filter out HTTP_REFERER. : > :

[PHP] square brackets in form names violate HTML specs?

2003-09-13 Thread Eugene Lee
Something I've noticed in PHP is a proliferation of code like this: According to the specs, the square brackets in "stuff[title]" are technically illegal. http://www.w3.org/TR/html4/types.html#h-6.2 ID and NAME tokens must begin with a letter ([A-Za-z]) and may

Re: [PHP] htmlentities() and the macintosh character set

2003-09-13 Thread Eugene Lee
On Sat, Sep 13, 2003 at 11:24:56AM -0700, Michael Winston wrote: : : The request: Can the macintosh character set be added as an option for : htmlentities() and other commands? That would be so helpful for our : mac-based company. : : The problem: I'm fairly new to php and have found that th

Re: [PHP] square brackets in form names violate HTML specs?

2003-09-13 Thread Eugene Lee
On Sat, Sep 13, 2003 at 06:15:29PM +, Curt Zirzow wrote: : * Thus wrote Eugene Lee ([EMAIL PROTECTED]): : > Something I've noticed in PHP is a proliferation of code like this: : > : > [...] : The way to properly do it would be to set set your name as: : : Great ide

Re: [PHP] (Conclusion) Re: [PHP] Program works only when there are records :-(

2003-09-14 Thread Eugene Lee
On Mon, Sep 15, 2003 at 02:15:56AM +0200, Ryan A wrote: : : Its a version problem, UNION was not implempted till V4, and my host has : V3.23 : Anybody know of a work around with my code? I have found some work arounds : on google but its too advanced for me...i dont really understand left joins, :

Re: [PHP] Re: HTTP_REFERER

2003-09-14 Thread Eugene Lee
On Mon, Sep 15, 2003 at 07:58:25AM +0800, Louie Miranda wrote: : Eugene Lee mentioned: : > On Fri, Sep 12, 2003 at 04:21:16PM +0800, Louie Miranda wrote: : > : Eugene Lee mentioned: : > : > On Fri, Sep 12, 2003 at 03:53:22PM +0800, Louie Miranda wrote: : > : > : &quo

Re: [PHP] How to comment out chunk of html/php mixed code?

2003-09-15 Thread Eugene Lee
On Mon, Sep 15, 2003 at 08:59:53PM +0100, Wei Wang wrote: : : This may sound very newbie. But since html comment uses : which doesn't comment out the php code. And the php comment /**/ // : apparently doesn't work on html. So how do I comment out a chunk of : html/php mixed code? Remove the chu

Re: [PHP] abreviating echo commands

2003-09-15 Thread Eugene Lee
: Kris Yates <[EMAIL PROTECTED]> wrote: : > : > I forget where but I found some source awhile back that abbreviated : > echo. It was something like : > which worked the same as . Maybe it was : > .. Obviously I dont remember.. which is why I am asking.. : > :) Does anyone have a link to so

Re: [PHP] RE: $_SELF[PHP_SELF] not working anymore

2003-09-16 Thread Eugene Lee
On Tue, Sep 16, 2003 at 03:30:39PM +, Curt Zirzow wrote: : * Thus wrote Maria Garcia Suarez ([EMAIL PROTECTED]): : > --- Javier Tacon <[EMAIL PROTECTED]> wrote: : > : > > Try with $_SERVER["PHP_SELF"] : > : > Then I get: : > : > Parse error: parse error, unexpected : > T_ENCAPSED_AND_WHITESP

Re: [PHP] Control Structure problem

2003-09-16 Thread Eugene Lee
On Wed, Sep 17, 2003 at 12:49:03AM +, Curt Zirzow wrote: : : switch ($var) { : case 'TEST-1': case 'TEST-2': case 'TEST-2': : do something : } The switch statement doesn't do an equivalency test, does it? So while this switch statement can be rewritten as: if (($var =

Re: [PHP] Control Structure problem

2003-09-16 Thread Eugene Lee
On Wed, Sep 17, 2003 at 01:29:26PM +1000, Tom Rogers wrote: : Wednesday, September 17, 2003, 11:47:45 AM, Eugene Lee wrote: : : EL> The switch statement doesn't do an equivalency test, does it? [...] : EL> it doesn't do: : : EL> if (($var === 'TEST-1') || : E

[PHP] consistent PHP function names?

2003-09-17 Thread Eugene Lee
One thing that's always bothered me about PHP is that the function names are not terribly consistent. For example, when are underscores okay? strip_tags() has an underscore but stripslashes() does not. Also, should inverse functions be named appropriately? htmlentities() and html_entity_decode()

Re: [PHP] when clients go bad

2003-09-18 Thread Eugene Lee
On Thu, Sep 18, 2003 at 05:31:52PM -0400, Tim Thorburn wrote: : : As this is a very small market, for this one client I did not create a : contract - there was however a very detailed proposal which did not include : any source files. Whether it'll stand or not, we also had a verbal : agreemen

Re: [PHP] Session with various Browser.

2003-09-19 Thread Eugene Lee
On Fri, Sep 19, 2003 at 02:39:21PM +1000, Justin French wrote: : : Re-enforcing this is the fact that (AFAIK) no Mac browsers display : in-line PDFs via a plug-in -- they open 'Acrobat' or 'Preview' to : display them -- in other words, the PDF file should not be considered : part of the web app

[PHP] forcing variable expansion

2003-09-19 Thread Eugene Lee
If I have a block of text saved in an external text file, e.g.: All {$badstuff} and no {$goodstuff} makes {$name} a dull {$type}. after reading the text into a string, is there a way to force variable expansion? In a sense, it's like having a heredoc for multiline strings with variable e

Re: [PHP] forcing variable expansion

2003-09-19 Thread Eugene Lee
On Fri, Sep 19, 2003 at 03:50:40PM -0500, Jay Blanchard wrote: : : Eugene Lee asked: : > : > If I have a block of text saved in an external text file, e.g.: : > : > All {$badstuff} and no {$goodstuff} makes {$name} a dull : > {$type}. : > : > after reading the text into

Re: [PHP] Clear ALL Cookies previously set

2003-09-20 Thread Eugene Lee
On Fri, Sep 19, 2003 at 09:14:57PM -0400, Stevie D Peele wrote: : : How can I clear all cookies that have been previously set? : : I want this in an if statement so something like : : if ($value == $blue){ : clear all cookies; : setcookie("name",time()+3600); : } Walk through your $_COOKIE arra

Re: [PHP] Problem with getting non-blocking data from stdin

2003-09-20 Thread Eugene Lee
On Sat, Sep 20, 2003 at 02:14:54AM -0400, Robert Cummings wrote: : On Sat, 2003-09-20 at 01:53, Dan Anderson wrote: : > : > I find your responses to my e-mails quite humorous. Upon review -- : > aside from a single WTF -- I don't think I was condescending in any way : > shape or form. I was just

Re: [PHP] Trying to View php.ini

2003-09-21 Thread Eugene Lee
On Sat, Sep 20, 2003 at 06:19:25PM -0400, Stephen Tiano wrote: : : I'm on a Mac PowerBook. I'm able to locate the php.ini file. But when I : open it with BBEdit, it's a blank page. I just want to open it and : either view it, or make a copy to view. But all I have is the blank. Any : suggestion

Re: [PHP] consistent PHP function names?

2003-09-22 Thread Eugene Lee
On Sun, Sep 21, 2003 at 09:10:16AM -0700, Raquel Rice wrote: : : On Wed, 17 Sep 2003 21:22:36 +1000 : Justin French <[EMAIL PROTECTED]> wrote: : : > I posted a similar topic a few months back. I guess the answer is : > that the collaborative nature of open source, and the fact that : > PHP has g

Re: [PHP] Re: forcing variable expansion

2003-09-22 Thread Eugene Lee
On Sun, Sep 21, 2003 at 03:01:41PM -0400, Rich Fox wrote: : "Eugene Lee" <[EMAIL PROTECTED]> wrote: : > : > If I have a block of text saved in an external text file, e.g.: : > : > All {$badstuff} and no {$goodstuff} makes {$name} a dull {$type}. : > : > after

Re: [PHP] Clear ALL Cookies previously set

2003-09-22 Thread Eugene Lee
On Mon, Sep 22, 2003 at 10:18:21AM +0200, Marek Kilimajer wrote: : : Eugene Lee wrote: : > : >But I don't know what might happen if you use setcookie() to expire a : >cookie and then use setcookie() later on to set the same cookie. : : www.php.net/set_cookie : : : In PHP 3, mul

Re: [PHP] speaking of php editors

2003-09-23 Thread Eugene Lee
On Tue, Sep 23, 2003 at 12:28:12AM +, Curt Zirzow wrote: : * Thus wrote Chris W. Parker ([EMAIL PROTECTED]): : > : > I am looking for an editor that will highlight the string : > "{$array['index']['index']}" within a string. : > : > For example: : > : > +- gray --

Re: [PHP] date conflict with old news archive

2003-09-23 Thread Eugene Lee
On Tue, Sep 23, 2003 at 09:01:19PM +0100, [ PAUL FERRIE ] wrote: : : God i hope this is simple :) It is. I think. :-) : I have news bloggs section on my site. At present the news is loaded in : from a txt file, most of the site is now running with most sections being : loaded via mysqldb's.

Re: [PHP] help with arrays

2003-09-23 Thread Eugene Lee
On Tue, Sep 23, 2003 at 01:49:03PM -0700, Chris W. Parker wrote: : : Robert Cummings said: : > : > foreach( $data as $key => $value ) : : I don't use that syntax much so I'm not familiar with it. Maybe I should : start eh? Another caveat: it works on a *copy* of the ar

Re: [PHP] help with arrays

2003-09-23 Thread Eugene Lee
On Tue, Sep 23, 2003 at 05:44:46PM -0400, Robert Cummings wrote: : On Tue, 2003-09-23 at 17:37, Eugene Lee wrote: : > On Tue, Sep 23, 2003 at 01:49:03PM -0700, Chris W. Parker wrote: : > : : > : Robert Cummings <mailto:[EMAIL PROTECTED]> said: : > : > : > : > forea

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread Eugene Lee
On Wed, Sep 24, 2003 at 01:04:45PM -0400, Kevin Bruce wrote: : : Thanks:) I'll give BBedit a go for a week and let you know how it turns out. : Yes, Dreamweaver does sucketh much, but it's great for hashing out the page : (WYSIWYG style) then tweeking the code. I Hate (capital H) hand typing : nes

Re: [PHP] About php String function

2003-09-24 Thread Eugene Lee
On Thu, Sep 25, 2003 at 10:48:19AM +0530, Uma Shankari T. wrote: : : I am using strpos function for finding the string position in a : particular string .If the string value is equal to zero or greater : than zero some steps to be executed. If the position is empty it is taking : as zero val

Re: [PHP] What to use?

2003-09-25 Thread Eugene Lee
On Thu, Sep 25, 2003 at 10:01:48PM +0200, Ryan A wrote: : : I am running a query on the database to get the avg of a few fields, I am : getting a result something like this: : : 5. : 4. : 5. : : I dont want to use such big averages and want to cut the last to digits off : so it will

Re: [PHP] Submit button

2003-09-28 Thread Eugene Lee
On Sun, Sep 28, 2003 at 12:49:27PM +0200, Karina S wrote: : : I want to use an image as submit button on my form. Now I use the following : code with button: : : if (!(isset($_Post['SubmitForm']))) : { : ... : . : : } : else : { : . : } : : Is it possible to

Re: [PHP] where are the good examples of using OOP?

2003-09-28 Thread Eugene Lee
On Sun, Sep 28, 2003 at 12:52:40PM +0200, anders thoresson wrote: : : I wonder if someone can point me to tutorials that uses real PHP examples : instead, examples that shows me in a direct way how to use OOP. My biggest : trouble right now is what should be the classes and what should be the

Re: [PHP] Submit button

2003-09-28 Thread Eugene Lee
On Sun, Sep 28, 2003 at 01:20:32PM +0200, Karina S wrote: : : I have changed the code, but it doesn't work. : : if (!(isset($_Post['SubmitForm_x']))) : { : ... : . : : } : else : { : . : } 1. The superglobal array is $_POST (all caps), not $_Post. 2. Make su

Re: [PHP] General .htaccess question

2003-09-29 Thread Eugene Lee
On Sun, Sep 28, 2003 at 08:53:13PM -0400, Mike Brum wrote: : : I think I know the answer to this, but want some confirmation from someone a : bit more knowledgable about Apache and .htaccess files. Okay. : My webhost has the default 404 page set to 404.html. For the sake of : consistancy on a nu

Re: [PHP] php and checkboxes.

2003-09-29 Thread Eugene Lee
On Mon, Sep 29, 2003 at 01:43:08PM +0200, Angelo Zanetti wrote: : : Marek Kilimajer suggested: : > : > Angelo Zanetti wrote: : > > : > > I have a table that is populated from a database which gets the : > > IDs of the records from a php array.Every row in the table has a : > > checkbox next to the

Re: [PHP] Resource Limits

2003-09-29 Thread Eugene Lee
On Mon, Sep 29, 2003 at 07:49:40AM -0500, Donald Tyler wrote: : : Decapode Azur asked: : > : > How can I get the values of 'max_execution_time', 'max_input_time' and : > 'memory_limit' from my php script ? : : Just incase you weren't aware. You can change the Max execution time : during the scrip

Re: [PHP] control M from export file

2003-09-29 Thread Eugene Lee
On Sun, Sep 28, 2003 at 06:58:57PM -0700, Ed Kwok wrote: : :I am running into problem parsing a file exported from MS excel. I : have exported the file as asci format, but there is a control "M" : append to my document. What is this control "M" and how can I delete : without manually repl

Re: [PHP] Initial Value for Input Box

2003-09-29 Thread Eugene Lee
On Mon, Sep 29, 2003 at 05:46:15PM -0400, Matt Palermo wrote: : : I have a form that a user can fill out. In the text input field I allow : them to insert HTML tags with their input data. They can then submit the : form for processing. The problem is that later on when they go to edit : their i

Re: [PHP] PNGs & PHP feedback

2003-09-30 Thread Eugene Lee
On Tue, Sep 30, 2003 at 02:40:42AM -0400, Joe Harman wrote: : : I am looking for some guidance... I am using PHP to make dynamic : buttons... Is the PNG image format a pretty safe thing to go with... : Standard wise? PNG support in M$ IE is still shaky. -- PHP General Mailing List (http://www.p

Re: [PHP] arrays and php

2003-09-30 Thread Eugene Lee
On Tue, Sep 30, 2003 at 09:10:44AM -0700, Chris W. Parker wrote: : : Angelo Zanetti : on Tuesday, September 30, 2003 5:43 AM said: : : > hi I have a table with rows and each row contains a checkbox ( array) : > and a record. TD of the checkbox: : > echo(" value=". $

Re: [PHP] PNGs & PHP feedback

2003-09-30 Thread Eugene Lee
(about M$IE and PNG) On Wed, Oct 01, 2003 at 11:31:46AM +0900, - Edwin - wrote: : : Curt Zirzow <[EMAIL PROTECTED]> wrote: : > : > It does have a problem reading alpha channels in the pngs though. : : Quite true. (I "forgot" that part...) Though it seems like it's not a : problem for the IE on M

Re: [PHP] Attempt at putting greedy htmlspecialchars on a diet

2003-09-30 Thread Eugene Lee
On Wed, Oct 01, 2003 at 01:12:16AM -0400, Gerard Samuel wrote: : : Got a problem with htmlspecialchars being too greedy, where : for example, it converts : &foo; : to : &foo; : : Yes it displays correctly in the browser for some content, but not all. : (an example is posted below) : So I came u

[PHP] mmcache problems

2003-10-01 Thread Eugene Lee
Just tried installing Turck MMCache 2.4.1 on a FreeBSD box. After tweaking the configure script: ./configure --enable-mmcache=shared --with-php-config=/usr/local/bin/php-config --prefix=/usr/local I got it to compile and install in: /usr/local/lib/php/extensions/no-debug-non-zt

Re: [PHP] PNGs & PHP feedback

2003-10-01 Thread Eugene Lee
On Wed, Oct 01, 2003 at 04:41:28PM +0900, - Edwin - wrote: : : (Sorry if this is becoming OT...) : : Eugene Lee <[EMAIL PROTECTED]> wrote: : > : > M$IE for the Mac uses a completely different codebase from the : > Windoze version and started with the home-grown Tasman engine, w

Re: [PHP] getting image width,height

2003-10-01 Thread Eugene Lee
On Wed, Oct 01, 2003 at 11:02:47AM +0300, Fatih Olcer wrote: : : how can i get the image width and height ? 1. imagesx() and imagesy(). 2. please try checking the online manual first, in the appropriate section: http://www.php.net/manual/en/ref.image.php -- PHP General Mailing List (h

Re: [PHP] array_diff()

2003-10-01 Thread Eugene Lee
On Wed, Oct 01, 2003 at 11:49:29AM +0200, Angelo Zanetti wrote: : : I looked at the PHP manual and it doesnt say much about this function. : what I want to know is that, do the 2 arrays have to have the same : length of number of elements? Nope. Re-examine Example 1: $array1 and $array2 are diff

Re: [PHP] Mail.php help

2003-10-01 Thread Eugene Lee
On Wed, Oct 01, 2003 at 08:18:21AM -0700, Eric Rounds wrote: : : We have PHP 4.2 installed on Mac OS X under Apache. : : The settings in the php.ini file are: : : sendmail_from - [EMAIL PROTECTED] : sendmail_path - /usr/sbin/sendmail -t -i : SMTP - localhost : smtp_port - 25 Make sure that Sen

Re: [PHP] documentation on "<<<"

2003-10-01 Thread Eugene Lee
On Wed, Oct 01, 2003 at 01:07:35PM -0400, Rich Fox wrote: : : Can someone point me to documentation on the <<< operator? I am wondering if : there are some quirks I don't know about. Yet I can't find it documented on : the php website. Try searching for "heredoc". -- PHP General Mailing List (h

Re: [PHP] Mail.php help

2003-10-01 Thread Eugene Lee
On Wed, Oct 01, 2003 at 08:31:49AM -0700, Eric Rounds wrote: : : On Wednesday, October 01, 2003, at 08:26AM, Eugene Lee wrote: : > : >Make sure that Sendmail is enabled and running on OS X. By default, : >Sendmail is disabled on OS X. : : Thank you! I will let the administrator know

Re: [PHP] Attempt at putting greedy htmlspecialchars on a diet

2003-10-01 Thread Eugene Lee
On Wed, Oct 01, 2003 at 02:02:08PM -0400, Gerard Samuel wrote: : CPT John W. Holmes wrote: : >From: "Eugene Lee" <[EMAIL PROTECTED]> : >>On Wed, Oct 01, 2003 at 01:12:16AM -0400, Gerard Samuel wrote: : >>: : >>: Got a problem with htmlspecialchars being to

Re: [PHP] Mail.php help

2003-10-01 Thread Eugene Lee
On Thu, Oct 02, 2003 at 02:23:44AM +0800, Jason Wong wrote: : On Thursday 02 October 2003 01:28, Eugene Lee wrote: : > On Wed, Oct 01, 2003 at 08:31:49AM -0700, Eric Rounds wrote: : > : : > : By the way, is there a way I can check, without looking into the : > : serving Mac, to

Re: [PHP] Attempt at putting greedy htmlspecialchars on a diet

2003-10-01 Thread Eugene Lee
On Wed, Oct 01, 2003 at 02:46:14PM -0400, Gerard Samuel wrote: : : When I say that I don't know what characters Im expecting. : Im not talking about normal html entities, like &   < : Im talking about chinese/japanese/korean/taiwanese alphabet, numbers : (even punctuation if applicable). : Maybe

Re: [PHP] Attempt at putting greedy htmlspecialchars on a diet

2003-10-02 Thread Eugene Lee
On Thu, Oct 02, 2003 at 05:15:32PM +0900, - Edwin - wrote: : : On Thu, 2 Oct 2003 01:54:43 -0500 Eugene Lee <[EMAIL PROTECTED]> wrote: : > : > There's two issues: input and output. : > : > HTML character references address the problem of displaying certain : > characte

Re: [PHP] PHP Bug Problems

2003-10-02 Thread Eugene Lee
On Wed, Oct 01, 2003 at 07:50:10PM -0700, Richard Baskett wrote: : : Well I saw a post on a forum talking about a certain bug that PHP has for : Mac OS X.. so I thought.. Im on OS X, I should see if that bug is real since : on bugs.php.net they say it's bogus which you can view here: : : http://b

Re: [PHP] array_diff

2003-10-02 Thread Eugene Lee
On Thu, Oct 02, 2003 at 10:44:15AM +0200, Angelo Zanetti wrote: : : I am getting some weird results when using the array_diff() function. : : eg: $arrayResult = array_diff($array1, $array2); : : When i use it the resulting array ($arrayResult) gets the correct number of : elements, however when

Re: [PHP] array_diff

2003-10-02 Thread Eugene Lee
On Thu, Oct 02, 2003 at 11:28:23AM +0200, Angelo Zanetti wrote: : : I know what the problem was, firstly that when doing an array_diff the keys : are preserved. Therefore If I was looping through $arrayResult for the count : of elements (in this case 2) then thats where the blank value comes in. S

Re: [PHP] datediff in php

2003-10-02 Thread Eugene Lee
On Thu, Oct 02, 2003 at 01:36:04PM +0100, bob pilly wrote: : : Does anyone know if there is a date difference function in php? I have : searched the manual but found none. What im after is a function that : will return the number of days or seconds between a start date and a : second date. Much l

Re: [PHP] Dynamic tables-Change cell colour with drop down menu[Scanned]

2003-10-02 Thread Eugene Lee
On Fri, Oct 03, 2003 at 11:27:25AM +0800, [EMAIL PROTECTED] wrote: : : I have tried using the methos you have mentioned. But it was not : successful as the cell doesn't seem to be able to GET the COLOUR : selected from the drop down menu. This is a small part of my code : : : cell1 : : & :

Re: [PHP] Building associative arrays

2003-10-03 Thread Eugene Lee
On Fri, Oct 03, 2003 at 10:22:55AM +0100, [EMAIL PROTECTED] wrote: : : I'm trying to build an associative array from a database result. How can I : assign a new key and value pair : : eg : : mysql_fetch_row etc : { : dbRowCol1 = myarray(key) : dbRowCol2 = myarray(value) : } : : You get the

Re: [PHP] How to swap the table's bg color with php

2003-10-03 Thread Eugene Lee
On Fri, Oct 03, 2003 at 06:11:39PM +0800, Jack wrote: : : I had write a script using php,which will pull the values from a mysql table : to display in HTML. : now i want to add a function which when the mouse had move over a table : cell, the background of the table cell will turn to other color!

Re: [PHP] Cookies Vs Sessions...?

2003-10-03 Thread Eugene Lee
On Fri, Oct 03, 2003 at 04:31:23PM +0100, [EMAIL PROTECTED] wrote: : : I currently remember my visitors on my site by setting a cookie thusly: : : setcookie("logged", "yes"); : : On each protected page, put an IF ($logged == "yes") { //show page etc } : else {//show login form etc } You should

Re: [PHP] Cookies Vs Sessions...?

2003-10-03 Thread Eugene Lee
On Fri, Oct 03, 2003 at 08:57:17AM -0700, Chris Shiflett wrote: : : --- Eugene Lee <[EMAIL PROTECTED]> wrote: : > > : > > On each protected page, put an IF ($logged == "yes") { //show page etc } : > > else {//show login form etc } : > : > Y

Re: [PHP] dir size

2003-10-03 Thread Eugene Lee
On Fri, Oct 03, 2003 at 02:14:14PM -0500, Jay Blanchard wrote: : [snip] : > > > : > > > $foo = exec("du -h"); : > > : > > Hmmm this solution would appear to include the file sizes :D : > : > man du :D : : et du? LMAO! :-D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] stripping comments

2003-10-05 Thread Eugene Lee
On Sun, Oct 05, 2003 at 04:46:16AM -0400, zzz wrote: : : I'm trying to strip comments out of my code. I can get it to strip one : section of comments but the problem comes in when I have more then one : comment section to strip. : : I am using this: $code = preg_replace('/\/*(.*?)*\//is', '$1',

Re: [PHP] attach file with mail() function??

2003-10-05 Thread Eugene Lee
On Sun, Oct 05, 2003 at 09:58:55PM -0500, John Nichel wrote: : [EMAIL PROTECTED] wrote: : >>Jason Wong wrote: : >>>On Monday 06 October 2003 07:34, Roy W wrote: : >>> : Is there a way to attach a file with the mail() function? : >>> : >>>Yes. : >> : >>Is there a way to have PHP print out "Hello

Re: [PHP] Re: php5 and possible oop features/questions

2003-10-06 Thread Eugene Lee
On Mon, Oct 06, 2003 at 12:36:49PM +0200, Tit Black Petric wrote: : : Not really what i was getting at dude, i dont see how defining a class : variable will let me define a method outside of a given class, or to : dynamically extend/implement other classes inside a general one? Why the desire to

Re: [PHP] php&javascript live-clock

2003-10-07 Thread Eugene Lee
On Tue, Oct 07, 2003 at 03:48:27PM +0200, Alex Ciurea wrote: : : is it possible to show the live-clock from the server machine, using : php and javascript, without having to make refresh of that page? AFAIK, no. PHP scripts get their time information from the server. JavaScript can get its time

Re: [PHP] or return problem

2003-10-07 Thread Eugene Lee
On Tue, Oct 07, 2003 at 01:02:36PM -0400, Pat Carmody wrote: : : Calling the following retor_test() function causes a "Parse error: parse : error, unexpected T_RETURN" message when the script is run: : : function istrue() { : return true; : } : function retor_test() { : istrue() or return( "F

Re: [PHP] A DATE Question

2003-10-08 Thread Eugene Lee
On Wed, Oct 08, 2003 at 03:08:44PM +0100, Shaun wrote: : : is there a function in PHP that will work out the amount of time(hours) : beween two different dates / times? Just convert the two times into Unix timestamps, subtract one from the other, and the difference is the amount of time in second

Re: [PHP] LiteSpeed Web Server 1.1

2003-10-08 Thread Eugene Lee
On Wed, Oct 08, 2003 at 11:56:51AM -0400, LiteSpeed Information wrote: : : We glad to introduce you LiteSpeed Web Server 1.1. So it is basically like TUX, a kernel-based web server? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re[2]: [PHP] dynamic -> static

2003-10-09 Thread Eugene Lee
On Thu, Oct 09, 2003 at 10:09:19AM -0700, Jim Lucas wrote: : : I have the following configuration. : : Redhat 8.0 : Apache/2.0.40 (stock redhat install) : PHP 4.2.2 (stock redhat install) : : What I get when I try and run this is an Object Not Found. : : Same as the ERROR 404 page not found

Re: [PHP] Re: CSV file with PHP

2003-10-11 Thread Eugene Lee
On Fri, Oct 10, 2003 at 03:06:53PM -0700, Curt Zirzow wrote: : : On Fri, 10 Oct 2003 18:38:04 -0300, Cesar Aracena <[EMAIL PROTECTED]> : wrote: : > : >Does anybody knows how to make a CSV (comma separated values) file : >with PHP based on results fetched from MySQL? I need it to import it : >with

Re: [PHP] newbie question

2003-10-12 Thread Eugene Lee
On Sun, Oct 12, 2003 at 06:09:21PM +1000, Wang Feng wrote: : : This is the example from the php manual: [...] : $formatted = sprintf("%01.2f", $money);// my question comes here : // echo $formatted will output "123.10" [...] : : I don't understand the meaning of the 01 above, which follow

Re: [PHP] Age from date field?

2003-10-12 Thread Eugene Lee
On Sun, Oct 12, 2003 at 02:09:38AM +0200, DvDmanDT wrote: : : Does anyone have a good solution on how to get the age of someone from a : date column in mysql... This is what I have, but it's not really the : truth... What's the right way to do it? : : floor((time()-$a["born"])/(3600*24*365.25)) :

Re: [PHP] newbie question

2003-10-12 Thread Eugene Lee
On Sun, Oct 12, 2003 at 06:57:35PM +1000, Wang Feng wrote: : : If I get rid of the 0 and tried this: : : $price=.65; : $f_price=sprintf("%1.2f",$price); : : It displays "0.65" in my Mozilla browser correctly. What do you say then? I say, "I dunno". :-) It seems to follow C's printf(3) convers

Re: [PHP] https detection

2003-10-12 Thread Eugene Lee
On Sun, Oct 12, 2003 at 01:09:15PM +0200, Rosen wrote: : : Is there a way to determite with PHP thath site visitor is in https (SSL) : mode or in normal mode ? Check for the existence of $_SERVER['HTTPS'] which gets set only on SSL pages. I wonder why it's still not mentioned in the official doc

Re: [PHP] https detection

2003-10-12 Thread Eugene Lee
On Sun, Oct 12, 2003 at 01:24:40PM +0200, Rosen wrote: : : I.e. if I use _SERVER["SERVER_PORT"] = 443 - for https connection and 80 : for "normal" - i'll be able to determite if user is in https mode - I think : thath should be works . ? Technically, you can't guarantee that anything running ov

Re: [PHP] https detection

2003-10-12 Thread Eugene Lee
On Sun, Oct 12, 2003 at 08:52:30PM +1000, Tom Rogers wrote: : Sunday, October 12, 2003, 8:46:41 PM, Eugene wrote: : EL> On Sun, Oct 12, 2003 at 01:24:40PM +0200, Rosen wrote: : EL> : : EL> : I.e. if I use _SERVER["SERVER_PORT"] = 443 - for https connection : EL> : and 80

Re: [PHP] Age from date field?

2003-10-12 Thread Eugene Lee
On Sun, Oct 12, 2003 at 02:49:53PM +, Curt Zirzow wrote: : * Thus wrote Eugene Lee ([EMAIL PROTECTED]): : > On Sun, Oct 12, 2003 at 02:09:38AM +0200, DvDmanDT wrote: : > : : > : Does anyone have a good solution on how to get the age of someone from a : > : date column in mysql...

Re: [PHP] newbie question

2003-10-12 Thread Eugene Lee
On Mon, Oct 13, 2003 at 03:23:53AM +1000, Wang Feng wrote: : : "1. An optional padding specifier that says what character will be used for : padding the results to the right string size. This may be a space character : or a 0 (zero character). The default is to pad with spaces. An alternate : pad

Re: [PHP] awful newbie question

2003-10-12 Thread Eugene Lee
On Sun, Oct 12, 2003 at 07:09:32PM +0200, Marek Kilimajer wrote: : : Paul Freedman wrote: : > : >In the php statement : >$q->qzml(); : >what is the symbol '->' called? What does it mean? : : It calls *member* function of object $q. [...] : >I have also come across the symbol '=>'. I assume it is n

Re: [PHP] newbie question

2003-10-13 Thread &#x27;Eugene Lee'
On Mon, Oct 13, 2003 at 10:32:18AM +0100, Ford, Mike [LSS] wrote: : : On 12 October 2003 23:36, Eugene Lee wrote: : > : > The PHP manual is vague in several sections. I wonder how bug : > reports get submitted for it? : : http://bugs.php.net/report.php and select "

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Eugene Lee
On Mon, Oct 13, 2003 at 09:48:56PM +1000, Wang Feng wrote: : : Ok, Now I see what happen (maybe). : : So, the "\n" is not for the browser output, but for the *view source*? So, : it's different from the "echo "? : : If so, what's the deal to do that? --- Makes it look nice if the user view : the

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Eugene Lee
On Mon, Oct 13, 2003 at 08:10:39AM -0500, Jay Blanchard wrote: : : [snip] : To give tabs in html, you might want to try using       : instead of \t : [/snip] : : And one other thing I didn't see mentioned http://www.php.net/nl2br Note that nl2br() is XHTML compliant, which means it sends out ""

Re: [PHP] preg_replace newb

2003-10-13 Thread Eugene Lee
On Mon, Oct 13, 2003 at 11:00:36PM +1000, Justin French wrote: : : On Monday, October 13, 2003, at 10:17 PM, Mohamed Lrhazi wrote: : : >I would try a petern like this: : > : >$pattern="!([^<]*)!" : > : >check the docs for greedy not greedy thingy... : : Mohamed, : : I still can't seem to get i

Re: [PHP] Passing variables between pages

2003-10-14 Thread Eugene Lee
On Tue, Oct 14, 2003 at 10:20:44AM -0500, Jay Blanchard wrote: : "KB" <[EMAIL PROTECTED]> asked: : > : > Simple one for anyone who wants to help out a novice. How do you : > pass a variable from one page to another? : : Through either a $_POST or a $_GET variable array. And cookies and session

Re: [PHP] Makeing automatic tags for email and www.

2003-10-15 Thread Eugene Lee
On Wed, Oct 15, 2003 at 03:41:01AM -0500, Gabriel Peugnet wrote: : : I want to convert : [EMAIL PROTECTED] : into : (a href='mailto:[EMAIL PROTECTED]') [EMAIL PROTECTED] (/a) : : (I sustitued tags with parenthesis) : : It's a little tedious makeing the function. Nah. function email

Re: [PHP] Re: Makeing automatic tags for email and www.

2003-10-15 Thread Eugene Lee
On Wed, Oct 15, 2003 at 04:16:14AM -0500, Gabriel Peugnet wrote: : : Thanks Eugene. : : I'm afraid I didn't explain my self as I should. : : What I want is this to be automaticaly generated in a text. : For example, in: : : "Some text some text some text some text [EMAIL PROTECTED]

Re: [PHP] preg help please :)

2003-10-15 Thread Eugene Lee
On Thu, Oct 16, 2003 at 02:23:45PM +1000, Justin French wrote: : : I have the following: : : \\1", : $text : ); : ?> : : It basically matches "link text":"url" with the added twist of having : the quotes converted to “ or “ by a previous function. : : It works fine if there is one

Re: [PHP] Regular Expressions

2003-10-16 Thread Eugene Lee
On Thu, Oct 16, 2003 at 03:35:57PM +0300, Shmuel wrote: : : I have a misspelled sentence like this: "I am not aIone". : I want to change the capital I to small l, but only in : the beginning of a word. This doesn't make sense. It sounds like you want to replace every occurance of 'I' inside a wo

Re: [PHP] Regular Expressions

2003-10-16 Thread Eugene Lee
On Thu, Oct 16, 2003 at 09:41:39PM +0300, Shmuel wrote: : Eugene Lee wrote: : >On Thu, Oct 16, 2003 at 03:35:57PM +0300, Shmuel wrote: : >: : >: I have a misspelled sentence like this: "I am not aIone". : >: I want to change the capital I to small l, but only in : >

Re: [PHP] date for mysql

2003-10-17 Thread Eugene Lee
On Fri, Oct 17, 2003 at 03:28:50PM +0200, Diana Castillo wrote: : : how can I format the current date and time so that I can insert it into a : mysql table with an insert query? That depends on the column type of your MySQL table. Is it a DATETIME? DATE? TIMESTAMP? TIME? Or just a YEAR?

Re: [PHP] SQL security

2003-10-17 Thread Eugene Lee
On Fri, Oct 17, 2003 at 09:38:12AM -0500, Jeremy Russell wrote: : :I was just sitting here thinking how to secure my php code and : thought I would run it by the pros. I don't know what the standard : practice is to secure against sql injection and malformed information : passed from forms.

  1   2   3   >