[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] 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] 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.christianper

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

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] 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] 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] 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] 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] 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] 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] 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] 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] Result in the same page

2003-02-16 Thread Cal Evans
ECTED] Subject: Re: [PHP] Result in the same page Cal-- I just posted this reply to your reply on php.general. --John From: [EMAIL PROTECTED] (John Hicks) Newsgroups: php.general Subject: Re: [PHP] Result in the same page References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>

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] 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] 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] 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] Dynamic List Using Php

2003-01-21 Thread cal
, etc. =C= * * Cal Evans * Techno-Mage * http://www.calevans.com * - Original Message - From: "Pushpinder Singh Garcha" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 21, 2003 1:09 PM Subject: [PHP] Dynamic List Using Php > Hello All > >

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

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

2002-06-14 Thread cal
URL?? :) * * Cal Evans * Techno-Mage * http://www.calevans.com * - Original Message - From: "Adrian Greeman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 14, 2002 8:18 AM Subject: [PHP] Editor > I am just surprised that noone mention

Re: [PHP] forcing file downloads

2002-06-12 Thread cal
ex code for a space. When the url get 'URLENCODED' any non-valid characters get converted to hex. In some (broken?) browsers a space in the URL may work but it's generally not a good idea. =C= * * Cal Evans * Techno-Mage * http://www.calevans.com * -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2002-06-03 Thread Cal Evans
Store your session information in a database. Assign it an ID and send that ID to the cookie or the URL in the new domain. Then you can write a session handler that retrieves the session info form the database. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com

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]

RE: [PHP] arrays and same index

2002-05-30 Thread Cal Evans
ot;][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 Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Victor Spang Arthursson [mailto:[EMAIL PROTECTED]] Sen

RE: [PHP] newbie: cron jobs

2002-05-30 Thread Cal Evans
implement a cron job on any machine you care about. 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: [

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

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

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 Prog

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] 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] 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] 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] 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] 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] 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] 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] 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] Problem with inheritance mechanism.

2002-04-16 Thread cal
it to fire. Kinda goofy but no more so than the lack of overloading. (I REALLY miss overloading functions!) =C= * * Cal Evans * Techno-Mage * http://www.calevans.com * - Original Message - From: "Steve Dix" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday

Re: [PHP] variable question

2002-04-15 Thread cal
store $name on one line and $welcomemssg on a separate line. Then just remember that all odd numbered liens are names and even numbered lines are messages. =C= * * Cal Evans * Techno-Mage * http://www.calevans.com * - Original Message - From: "Jule Slootbeek" <[EMAIL P

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-

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 W

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

2002-04-13 Thread Cal Evans
them in a table 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 P

RE: [PHP] globals in functions

2002-04-13 Thread Cal Evans
} else { return false; } } // 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 [

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: 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] 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 to

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] Secure storage of credit card information

2002-04-10 Thread Cal Evans
e the advantage of not compromising very sensitive data if the rest of the data is compromised. My $0.2 worth, again, not arguing with you...:) =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: SHEETS,JASON (Non-HP-Boise,ex1) [m

RE: [PHP] Secure storage of credit card information

2002-04-10 Thread Cal Evans
main database. Change the mysql password daily. Make sure it's different form the password to get into your main server. Is this secure? No. Does it make it harder to get the CC info? Yes. Harder is all you can hope for. Impossible is...well, impossible. :) HTH, =C= * * Cal Evans *

RE: [PHP] unsetting an instance from within its class

2002-04-10 Thread Cal Evans
Never actually tried to do this (Never actually thought it was a good idea) but: this = null; may do the trick. Then again it may cause your php page to blow chow all over your screen. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message

RE: [PHP] arguments against php / mysql?

2002-04-10 Thread Cal Evans
ed application development. =C= Get on the M$ treadmill. There's a toll-booth every 10 steps. * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Mallen Baker [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 11:30 AM

RE: [PHP] Issues with long SQL inserts

2002-03-31 Thread Cal Evans
he source, is there a PHP 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: [EM

RE: [PHP] Issues with long SQL inserts

2002-03-31 Thread Cal Evans
ople there who could 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:

RE: [PHP] Issues with long SQL inserts

2002-03-31 Thread Cal Evans
My guess is that you 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 * -Ori

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] Is it possible to call an external client or server program?

2002-03-31 Thread Cal Evans
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 * -Ori

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

2002-03-31 Thread Cal Evans
ill require a lot 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, 200

  1   2   >