php-general Digest 20 Aug 2008 08:48:35 - Issue 5634
Topics (messages 278363 through 278379):
Re: Semi-ADVERT, not really spam, sorry for it
278363 by: Colin Guthrie
278365 by: Jochem Maas
278367 by: Jochem Maas
278371 by: Robert Cummings
278374 by:
Hi,
I need to generate an online proof for vinyl lettering. Customers specify
the text, font, colour, maximum frame size (mm) (ie the width and height it
must fit into), and whether or not they want to keep aspect ratio (ie not
distort the lettering).
I want to represent all this on a single
Robert Cummings schreef:
On Tue, 2008-08-19 at 23:51 +0200, Jochem Maas wrote:
Robert Cummings schreef:
On Tue, 2008-08-19 at 14:36 +0200, Jochem Maas wrote:
Jay Blanchard schreef:
[snip]
PS - for those that know, I'm back ... with a vengeance.
[/snip]
That explains why I didn't sleep well
Hi,
it's the first time I use sqlite in PHP script.
All read requests work perfectly but I don't get on execute write
requests.
Example :
?php
try { $dbh = new PDO(sqlite:../example1.sqlite, '', ''); }
catch (PDOException $e) { echo Connection failed: . $e-getMessage(); }
var_dump($dbh);
I don't think GD has a built-in function to scale an image the way you
are asking, and to do it on a pixel by pixel basis from within a
function is going to be a very time consuming and memory costly process.
Have you thought about using ImageMagik to do this? I know that you can
exec() out to
Le Wed, 20 Aug 2008 07:48:02 +, KLEIN Stéphane a écrit :
Hi,
it's the first time I use sqlite in PHP script.
All read requests work perfectly but I don't get on execute write
requests.
Example :
?php
try { $dbh = new PDO(sqlite:../example1.sqlite, '', ''); } catch
Hi KLEIN, I think the problem is where you are connecting to your
database. I've not used SQL lite before, but the function spec says that
you have too many arguments. It suggests connecting like this:
if ($db = new SQLiteDatabase('filename'))
Also, do you need to specify the sqlite: protocol
I am using fpdf.
Micah Gersten wrote:
Which PDF generator are you using?
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Subhranil wrote:
Hi Micah,
Sorry for late reply. Actually 15th August is our INDEPENDENCE DAY and I
was
out of work.
Alex Chamberlain schreef:
Hi,
I need to generate an online proof for vinyl lettering. Customers specify
the text, font, colour, maximum frame size (mm) (ie the width and height it
must fit into), and whether or not they want to keep aspect ratio (ie not
distort the lettering).
I want to
Ashley Sheridan schreef:
I don't think GD has a built-in function to scale an image the way you
are asking,
of course you can scale images with GD, but everything works in pixels,
ImageMagick is no different ... there is no such thing as millimeters when it
comes to bitmap images, you can
Hence me saying in the way you are asking I know GD can scale images
(I've done that myself on more than one occassion), but not images that
are intended for print as opposed to screen viewing, as this appears to
be.
As for quality, I've found that GD offers comparable quality images to
Ashley Sheridan schreef:
Hence me saying in the way you are asking I know GD can scale images
(I've done that myself on more than one occassion), but not images that
are intended for print as opposed to screen viewing, as this appears to be.
I can't see how imagemagick helps here, it's a
tedd schreef:
At 12:47 AM +1000 8/14/08, Ross McKay wrote:
On Wed, 13 Aug 2008 15:32:12 +0100, Richard Heyes wrote:
NSW Australia
North, South, West? Can't you make up your mind? :-)
:) we move around a bit... though not so much for a while now!
Good to see you backup. I mean, back up!
BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }
Just to clarify some points, there is no need for this to be of
print quality - it is an online representation of the vinyl they will
recieve in the post.
Also, the main problem I've got with GD, is generating text
Yes, if you wish to stretch text in this way then you will have to
create the image and stretch. You can create the image in memory and
perform the stretching on it there if you are worried about writing too
many temporary images to the server.
Ash
www.ashleysheridan.co.uk
---BeginMessage---
Hello,
I want to develop a Flash game using Ming. I have never used Flash or
ActionScript before, and I would like to know what limitations users have come
across Ming. For example, the main page for the Ming extension says that sound
events are not supported. Does this mean that it would
What's wrong with programmers getting a little creative?!
Ash
www.ashleysheridan.co.uk
---BeginMessage---
tedd schreef:
At 12:47 AM +1000 8/14/08, Ross McKay wrote:
On Wed, 13 Aug 2008 15:32:12 +0100, Richard Heyes wrote:
NSW Australia
North, South, West? Can't you make up your mind? :-)
Hi Alex,
I did reply to this, but it apparently didn't get to you. You will need
to create a separate image with the text in, as GD offers no function to
create text already stretched (actually, it's text offerings are sparse
to say the least). You can create this image in memory if you are
You should probably try asking a Flash or Actionscript list. This is a
PHP list...
Ash
www.ashleysheridan.co.uk
---BeginMessage---
Hello,
I want to develop a Flash game using Ming. I have never used Flash or
ActionScript before, and I would like to know what limitations users have come
across
At 3:38 PM -0500 8/19/08, Jay Blanchard wrote:
[snip]
But, to drive my point further home, I got underwear older than most
of you. :-P
[/snip]
Uh doodyou might want to do a little shopping once in a while. I
think I may be the 2ns oldest on the board and I buy new underwear once
a year
Three leg holes? Has he not heard of the tried and tested method of
turning ones underwear inside out?!
Ash
www.ashleysheridan.co.uk
---BeginMessage---
At 3:38 PM -0500 8/19/08, Jay Blanchard wrote:
[snip]
But, to drive my point further home, I got underwear older than most
of you. :-P
[/snip]
On 8/20/08 6:57 AM, tedd [EMAIL PROTECTED] wrote:
Seriously, I saw a new invention recently. The inventor made
underwear with three leg holes. The idea was to rotate the underwear
as needed.
What people won't invent.
Cheers,
tedd
--
That is disturbing.
--
Stephen Johnson
The
On Aug 20, 2008, at 10:00 AM, Stephen Johnson wrote:
On 8/20/08 6:57 AM, tedd [EMAIL PROTECTED] wrote:
Seriously, I saw a new invention recently. The inventor made
underwear with three leg holes. The idea was to rotate the underwear
as needed.
What people won't invent.
Cheers,
tedd
--
At 11:32 PM +0200 8/19/08, Jochem Maas wrote:
@Stut: good points about freelancing, it's also worth noting that a freelancer
charging 'top dollar' will probably not end up costing anymore than someone
charging half as much because they generally get the job done in
half the time and,
as Stut
At 12:55 AM +0100 8/20/08, Ford, Mike wrote:
Content-Type: text/plain
Content-length: 1998
Been on holiday, so coming to this party a bit late, but
On Sat 16/08/2008 15:06 Stut wrote:
On 16 Aug 2008, at 14:46, tedd wrote:
At 2:11 PM +0100 8/16/08, Stut wrote:
Ahh, I see the problem.
At 1:30 PM +0100 8/20/08, Ashley Sheridan wrote:
What's wrong with programmers getting a little creative?!
Ash
www.ashleysheridan.co.uk
/world
Cheers,
tedd
--
---
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP General Mailing List (http://www.php.net/)
To
You should probably try asking a Flash or Actionscript list.
This is a
PHP list...
I'm not asking how to do something in Flash or ActionScript; I'm asking whether
it is possible to do somethings using Ming, a PHP extension.
--
PHP General Mailing List (http://www.php.net/)
To
Yasir Malik [EMAIL PROTECTED] wrote:
You should probably try asking a Flash or Actionscript list.
This is a
PHP list...
I'm not asking how to do something in Flash or ActionScript; I'm asking
whether it is possible to do somethings using Ming, a PHP extension.
You know, I STFW
Yasir Malik schreef:
You should probably try asking a Flash or Actionscript list.
This is a
PHP list...
I'm not asking how to do something in Flash or ActionScript; I'm asking whether
it is possible to do somethings using Ming, a PHP extension.
http://php.net/manual/en/class.swfsound.php
Hi,
Too bad that it's considered bad-form to discus what rates we should charge,
for I certainly would be interested to see the range.
I think it varies. Contractors in the UK commonly get £25 per hour,
however I've seen people on this list (I think) quote much less - $15,
which works out at
tedd schreef:
At 11:32 PM +0200 8/19/08, Jochem Maas wrote:
@Stut: good points about freelancing, it's also worth noting that a
freelancer
charging 'top dollar' will probably not end up costing anymore than
someone
charging half as much because they generally get the job done in half
the time
http://php.net/manual/en/class.swfsound.php
I saw that example, and the examples at http://www.gazbming.com/, but I'm not
sure if it possible to output sound when two sprites, for example, crash into
each other. I say this because the main page of the Ming extension says that
sound events
Here's some code I use in FancyTable;
for ($x=0; $xcount($w); $x++)
{
$text = wordwrap($row[$x], 90, \n);
$textArray = split(\n, $text);
if (!empty($textArray[1]))
$newRow[$x] = $textArray[1];
You know what's not supposed to be next in the second string, and
that's the word Duo.
Thank you
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Adz07 wrote:
Problem is that a negative assertion assumes i know what is going to come
after the match, but i don't. I
If you use wordwrap, you don't need nl2br. See Example 1 for wordwrap.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Lupus Michaelis wrote:
Ron Piggott a écrit :
This is 23 characters long. I want br added after the 12th character,
following the
You can always call a function with a DEBUG flag and execute certain
parts if it's set or not.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Robert Cummings wrote:
On Fri, 2008-08-15 at 18:34 -0500, Shawn McKenzie wrote:
Herman Gomez wrote:
Unfortunately, the wordwrap function won't do what he needs. He needed
to add a br/ *after* the space, and not replace the space.
Ash
www.ashleysheridan.co.uk
---BeginMessage---
If you use wordwrap, you don't need nl2br. See Example 1 for wordwrap.
Thank you,
Micah Gersten
onShore Networks
At 4:43 PM +0200 8/20/08, Jochem Maas wrote:
tedd schreef:
Too bad that it's considered bad-form to discus
what rates we should charge, for I certainly
would be interested to see the range.
bad form heh? that's a challenge, round here the rates are somewhere
between 25 and 80 euros/hour for
Actually, in HTML the space is irrelevant if you are breaking the line.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Ashley Sheridan wrote:
Unfortunately, the wordwrap function won't do what he needs. He needed
to add a br/ *after* the space, and not
In HTML it is, I agree, irrelevant with regards to display, but the
string could be going into an XML file, where the space has some
importance, and as Ron (the original person who asked the question)
asked specifically for the space to be preserved in the string, I
answered the question for him.
Wordwrap can still keep the space and add the br /.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Ashley Sheridan wrote:
In HTML it is, I agree, irrelevant with regards to display, but the
string could be going into an XML file, where the space has some
I really don't think it does, and there's no mention of it on the man
page for it, unless your break character is br/ rather than just
br/
Ash
www.ashleysheridan.co.uk
---BeginMessage---
Wordwrap can still keep the space and add the br /.
Thank you,
Micah Gersten
onShore Networks
Internal
I tested it, and that's a valid break character.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Ashley Sheridan wrote:
I really don't think it does, and there's no mention of it on the man
page for it, unless your break character is br/ rather than just
-Original Message-
From: Yasir Malik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 20, 2008 9:55 AM
To: php-general@lists.php.net
Subject: Re: [PHP] Developing a game using Ming
http://php.net/manual/en/class.swfsound.php
I saw that example, and the examples at
Why not build a Flash game in... uh... Flash? Using an
interpreted
language (PHP) to construct a Flash object seems sort of
overkill to me.
I don't really see where Java comes into play, either.
Am I missing
something?
Do you just not want to buy one of the commercial Flash
development
I have this snippet of code that is supposed to read the apache access log
and display it:
?php
$myFile = /var/log/httpd/access_log;
$fh = fopen($myFile, 'r');
$theData = fread($fh, filesize($myFile));
fclose($fh);
echo
This weeks apache log (clears every sunday morning):.
On Wed, Aug 20, 2008 at 3:15 PM, sean greenslade [EMAIL PROTECTED]wrote:
I have this snippet of code that is supposed to read the apache access log
and display it:
?php
$myFile = /var/log/httpd/access_log;
$fh = fopen($myFile, 'r');
$theData = fread($fh, filesize($myFile));
What about FlashDevelop? I'm on the Papervision list, and a lot of
people are raving abut that at the moment, and best of all it's open
source. Could be a much better option than creating SWF files from PHP.
Ash
www.ashleysheridan.co.uk
---BeginMessage---
Why not build a Flash game in... uh...
sean greenslade a écrit :
$fh = fopen($myFile, 'r');
Here, they are some return code to ckeck.
but not when I access it thru the web. when I browse to it, it just displays
the static text (This weeks apache log (clears every sunday morning):),
not the log text.
Who owned
What about FlashDevelop? I'm on the Papervision list,
and a lot of
people are raving abut that at the moment, and best of all
it's open
source. Could be a much better option than creating SWF
files from PHP.
Thanks, Ashley, I'll check that out. I was fuzzy on how I could use PHP to
On Aug 19, 2008, at 4:18 PM, Cox, Chris wrote:
Does anyone know why the unsubscribe email address is bouncing. Are
there any other ways to unsubscribe?
In case you haven't figured it out and you know how to read.
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General
Are you definately using the correct unsubscribe email? This is the one
given in the message headers:
list-unsubscribe: mailto:[EMAIL PROTECTED]
Ash
www.ashleysheridan.co.uk
---BeginMessage---
On Aug 19, 2008, at 4:18 PM, Cox, Chris wrote:
Does anyone know why the unsubscribe email address is
I am debugging someone else¹s code, and this is what they have :
1055function mkdir_recursive($pathname, $mode)
1056{
1057is_dir(dirname($pathname)) ||
mkdir_recursive(dirname($pathname), $mode);
1058return is_dir($pathname) || @mkdir($pathname, $mode);
1059}
The
On Wed, 2008-08-20 at 14:09 -0700, Stephen Johnson wrote:
I am debugging someone else¹s code, and this is what they have :
1055function mkdir_recursive($pathname, $mode)
1056{
1057is_dir(dirname($pathname)) ||
mkdir_recursive(dirname($pathname), $mode);
1058return
It's perfectly acceptable to have a function call itself, and one of the
first examples in books is a recursive function for factorial numbers,
and I've used them on more than one occasion to give directory listings.
For the life of me though, I can't understand why it would be giving you
the
1055function mkdir_recursive($pathname, $mode)
1056{
1057is_dir(dirname($pathname)) ||
mkdir_recursive(dirname($pathname), $mode);
1058return is_dir($pathname) || @mkdir($pathname, $mode);
1059}
Is this function defined within a class? From which scope do you call
On 20 Aug 2008, at 22:09, Stephen Johnson wrote:
I am debugging someone else’s code, and this is what they have :
1055function mkdir_recursive($pathname, $mode)
1056{
1057is_dir(dirname($pathname)) ||
mkdir_recursive(dirname($pathname), $mode);
1058return
Yasir Malik schreef:
What about FlashDevelop? I'm on the Papervision list,
and a lot of
people are raving abut that at the moment, and best of all
it's open
source. Could be a much better option than creating SWF
files from PHP.
Thanks, Ashley, I'll check that out. I was fuzzy on how I could
FlashDevelop should be up to the job, a lot of people are using it to
develop Papervision3D stuff, which if you have a look online, is some
pretty awesome, and very intensive Actionscript stuff.
Ash
www.ashleysheridan.co.uk
---BeginMessage---
Yasir Malik schreef:
What about FlashDevelop? I'm on
Thanks everyone ... It was a brain fart ...
Long bad day today, and I am not paying proper attention ... :)
--
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
continuing the struggle against bad code
http://www.fortheloveofgeeks.com
I¹m a geek and I¹m OK!
--
--
PHP
This one time, at band camp, V S Rawat [EMAIL PROTECTED] wrote:
Sorry for bothering the rest of you. I hope you wouldn't really mind if
some of our colleagues who are doing such a lovely volunteer work here
get to earn some money for a bottle of beer and more. Rest assured that
it is no
Robert Cummings schreef:
On Wed, 2008-08-20 at 14:09 -0700, Stephen Johnson wrote:
I am debugging someone else¹s code, and this is what they have :
1055function mkdir_recursive($pathname, $mode)
1056{
1057is_dir(dirname($pathname)) ||
mkdir_recursive(dirname($pathname),
Whats even more fun is inheriting somebody elses' *undocumented* code.
Oh, and if just happens to be in a strange programming language that you
don't know too well, all the better! Sounds awful, but it did happen to
me once :-/
Ash
www.ashleysheridan.co.uk
---BeginMessage---
Robert Cummings
Thanks for the advice. I changed the perms to 777 and changed the user and
group to apache, but it still won't open.
On Wed, Aug 20, 2008 at 3:35 PM, Robbert van Andel [EMAIL PROTECTED]wrote:
Does the user your PHP instance runs as have access to the file? It's
possible that it runs under a
If the directory above it doesn't have execute privileges, it won't be
able to read it either.
Also, why not use the PHP5 function file_get_contents()?
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
sean greenslade wrote:
Thanks for the advice. I changed
As it's the Apache access log that you are trying to read in, are you
sure that Apache is not in the process of writing to it as you are
attempting to read from it? That might explain why it seems to be empty,
although I would have thought it would just append the data to the end
of the file,
Ashley Sheridan wrote:
As it's the Apache access log that you are trying to read in, are you sure
that Apache is not in the process of writing to it as you are
attempting to read from it? That might explain why it seems to be empty,
although I would have thought it would just append the
I am trying to get the text between nested html tags within arrays
produced by preg_match_all. The simple situation would be:
trtdtest/td/tr
I want to return 'test'.
Assuming $post_results has some string derived from a html page source
with lots of nested tags.
Replacing new line (seems
Yeah, Apache is still running, but it is the access log you are trying
to read, at the same time that you are Apache is being accessed.
Accessing the log from the terminal will be fine while Apache is
running, as it is unlikely it is being accessed at the very same
instant. Are you able to access
Do you just wish to remove all the HTML tags from a given string? If so,
the strip_tags() function should do this.
Ash
www.ashleysheridan.co.uk
---BeginMessage---
I am trying to get the text between nested html tags within arrays
produced by preg_match_all. The simple situation would be:
On Thu, 2008-08-21 at 08:23 +1000, Kevin Waterson wrote:
This one time, at band camp, V S Rawat [EMAIL PROTECTED] wrote:
Sorry for bothering the rest of you. I hope you wouldn't really mind if
some of our colleagues who are doing such a lovely volunteer work here
get to earn some money
am I subscribed?
I had to check. The other (php-install) list just sent me emails
(when I tried to post) saying I was abusing the system (even though I
am sure I subscribed properly and received the email confirming that
fact).
--
PHP General Mailing List (http://www.php.net/)
To
You are indeed.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Govinda wrote:
am I subscribed?
I had to check. The other (php-install) list just sent me emails
(when I tried to post) saying I was abusing the system (even though I
am sure I subscribed
PHP List,
I have built my own CMS system, and I've just finished setting it up so
that it sends a test cookie to see if the browser has cookies enabled.
If it doesn't, it does URL rewriting to handle sessions.
Part of this process involves reloading the page, and sending back a
header to
Hi.
I've built a photo-cms (http://mediabeez.ws) to which i now want to add
e-commerce support.
Adding product-definitions to photo's wasn't much of a problem, and adding a
shoppingcart wasn't either.
What i'm worried about is the accounting part of a webshop system.
I've downloaded some
75 matches
Mail list logo