RE: [PHP] key pairs

2002-12-17 Thread Cal Evans
Possible but a single table with all addresses and an addressType (SHIP_TO or BILL_TO) linked back to the main order table will allow you to retrieve both addresses with a single select: select * from address where orderID=x =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com

RE: [PHP] Media library

2002-12-18 Thread Cal Evans
since you've not indicated that you've looked around and not found one, I suggest starting your search at www.freshmeat.net. =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: GWAD Mailinglist [mailto:[EMAIL PROTECTED]] Sent: Wednesday, D

RE: [PHP] forms

2003-01-13 Thread Cal Evans
yes but it's more of an HTML/JavaScript thing. use INPUT Type='BUTTON' to put a second button on your form. Then use the onClick method to assign an action to it. If you want it to submit your form then call document.formName.submit(); =C= * * Cal Evans * The Vir

RE: [PHP] x12 837

2003-01-16 Thread Cal Evans
I've created an 850 and a base class x12. It's not terribly hard. I did not find much in the way of useful classes already built though. =C= * * Cal Evans * Stay plugged into your audience. * http://www.christianperformer.com * -Original Message- From: Edward Peloke [mai

RE: [PHP] x12 837

2003-01-16 Thread Cal Evans
ould just as easily use CURL to call a SOAP process somewhere if your X12 partner had a brain. (mine does not, the company I was a consultant for in the medical insurance industry did not either) Anyhow, I'm happy to share what I know if you have questions. HTH, =C= * * Cal Evans * Stay plugge

RE: [PHP] More OOP

2003-01-16 Thread Cal Evans
personally, I would ditch the Error class and put raise_error in Base. =C= * * Cal Evans * Stay plugged into your audience. * http://www.christianperformer.com * -Original Message- From: Jordan Elver [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 3:52 PM To: [EMAIL

RE: [PHP] Result in the same page

2003-01-18 Thread Cal Evans
page. It's easier for me to find it that way. =C= * * Cal Evans * Stay plugged into your audience. * http://www.christianperformer.com * -Original Message- From: Ezequiel Sapoznik [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 18, 2003 6:11 AM To: [EMAIL PROTECTED] Subject: [PHP] Res

RE: [PHP] Ever complained about lousy PHP programmers?

2003-01-18 Thread Cal Evans
I keep the windows help version open at all times) and familiarize yourself with the language. You do not need to memorize each function' signature but it would help if you read the description of each function. You'll be surprised what you find in there. =C= * * Cal Evans * Stay plugge

RE: [PHP] Select multiple boxes

2003-01-18 Thread Cal Evans
me" $_POST['mySelect'][2] == "Pick me" HTH, =C= * * Cal Evans * Stay plugged into your audience. * http://www.christianperformer.com * -Original Message- From: Gregory Chagnon [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 11:14 PM To: [EMAIL PROTEC

RE: [PHP] Select multiple boxes

2003-01-18 Thread Cal Evans
whoops. Sorry, didn't read the question. Wrong answer. John gave the correct answer. =C= * * Cal Evans * Stay plugged into your audience. * http://www.christianperformer.com * -Original Message- From: Cal Evans [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 18, 2003 8:41

RE: [PHP] Select multiple boxes

2003-01-18 Thread Cal Evans
= "storeStuffHere[3]='Value3'"; Then, when the form is submitted use: parse_str($_POST['storeStuffHere']); This will create the array storeStuffHere with the 3 values. HTH, =C= * * Cal Evans * Stay plugged into your audience. * http://www.christianperformer.com

RE: [PHP] 2 Qs: Passing current URL with session and how to avoid session timeout???

2003-01-18 Thread Cal Evans
.php if I have to pass a full query string then I urlencode() it first and urldecode() it on the other side. This survives sessions expiring. =C= * * Cal Evans * Stay plugged into your audience. * http://www.christianperformer.com * -Original Message- From: -<[ Rene Brehmer ]>-

RE: [PHP] Can I use php to load a icon?????(.ico .exe .....)

2003-01-18 Thread Cal Evans
exactly how do you "load" an icon? What are you loading it into? =C= * * Cal Evans * Stay plugged into your audience. * http://www.christianperformer.com * -Original Message- From: hei [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 3:18 PM To: [EMAIL PROTECTED] Sub

RE: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Cal Evans
t just saves you from yourself. (Personally, I wish it wouldn't. People have more trouble *because* of the automatic conversions than they would if they had to do the converting themselves.) To keep from running into this simply do the conversions yourself before you do comparisons. intval("08

RE: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Cal Evans
John. > Actually, "08" is equal to 8 in PHP. PHP will convert the string to an >integer and the two will compare as equal. No they are not equal. Yes, PHP will do the conversion so that they are equal. That does not refute the fact that logically '08' != 8. > Someone already posted why the prob

RE: [PHP] if (a == b) ...

2003-01-29 Thread Cal Evans
results and explain them. (In the above, the first should be true and the second should be false.) =C= * * Cal Evans * Stay plugged into your audience. * http://www.christianperformer.com * -Original Message- From: Webapprentice [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29

RE: [PHP] URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Cal Evans
it needs to refresh itself. (I can offer some unhelpful advice like quit using RPMs and compile from source...switch to gentoo linux instead of RedHat for a better package manager...you know, stuff like that. But that's not helpful at the moment!) :) =C= * Cal Evans * Stay plugged into

RE: [PHP] Result in the same page

2003-02-16 Thread Cal Evans
ne please tell me what it is? Thanks in advance, Frappy [EMAIL PROTECTED] (Cal Evans) wrote in message news:<[EMAIL PROTECTED]>... > Yes, just user $_SERVER['PHP_SELF'] as the action of your form. This will > cause the page to call itself. Then you can branch your processing on

RE: [PHP] Cannot find php.ini

2003-02-21 Thread Cal Evans
find / -iname php.ini or create a page with Untitled Save it and then call it form your webserver. It'll tell you where the ini is. =C= * Cal Evans * Stay Plugged Into Your Audience * http://www.christianperformer.com -Original Message- From: Kevin Paz [m

RE: [PHP] browser dialog boxes

2003-02-24 Thread Cal Evans
php=backend alert boxes=front end checkout JavaScript. You can use php to dynamically generate JavaScript. =C= * Cal Evans * Stay Plugged Into Your Audience * http://www.christianperformer.com -Original Message- From: Sunfire [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 2

RE: [PHP] general question ?

2003-02-24 Thread Cal Evans
* Cal Evans * Stay Plugged Into Your Audience * http://www.christianperformer.com -Original Message- From: Jonas Geiregat [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 3:42 PM To: [EMAIL PROTECTED] Subject: [PHP] general question ? http://kemu.ath.cx/intranet/login.phps

RE: [PHP] page shown, but browser keeps doing something

2003-02-25 Thread Cal Evans
are you preloading graphics using JavaScript? * Cal Evans * Stay Plugged Into Your Audience * http://www.christianperformer.com -Original Message- From: Chris Hayes (SENSE) [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 9:13 AM To: [EMAIL PROTECTED] Subject: [PHP] page shown

RE: [PHP] Submit buttons

2003-02-25 Thread Cal Evans
using JavaScript you can use an and in the onClick call a function that sets the form's target and then calls document.formname.submit(); =C= * Cal Evans * Stay Plugged Into Your Audience * http://www.christianperformer.com -Original Message- From: Greg [mailto:[EMAIL PROTECTED]

RE: [PHP] Newbie Question

2003-02-25 Thread Cal Evans
it's a bit of a kludge. (IMHO, etc.) =C= * Cal Evans * Stay Plugged Into Your Audience * http://www.christianperformer.com -Original Message- From: Greg Luce [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 9:47 PM To: [EMAIL PROTECTED] Subject: [PHP] Newbie Question Can

RE: [PHP] newbie: installing gd in php4

2003-02-26 Thread Cal Evans
did you bounce the service after uncommenting the line? =C= * Cal Evans * Stay Plugged Into Your Audience * http://www.christianperformer.com -Original Message- From: Anthony Ritter [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 10:15 AM To: [EMAIL PROTECTED] Subject: [PHP

RE: [PHP] Newbie look for some content specific tutorials

2003-02-27 Thread Cal Evans
take a look at the database abstraction layer ADODB at php.weblog.com Even if you are like me and never use more than just MySQL, it makes like a lot easier. =C= * Cal Evans * Stay Plugged Into Your Audience * http://www.christianperformer.com -Original Message- From: Hunter, Jess

RE: [PHP] crontab

2003-03-04 Thread Cal Evans
1: yes you can. 2: You can use either print or echo. I use echo when I actually want something output, most of my scripts don't output anything. If there is some output of import, I use mail() to send it to myself. 3: Yes, I am. * Cal Evans * Stay Plugged Into Your Audience *

RE: [PHP] crontab

2003-03-04 Thread Cal Evans
box, it's ok. PHP does not 'run as root'. The CLI will run as whomever is executing the script. My $.02 worth. =C= * Cal Evans * Stay Plugged Into Your Audience * http://www.christianperformer.com -Original Message- From: John Taylor-Johnston [mailto:[EMAIL PROTECTED] Sent

RE: [PHP] Valid Email Question

2003-03-11 Thread Cal Evans
The only way to do that would be to open a connection to the SMTP server directly and try and send the email. (Instead of using the mail function) This way the mail server would give you an error code if it didn't work. =C= * Cal Evans * Stay Plugged Into Your Audience *

Re: [PHP] PHP CLI question

2003-06-06 Thread Cal Evans
http://www.php.net/manual/en/function.ini-set.php * Cal Evans * http://www.christianperformer.com * Stay plugged into your audience * The measure of a programmer is not the number of lines of code he writes but the number of lines he does not have to write. * - Original Message - From

Re: [PHP] Form Generators

2003-05-29 Thread Cal Evans
check www.freshmeat.net. There are several. =C= * Cal Evans * http://www.christianperformer.com * Stay plugged into your audience * The measure of a programmer is not the number of lines of code he writes but the number of lines he does not have to write. * - Original Message - From

Re: [PHP] Netbilling PHP Script

2003-05-30 Thread Cal Evans
Mike, I'm glad you vented. Now let me. I say none of this in anger and quite a lot of it in amusement. Please don't take this the wrong way. (By saying that I'm insuring that you WILL take it the wrong way!) :) Why is it helpful to give a person the answer to a question that has been answered be

Re: [PHP] 3 entries going into 1 field

2003-06-01 Thread Cal Evans
have 3 select boxes bdMonth, bdDay, bdYear. Then when processing the $_POST, simply contact them in the format you want. $bdString = $_POST['bsMonth'].'/'.$_POST['bsDay'].'/'.$_POST['bsYear']; HTH, =C= * Cal Evans * http://www.christianper

Re: [PHP] HTML...

2003-06-16 Thread Cal Evans
in page to try var_dump($_POST['email_recipients']); =C= * Cal Evans * http://www.christianperformer.com * Stay plugged into your audience * The measure of a programmer is not the number of lines of code he writes but the number of lines he does not have to write. * - Origin

RE: [PHP] Banner Ad Serving...

2002-07-23 Thread Cal Evans
Tell apache that .html files are to be served through php * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: Dave at Sinewaves.net [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 11:00 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Banner Ad

RE: [PHP] security login

2002-08-12 Thread Cal Evans
t;isA('SYSADMIN) // normal code goes here. In the above example it is assumed that you have created a Person object to deal with everything. HTH, =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: Pag [mailto:[EMAIL PROTECTED]] Sent: Monday,

RE: [PHP] OO code and private functions

2002-08-16 Thread Cal Evans
not yet (Zend engine 2.0 I believe has this) Currently the convention is to name private functions _* (variables the same) This denotes to other coders that you intended this to be a private function. =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message

RE: [PHP] MySQL Current Row??

2002-09-18 Thread Cal Evans
to the data in the table. HTH, =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: Beeman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 8:30 AM To: php Subject: [PHP] MySQL Current Row?? What function/array index should I use to determ

RE: [PHP] about $_post

2002-09-19 Thread Cal Evans
uldn't get in the habit of writing my arrays like this. It's confusing to say the least. =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: Meltem Demirkus [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 6:35 AM To: [EMAI

RE: [PHP] File Random Access

2002-10-30 Thread Cal Evans
d for you but in my 2 years of using PHP, you are the first person I've seen ask for it. Therefore I don't think it qualifies as a serious flaw. IMHO, etc. =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: Rick Emery [mailto:[EMAIL P

RE: [PHP] open a new html page

2002-06-05 Thread Cal Evans
store the user's preference in a database. Once they have logged in, use their login or userID to retrieve it form the database and redirect to the appropriate page. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Re

RE: [PHP] E-Commerce and "small" intranet solution

2002-06-05 Thread Cal Evans
have you searched freshmeat.net? google.com? both of those can give you the examples you are looking for. * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Jay Fitzgerald [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 2

RE: [PHP] HTTP1.1

2002-06-27 Thread Cal Evans
n omit the http:// and the host name if you like. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 12:40 PM To: php-gen Subject: [PHP] HTTP1.1 Kinda off topi

RE: [PHP] Why isn't this working?

2002-06-28 Thread Cal Evans
Have you tried: $query = "UPDATE poll_options SET votes = votes + 1"; * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: JJ Harrison [mailto:[EMAIL PROTECTED]] Sent: Friday, June 28, 2002 8:05 AM To: [EMAIL PROTECTED] Sub

RE: [PHP] Populate Popup Menu from Database

2002-06-29 Thread Cal Evans
Hi Mike, Check out ADODB. It's a database abstraction layer for PHP that has functions to do this. (php.weblogs.com) Otherwise it's kinda easy to do this, here's some psuedo-code that shoudl get you going. fields['departmentID']; ?>">fields['depa

RE: [PHP] ASP style "application-level" variables

2002-06-29 Thread Cal Evans
. Thanks for your cooperation, =C= p.s. I accomplish applicaiton level variables by storing them in a table called application in my application's database. This way I can change them on the fly and all my pages can see them. I have objects that read them in on the pages that need them. *

RE: [PHP] php & SMS (or phone contact)

2002-07-01 Thread Cal Evans
don't reinvent the wheel. (Unless you jsut REALLY want to) Try www.nagios.org It has support for SMS. (Be prepared to spend about 3-4 hours setting it up) =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Duncan [mailto:[

RE: [PHP] Re: MySQL fetch data

2002-07-01 Thread Cal Evans
Jeff, Also, try php.weblogs.com ADODB if you absolutly MUST have all of your data in an array. I'll agree with Richard that it's not a great idea unless there is a specific need. While loops for displaying the contents of many records are much better. (IMHO, etc...) =C= * *

RE: [PHP] Authentication

2002-07-03 Thread Cal Evans
I agree with Ed. Use sessions. It's more secure that how you are doing it because theusername is not stored in the page and retransmitted each page. =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: Peter [mailto:[EMAIL PROTECTED]]

RE: [PHP] function for size of array

2002-07-05 Thread Cal Evans
size_of() (insert obligatory RTFM comment here) =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED]] Sent: Friday, July 05, 2002 9:16 AM To: [EMAIL PROTECTED] Subject: [PHP] function for size of array Is

Re: [PHP] don't want to receive but email please

2002-07-08 Thread Cal Evans
only if user stupidity can be considered a virus. =C= - Original Message - From: "Lazor, Ed" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Monday, July 08, 2002 11:37 AM Subject: RE: [PHP] don't want to receive but email please > So is this a new virus? > > -Origi

RE: [PHP] html entry within XML "database"

2002-07-13 Thread Cal Evans
As a general rule of thumb you should ALWAYS validate the information posted as a form before sending it on to whatever backend you are using. =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: William S. [mailto:[EMAIL PROTECTED]] Sent: Saturday

RE: [PHP] How come this will echo No or nothing?

2002-07-13 Thread Cal Evans
because $row['plevel'] is NEVER == '0' It is probably == 0 though. (note the missing quotes. ) :) HTH, =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: JJ Harrison [mailto:[EMAIL PROTECTED]] Sent: Friday, July 12, 2002

RE: [PHP] How come this will echo No or nothing?

2002-07-13 Thread Cal Evans
Have you done a var_dump on $row to make sure that plevel exists? =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: JJ Harrison [mailto:[EMAIL PROTECTED]] Sent: Friday, July 12, 2002 11:11 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] How come

RE: [PHP] Newbie question

2002-07-13 Thread Cal Evans
++ is an incrementor. $i=1; $i++; echo $i; =C= p.s. -- is a decrementor. * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: Jay [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 13, 2002 8:32 PM To: [EMAIL PROTECTED] Subject: [PHP] Newbie question

RE: [PHP] How come this will echo No or nothing?

2002-07-13 Thread Cal Evans
off the top of my head, I'd suggest : if(intval($row['plevel']) == 0){ Grasping at straws here but you've moved beyond a simple question into a debigging process. (Which doesn't work too well for email.) Sorry I couldn't be of more help. =C= * * Cal

RE: [PHP] Alley-OOP! ... or not?

2002-07-15 Thread Cal Evans
task (database interaction) or an abstraction of a physical object (Person, Invoice, Order) then I use object. The code in the page mainly creates objects and manipulates them. HTH, =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: Martin Clifford

RE: [PHP] Accessing Ports

2002-07-18 Thread Cal Evans
No. No. PHP runs on the server. It knows nothing of the client. =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: Thomas "omega" Henning [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 5:33 AM To: [EMAIL PROTECTED] Sub

[PHP] Re: duplicating databases

2003-10-08 Thread Cal Evans
nly have 1 database but your data is kept separate. (Until MySQL comes out with views, then it gets a lot easier.) HTH, =C= * Cal Evans * http://www.eicc.com * We take care of your IT, * So you can take care of your business. * * I think inside the sphere. Steve Buehler wrote: I am running PHP

RE: [PHP] looking for a PHP editor

2001-01-10 Thread Cal Evans
What extensions and where can you get them? Cal http://www.calevans.com p.s. love homesite use it for everything from HTML to Java to php. -Original Message- From: Wacks, David [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2001 10:59 AM To: 'Egan'; [EMAIL PROTECTED] Subject:

RE: [PHP] PHP simulator

2001-01-10 Thread Cal Evans
there's an implementation of PHP for IIS. -Original Message- From: Todd Cary [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2001 4:15 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP simulator Is there a PHP simulator for NT? One that can be used for testing and development? Todd

RE: [PHP] How can I get a random number

2001-01-10 Thread Cal Evans
Put a web cam on it and we've got a winner! :) Cal -Original Message- From: Monte Ohrt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2001 4:21 PM To: [EMAIL PROTECTED]; Brandon Orther Subject: Re: [PHP] How can I get a random number You can blow some ping pong balls around i

RE: [PHP] Function -> Sending URL's

2001-01-11 Thread Cal Evans
There's a couple points here: 1: echo isn't what you want to do. You want to RETURN the value from you function. Try this: Click"; return "Click"; } $url = 'asdfasdf.php3'; $newURL = testPassVar($url); echo($newURL); echo "This is a $name"; ?> 2: in the last line, you try to echo $name. $n

RE: [PHP] Function -> Sending URL's

2001-01-11 Thread Cal Evans
t;=".$value; } $newURL = testPassVar("http://www.calevans.com?test=one","name","Cal"); Cal http://www.calevans.com -Original Message- From: Abe [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 11, 2001 3:51 PM To: Cal Evans; [EMAIL PROTECTED] Subject

RE: [PHP] Making PHP Hold the hundreth place, instead of dropping the 0

2001-01-11 Thread Cal Evans
I think you are looking for printf. Check the manual. it won't hold it, but you can make it PRINT it. (Which, I'm asumming, is what you really want) Cal http://www.calevans.com -Original Message- From: JB [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 11, 2001 9:09 AM To: [EMAIL PRO

[PHP] RE: [PHP-DB] Autonomous Mass Mail List System (Broadcast Email)

2001-01-10 Thread Cal Evans
Don't reinvent the wheel. It will take you longer to write it than it will to learn to admin majordomo or any of 10 other programs like it. IMHO, Cal -Original Message- From: Jason Beebe [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2001 7:49 PM To: [EMAIL PROTECTED]; [EMAIL PR

RE: [PHP] mixing HTML and PHP code

2001-01-12 Thread Cal Evans
HAR! :) cal -Original Message- From: Tim Zickus [mailto:[EMAIL PROTECTED]] Sent: Friday, January 12, 2001 6:22 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] mixing HTML and PHP code > that's why I didn't implement one of those keyword things in binarycloud. > ergh. Pretty soon we're go

RE: [PHP] load balancing with php/apache?

2001-01-13 Thread Cal Evans
How does it deal with sessions? Or do use store sessions in the database? Cal -Original Message- From: Joe Stump [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 13, 2001 11:22 AM To: Rasmus Lerdorf Cc: [EMAIL PROTECTED] Subject: Re: [PHP] load balancing with php/apache? > http://www

RE: [PHP] load balancing with php/apache?

2001-01-13 Thread Cal Evans
PROTECTED]] Sent: Saturday, January 13, 2001 2:20 PM To: Cal Evans Cc: [EMAIL PROTECTED] Subject: RE: [PHP] load balancing with php/apache? We have a centralized DB server. Sessions are handled by us, the programmers, not the cluster. Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058

RE: [PHP] Refresh particular browser while updating another browser

2001-01-14 Thread Cal Evans
>From everything I know, this can't be done easily. The only way I can think of to do it is to keep both sessions alive so that you still have a connection to the browser from the server. This is not real good. I would instead, explore options using JavaScript. I think I can see a couple of way

RE: [PHP] load balancing with php/apache?

2001-01-14 Thread Cal Evans
I agree. You've piqued my curiosity. Can you go into details? Cal http://.calevans.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 13, 2001 10:19 PM To: jeremy brand Cc: [EMAIL PROTECTED] Subject: RE: [PHP] load balancing with php/ap

RE: [PHP] PHP vs JSP

2001-01-14 Thread Cal Evans
Greetings Henti, While I personally prefer working I PHP after having just finished leading a team of developers on a large JSP project, I would advise you to use the technologies that your client is most comfortable with. Especially if they understand that it will cost more and are willing to pa

RE: [PHP] submit opens two windows/pages

2001-01-14 Thread Cal Evans
I'd do it with JavaScript. Dynamically composed JavaScript if need be. But it seems to me that it would be easier to do this on the client side. Cal http://www.calevans.com -Original Message- From: Tom Beidler [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 14, 2001 2:33 PM To: php lis

RE: [PHP] PHP vs JSP

2001-01-14 Thread Cal Evans
Actually, I understand what he's trying to say, even if I don't agree with him. The main problem people have had with load balancing is sessions. If a particular scripting language *cough*ASP stores session information in memory then the load balancing system has to always send the session from a

RE: [PHP] simple division.. but how?

2001-01-15 Thread Cal Evans
$a= intvalue(10/3) echo($a) Cal http://www.calevans.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, January 15, 2001 12:53 PM To: [EMAIL PROTECTED] Subject: [PHP] simple division.. but how? if you want to do 10 / 3 i want it to show 3 and n

[PHP] PDFLIB 3.0 PHP 4.04

2001-01-15 Thread Cal Evans
Has anyone gotten PHP 4.04 to compile with PDFLIB support? I have successfully compiled pdflib and all of it's supporting libs. (It runs the tests that come with it) But when I ./configure php, I use: ./configure --with-pdflib=/usr/local/lib And in the output of configure I see: ... checking

RE: [PHP] PDFLIB 3.0 PHP 4.04

2001-01-15 Thread Cal Evans
You sir (or madam), are a god among men! Thanks for the assist. Cal http://www.calevans.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jani Taskinen Sent: Monday, January 15, 2001 3:59 PM To: Cal Evans Cc: [EMAIL PROTECTED] Subject: Re: [PHP

RE: [PHP] PHP locking up

2001-01-17 Thread Cal Evans
try a blank page with as the only line. Does that work? Cal http://www.calevans.com -Original Message- From: Phil Scopes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 5:01 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP locking up I have installed PHP 4.0 with Apache

RE: [PHP] String to Variable converstion

2001-01-17 Thread Cal Evans
try: http://www.zend.com/manual/function.eval.php Cal http://www.calevans.com -Original Message- From: Paul Cohen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 6:14 PM To: [EMAIL PROTECTED] Subject: [PHP] String to Variable converstion Hello all, I am trying to build a

RE: [PHP] check null value

2001-01-23 Thread Cal Evans
I would try: if (isset($fieldname) && empty($fieldname)){ // do something here with the variable } else { $fieldname="na"; } // if (isset($fieldname) && empty($fieldname)) Cal http://www.calevans.com -Original Message- From: Jacky@lilst [mailto:[EMAIL PROTECTED]] Sent: Tuesday, J

RE: [PHP] Non-existant folders??

2001-01-23 Thread Cal Evans
Yes, it can be done. No it's not easy. No, it's not advisable. Mixing content like that is a recipe for disaster. If you feel you absolutely must do it without creating dirs, consider putting the content of the pages in a database. Cal http://www.calevans.com -Original Message- From

RE: [PHP] ->

2001-01-24 Thread Cal Evans
It's means that what's on the right is part of the object on the left. i.e. $myObject->myMethod(); fires the method myMethod() of the object $myObject. echo $myObject->myAttribute; displays the value of the attribute myAttribute of the object $myObject. Clear as mud? ;) Cal http://www.cale

RE: [PHP] ->

2001-01-24 Thread Cal Evans
$generic is an object. Somewhere you've got a line in your code that instantiates it. (i.e. $generic = new ...) Cal http://www.calevans.com -Original Message- From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 24, 2001 1:18 PM To: Cal Evans; PHP Mailing

RE: [PHP] how to rename a database

2001-01-24 Thread Cal Evans
Step 1: Ask this question on the MySQL mailing list. :) (Sorry, I couldn't resist) The easiest way I can think of is to use MySQLDump to dump the schema and data, delete the original database, change the output of mysqldump to reflect the new database name and pump it back into mysql. Depending

RE: [PHP] Function / syntax varying from version to version?

2001-01-24 Thread Cal Evans
Guessing here: Define can't take a variable. It has to have a constant. define("RUSER", 1); would compile but not give you the results you want. I'm not sure you can do what you want. have you tried: define("RUSER", '$REMOTE_USER'); Cal http://www.calevans.com -Original Message-

RE: [PHP] sessions and objects

2001-02-22 Thread Cal Evans
Why is this good design? If I create a user object, populate it, kill the connection to the database (or return it to the pool) and cache the object then I can retrieve it any time I want without having to hit the database. Not arguing, just curious as to your perspective. Cal http://www.caleva

RE: [PHP] PHP/MySQL Question

2001-03-10 Thread Cal Evans
Select * from table limit 5; http://www.calevans.com -Original Message- From: Kath [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 10, 2001 6:01 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP/MySQL Question Having some problems with syntax. If I wanted to SELECT only 5 instances of som

RE: [PHP] reset in mysql?

2001-03-12 Thread Cal Evans
run it in a CRON job. Cal http://www.calevans.com -Original Message- From: McShen [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 10:28 PM To: [EMAIL PROTECTED] Subject: [PHP] reset in mysql? hi I have a database which tracks how many hits a website has sent me. I wanna writ

RE: [PHP] How do I get Variables out of a string?

2001-03-16 Thread Cal Evans
urldecode it first. Then explode it. Cal http://www.calevans.com -Original Message- From: Shawn Pritchard [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 10:16 AM To: [EMAIL PROTECTED] Subject: [PHP] How do I get Variables out of a string? Hello! I have been bashing my head t

RE: [PHP] Can you recommend an ISP with the following?

2001-03-16 Thread Cal Evans
Have you looked at www.webmin.com? Cal http://www.calevans.com -Original Message- From: John Huggins [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 10:16 AM To: Jamie Jackson; [EMAIL PROTECTED] Subject: RE: [PHP] Can you recommend an ISP with the following? You mention a larg

RE: [PHP] ASP to PHP

2002-04-23 Thread Cal Evans
Having moved a moderately sized website last year from ASP to PHP I can say from experience that if you can re-write it, the move will go smoother and you will have fewer lines of code. I ended up with about 1/2 as many lines of code to maintain after the port was done. =C= * * Cal Evans

RE: [PHP] PHP Security Leak (plaintext)

2002-04-25 Thread Cal Evans
It's not PHP's place to do this. That being said, check out ADODB. It's a data abstraction layer for several different databases that will give you this functionality. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message---

RE: [PHP] return multiple value from function

2002-04-29 Thread Cal Evans
no, it's not possible to do it that way. If you need to return multiple values from a function, your best bet is to return an array or some kind of record structure. By design, in almost all languages, functions only return a single value. =C= * * Cal Evans * Journeyman Programmer * T

RE: [PHP] Text File Formating.

2002-04-29 Thread Cal Evans
the manual is your friend. http://www.php.net/manual/en/function.nl2br.php * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Randum Ian [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 10:20 AM To: PHP Subject: [PHP] Text

RE: [PHP] Secure MySQL connections in PHP with 'stunnel'

2002-04-29 Thread Cal Evans
ecure in transport. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Stefen Lars [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 10:24 AM To: [EMAIL PROTECTED] Subject: [PHP] Secure MySQL connections in PHP with 'stunnel

RE: [PHP] javascript and PHP

2002-04-29 Thread Cal Evans
World';) Then your PHP script can execute and see the value of $_GET['data'] HTH, Cal * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Steve Buehler [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 10:30 AM

RE: [PHP] Cannot add header information

2002-04-29 Thread Cal Evans
It means that something has already output to the outbuffer in unbuffered mode. Therefore, whatever header operation you are trying to do (start a session? redirect?) cannot be done. IMHO, the biggest culprit of this is blank lines in your include files. =C= * * Cal Evans * Journeyman

RE: [PHP] In Addition to [PHP] PHP Security

2002-04-29 Thread Cal Evans
e level of comfort. (but not a lot) =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Jan Peuker [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 1:45 PM To: [EMAIL PROTECTED] Subject: [PHP] In Addition to [PHP] PHP Securi

RE: [PHP] Is it possible to verify that a form submision is not being "spoofed"?

2002-04-30 Thread Cal Evans
Generate a random number when creating a form, store it in the session and in a hidden on the form. Then when the post comes back, make sure the hidden is there and that it matches the one in the session. Cal * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com

RE: [PHP] Self Destruct code

2002-05-07 Thread Cal Evans
IANAL! It's against the law in most states to create booby-traps in your code. As others have suggested, don't turn over the code until you've received payment. IMHO, you really should have specified the payment schedule in your contract. =C= * * Cal Evans * Journeyman Prog

  1   2   >