php-general Digest 7 Aug 2009 16:32:15 - Issue 6272
Topics (messages 296416 through 296433):
Re: PHP 6 and MySQL 5 for Dynamic Web Sites Book
296416 by: Angus Mann
296417 by: Michael A. Peters
296418 by: Larry Ullman
296420 by: HallMarc Websites
you will have to manually maintain the number in the bracket. but you
can try using a template engine like smarty, and use a for loop to
take care of the numbers in the brackets
Well.. the entries are inserted / deleted dynamically using JavaScript (to
avoid unnecessary refresh). Why can't it
not a good place to discuss the merits and demerits of binary blobs. is it ?
now coming back to the question. Firebug firefox addon, and http live
headers firefox addon will be of help to you in this case.
You have img src=display_img.php?id=1 tag(or something similar) i
suppose... try opening
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
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
-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 comment that said
-Original Message-
From: leledumbo [mailto:leledumbo_c...@yahoo.co.id]
Sent: 07 August 2009 05:43
This should work:
input type='radio' name='sex[1]' value='1'
input type='radio' name='sex[1]' value='2'
input type='radio' name='sex[2]' value='1'
input type='radio'
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
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
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. login
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
On 8/6/09 2:33 PM, Ted Yu ted...@yahoo.com 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);
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 f...@thefsb.org wrote:
On 8/6/09 2:33 PM, Ted Yu
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
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:
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
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.
Thanks.
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
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;
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
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 what
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
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
On Sat, 08 Aug 2009 01:46:38 +0300, Waynn Lue waynn...@gmail.com 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
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 MyISAM tables, you
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
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 border?
On Aug 7, 2009, at 9:25 PM, Waynn Lue waynn...@gmail.com 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
On Aug 2, 2009, at 7:59 AM, Dušan Novaković ndu...@gmail.com 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
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
On Fri, Aug 7, 2009 at 10:25 PM, Jonathan Tapicertapi...@gmail.com 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 there a case where php can become unscalable for a web sever ? If so can
anyone please state to me how...
Thanks
George
34 matches
Mail list logo