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
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
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
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
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
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
>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
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
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
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
- 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,
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
- 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
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
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
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
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
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
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,
> 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
> 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
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
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
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
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
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
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.
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/)
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
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
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
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
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
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 ..
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
TECO rox!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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
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
101 - 140 of 140 matches
Mail list logo