Well, that did something, and it does sound like it should work. I've scoured
the web and haven't found anyone with code that does what I'm trying to do.
I've got a working, hardcoded Postscript file here:
http://www.winecarepro.com/kiosk/fast/shell/barcodemerge.ps
But I need to somehow serve
On Tue, 2010-03-23 at 21:32 -0700, Tommy Pham wrote:
> # of requests / second can be solved by load balancers/clusters. What
> about the multiple answers for a simple request per user as in my
> example? How you would solve that if not by threading? Amazon has
> about 30 million products and the
On Tue, Mar 23, 2010 at 9:13 PM, Phpster wrote:
> Most if that stuff should only be in the db as a reference and when editing
> te lists. The actual user acessed data should sit in simple XML files that
> can be passed to the client, broken out by category or prod line. The
> reasons are simple, d
On Tuesday 23 March 2010 11:32:10 pm Tommy Pham wrote:
> On Tue, Mar 23, 2010 at 9:06 PM, Teus Benschop
wrote:
> > When looking at PHP as used in enterprise class applications, we can see
> > the following happening. Let imagine that we have a site that gets a
> > 1000 requests per second. That s
On Tue, Mar 23, 2010 at 9:06 PM, Teus Benschop wrote:
> When looking at PHP as used in enterprise class applications, we can see
> the following happening. Let imagine that we have a site that gets a
> 1000 requests per second. That seems to be a good candidate for
> threading so as to be able to
Most if that stuff should only be in the db as a reference and when
editing te lists. The actual user acessed data should sit in simple
XML files that can be passed to the client, broken out by category or
prod line. The reasons are simple, database access time is going to
suck, no matter w
On Tue, 2010-03-23 at 19:08 -0700, Tommy Pham wrote:
> The response time, max 5 seconds, will be tested on local gigabit LAN
> to ensure the adequate response (optimized DB & code & proper
> hardware) without worrying about users' connection limit and site's
> upload bandwidth limit (which can easi
Hi all,
I'm an ex-PHP programmer turned PHP sysadmin. I read the "core php.ini"
documentation and wanted to confirm what functions exactly open_basedir
will restrict. "Examples" are made of fopen() and gzopen() -- what else
is there?
Will require_once() and include() be unaffected? I assume those
When looking at PHP as used in enterprise class applications, we can see
the following happening. Let imagine that we have a site that gets a
1000 requests per second. That seems to be a good candidate for
threading so as to be able to handle the 1000 requests per second. The
site runs PHP and Apac
First of all, I'll apologize for the top-post. My DROID doesn't give me the
option of top or bottom. So not ready for enterprise.
Secondly, I'll append to the statements made by Larry that, unless it's
non-web based, there are far more layers involved before, during, and after
PHP's execution. Thr
Paul M Foster wrote:
On Tue, Mar 23, 2010 at 06:17:56PM -0700, Tommy Pham wrote:
Let's go back to my 1st e-commerce example. The manufacturers list is
about 3,700. The categories is about about 2,400. The products list
is right now at 500,000 and expected to be around 750,000. The site
is
On Tue, Mar 23, 2010 at 6:57 PM, Paul M Foster wrote:
> On Tue, Mar 23, 2010 at 06:17:56PM -0700, Tommy Pham wrote:
>
>> Let's go back to my 1st e-commerce example. The manufacturers list is
>> about 3,700. The categories is about about 2,400. The products list
>> is right now at 500,000 and ex
On Tue, Mar 23, 2010 at 06:17:56PM -0700, Tommy Pham wrote:
> Let's go back to my 1st e-commerce example. The manufacturers list is
> about 3,700. The categories is about about 2,400. The products list
> is right now at 500,000 and expected to be around 750,000. The site
> is only in English.
Tommy Pham wrote:
Let's go back to my 1st e-commerce example. The manufacturers list is
about 3,700. The categories is about about 2,400. The products list
is right now at 500,000 and expected to be around 750,000. The site
is only in English. The store owner wants to expand and be I18n:
Chi
On Tue, Mar 23, 2010 at 6:17 PM, Tommy Pham wrote:
> Let's go back to my 1st e-commerce example. The manufacturers list is
> about 3,700. The categories is about about 2,400. The products list
> is right now at 500,000 and expected to be around 750,000. The site
> is only in English. The stor
Let's go back to my 1st e-commerce example. The manufacturers list is
about 3,700. The categories is about about 2,400. The products list
is right now at 500,000 and expected to be around 750,000. The site
is only in English. The store owner wants to expand and be I18n:
Chinese, French, German
*Importance:* High
All:
If you are a Facebook user, you may have recently received an email with the
subject: *Facebook Password Reset Confirmation Customer Support.
**The *address
of the sender is spoofed to display supp...@facebook.com
*THIS IS MALWARE BOTNET – DO NOT OPEN THIS MESSAGE!
Tommy Pham wrote:
On Tue, Mar 23, 2010 at 3:33 PM, Per Jessen wrote:
Tommy Pham wrote:
On Tue, Mar 23, 2010 at 2:04 AM, Per Jessen wrote:
Use the right tool for the right job - PHP is a scripting/interpreted
language, it does not need threading (IMO of course).
--
Per Jessen, Zürich (9.4°
2010/3/24 Tommy Pham :
> On Tue, Mar 23, 2010 at 3:33 PM, Per Jessen wrote:
>> Tommy Pham wrote:
>>
>>> On Tue, Mar 23, 2010 at 2:04 AM, Per Jessen wrote:
Use the right tool for the right job - PHP is a scripting/interpreted
language, it does not need threading (IMO of course).
>>>
On 3/23/10 6:04 PM, Tommy Pham wrote:
If throwing hardware at it won't work because of the above mentioned,
then you would change the design right? How long would that take?
What if PHP has threads, how long would it take you implement threads
with minor changes versus and overhaul of applicati
On Tue, Mar 23, 2010 at 3:33 PM, Per Jessen wrote:
> Tommy Pham wrote:
>
>> On Tue, Mar 23, 2010 at 2:04 AM, Per Jessen wrote:
>>>
>>> Use the right tool for the right job - PHP is a scripting/interpreted
>>> language, it does not need threading (IMO of course).
>>>
>>>
>>> --
>>> Per Jessen, Zür
Tommy Pham wrote:
> On Tue, Mar 23, 2010 at 2:04 AM, Per Jessen wrote:
>>
>> Use the right tool for the right job - PHP is a scripting/interpreted
>> language, it does not need threading (IMO of course).
>>
>>
>> --
>> Per Jessen, Zürich (9.4°C)
>>
>>
>
> I couldn't agree more. But here's a rea
On Tue, Mar 23, 2010 at 2:04 AM, Per Jessen wrote:
>
> Use the right tool for the right job - PHP is a scripting/interpreted
> language, it does not need threading (IMO of course).
>
>
> --
> Per Jessen, Zürich (9.4°C)
>
>
I couldn't agree more. But here's a real life example. Your client
has a
You can create a .php script that sets a proper header to make the
browser download the file rather than display it. That also allows you
to set the filename for the download. What you'd need to do is include
something like:
header("Content-Disposition: attachment; filename: 'barcodemerge.ps'");
I love the idea of using PHP to insert data into Postscript. I'm just not sure
how to make it happen.
The good news is that I've got barcodes drawing just the way I need them:
http://www.winecarepro.com/kiosk/fast/shell/barcodemerge.ps
The bad news is that's all hard-coded Postscript. I'd lik
On Tue, Mar 23, 2010 at 14:29, Rene Veerman wrote:
> Hi..
>
> in an effort to write better code i'd like to know good strategies for
> unit testing.
> automated testing of code.
>
> the fact that my code can undergo rapid changes has kept me back so far.
This is a question that comes up now a
Hi..
in an effort to write better code i'd like to know good strategies for
unit testing.
automated testing of code.
the fact that my code can undergo rapid changes has kept me back so far.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, 23 Mar 2010, Richard Quadling wrote:
> However you want to identify the location, the autoloading techniques
> will allow you to only need to identify the location once. As compared
> to every file meticulously maintaining relative links to files.
>
> So, for testing, would this not work?
On 23 March 2010 13:11, Robert P. J. Day wrote:
> On Mon, 22 Mar 2010, Nilesh Govindarajan wrote:
>
>> What I do is, set the include path in the top-level bootstrapper.
>>
>> /bootstrap.php:
>>
>> set_include_path(dirname(__FILE__) . '/lib' . PATH_SEPARATOR .
>> get_include_path());
>>
>> Then I l
On Tue, Mar 23, 2010 at 15:50, Jan G.B. wrote:
>
>
> 2010/3/23 Daniel Egeberg
>>
>> On Tue, Mar 23, 2010 at 11:47, Marten Lehmann wrote:
>> > Hello,
>> >
>> > I found different code examples like this, which use the file handle
>> > STDERR
>> > just like this:
>> >
>> > > > fwrite(STDERR, "hello
2010/3/23 Daniel Egeberg
> On Tue, Mar 23, 2010 at 11:47, Marten Lehmann wrote:
> > Hello,
> >
> > I found different code examples like this, which use the file handle
> STDERR
> > just like this:
> >
> > > fwrite(STDERR, "hello\n");
> > ?>
> >
> > Also, the PHP documentation of input/output st
On Tue, Mar 23, 2010 at 11:47, Marten Lehmann wrote:
> Hello,
>
> I found different code examples like this, which use the file handle STDERR
> just like this:
>
> fwrite(STDERR, "hello\n");
> ?>
>
> Also, the PHP documentation of input/output streams
> (http://php.net/manual/de/wrappers.php.php)
Rene Veerman wrote:
But i've yet to find a way to keep global objects in memory between
http requests, outside $_SESSION, which i believe is just stored to-
and loaded from disk between http requests.
You can store sessions in a cache and avoid the disk IO.
--
PHP General Mailing List (http:
On Mon, 22 Mar 2010, Nilesh Govindarajan wrote:
> What I do is, set the include path in the top-level bootstrapper.
>
> /bootstrap.php:
>
> set_include_path(dirname(__FILE__) . '/lib' . PATH_SEPARATOR .
> get_include_path());
>
> Then I load the autoloader from /lib/autoload.php at the time of boo
On 23 March 2010 00:02, Daevid Vincent wrote:
> douche-bags
I think this is about the best way to get the wrong attention.
Not everyone has a sense of humour like yours.
Maybe no one has a sense of humour like yours.
Good luck.
Richard.
--
-
Richard Quadling
"Standing on the shoulders o
On 23 March 2010 05:48, Jochem Maas wrote:
> Op 3/23/10 3:27 AM, Rob Gould schreef:
>> I am trying to replicate the functionality that I see on this site:
>>
>> http://blog.maniac.nl/webbased-pdf-lto-barcode-generator/
>>
>> Notice after you hit SUBMIT QUERY, you get a PDF file with a page of
>>
> > > You could implement the features yourself.
> >
> > Damn, Mr McGlone beat me to it :)
>
> That's such a STUPID retort I'm so sick of hearing from the FOSS community.
> "build it yourself uh huhh uhhh huhhh". Obviously I'm not a low-level C/C++
> coder -- that's WHY I use PHP. :-\ So, you just
Ahh, I see why my suggestions had no effect - I assumed you were
dealing with normal php errors, not something done customly by the
code.
I'm afraid the only option I see is that of debugging the problem
script to find out where it opens STDERR - if you're certain that the
script specifically outp
2010/3/23 Marten Lehmann
> Hello,
>
> I found different code examples like this, which use the file handle STDERR
> just like this:
>
> fwrite(STDERR, "hello\n");
> ?>
>
> Also, the PHP documentation of input/output streams (
> http://php.net/manual/de/wrappers.php.php) says:
>
> "It is recommen
hmm i use scripted languages because i prefer and they allow/force
simple-to-read-code.
but that does not mean a scripted language can't evolve to expose
"complicated" code constructs like multi-threading and daemon-building
in a simple manner too.
i'd prefer it if a language like PHP can be used
Hello,
I found different code examples like this, which use the file handle
STDERR just like this:
Also, the PHP documentation of input/output streams
(http://php.net/manual/de/wrappers.php.php) says:
"It is recommended that you simply use the constants STDIN, STDOUT and
STDERR instead
Have you tried with
http://dk2.php.net/manual/en/function.error-reporting.php or just the
@ operator?
Yes. But this does not work, because error levels and the @ operator
only relate to errors thrown by the PHP runtime and have nothing to do
with STDERR.
But I need a way to close the STDERR
Daevid Vincent wrote:
> I've been using PHP for a decade or so (since PHP/FI) and love it. The
> one problem that seems to always keep coming back on enterprise level
> projects is the lack of threading. This always means we have to write
> some back-end code in Ruby or Java or C/C++ and some hack
Here's another analogy. For those of us in the field long enough, we
see the power of AJAX and we use it in one form or another. For the
newbies, they have yet to see it's power nor the requirements to
implement it. Threading is similar to that. It's not for everybody.
But for those of us that
On Mon, Mar 22, 2010 at 10:01 PM, Larry Garfield wrote:
> On Monday 22 March 2010 10:51:14 pm Tommy Pham wrote:
>> Threading is one of the 2 two main reasons why I moved to Java &
>> asp.net (C#). I've built a PHP based web crawler about 10 years ago.
>> I ran into some problems: cookies, form ha
45 matches
Mail list logo