I had a similar problem once upon a time. I had a form, whose results
were getting emailed, sending duplicate submissions occasionally.
The cause, I surmised, was that someone was stopping the download of the
page before it finished, so the code execution stopped, or they were
double clicking t
> Hello Phpu,
>
> Thursday, January 6, 2005, 10:42:15 AM, you wrote:
>
> P> I have an array, for ex: $products=array(1, 2, 5 , 7)
> P> I want to select all products from the database that has the ids of
> products.
> P> I use this but doesn't work:
>
> $product_ids = implode(',', $products);
>
Hi,
I'm considering the Propel DB Persistence Layer for an upcoming project.
Does anyone have experience (good or bad) with it? Any things to watch out
for? Haven't found much in the list archive.
Any comments are much appreciated!
Best regards,
Torsten Roehr
--
PHP General Mailing List (http:
"Pedro Irán Méndez Pérez" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> somebody have a example of this class?, because the package don't have,
> thank's :)
>
> =
> "¿Acaso se olvidará la mujer de su bebé, y dejará de compadecerse del hijo
> de su vientre? Aunque ellas se olvid
> I think I understand where you're coming from. I've had a similar
> problem and the best solution I've found is eAccelerator (previously
> known as Turck MMCache). What EA does is keep the bytecodes PHP compiles
> inshared memory so next time you need that script PHP doesn't need to
> recompi
This email address is no longer valid.
Original Message:
X-YahooFilteredBulk: 211.31.87.204
Authentication-Results: mta104.mail.sc5.yahoo.com
from=lists.php.net; domainkeys=neutral (no sig)
X-Originating-IP: [211.31.87.204]
Return-Path:
Received: from 211.31.87.204 (EH
Correct me if I am wrong, but includes (and/or requires) will get all of
the code in all of the cases regardless if the case is being processed.
You're wrong. The include() and require() statements are only evaluated when
they are reached in your application code, so there is a big difference betw
http://eaccelerator.sourceforge.net/Home
Go there, you'll find more about it. In short, Zend hired the lead
programmer of MMCache and the project eventually died off. Other people
picked it up and developed patches to update it. I believe eAccelerator
is the most advanced and stable for me in PH
> I've done some benchmaring and it is quite fast, specially compared to
> talking to the DB. Also, phpbeans provides a daemon that can give you
> the solution you are looking for, I believe.
>
> Adrian
Hey I just checked out phpbeans, it looks pretty intense, it does have a
php deamon that runs a
Jay Blanchard wrote:
Good afternoon gurus and gurettes,
If I have a large app what is the difference, other than having a very
large file, of doing this
switch($action){
/* several dozen cases to follow */
case "foo":
writing out all of the code
break;
}
and
>>
>>>From my PHP library I use shm_put_var() and shm_get_var(). If
>> serialization is done this way then it is implicit... right?
>
> Yes, these functions serialize/unserialize behing the scenes.
>
> -Rasmus
Hi, has anyone got an example on howto use the shared memory functions ? I
currently
Hello,
on 01/06/2005 07:45 PM Jed R. Brubaker said the following:
Hello all - this problem is so wierd that I don't even know where to start.
Hopefully you all can give me a couple leads.
I have some reporting systems going on in various places on the server -
mail() is called when a user does t
Henning Sato von Rosen wrote:
Hi all!
I want to subclass a large website mainly written in PHP.
The sublassing is useful for testing when you want to test a change, a
bugfix or a new design, and only a few pages change. The subclass
would consist of an almost empty representation of the website
co
Hello all - this problem is so wierd that I don't even know where to start.
Hopefully you all can give me a couple leads.
I have some reporting systems going on in various places on the server -
mail() is called when a user does this or that. These scripts are farily
simple, so I am next to cer
Hello,
on 01/06/2005 05:24 PM William Lovaton said the following:
El jue, 06-01-2005 a las 10:26 -0700, Adrian Madrid escribió:
I think I understand where you're coming from. I've had a similar
problem and the best solution I've found is eAccelerator (previously
known as Turck MMCache).
Hold on a
El jue, 06-01-2005 a las 10:52 -0800, Rasmus Lerdorf escribió:
> William Lovaton wrote:
> >From my PHP library I use shm_put_var() and shm_get_var(). If
> > serialization is done this way then it is implicit... right?
>
> Yes, these functions serialize/unserialize behing the scenes.
Rasmus, I a
Don wrote:
Hi,
Reading the PHP 5 documentation at: HYPERLINK
"http://www.php.net/manual/en/language.oop5.basic.php"http://www.php.net/man
ual/en/language.oop5.basic.php, I am confused.
In the example given, what is the difference between:
$assigned = $instance;
$reference =& $instance;
I w
Wil wrote:
I get the following error
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
resource in /home/wilmail/public_html/elblog.php on line 7
&n=& //error ends here
with the following bit of code
$qResult = mysql_query ("SELECT * FROM blog_entries ORDER BY id DESC");
$n
Wil Hitchman wrote:
> I get the following error
>
> Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
> resource in /home/wilmail/public_html/elblog.php on line 7
> &n=& //error ends here
>
> with the following bit of code
>
> $qResult = mysql_query ("SELECT * FROM blog_ent
Gustafson, Tim wrote:
> Actually, if you leave the code exactly as-is, but change the
> openssl_csr_sign function to create a self-signed certificate, the
> entire script executes perfectly. I know there is a lot of error
> checking needed - I'm just making a "test" script to get a feel for how
>
1) Does adding 'shared,' as a ./configure option mean the module is compiled
as an external, dynamically loaded module as compared to the module being
statically linked into the 'exe' file? So that adding 'shared,' means I must
add a line in the PHP ini file to load the extension (or load with a
sounds like there's something up with the query, perhaps the wrong table
name.
as a debugging method I usually use the die() clause when performing a query
so I can ensure the query is correct.
try using this:
$qResult = mysql_query ("SELECT * FROM blog_entries ORDER BY id DESC") or
die("could n
I've done some benchmaring and it is quite fast, specially compared to
talking to the DB. Also, phpbeans provides a daemon that can give you
the solution you are looking for, I believe.
Adrian
Rasmus Lerdorf wrote:
Adrian Madrid wrote:
I think I understand where you're coming from. I've had a si
[snip]
...stuff...
Wil
[/snip]
I replied to this over an hour ago, please do not repost.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Good afternoon gurus and gurettes,
If I have a large app what is the difference, other than having a very
large file, of doing this
switch($action){
/* several dozen cases to follow */
case "foo":
writing out all of the code
break;
}
and this
switch($acti
On Friday 07 January 2005 01:46, Richard Lynch wrote:
Just so that the OP has something to look forward to ...
> Note, however, that the particular setting you are using,
> upload_max_filesize is one of the "oddball" settings that can *NOT* be
> over-ridden in .htaccess nor in your PHP script wit
Hi all!
I want to subclass a large website mainly written in PHP.
The sublassing is useful for testing when you want to test a change, a
bugfix or a new design, and only a few pages change. The subclass
would consist of an almost empty representation of the website
containing only the changed fil
Wil Hitchman wrote:
I get the following error
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
resource in /home/wilmail/public_html/elblog.php on line 7
&n=& //error ends here
with the following bit of code
$qResult = mysql_query ("SELECT * FROM blog_entries ORDER BY i
El jue, 06-01-2005 a las 10:26 -0700, Adrian Madrid escribió:
> I think I understand where you're coming from. I've had a similar
> problem and the best solution I've found is eAccelerator (previously
> known as Turck MMCache).
Hold on a second! I use Turck MMCache but I didn't know about the
c
Hi,
Reading the PHP 5 documentation at: HYPERLINK
"http://www.php.net/manual/en/language.oop5.basic.php"http://www.php.net/man
ual/en/language.oop5.basic.php, I am confused.
In the example given, what is the difference between:
$assigned = $instance;
$reference =& $instance;
I would expect
> From: "Wil Hitchman" <[EMAIL PROTECTED]>
>
> I get the following error
>
> Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
> resource in /home/wilmail/public_html/elblog.php on line 7
> &n=& //error ends here
>
> with the following bit of code
>
> $qResult = mysql
[snip]
I get the following error
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
resource in /home/wilmail/public_html/elblog.php on line 7
&n=& //error ends here
with the following bit of code
$qResult = mysql_query ("SELECT * FROM blog_entries ORDER BY id DESC");
$
What you are talking about is opcode caching. While it certainly speeds
things up, it can be done much faster. When you cache a file that
contains a large PHP array definition, all you are caching are the
instructions to create that array. On every request these instructions
need to be loade
Adrian Madrid wrote:
I think I understand where you're coming from. I've had a similar
problem and the best solution I've found is eAccelerator (previously
known as Turck MMCache). What EA does is keep the bytecodes PHP compiles
inshared memory so next time you need that script PHP doesn't need
William Lovaton wrote:
Rasmus,
El jue, 06-01-2005 a las 08:23 -0800, Rasmus Lerdorf escribió:
On Thu, 6 Jan 2005, William Lovaton wrote:
This is great. In my high performance web app I created a PHP library
that abstracted this to use several backends. For instance I have a
File backend and a SHM
I get the following error
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
resource in /home/wilmail/public_html/elblog.php on line 7
&n=& //error ends here
with the following bit of code
$qResult = mysql_query ("SELECT * FROM blog_entries ORDER BY id DESC");
$nRows =
I get the following error
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
resource in /home/wilmail/public_html/elblog.php on line 7
&n=& //error ends here
with the following bit of code
$qResult = mysql_query ("SELECT * FROM blog_entries ORDER BY id DESC");
$nRows =
Hello,
on 01/06/2005 08:16 AM Hugo Tavares said the following:
I'm new (very new) to php.
I'm making a simple srcipt wich sends and email from a form.
My problem is tha special characters like ç,á,à,é, etc don't work.
Can anyone help me?
Any 8 bit characters in the message have to be encoded in the
Jones, Douglas 1 wrote:
> I'm wondering if anyone knows of a filter that can take data to be wrapped
> in XML tags and filter this data encoding any illegal XML characters or,
> if they cannot be encoded, remove them. The problem I have is a database
> that contains text that must be wrapped in XM
Greg Donald wrote:
On Thu, 06 Jan 2005 16:15:43 +, symbulos partners
<[EMAIL PROTECTED]> wrote:
We know that. We understood all of that.
What we need to know is:
Please, do not assimilate me.
Who's going to clean up this Mt. Dew that I just shot out of my nose? *L*
--
John C. Nichel
ÜberGeek
On Thu, 06 Jan 2005 13:50:58 +0100, UroÅ Gruber <[EMAIL PROTECTED]> wrote:
>
> 1) this is some domain.com test
> 2) domain.com
>
> I can make this work either for first example of fo second, but not for
> both. What I want is replace of domain.com to get
>
> this is dome domain.com domain com te
Matt Blasinski wrote:
> I recently upgraded from PHP 4.3.4 to 4.3.10 with Apache 1.3.29 on
> Solaris. Before the upgrade, everything was working fine. After,
> Apache won't start up correctly.
>
> 'apachectl start' works correctly, but doesn't load any of the SSL
> components.
>
> 'apachectl star
[EMAIL PROTECTED] wrote:
> Thinking of going from http to https on the server. My question is: Would
> there be any differences in my php-code from now?
No.
Well, maybe.
You might want to use PHP to detect that you *ARE* on a secure connection.
You also migth want to isolate your *need* for SS
I get the following error
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
resource in /home/wilmail/public_html/elblog.php on line 7
&n=& //error ends here
with the following bit of code
$qResult = mysql_query ("SELECT * FROM blog_entries ORDER BY id DESC");
$nRows
Steve Kieu wrote:
> I am trying to debug the problem I have; which is that php seems to
> ignore all php_value I set in httpd.conf. Example I have:
>
> but when I access http://10.0.44.254:800/some_upload.php
> it still sees that the file upload size if 2M (set in global php.ini).
> If I comment ou
Plan on doing a LOT of testing -- My guesses on the probability of
thread-safety were just that: GUESSES
Thread-safe bugs are the kind of thing that can remain hidden for *YEARS*
or even *DECADES* and not get triggered but once in a million executions
of your scripts.
By definition, they rely on
I think I understand where you're coming from. I've had a similar
problem and the best solution I've found is eAccelerator (previously
known as Turck MMCache). What EA does is keep the bytecodes PHP compiles
inshared memory so next time you need that script PHP doesn't need to
recompile, EA ret
> It should be noted that the MS KnowledgeBase article about trying to do a
> dynamic include (as of when I last used ASP, years ago) made absolutely NO
> mention of using:
>
>
You could maybe cheat and add an X at the beginning and end of the string
before your Regex, then you will have:
X\1 \2 \3X
and you can strip off the initial X from \1 and the trailing X from \3
There's probably some fancy Regexp way to do it though.
Uroš Gruber wrote:
> Hi!
>
> Last help about
On Thu, 06 Jan 2005 16:15:43 +, symbulos partners
<[EMAIL PROTECTED]> wrote:
> We know that. We understood all of that.
>
> What we need to know is:
Please, do not assimilate me.
--
Greg Donald
Zend Certified Engineer
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
Gustafson, Tim wrote:
> I am trying to use the OpenSSL module for PHP on a FreeBSD 4.10 server.
> I have CVS'd everything, so I have the most current version of the
> FreeBSD port.
>
> I have attached the PHP file that I'm running. Here's the error message
> I get:
>
> openssl_csr_sign(): cannot g
On Thu, 6 Jan 2005, Jason Barnett wrote:
> Symbulos Partners wrote:
> > We know that. We understood all of that.
> >
>
> Let me ask you this. Do you know what underlying libraries are associated
> with the extensions you want to use (in your list below)? If you do then you
> *should* be able to
kalinga wrote:
> Dear all,
> I recently started PHP OOP and I'm bit confused about best and the most
> efficient methods when 'declaring a class' and 'calling function',
> could somebody
> explain me with following sample code, it would be great..
>
> thanks..
>
> class classLdap{
>
> $rslt
On Thu, 6 Jan 2005, Josh Whiting wrote:
> > Anything you do in the MINIT hook is basically free, so it would be
> > trivial to load the data for the array from somewhere. Like a database,
> > an xml file, etc. So you wouldn't need to hardcode a complex array
> > structure in your MINIT hook,
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Thursday 06 January 2005 05:17, Gunter Sammet wrote:
>
>> I am having some trouble getting the following code to work:
>>
>> if (is_array($bundle_attributes)) {
>>
>> reset($bundle_attributes);
>>
>> while (list($option,
On Thu, 6 Jan 2005, William Lovaton wrote:
> Hi Rasmus,
>
> El lun, 03-01-2005 a las 14:13 -0500, Rasmus Lerdorf escribió:
> > If you need to do something fancier you can stick things in shared
> > memory. Many of the accelerators give you access to their shared memory
> > segments. For examp
Rasmus,
El jue, 06-01-2005 a las 08:23 -0800, Rasmus Lerdorf escribió:
> On Thu, 6 Jan 2005, William Lovaton wrote:
> > This is great. In my high performance web app I created a PHP library
> > that abstracted this to use several backends. For instance I have a
> > File backend and a SHM backend
I figured it out!
I had to change the key references to something like this:
file://../falconsoft.com.crt
Using an absolute path seems to break it. :\
Tim Gustafson
MEI Technology Consulting, Inc
[EMAIL PROTECTED]
(516) 379-0001 Office
(516) 480-1870 Mobile/Emergencies
(516) 908-4185 Fax
http:
Liam Gibbs wrote:
> print(" "\">");
>
> So I'm calling the function straight from the SRC attribute of the IMG
> tag. Here's what's in my function:
>
> function copy_pic($sourcepic) {
>if(file_exists($sourcepic)) {
> $destinationpic = imagecreatetruecolor(imagesx($sourcepic),
> imagesy($s
Symbulos Partners wrote:
We know that. We understood all of that.
Let me ask you this. Do you know what underlying libraries are
associated with the extensions you want to use (in your list below)? If
you do then you *should* be able to google for each library individually
and see if that libr
Richard,
Actually, if you leave the code exactly as-is, but change the
openssl_csr_sign function to create a self-signed certificate, the
entire script executes perfectly. I know there is a lot of error
checking needed - I'm just making a "test" script to get a feel for how
OpenSSL operates in PH
> Anything you do in the MINIT hook is basically free, so it would be
> trivial to load the data for the array from somewhere. Like a database,
> an xml file, etc. So you wouldn't need to hardcode a complex array
> structure in your MINIT hook, just have this generic little extension
> that c
We know that. We understood all of that.
What we need to know is:
1)Are php core function thread safe?
2)Does php have internal mechanisms in php for protecting thread safety
(memory leak, threads overwriting memory in use by another thread, blah,
blah)?
3)Are the function in this LIMITED LIST
Hello
I am trying to use the OpenSSL module for PHP on a FreeBSD 4.10 server.
I have CVS'd everything, so I have the most current version of the
FreeBSD port.
I have attached the PHP file that I'm running. Here's the error message
I get:
openssl_csr_sign(): cannot get cert from parameter 2
The
Additionally you can check the access time to see which of those
sessions has been accessed in the last, let's say, 10 minutes or
something.
But there are several problems with this. Relying on session files is
not good enough, they might be stored in a database or in shared memory.
Other problem
George McGuey wrote:
I am using SAMS Teach Yourself on PHP,MYSQL and Apache.
Everything has gone well except for the final step to test the PHP by
creating in Apache htdocs file called phpinfo.php.
When I do this and then go to the http://localhost/phpinfo.php to view the
information page all
Hi Rasmus,
El lun, 03-01-2005 a las 14:13 -0500, Rasmus Lerdorf escribió:
> If you need to do something fancier you can stick things in shared
> memory. Many of the accelerators give you access to their shared memory
> segments. For example, the CVS version of pecl/apc provides apc_store()
>
Rasmus,
I see much better performance with Apache 2. I'm not an expert in the
internals of Apache nor PHP but I guess one of the improvements in
apache is the log mechanism, I think it use a different technique that
makes it faster that Apache 1.3
The reason I say this is because Apache 1.3 log
My experience dictates the contrary.
Apache 2 is much faster with PHP that Apache 1.3. I run an enterprise
web application in my company with about 950 users concurrently. I
configured the apache logs to add the execution time for each request
(this is done with %T in the LogFormat). We started
You'll need to modify your httpd.conf. Depending on you OS/Apache
version it will be different.
For Windows/Apache1.3.x:
http://us2.php.net/manual/en/install.windows.apache1.php
For Windows/Apache2.x:
http://us2.php.net/manual/en/install.windows.apache2.php
For Linux/Apache1.3.x:
http://us2.php.
Hi!
Last help about regexp solve my problem, but I have another one.
I've made some regexp but it does not work always
Let say I have some strings
1) this is some domain.com test
2) domain.com
I can make this work either for first example of fo second, but not for
both. What I want is replace of d
Here it is:
$headers = "From: $name <$email>\r\n";
$headers .= "Reply-to: $email\r\n";
$headers .= "Return-Path: $email\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: multipart/alternative; charset=\"iso-8859-1\";
boundary=\"$mime_boundary\";\r\n\r\n";
$headers .= "Th
Hello Can you show me the script?
Please look first at mail functions on php.net/mail to see how to use
headers (and encodings too)
Best Regards
Bogomil Shopov
http://purplerain.org
Hugo Tavares wrote:
> Hello:
>
> I'm new (very new) to php.
>
> I'm making a simple srcipt wich sends and email f
Hello:
I'm new (very new) to php.
I'm making a simple srcipt wich sends and email from a form.
My problem is tha special characters like ç,á,à,é, etc don't work.
Can anyone help me?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello Phpu,
Thursday, January 6, 2005, 10:42:15 AM, you wrote:
P> I have an array, for ex: $products=array(1, 2, 5 , 7)
P> I want to select all products from the database that has the ids of products.
P> I use this but doesn't work:
$product_ids = implode(',', $products);
$sql = "SELECT product
Hi,
I have an array, for ex: $products=array(1, 2, 5 , 7)
I want to select all products from the database that has the ids of products.
I use this but doesn't work:
$sql = '';
foreach($products AS $products_id){
if(strlen($sql)){ $sql .= ' OR '; }
$sql .= "product_id = '$products_id'";
}
Binoy AV a écrit :
Hi,
I have an html file containing a table. I applied
eregi(".*",$contents,$temp) through my Php.I am getting
> (...)
The code removing only the first and last <(/)tr>.
Expected behaviour : regex are 'greedy', ie
the .* matches the longuest string possible
How to do it usin
> [snip]
> I meet a problem when I want to deleting a multiple
> row, I have a table that contain columns UserID,
> name,
> company name, and bill. UserID is uniq.
> perhaps, some of UserID, say it five UserID I have
> to
> delete, how to delete all raw that contain that
> UserID
> ? and if I want
Hi,
I have an html file containing a table. I applied
eregi(".*",$contents,$temp) through my Php.I am getting
the output like this-
AB
CD
EF
But my expected output is -
AB
CD
EF
The code removing only the
On Thursday 06 January 2005 05:17, Gunter Sammet wrote:
> I am having some trouble getting the following code to work:
>
> if (is_array($bundle_attributes)) {
>
> reset($bundle_attributes);
>
> while (list($option, $value) = each($bundle_attributes)) {
>
> reset($value);
>
> while (list($option2,
On Thursday 06 January 2005 14:24, Liam Gibbs wrote:
Please fix your mail client so that in word wraps properly!
> Here's what I need. I have a string such as this:
>
> "Yadda yadda yadda yadda '32'(l) yadda yadda yadda '2'(l) yadda '419'(l)."
> (#2)
>
> I need to find the strings like '32'(l), '
On Thursday 06 January 2005 14:24, Liam Gibbs wrote:
> What I'm trying to do is copy one JPEG to another JPEG (as mentioned) on
> the fly. I don't want to have a new file produced, just a modified JPEG (a
> few circles here and there) held in a resource. Here's how I call my
> function and how I d
82 matches
Mail list logo