Tony Marston wrote:
Don't be so pedantic. PHP 6 does not exist in a live, production-ready
version. It is still under development and has not even reached the beta
stage. Anyone who writes a book which documents the features of PHP 6 is
being very premature as those features may change at any m
you dont seem to understand how radio buttons work. they treat
name="sex[][]" as a single group. and you can select only one element
in that group.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Larry,
nice to have a comment from the editor, and I want to say thanks for writing
this book.
however this discussion was initiated by a newbie asking what book he should
use to learn php. ur book is important to the community of php freaks ! it
saved my time to see where the path is going th
> -Original Message-
> From: Allen McCabe [mailto:allenmcc...@gmail.com]
> Sent: 06 August 2009 20:20
[]
> It was working wonderfully, until I wanted to display "test of
> $newComment"
> as a comment.
>
> [code]
>
> comment("test of $newComment");
>
> [/code]
>
> This rendered a
> -Original Message-
> From: leledumbo [mailto:leledumbo_c...@yahoo.co.id]
> Sent: 07 August 2009 05:43
>
> > This should work:
> >
> >
> >
> >
> >
>
> Yes, that works. But should I manually maintain the number in the
> bracket?
> Is there anyway so that it can be automatically mainta
Thanks to Martin's answer to my question (giving me the regular
expressions to my patterns) I can convert the patterns the admin users
enter into regular expressions.
Thanks!
Floyd
On Aug 6, 2009, at 6:19 PM, Ben Dunlap wrote:
I need some assistance in pattern matching. I want allow the ad
Martin,
Thanks! Not only did that help tremendously but it also gave me a
better understand of regular expressions.
Thanks!
Floyd
On Aug 6, 2009, at 6:15 PM, Martin Scotta wrote:
here you have the regexp's
= \d{8}
AA = \w{6}
#A? = [\w\d]* (change the * for + to require at le
From: Ralph Deffke
> however there are some reasonable reasons to store a
> image in the database.
> 1. if u have no access to write files to the disk this
> is the case in most free hosting services they give u
> php and mysql and thats it
> 2. if u want some access control to the image, e.g. log
Hi,
I just installed FreeBSD 7.2, Apache 2.2, php5-5.2.10 and php5-extensions
1.3, all from the freebsd ports.
When i try to start apache with the imap.so extension enabled in
extensions.ini, i get the error
*/libexec/ld-elf.so.1: /usr/local/lib/php/20060613/imap.so: Undefined symbol
"ssl_onceonl
On 8/6/09 2:33 PM, "Ted Yu" wrote:
>
> Hi,
> I use the following code to call third party web service:
> curl_setopt($ch, CURLOPT_URL, $url);
> curl_setopt($ch, CURLOPT_TIMEOUT, 120);
> curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);
> curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 1);
> curl_setopt($ch,
You could also try checking the SSL log. This may give hints about the
problem; none of the HTTP conversation happens until after SSL has been
negotiated.
Jerry Wilborn
jerrywilb...@gmail.com
On Fri, Aug 7, 2009 at 1:16 PM, Tom Worster wrote:
> On 8/6/09 2:33 PM, "Ted Yu" wrote:
>
> >
> > Hi,
Hey PHPers,
We've been doing sampled logging to the database in our application for
awhile, and now I'm hoping eventually to blow that out to a larger scale.
I'm worried about the performance implications of logging to our database on
every single page load, though, so I was wondering if anyone's
does array_slice not work on multidimensional arrays?
I have one multidimensional array, and when I run it thru'
array_slice() nothing happens, that I can tell.
If it does not work on multidimensional arrays, what is the *simplest*
workaround? (I am already working past what was budgeted
Hey all --
A couple of weeks ago my online stores, on a machine I host at
Rackspace, stopped delivering files that people purchase. I've used
this for years, and it's always worked perfectly with all filetypes:
header('Content-Type: application/octet-stream');
header('Content-Disposition: a
I worked around the issue by running the too fat multi-dimed array
through a foreach{ ... if($counter <= $myArrLength)
{ $MyNowSlicedMultiDimArr[$key]=$value; }} ,
but I'd still (always!) love to hear from you seasoned PHPers on
this topic (anytime actually!).
I learn the most from your co
> changes to the code or to the files, just one day all of a sudden any
> time someone purchases a DMG, EXE, PDF, etc. they get zero bytes. I've
[8<]
> Has anyone ever heard of something (besides my code and my files) that
> could cause this behavior? You'll be my best friend if you can help.
> Tha
You don't mention what database you're using, but mySQL supports memory
based tables. You can use this to insert your single page loads and then
have a job that periodically inserts in bulk.
Memory based tables:
http://dev.mysql.com/doc/refman/5.0/en/memory-storage-engine.html
Jerry Wilborn
jer
Very interesting. Excellent debugging advice. It's giving me a 500
error, probably why the Rackspace techs told me to check my code:
HTTP/1.0 500 Internal Server Error
Date: Sat, 08 Aug 2009 00:01:10 GMT
Server: Apache/2.0.52 (Red Hat)
X-Powered-By: PHP/5.2.10
Content-Disposition: attachment; f
Correct, the files on the server have not changed either, and have
been working fine for a long time. No funny characters.
On Aug 7, 2009, at 4:59 PM, Adam Randall wrote:
Sorry for replying to myself, but the files themselves only contain
US-ASCII characters, and no quotes, correct? Having ex
> Very interesting. Excellent debugging advice. It's giving me a 500
> error, probably why the Rackspace techs told me to check my code:
>
> HTTP/1.0 500 Internal Server Error
Did you get that 500 while running curl from a machine outside of Rackspace's
network?
If so, I'd be interested to see w
Change to cron -i to see what other information, if any, is also being
passed back. You might get some errors, or some such. Since you are
getting empty files my gut tells me you aren't getting anything. Since
you are actually getting a PHP 500 error, that lends me to believe
that it's not some typ
The 500 is the result of the missing content-type in the real header. Once
you get a blank line in there, it thinks thats the content. The error log
will likely say 'premature end of script headers'... Good mystery on why
it's got the blank line though.
Jerry Wilborn
jerrywilb...@gmail.com
On F
On Sat, 08 Aug 2009 01:46:38 +0300, Waynn Lue wrote:
Hey PHPers,
We've been doing sampled logging to the database in our application for
awhile, and now I'm hoping eventually to blow that out to a larger scale.
I'm worried about the performance implications of logging to our
database on
...
>
> Hey PHPers,
>>
>> We've been doing sampled logging to the database in our application for
>> awhile, and now I'm hoping eventually to blow that out to a larger scale.
>> I'm worried about the performance implications of logging to our database
>> on
>> ...
>>
>>
> If you are using mysql and MyI
I did some very complete logging for two major german companies on their
intranet pages. an application with something like 23000 registered users
and more then 5 hits a day. I did none of any kind of buffering, just
raw table inserts. it never gave any problem on performance HOWEVER we did a
D
On Fri, 07 Aug 2009 06:32:48 +0100, a...@ashleysheridan.co.uk (Ashley Sheridan)
wrote:
...
>> How, for example, could I otherwise achieved the following effect, which
>> displays an image
>> with a border slightly darker than the background, and with the title and
>> subtitle inside
>> the b
On Aug 7, 2009, at 9:25 PM, Waynn Lue wrote:
Hey PHPers,
We've been doing sampled logging to the database in our
application for
awhile, and now I'm hoping eventually to blow that out to a larger
scale.
I'm worried about the performance implications of logging to our
database
on
.
On Aug 2, 2009, at 7:59 AM, Dušan Novaković wrote:
Hi,
Does anyone has any idea how to create notification system with
combination of php, mysql and javascript. It should be something
similar to facebook notification system (when someone make some action
it should be automatically reported
Also, take a look at Comet Server:
http://en.wikipedia.org/wiki/Comet_(programming)
I think that Facebook uses that and also Gmail, it tends to consume
less resources than periodical ajax calls, the hidden iframe method is
simple and works fine. To implement it in PHP you will need to use the
flus
On Fri, Aug 7, 2009 at 10:25 PM, Jonathan Tapicer wrote:
> Also, take a look at Comet Server:
> http://en.wikipedia.org/wiki/Comet_(programming)
>
> I think that Facebook uses that and also Gmail, it tends to consume
> less resources than periodical ajax calls, the hidden iframe method is
> simple
Is there a case where php can become unscalable for a web sever ? If so can
anyone please state to me how...
Thanks
George
31 matches
Mail list logo