Re: [PHP] Web application?

2001-07-14 Thread Mark Charette
From: "Christopher Ostmo" <[EMAIL PROTECTED]> > The lack of transactions can easily be overcome by proper programming > logic. That, unfortunately, is totally untrue if there's the possibility of more than one person manipulating data at one time on tables. The "old fashioned way" of locking all

Re: [PHP] sending to large mailing list

2001-07-16 Thread Mark Charette
From: "Adrian Teasdale" <[EMAIL PROTECTED]> >The idea is that this database will > expand to quite a few thousand in the near future and I want to know that > we'll be able to handle it :) The problem is that I "cleverly" added the > feature that each email has a salutation which personalized to

Re: [PHP] Re: The future of PHP -- accessory libraries

2001-08-29 Thread Mark Charette
Considering that they haven't figured out how to use the spell checker, does it surprise you that they haven't figured out how to do an dynamic load (apxs) of PHP? Or save their last good configuration (config.status). mark C. -- The phrase "computer literate user" really means the person has bee

Re: [PHP] RE: [PHP-WIN] Can PHP and Java work together?

2001-08-31 Thread mark Charette
From: "Robin Bolton" <[EMAIL PROTECTED]> > Also, if you are considering using JavaScript to validate your form, you may > want to reconsider doing it in PHP as JavaScript is easy to circumvent. I think most if not all of us doing industrial-strength Web programming for our living end up doing it

Re: [PHP] php's future

2001-09-02 Thread Mark Charette
And, of course, the JSP was running 2 x 2 iterations, or 400,000,000 iterations, in a few seconds. Yeah, right. > Intersting. I tried the following code (which gives much more detailed > time info, check it out - stolen from Andrey Hristov on php-db), and my > times, on our P2-266 webser

Re: [PHP] Problem with PHP_SELF

2001-09-03 Thread Mark Charette
From: "David Otton" <[EMAIL PROTECTED]> > My other point still stands though (I think) - that marking a variable > as "global" to "pull it in to scope" is a clunky, ass-backwards way of > doing things. Which is why, of course, that parameters were invented "way back when". -- PHP General Maili

Re: [PHP] Re: Pulling a random image

2001-09-03 Thread Mark Charette
>what does that entail? > >>"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message >>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >> Why not just configure your server to use an auto_prepend_file ? Reading the documentation that's easily available. -- PHP General Mailing List (http://www.php.ne

Re: [PHP] Sending Broadcast Email - will a large loop cause a crash?

2001-09-06 Thread Mark Charette
From: "Miles Thompson" <[EMAIL PROTECTED]> > > Well, try it - find a willing victim and just do a simple loop. > > Alternately, set up an account with a local, high-bandwidth ISP, batch in > groups of 330-, and use BCC. > > Miles > > At 04:16 PM 9/6/01 -0700, Fotwun wrote: > >Hi, > > > >I need to

Re: [PHP] for loop changes?

2001-09-14 Thread Mark Charette
From: "Michael Gerholdt" <[EMAIL PROTECTED]> > I want the week and month days to have leading zeros - how can I make the > new environment replicate the old? Loop using the numeric but use printf for the formatting (which is really what you should have used originally). Refer to the manual for t

Re: [PHP] Handling sessions between servers?

2001-09-17 Thread mark Charette
NFS as a rule is a bad idea - there's a stateless protocol involved (you don't know if the server is up or down unless you actually try to write), the lockd for NFS incurs yet another set of communications, and it's not very robust for this kind of thing (no replication for failovers). A database

Re: [PHP] Protecting variables and functions? Like C#

2001-09-19 Thread Mark Charette
- Original Message - From: "Tim" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 19, 2001 9:35 AM Subject: Re: [PHP] Protecting variables and functions? Like C# > Private methods and variables are necessary for any serious language > that supports class libraries,

Re: [PHP] buffers ...

2001-09-27 Thread Mark Charette
Flush() is the right call, but please note (from the manual): -- Note: flush() has no effect on the buffering scheme of your webserver or the browser on the client side. Several servers, especially on Win32, will still buffer the output from your script until it terminates before trans

Re: [PHP] Tempnam not working??

2004-10-17 Thread Mark Charette
- Original Message - From: "Brent Clements" <[EMAIL PROTECTED]> When I run the following $fname = tempnam('mytmp/', 'PREFIX_'); and then echo $fname, it returns /tmp/FILENAME rather than mytmp/FILENAME -- From the manual: Creates a file with a unique filename in the specified dire

Re: [PHP] PHP equivalent to Perl $0

2007-01-31 Thread Mark Charette
Richard Luckhurst wrote: Hi Richard, RL> And, frankly, why would you want to do that? It only sows confusion RL> in ps output. :-) Unless you're talking about apps spawned by inetd and its cousins. ps shows the name as specified in arguments in the inetd.conf file, not the name of the exec

Re: [PHP] cache engine

2005-03-05 Thread Mark Charette
Evert - Rooftop Solutions wrote: I heard that shared memory is actually slower than writing and reading a file and it is not available on windows systems. Hmmm ... that's an interesting thing you heard concerning shared memory. Care to share _who_ told you that? I'd like to make sure I don't hir

Re: [PHP] cache engine

2005-03-05 Thread Mark Charette
Evert - Rooftop Solutions wrote: Check it out, is in old article, but it says "|shm| -- The |shm| container stores the cached data in the shared memory. Benchmarks indicate that the current implementation of this container is much slower than the |file| container." Which, of course, is miles awa

Re: [PHP] WORK WITH PHP FILES REMOTELY WITH NotePad ? YES/NO ?

2005-03-19 Thread Mark Charette
Leonidas Savvides wrote: > ATTENTION: I DO NOT MEAN SAVE IT TO MY HDD FIRST AND AFTER UPLOAD IT !!! TELL ME THIS SAMELY FOR Dreamweaver MX ? Not in PHP. It's a client side trick (done with machine and/or OS specific code). Even Web-based Documentum (eRooms) uses a staging directory on the users H

Re: [PHP] PHP vs ASP .NET

2005-04-23 Thread Mark Charette
Reynier Perez Mira wrote: Hi list: I have a problem with ASP .NET community in my Universty and I need to solve it. The thing is that they say me that ASP .NET is better than PHP, so I need information to response they about this theme. Can you put me some sites, statics, intrview to big personalit

Re: [PHP] Re: Reducing size of htm output

2005-05-07 Thread Mark Charette
M. Sokolewicz wrote: > Rory Browne wrote: > >> What might be more useful is stripping out comments, If you don't use >> javascript it is simply a case of replacing all with >> a blank space. If you do though it's more complicated since it is >> considered good practice to place js inside blocks,

RE: [PHP] PHP5 bloats the code

2004-04-24 Thread Mark Charette
> From: Marek Kilimajer [mailto:[EMAIL PROTECTED] > Well, what I always know about my variables is if they are arrays or > scalar ;) And I don't consider warning to be much nicer then error Hmmm ... my current methods and functions in PHP 4.x oftentimes adapt to the type passed to them since PHP

RE: [PHP] Re: Query Query

2004-05-30 Thread Mark Charette
> From: Khan [mailto:[EMAIL PROTECTED] > you have 'company_name' in SET and then again in WHERE. This looks fishy. Very common, often required, and perfectly legal. Mark C. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Is "Function Constants" the Correct Term?

2004-07-18 Thread Mark Charette
The specific statements: >From http://us2.php.net/manual/en/language.constants.php 'Once a constant is defined, it can never be changed or undefined.' 'Only scalar data (boolean, integer, float and string) can be contained in constants.' 'Constants may not be redefined or undefined once they have

Re: [PHP] if statement with or comparison (newbie)

2006-09-09 Thread Mark Charette
Robert Cummings wrote: On Fri, 2006-09-08 at 18:38 -0400, tedd wrote: At 5:03 PM -0400 9/8/06, JD wrote: In all of the answers given thus far, no one mentioned that the use of $_REQUEST has a security issue with regard to where the $_REQUEST originated. $_REQUEST is an array consisti

Re: [PHP] if statement with or comparison (newbie)

2006-09-09 Thread Mark Charette
Stut wrote: Mark Charette wrote: However, looking at it from a 'knowing early the data is tainted' perspective, not from a 'validating and cleaning perspective', if you have coded that (for instance) a variable is set via COOKIE, then only looking for that variable

Re: [PHP] if statement with or comparison (newbie)

2006-09-09 Thread Mark Charette
Robert Cummings wrote: On Sat, 2006-09-09 at 11:30 -0400, Mark Charette wrote: Stut wrote: Mark Charette wrote: However, looking at it from a 'knowing early the data is tainted' perspective, not from a 'validating and cleaning perspective', if you have code

Re: [PHP] email to db

2006-02-25 Thread Mark Charette
chris smith wrote: On 2/25/06, Mark <[EMAIL PROTECTED]> wrote: Does anyone know if its possible or how difficult it would be to have a user send an email from outlook express to a websites mysql database and update records. You could write a script to parse the email and do the update

Re: [PHP] Include Problem

2006-04-15 Thread Mark Charette
Shaun wrote: Warning: main(/cms/templates/footer.php): failed to open stream: No such file or directory in /home/m/y/mysite/public_html/cms/news/index.php on line 38 Most assuredly the file isn't there (do you have the include path set?) or the permissions are not sufficient to open the file.

Re: [PHP] Creating an OO Shopping Cart

2006-05-03 Thread Mark Charette
Chris W. Parker wrote: I'm definitely open to suggestions on how we can minimize our customers' risk At least run GPG on the data immediately, keep the private key somewhere other than on the server, and decrypt only for the moment its needed. -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] What means "Fatal error: pcntl_fork(): Error 11"?

2006-05-04 Thread Mark Charette
Oz wrote: First I wanted to create a queue for tasks; instead of forking directly only a limited number of processes should be run from the queue, when one finishes another should start. But I decided not to do this, because the queue can easily grow to reach the memory limit. If the queue of

Re: [PHP] GET, POST, REQUEST

2006-06-17 Thread Mark Charette
Satyam wrote: In general, user input should never be trusted. Someone once told me that if you ask for yes or no, you should always validate for yes, no and don't know (of course, this was before windowed environments where the users can only click what you offer them). Users can submit whatev

Re: [PHP] Simple math failing - PHP Bug?

2004-11-01 Thread Mark Charette
From: "Chris Shiflett" <[EMAIL PROTECTED]> To: "Jason Wong" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, November 01, 2004 12:22 AM Subject: Re: [PHP] Simple math failing - PHP Bug? --- Jason Wong <[EMAIL PROTECTED]> wrote: Most computer languages handling floating point calculations jus

Re: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread Mark Charette
Robin Getz wrote: Andrew Kreps wrote: I had to add this line to my httpd.conf: AddType application/x-httpd-php .php I have this and the DirectoryIndex - the problem is that my script does not end in a .php extention. (GForge ) If I rename the file projects.php and point to that, it works, but th

Re: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread Mark Charette
John Holmes wrote: Robin Getz wrote: I have a file named /www/projects which is a php script. When I type the url: www.site/projects/variable I want variable passed to the script "projects" I have the the http.conf set up as: SetInputFilter PHP SetOutputFilter PHP AcceptPathInfo On Which

Re: [PHP] PHP vs. ColdFusion

2005-07-01 Thread Mark Charette
Stéphane Bruno wrote: Once you get to do very advanced things, you need to code using Object Oriented approaches, modular programming, web services, etc. which both products allow you to do. I guess those non-linear crash codes I wrote in Fortran not so many years ago aren't very advanced ..

Re: [PHP] Re: Email Validation built-in? RFC

2005-10-24 Thread Mark Charette
Ben Litton wrote: You could certainly write an extension to do so. That's what I did (mostly I was writing one for another purpose and added a function I stole from O'Reilly. As you stated in your article, it isn't rfc822 compliant (it isn't even close). Richard was pretty specific in his

Re: [PHP] What software do you use for writing PHP?

2005-12-07 Thread Mark Charette
TECO rox! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] help register domain name

2006-01-05 Thread Mark Charette
Al wrote: John Nichel wrote: n.g. wrote: hi, i want to register a domain name through NetworkSolutions.com, but it require a credit card which i dont have to pay the bill. if you have a credit card, i can transfer to your account, and then you please regiter the domain using my info. or if

Re: [PHP] Re: Clone of the concurrent users limit of Zend Encoder 4.0 ?

2006-02-12 Thread Mark Charette
Let me give an example: on fileplanet.com, they have something so called "download slot" and "lines". They limit the number of concurrent downloads. If there are too many users, they will disallow new user to download their files. As I know, they do it with custom HTTP server. Not so custom

Re: [PHP] Bad Practices

2001-02-13 Thread Mark Charette
From: "Philip Olson" <[EMAIL PROTECTED]> > They're very useful. Also, regarding SQL, don't do "SELECT * ..." all the > time as it's overkill if not all fields are being used. And, in fact, doing a "SELECT *" ends up precluding most optimizations within a query engine! Selecting only what you rea

Re: [PHP] what is quicker...

2001-02-15 Thread Mark Charette
And why, pray tell, son't you determine the quicker of the 1st 2 empirically? It's not very hard to roll & time a loop ... and then you won't have 10 different people guessing the answer. Mark C. "When the unknown is thought to be unknowable, gaps in knowledge are too readily filled by fancy, so

<    1   2