php-general Digest 20 Jul 2007 07:12:22 - Issue 4913
Topics (messages 259186 through 259206):
Compiling/Building PHP 5.2.3 on Mac OS X 10.3.9
259186 by: Rahul Sitaram Johari
259188 by: Greg Donald
Re: Pirate PHP books online?
259187 by: tedd
259192 by: Chris
okay, i'll try that example you gave me... thanks!
Daniel Brown [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On 7/17/07, Ryan Lao [EMAIL PROTECTED] wrote:
i made a simple PHP form that would ask for the users complete name, a
button that would browse to a file that the user
On Fri 20 Jul 07 04:21, ahlist wrote:
On 7/19/07, ahlist [EMAIL PROTECTED] wrote:
A libarary I'm using (the cybersource api if it helps any) is dying
when I pass it extended chars - such as bjorn (two dots over the
o - not sure of the actual name of this char -sorry).
For some reason,
Dear People,
I developed a very large Application, which has at the moment strong
performace problems, while pages are loaded.
At the moment I am trying to lower the number of filesystem calls as
much as I can. I was able allready to lower the rate of filesystem
calls from round about 260 calls,
Hello to all!
I encountered this error when the site is uploaded on the server:
session_start(): Cannot send session cache limiter - headers already
sent
I already put session_start() on topmost part of the file..but i saved the
file as utf-8..and that seems to be the problem..can anyone
On Fri, 2007-07-20 at 16:01 +0800, Vanessa Vega wrote:
I already put session_start() on topmost part of the file..but i saved the
file as utf-8..and that seems to be the problem..can anyone share their
knowledge on this?
Set your error_reporting to at least E_ALL and check that there are
Hi,
What is your desired performance level on what kind of hardware.
Have look memcached,
General performance tip do not include more than 10 files a page load.
I had CMS project too. Sometimes it uses 10 MB of php memory (generally uses 3
mb of php memory). It uses Memcached in every way
On Tue, 17 Jul 2007 17:59:01 -0500 (CDT), Richard Lynch wrote:
On Tue, July 17, 2007 2:03 pm, Nisse Engström wrote:
On Fri, 13 Jul 2007 01:24:09 -0500 (CDT), Richard Lynch wrote:
htmlspecialchars ONLY escapes four characters:
htmlentities escapes ALL characters that need it
What
Sancar Saran wrote:
Another simple performance tip.
Most of for examples of php look like this
for($x=0;$xsizeof($arrSometing);$x++)
This is bad. In every cycle you call sizeof
this was good
$intSize = sizeof($arrSometing);
for($x=0;$x$intSize;$x++)
if u use.
Hello!
I am returning to PHP and having some problems.
Can anyone tell me if
require_once(http://www.mydomain.com.br/includes/teste.php;) really do not
work?
If I especify the complete path for my local server
(/srv/www/htdocs/mysite/php/teste.php) it works fine (I did it when using
version
2007. 07. 20, péntek keltezéssel 09.17-kor Suporte - DPRJ Sistemas ezt
írta:
Hello!
I am returning to PHP and having some problems.
Can anyone tell me if
require_once(http://www.mydomain.com.br/includes/teste.php;) really do not
work?
If I especify the complete path for my local
2007. 07. 20, péntek keltezéssel 09.30-kor Suporte - DPRJ Sistemas ezt
írta:
Checked and ON!
sorry I forgot that you need allow_url_include to be on too.
check that too.
btw, what do you mean by not working? does it throw any error? or
what?
greets
Zoltán Németh
(ps. sorry I forgot to
Vanessa Vega wrote:
Hello to all!
I encountered this error when the site is uploaded on the server:
session_start(): Cannot send session cache limiter - headers already
sent
I already put session_start() on topmost part of the file..but i saved the
file as utf-8..and that seems to
All,
I'm terribly sorry if this is a redundant inquiry. I'm a rather
inexperienced developer who's catching on quickly, and looking for a
framework to build out a project I've been assigned. I'm more of a read
a book and try things out type of learner.
My question to those with more
Hey,
Sorry your work was stolen but dont hold your breath waiting for that site to
close down. I have no idea who your publishers are but I _reay_ doubt they
have more clout than M$, the MPAA, RIAA, SONY, Pixar etc coz they went after
thepiratebay and looked like fools:
Thanks for your help. How would I go about getting procmail to forward it?
What I currently have is a script that connects to a free email address that
collects bounces captured from newsletters the system has sent. I'm using
IMAP to connect to the mailbox, then looping through and trying to
This isn't necessarily a brain-teaser, but it's still pretty cool.
Dice (the employment site) has a new advertisement out there that
says the following:
What's missing from your job?
?php
format = 'The %2s contains %1d orders';
printf(format, num, location
?
I thought it was a
Hi all,
I'm a newbie in PHP, and I want to know what's the best technique you
guys use when you need to get the id of the last inserted value in the
database.
My first thought is to do a SELECT on the db and get the last id, but I
know that if I have two almost simultaneous connections I
On Fri, July 20, 2007 1:10 pm, Marcelo Wolfgang wrote:
I'm a newbie in PHP, and I want to know what's the best technique you
guys use when you need to get the id of the last inserted value in the
database.
My first thought is to do a SELECT on the db and get the last id, but
I
know that if
One easy solution would be to get the ID before you do the insert
i.e. in Oracle you would run the query:
select some_id_generating_seq.nextval from dual
and then you would use that id to insert and you would know the id after
that...and the DB would take care of locking and such.
So, check
However, wouldn't obtaining the id in that manner still possibly lead to
duplication? The DB would take care of the locking on the inserts, but the
inserts would be populated from a non-locking select, right? Which means
that, with two similar transactions getting ready to occur, you could end
On 19/07/07, Zoltán Németh [EMAIL PROTECTED] wrote:
I didn't want to get involved in this thread, though it was interesting
to read...
However, an idea just came into my mind: what if you, as the author,
could offer a download for a price which would be the same as what you
get after a sold
I think I found a solution. Must admit I feel pretty down for spending so
much time on this when the solution was so simple, but I couldn't find too
much info on PHP's imap functions. Hopefully this will be indexed and help
developers in the future.
PHP has a function that saves the message in a
Today I was writing an E-Mail here in the List
since that time, my webserver detects a virus
which is described as a denial of service attack.
Thank you fellows!
This is really a reliable list.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On 7/20/07, Sascha Braun, CEO @ ejackup.com [EMAIL PROTECTED] wrote:
Today I was writing an E-Mail here in the List
since that time, my webserver detects a virus
which is described as a denial of service attack.
Thank you fellows!
This is really a reliable list.
--
PHP General Mailing List
On Fri, 2007-07-20 at 21:17 +0200, Sascha Braun, CEO @ ejackup.com
wrote:
Today I was writing an E-Mail here in the List
since that time, my webserver detects a virus
which is described as a denial of service attack.
Thank you fellows!
This is really a reliable list.
What does that have
Daniel Brown wrote:
On 7/20/07, Sascha Braun, CEO @ ejackup.com [EMAIL PROTECTED] wrote:
Today I was writing an E-Mail here in the List
since that time, my webserver detects a virus
which is described as a denial of service attack.
Thank you fellows!
This is really a reliable list.
On 7/20/07, Austin Denyer [EMAIL PROTECTED] wrote:
Daniel Brown wrote:
On 7/20/07, Sascha Braun, CEO @ ejackup.com [EMAIL PROTECTED] wrote:
Today I was writing an E-Mail here in the List
since that time, my webserver detects a virus
which is described as a denial of service attack.
Thank
i recently attached an image, .png i believe.
-nathan
On 7/20/07, Daniel Brown [EMAIL PROTECTED] wrote:
On 7/20/07, Austin Denyer [EMAIL PROTECTED] wrote:
Daniel Brown wrote:
On 7/20/07, Sascha Braun, CEO @ ejackup.com [EMAIL PROTECTED]
wrote:
Today I was writing an E-Mail here in the
im not sure, but i think you still want to surround the insert and the db
specific call to get the
last insert id within a transaction.
-nathan
On 7/20/07, Uber Wannabe [EMAIL PROTECTED] wrote:
However, wouldn't obtaining the id in that manner still possibly lead to
duplication? The DB would
he got a ddos attack from writing to the list ;)
On Fri, 20 Jul 2007 3:33 pm, Daniel Brown wrote:
On 7/20/07, Austin Denyer [EMAIL PROTECTED] wrote:
Daniel Brown wrote:
On 7/20/07, Sascha Braun, CEO @ ejackup.com [EMAIL PROTECTED]
wrote:
Today I was writing an E-Mail here in the List
On 7/20/07, Dotan Cohen [EMAIL PROTECTED] wrote:
On 19/07/07, Zoltán Németh [EMAIL PROTECTED] wrote:
I didn't want to get involved in this thread, though it was interesting
to read...
However, an idea just came into my mind: what if you, as the author,
could offer a download for a price
So, I'm trying to be more consistent about escaping my output.
I do something like this (only prettier):
if (!isset($_REQUEST['blah_id'])) error_out(Bad blah_id input);
$blah_id = (int) $_REQUEST['blah_id'];
$blah_id_sql = mysql_real_escape_string($blah_id, $connection);
$query = select title
On Fri, July 20, 2007 2:36 pm, Gary Josack wrote:
he got a ddos attack from writing to the list ;)
With the volume we have, perhaps just subscribing was considered a
DDOS...
:-)
Off-list I suggested he contact the list owner with the specific
message ID and virus name he believes was sent
On Fri, July 20, 2007 2:07 pm, Uber Wannabe wrote:
However, wouldn't obtaining the id in that manner still possibly lead
to
duplication? The DB would take care of the locking on the inserts,
but the
inserts would be populated from a non-locking select, right? Which
No.
In the case of
On Fri, July 20, 2007 2:42 pm, Nathan Nobbe wrote:
im not sure, but i think you still want to surround the insert and the
db
specific call to get the
last insert id within a transaction.
ID generation and uniqueness thereof is SOOO common, that most (all?)
the DBs support it without wrapping
On Fri, July 20, 2007 10:01 am, Steve Finkelstein wrote:
My question to those with more experience, what exactly is the
difference between CakePHP and Symfony? I'm looking into both of them
You may want to ask on a Cake list and a Symfony list.
You'll get very biased answers, but at least
On Fri, July 20, 2007 7:17 am, Suporte - DPRJ Sistemas wrote:
I am returning to PHP and having some problems.
Can anyone tell me if
require_once(http://www.mydomain.com.br/includes/teste.php;) really
do not work?
It will not work if allow_url_fopen is set to OFF in php.ini
Even if it *DOES*
On Fri, July 20, 2007 3:17 am, Paul Scott wrote:
On Fri, 2007-07-20 at 16:01 +0800, Vanessa Vega wrote:
I already put session_start() on topmost part of the file..but i
saved the
file as utf-8..and that seems to be the problem..can anyone share
their
knowledge on this?
Set your
On Fri, July 20, 2007 2:25 am, Sascha Braun, CEO @ ejackup.com wrote:
I developed a very large Application, which has at the moment strong
performace problems, while pages are loaded.
Look into valgrind/callgrind to get an idea of where all your time is
being spent.
Optimizing something that
On Jul 20, 2007, at 2:39 PM, Nathan Nobbe wrote:
i recently attached an image, .png i believe.
-nathan
AH HAAA
;)
Ed
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, July 20, 2007 4:16 am, Colin Guthrie wrote:
Sancar Saran wrote:
Another simple performance tip.
Most of for examples of php look like this
for($x=0;$xsizeof($arrSometing);$x++)
This is bad. In every cycle you call sizeof
this was good
$intSize = sizeof($arrSometing);
On 20/07/07, Tijnema [EMAIL PROTECTED] wrote:
An additional benefit is that there are those who _prefer_ the
electronic version to the dead trees. At least, I do.
Dotan Cohen
Old paper can be recycled, lost energy from computers can't ;)
Tijnema
My reference to dead trees was not meant
You are calling mysql_real_escape_string, right?...
And is the character set of the MySQL server, and of the MySQL client,
set to whatever character set bjorn with the two-dots-o is in?...
I don't claim to understand this stuff, but I know you can't just
magically make a non-ASCII character
I think you want OR instead of AND in your query...
It will be very dificult for both:
name+city+state
name
to be in your list of cen_chiefs...
cen_chiefs would have to have *both*:
Joe Chicago IL
Joe
in it, in order for Joe from Chicago, IL to match with AND.
OR would get rows where either
On Wed, July 18, 2007 2:01 pm, Rick Lim wrote:
Hi there,
Are there any good howtos for using php-cli as a progmatic browser.
http://php.net/curl
--
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I
On 7/21/07, Dotan Cohen [EMAIL PROTECTED] wrote:
On 20/07/07, Tijnema [EMAIL PROTECTED] wrote:
An additional benefit is that there are those who _prefer_ the
electronic version to the dead trees. At least, I do.
Dotan Cohen
Old paper can be recycled, lost energy from computers can't ;)
On Wed, July 18, 2007 10:13 am, Daniel Brown wrote:
To those of you who got an invitation from me via LinkedIn, I
apologize. Feel free to ignore them. There was a site glitch,
apparently, while importing contacts from my Gmail account, which -
instead of adding just a few specific
There's the display_error_in_browser or whatever it is that might be
causing the second output...
On Wed, July 18, 2007 12:31 pm, Olav Mørkrid wrote:
sorry. still get it twice.
c:\php -r error_reporting(E_ALL ^ E_NOTICE);
trigger_error(\hello\, E_USER_ERROR);
PHP Fatal error: hello in
On Friday 20 July 2007 21:10:28 Marcelo Wolfgang wrote:
Hi all,
I'm a newbie in PHP, and I want to know what's the best technique you
guys use when you need to get the id of the last inserted value in the
database.
My first thought is to do a SELECT on the db and get the last id, but I
Hi,
I had lots of loop in my code. My gain was %4 to %6 and I say may gain
another %10. Of course your millage was different than me
Regards
Sancar
On Saturday 21 July 2007 01:03:45 Richard Lynch wrote:
On Fri, July 20, 2007 4:16 am, Colin Guthrie wrote:
Sancar Saran wrote:
Another
On Wed, July 18, 2007 9:35 am, Mark Tuma wrote:
I have a fairly simple set of php scripts which use session variables
to
pass information from one page to the next in an online booking system
for an event. In most cases these work fine, but users with a couple
of
ISPs are consistently
On Wed, July 18, 2007 8:56 am, Rosen wrote:
Is there a way to create e-mail with PHP and save it to .eml file
(without sending)?
I dunno if MS adds anything funky to a .eml file, but I suspect that
it's just the raw headers and then the body...
So pretty much file_put_contents would do it, if
On Thu, July 19, 2007 9:18 pm, bkozora wrote:
I've been struggling with the same issue, does anyone have a link to
or know
of a way to automatically create eml files using PHP? The links that
Google
search returned were mostly specific to email clients, I need to
create the
eml files on the
What exactly is the end goal after you have the message in an .eml
file?
If you just fetch the WHOLE damn thing with IMAP and dump it into a
file and name it whatever.eml then you're done, by the way.
So imap_fetchheader, find out how many body parts there are,
imap_fetchbody for each one, dump
On Wed, July 18, 2007 7:24 am, Olav Mørkrid wrote:
consider the following statement:
$language =
isset($_SERVER[HTTP_ACCEPT_LANGUAGE])
$_SERVER[HTTP_ACCEPT_LANGUAGE] != ?
$_SERVER[HTTP_ACCEPT_LANGUAGE] : *;
You can do it nicely in 2:
$language = isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) ?
On Wed, July 18, 2007 9:24 am, Olav Mørkrid wrote:
i didn't know about empty. thanks!
Watch out!!!
If your code is being distributed on many PHP platforms, the
definition of empty changed from version to version...
Won't matter for the $language you're trying to get at here, but will
in other
Back in January I was looking for a framework for a project that ended up
being canceled anyway. :-) I considered both CakePHP and Symfony, and had
decided on CakePHP for a very simple reason: It was smaller. It was pure PHP
while Symfony relied on Propel which in turn used YAML syntax to
On Wed, July 18, 2007 8:41 am, Ross wrote:
$data = simplexml_load_string(file_get_contents($url));
Is there a php4 version of this or does this only work in 5? How can I
get
around it?
If you absolutely have to support PHP 4, be prepared for a rather long
and tedious testing period where
On Wed, July 18, 2007 4:37 am, Vanessa Vega wrote:
I have a function that creates a thumb file(thumbnail) and and an
image
file(preview pic) in php. It starts with:
function ($picFile, $thumbFile, $imageFile) {
if (extension_loaded('gd') {
..codes to create thumb and preview
On Wed, July 18, 2007 4:13 am, Don Don wrote:
I am reading the following xml data in a very large file using XML
reader, the xml structure looks like the xample given below
Any thoughts ?
Use simple XML?
Or is the file really too huge for that to be feasible? Have you
actually tried it?...
Did you actually READ my previous post that you replied to?...
On Wed, July 18, 2007 1:29 am, [EMAIL PROTECTED] wrote:
Ok thanks everyone...
I need to throw in a wildcard, how would I do that.. I have this so
far.
which dont work.
?
$filename = '/home/public_html/client/test/*.txt.asc';
On Friday 20 July 2007, Sascha Braun, CEO @ ejackup.com wrote:
Dear People,
The webserver does only contain the webspace filesystem structure as
well as 5 line of PHP Code dummies, for every document in the content
management system, to avoid the usage of mod_rewrite.
I inherited a CMS at
On Tue, July 17, 2007 9:29 pm, Ryan Lao wrote:
i made a simple PHP form that would ask for the users complete name, a
button that would browse to a file that the user wants to upload, a
text
area for additional comments, and a submit button. This form works
just
fine. what i want to
On Tue, July 17, 2007 9:43 pm, Instruct ICC wrote:
Ignore this problem for awhile and see if it doesn't go away.
(read: you realize it's not really a problem)
Are you really a CEO? I like your style.
Well, there really is a C-corp Lynch Interplanetary Enterprises, Inc
But let's just say that
On Tue, July 17, 2007 9:42 pm, Larry Garfield wrote:
On Tuesday 17 July 2007, Richard Lynch wrote:
Once I have written code or words, the time I have spent on that
is
gone. I
will never get that time back, regardless of whether or not I get
paid
for it
after the fact.
Last time I
On Wed, July 18, 2007 6:13 am, David Powers wrote:
Richard Lynch wrote:
You probably have made far more from your book than most rock
artists,
and surprisingly more than some of the rock stars with
particularly
bad contracts, or who have only had one hit song.
I'm glad you have such a high
On Wed, July 18, 2007 6:35 am, Jay Blanchard wrote:
[snip]
Artificially created by the law, yes.
[/snip]
Just curious, if this artificiality did not exist what could an
author's
reasonable expectation be?
Starvation.
--
Some people have a gift link here.
Know what I want?
I want you to
On Wed, July 18, 2007 9:40 am, John Meyer wrote:
There is a very very important difference. Stealing/theft is a
criminal offence. Copyright infringement is not. For you to be
prosecuted for copyright infringement the injured party must bring a
civil case.
This is a fundamental difference.
On Wed, July 18, 2007 9:19 pm, Jay Blanchard wrote:
[snip]
...all manner of interesting debate...
[/snip]
What, exactly, is the difference between this particular brand of
copyright infringement and taking the book from a bookstore without
paying for it? Am I committing copyright
On Wed, July 18, 2007 10:07 pm, tedd wrote:
At 9:19 PM -0500 7/18/07, Jay Blanchard wrote:
Am I committing copyright infringement by standing in the
store and reading the book?
No, because that's allowed.
The publisher and author has given their permission for the book to
be sold in a
At 9:17 PM +0200 7/20/07, Sascha Braun, CEO @ ejackup.com wrote:
Today I was writing an E-Mail here in the List
since that time, my webserver detects a virus
which is described as a denial of service attack.
Thank you fellows!
This is really a reliable list.
When does a virus cause a denial
On Thu, July 19, 2007 1:38 pm, tedd wrote:
At 8:52 AM -0500 7/19/07, Larry Garfield wrote:
On Thursday 19 July 2007, Daniel Brown wrote:
the middle-men being cut out, and that's how you get exclusivity
contracts,
DRM, and similar anti-artist and anti-consumer bad things.
I interpreted the bad
system: windows xp sp 2
apache: apache_2.2.4-win32-x86-no_ssl
PHP: php-5.2.3-win32-installer.msi
i try to install php on my computer so that i can finish my homework, but
after download these files nightmare begins. Install apache with default
settings, install php with default settings.
On Fri, July 20, 2007 8:01 pm, tedd wrote:
At 9:17 PM +0200 7/20/07, Sascha Braun, CEO @ ejackup.com wrote:
Today I was writing an E-Mail here in the List
since that time, my webserver detects a virus
which is described as a denial of service attack.
Thank you fellows!
This is really a reliable
On Thu, July 19, 2007 8:33 am, Daniel Brown wrote:
extract($_POST);
You might as well just turn register_globals back ON (bad!) because
you've just done a work-around on $_POST that does exactly what
register_globals ON does to $_POST...
This is bad.
Don't do this.
ONLY extract the
From: Richard Lynch [EMAIL PROTECTED]
There's the display_error_in_browser or whatever it is that might be
causing the second output...
From the command line?
_
At 2:09 PM -0400 7/20/07, Daniel Brown wrote:
This isn't necessarily a brain-teaser, but it's still pretty cool.
In similar fashion, I tell clients, you can have:
a) Quality;
b) Cheap;
c) Quick;
Pick any two.
Cheers,
tedd
--
---
http://sperling.com http://ancientstones.com
Sascha Braun, CEO @ ejackup.com wrote:
Today I was writing an E-Mail here in the List
since that time, my webserver detects a virus
which is described as a denial of service attack.
Thank you fellows!
This is really a reliable list.
I will take a little bit different approach on this.
The
Yeah, that and imap_savebody($imap, $fn, $i); work. Thanks
Richard Lynch wrote:
On Wed, July 18, 2007 8:56 am, Rosen wrote:
Is there a way to create e-mail with PHP and save it to .eml file
(without sending)?
I dunno if MS adds anything funky to a .eml file, but I suspect that
it's just
What's a good place in the Internet where I could learn about creating login
and member authentication enabled web site?
I would appreciate any good references.
What type of authentication are you looking to do ???
How secure, and how detailed do you want to be with it?
On 7/20/07 9:49 PM, Kelvin Park [EMAIL PROTECTED] wrote:
What's a good place in the Internet where I could learn about creating login
and member authentication enabled web site?
I
I'm trying to make a web site that it entirely XML/XSLT/PHP driven, without
MYSQL.
However, since I need to reuse the database from my last web site, I had to
parse XML with PHP and save it as a file (e.g. xmlFile.xml) in my htdocs
folder in FTP. However, I understand that this can cause some
I had to Parse XML with PHP with database from mysql.
On 7/20/07, Kelvin Park [EMAIL PROTECTED] wrote:
I'm trying to make a web site that it entirely XML/XSLT/PHP driven,
without MYSQL.
However, since I need to reuse the database from my last web site, I had
to parse XML with PHP and save it
Kelvin Park wrote:
I'm trying to make a web site that it entirely XML/XSLT/PHP driven, without
MYSQL.
However, since I need to reuse the database from my last web site, I had to
parse XML with PHP and save it as a file (e.g. xmlFile.xml) in my htdocs
folder in FTP. However, I understand that
85 matches
Mail list logo