[PHP] Re: duplicating databases

2003-10-08 Thread Cal Evans
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/MySQL

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. * - Original Message

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] 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.christianperformer.com * Stay plugged into your audience

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

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] 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 * http

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 * http

RE: [PHP] crontab

2003-03-04 Thread Cal Evans
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: Tuesday, March 04, 2003

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] 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] 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 INPUT type='IMAGE' 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

RE: [PHP] Newbie Question

2003-02-25 Thread Cal Evans
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 someone explain

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
form METHOD='POST' * 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

RE: [PHP] Cannot find php.ini

2003-02-21 Thread Cal Evans
find / -iname php.ini or create a page with !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN html head titleUntitled/title /head body ?echo(phpinfo());? /body /html Save it and then call it form your webserver. It'll tell you where the ini is. =C= * Cal Evans * Stay

RE: [PHP] Result in the same page

2003-02-16 Thread Cal Evans
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 the existence of a SUBMIT button (or whatever) and handle

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

2003-02-13 Thread Cal Evans
= * Cal Evans * Stay plugged into your audience. * http://www.christianperformer.com -Original Message- From: Vernon [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 6:13 AM To: [EMAIL PROTECTED] Subject: [PHP] URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2 After

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

2003-01-29 Thread Cal Evans
, 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, 2003 7:36 PM To: [EMAIL PROTECTED] Subject

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

2003-01-27 Thread Cal Evans
, 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)==8 =C= * * Cal Evans * Stay plugged into your

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 problem

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

2003-01-18 Thread Cal Evans
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. /brutal =C= * * Cal Evans * Stay plugged

RE: [PHP] Select multiple boxes

2003-01-18 Thread Cal Evans
both results in: $_POST['mySelect'][1] == Don't pick 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

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 AM

RE: [PHP] Select multiple boxes

2003-01-18 Thread Cal Evans
'; 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 * -Original Message- From: Gregory Chagnon [mailto:[EMAIL

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

2003-01-18 Thread Cal Evans
://mypage.com/mypage.php?prevURL=http://mypage.com/lastpage.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

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] Subject: [PHP

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 [mailto:[EMAIL

RE: [PHP] x12 837

2003-01-16 Thread Cal Evans
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 plugged into your audience. * http

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] 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 Virtual CIO * http

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, December 18

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] File Random Access

2002-10-30 Thread Cal Evans
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 PROTECTED]] Sent

RE: [PHP] about $_post

2002-09-19 Thread Cal Evans
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: [EMAIL PROTECTED] Subject

RE: [PHP] MySQL Current Row??

2002-09-18 Thread Cal Evans
, =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 determine the current row of a MySQL

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] security login

2002-08-12 Thread Cal Evans
with everything. HTH, =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: Pag [mailto:[EMAIL PROTECTED]] Sent: Monday, August 12, 2002 10:12 AM To: [EMAIL PROTECTED] Subject: [PHP] security login Well, first off sory for a very basic question, but i

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] 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] Subject: [PHP

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

2002-07-15 Thread Cal Evans
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 [mailto:[EMAIL

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 11:01 PM To: [EMAIL

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 Evans * The Virtual CIO * http

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? -Original

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

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]] Sent

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:[EMAIL

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= * * Cal Evans

RE: [PHP] Populate Popup Menu from Database

2002-06-29 Thread Cal Evans
='departmentID' ?PHP //While !EOF ? ?PHP option value=PHP echo $rs-fields['departmentID']; ?PHP echo $rs-fields['departmentName']; ? ? ?PHP // loop ? /SELECT =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Mike Tuller [mailto

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. * * Cal

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] Subject: [PHP

RE: [PHP] HTTP1.1

2002-06-27 Thread Cal Evans
:// 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 topic, but it deals

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: Renaldo

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] 1 session, 2 subdomains

2002-06-03 Thread Cal Evans
your own session handler is one way to do it. But if you have no session info to pass, why is it a problem? =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Jason Dulberg [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 3:08

RE: [PHP] newbie: cron jobs

2002-05-30 Thread Cal Evans
. My $0.02 worth, =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Edgard Berendsen [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 8:11 AM To: [EMAIL PROTECTED] Subject: [PHP] newbie: cron jobs Hi, I'm new to cron jobs

RE: [PHP] arrays and same index

2002-05-30 Thread Cal Evans
][0] // = 0; echo $array[untitled_1.jpg][1] // = 3; echo $array[untitled_1.jpg][2] // = 4; echo $array[untitled_1.jpg][3] // = 0; echo $array[untitled_1.jpg][4] // = 1; or: $x = $array[untitled_1.jpg]; echo $x[0]; echo $x[1]; echo $x[2]; echo $x[3]; echo $x[4]; HTH, =C= * * Cal Evans * Journeyman

RE: [PHP] nested if parse error

2002-05-30 Thread Cal Evans
if (1){ if (1) {echo hello;} } else { } ? * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Miroslav Figlar [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 7:05 AM To: [EMAIL PROTECTED] Subject: [PHP

RE: [PHP] ADODB - whaddya think?

2002-05-17 Thread Cal Evans
I've been using it for about 4 months and it's very stable. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Jerome Houston [mailto:[EMAIL PROTECTED]] Sent: Friday, May 17, 2002 4:05 PM To: [EMAIL PROTECTED] Subject: [PHP

RE: [PHP] Making Multiple Pages

2002-05-16 Thread Cal Evans
Do a google search for ADODB. It's a PHP database abstraction layer. It has built in 'pagination' methods (Previous X, next X) along with an example of how to use them. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Jason

RE: [PHP] How to stop site flipping?

2002-05-13 Thread Cal Evans
sweet. Very nice solution. * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 10:18 PM To: David McInnis; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED

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 Programmer * Techno

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] 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 * Techno

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
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' Hello all I

RE: [PHP] javascript and PHP

2002-04-29 Thread Cal Evans
';) 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 To: [EMAIL PROTECTED

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
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 Security Sorry

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- From: Joshua

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] Multiple Threads?

2002-04-14 Thread Cal Evans
PHP can fork but the docs say not to do it in a web server environment. basically, it's only usable on *nix machines and in a shell scripting environment. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Matthew Walker

RE: [PHP] make a set of variables available to all visitors?

2002-04-14 Thread Cal Evans
Actually, if they are static variables that rarely or never change, I would stick with the include file. It's faster than making a database connection and selecting them. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From

RE: [PHP] Including only I want

2002-04-13 Thread Cal Evans
Break those lines out into another file... =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Alberto Wagner [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 13, 2002 4:33 AM To: Php General Mailling List Subject: [PHP] Including

RE: [PHP] Mailings Lists?

2002-04-13 Thread Cal Evans
www.list.org * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Randum Ian [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 13, 2002 7:44 AM To: PHP Subject: [PHP] Mailings Lists? Hi there, I want to be able to send an email

RE: RE: [PHP] Including only I want

2002-04-13 Thread Cal Evans
I guess it would help if you explained what you are trying to do. the answer to your initial question is no. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Alberto Wagner [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 13

RE: [PHP] special charicters in form output

2002-04-13 Thread Cal Evans
If you are using METHOD=GET, your browser is probably doing it. Try METHOD=POST =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Paul Roberts [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 13, 2002 12:14 PM To: php Subject

RE: [PHP] globals in functions

2002-04-13 Thread Cal Evans
; } } // function myFunction($formArray=null) WARNING: I have not tried the code above. Use at your own risk. But the concepts are there. * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Paul Roberts [mailto:[EMAIL PROTECTED]] Sent: Saturday

RE: RE: RE: [PHP] Including only I want

2002-04-13 Thread Cal Evans
in a database but that's up to you. If you need to read in and execute PHP code, you MIGHT could get away with reading them in as described above and then using eval() to do execute them one at a time...but I'd steer clear of this. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http

RE: [PHP] Is it possible to call an external client or server program?

2002-03-31 Thread Cal Evans
of hand holding. My $.02 worth. Hope you found an answer somewhere among the rant. :) =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: martinahingis [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 31, 2002 6:26 PM To: [EMAIL

RE: [PHP] Is it possible to call an external client or server program?

2002-03-31 Thread Cal Evans
then not really. Since the PHP never gets executed on the client machine. The best you could hope for was a JavaScript/VBScript solution. Of the two, I'd look hardest at VBscript since M$ likes it better. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original

RE: [PHP] Issues with long SQL inserts

2002-03-31 Thread Cal Evans
Have you tried shaving the article off a couple of chrs before the last one and seeing if the insert works? Also, what is the size limit on a MySQL TEXT field? http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html#BLO B May give a hint. =C= * * Cal Evans * Journeyman

RE: [PHP] Issues with long SQL inserts

2002-03-31 Thread Cal Evans
are banging your head against the upper limit. I did notice that it has a BIGTEXT type. Maybe try that. It still won't solve the problem but it may give you more room. HTH, =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Chris

RE: [PHP] Issues with long SQL inserts

2002-03-31 Thread Cal Evans
help you better than I. Sorry I wasn't more help, =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Chris Snyder [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 31, 2002 5:06 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject

RE: [PHP] Issues with long SQL inserts

2002-03-31 Thread Cal Evans
error masked by an HTML tag in there? (grasping at straws here) =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Chris Snyder [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 31, 2002 5:22 PM To: [EMAIL PROTECTED] Cc: [EMAIL

RE: [PHP] Homesite 5.0 and PHP

2002-03-09 Thread Cal Evans
purchase a copy of 4.5, it too has color coded syntax for PHP (That's about all the support that I found in 5.0 also) and it rocks...as long as you don't try to use the FTP thingy...but that's another rant. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com

RE: [PHP] which linux?

2002-03-09 Thread Cal Evans
defunct, at least until the author gets his head out of his butt) and Gentoo. Gentoo is by far the best. But be prepared. There's no graphical installer. It takes time and patience to get it running. My $0.02, =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com

RE: [PHP] ?include?... another dumb question

2002-03-05 Thread Cal Evans
with the tradition. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Team GotFusion [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 6:59 AM To: [EMAIL PROTECTED] Subject: [PHP] ?include?... another dumb question I have people telling

RE: [PHP] How to question...

2002-03-05 Thread Cal Evans
No. Wrapping in PHP or any other scripting language won't hide the HTML from the user. For the browser to render it, you HAVE to send the HTML to the browser. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: jas [mailto

RE: [PHP] how do I use php and mysql to print mailing lables

2002-03-04 Thread Cal Evans
Personally, I'm leaning towards generating a PDF, displaying that for the user and letting them click the print button. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Ivan Carey [mailto:[EMAIL PROTECTED]] Sent: Monday

RE: [PHP] permissions

2002-03-04 Thread Cal Evans
at the file level (or the O'Reilly Horse book) and check www.phph.net for additional info on how PHP deals with this. HTH, =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: John Gurley [mailto:[EMAIL PROTECTED]] Sent: Monday

RE: [PHP] novice question

2002-02-28 Thread Cal Evans
Sumthin like this... ?PHP $a=10; $b=20; echo add($a,$b) function($one, $two){ return $one + $two } // function($one, $two) ? * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: me us [mailto:[EMAIL PROTECTED]] Sent: Wednesday

RE: [PHP] Can mysql add qty directly?

2002-02-28 Thread Cal Evans
Assuming soldQty is a number and not a string: UPDATE products SET soldqty=soldqty+$sqty WHERE articelno='$articleno'; If ArticleNo is a number you might want to remove the quotes there too. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original

RE: [PHP] Can I use PHP to check server software????

2002-02-28 Thread Cal Evans
you COULD...actually, you would need to either open a socket or use the curl functions to talk to the server, retrieve a page, examine the headers and find the type. Might just be easier to go to www.netcraft.com =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com

RE: [PHP] arithmetic operation inconsistent

2002-02-28 Thread Cal Evans
statement $ns1 = doubleval(number_format(rand(900,1200)*1000)) ; $cogs1 = doubleval(number_format(rand(450,600)*1000)) ; $gm1 = doubleval(number_format (($ns1 - $cogs1) * 1000)); echo '1:'.$ns1.\n; echo '2:'.$cogs1.\n; echo '3:'.$gm1.\n; ? * * Cal Evans * Journeyman Programmer * Techno-Mage * http

[PHP] RE: Sessions not working between documents (was: Sessions and switching between php and htm documents)

2002-02-27 Thread Cal Evans
When you check your info page, do sessions automatically start? If not, make sure you do a session_start(); in there somewhere before you start checking things. Not sure why (lost in the annuls of time) but I always manually start/stop my sessions. =C= * * Cal Evans * Journeyman Programmer

  1   2   >