Re: [PHP] vend-bot?

2011-07-12 Thread Stuart Dallas
On Tue, Jul 12, 2011 at 2:40 PM, Kirk Bailey wrote:

>
>
> On 7/11/2011 4:00 AM, Stuart Dallas wrote:
>
>> Why do you insist on not including the list when replying to me??
>>
> I was attempting to be polite. Recall that I was criticizing your response,
> and I thought it was simply more considerate to do it off list.


If you're not willing to disagree with me in public, don't expect your
argument to carry much weight.

-Stuart

-- 
Stuart Dallas
3ft9 Ltd
http://3ft9.com/


[PHP] Serveside Printing w/ PHP

2011-07-12 Thread Marc Guay
Hi folks,

I'm working on a project that will only be run locally on a WAMP
server.  A mobile browser/app will call a certain page which should
silently trigger a print job to a printer connected to the printer.
Does anyone have advice on how to accomplish this?  I've seen
implementations involving Crystal Reports which will be available on
the server, but perhaps someone has a solutions that won't involve 3rd
party software.

Marc

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Serveside Printing w/ PHP

2011-07-12 Thread Marc Guay
Bonus feature:  The server is running Windows 7.  I suspect the
crickets are going to win this one.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Serveside Printing w/ PHP

2011-07-12 Thread Ken Robinson

At 02:06 PM 7/12/2011, Marc Guay wrote:

Bonus feature:  The server is running Windows 7.  I suspect the
crickets are going to win this one.


Take a look at http://www.php.net/printer -- this might be what 
you're looking for.


Ken 



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] A Question On Web Graphics

2011-07-12 Thread Thomas Dineen

Gentle People:

Sorry if this appears off topic but I am not sure where to post the
question. Please do not get mad, just recommend a better venue!

Currently I am quite experienced with C and learning C++ but I have
never written graphical type applications in either!

Can you recommend an open source graphics package which would be
called by C/C++ and be fit for drawing complex graphs and charts for Web 
Applications?


   Also I have successfully experimented with Apache and PHP but have 
not yet

identified graphics applications for this venue either! Ideas?

I am thinking about calling a C/C++ based application called from 
Apache/PHP,
where the C/C++ Application would call the graphics application as 
necessary!


   Is this the best architecture?

Thanks for the help.
Thomas Dineen



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Serveside Printing w/ PHP

2011-07-12 Thread Marc Guay
> Take a look at http://www.php.net/printer -- this might be what you're
> looking for.

Hi Ken,

Thanks for trying but I've been down that road and from my
understanding that PECL extension is really out of date and
unsupported (the page that hosts it doesn't even have a downloadable
DLL).  Also the PHP pages say "These functions are only available
under Windows 9.x, ME, NT4 and 2000." so I highly doubt I'll have any
luck with Windows 7, but you never know, maybe I should try...

Marc

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] A Question On Web Graphics

2011-07-12 Thread Chris Stinemetz
>
>   Also I have successfully experimented with Apache and PHP but have not yet
> identified graphics applications for this venue either! Ideas?
>

You may want to look into PHP:GD

link to manual: http://php.net/manual/en/book.image.php


HTH,

Chris

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] A Question On Web Graphics

2011-07-12 Thread Mike Mackintosh

On Jul 12, 2011, at 3:10 PM, Thomas Dineen wrote:

> Gentle People:
> 
>Sorry if this appears off topic but I am not sure where to post the
> question. Please do not get mad, just recommend a better venue!
> 
>Currently I am quite experienced with C and learning C++ but I have
> never written graphical type applications in either!
> 
>Can you recommend an open source graphics package which would be
> called by C/C++ and be fit for drawing complex graphs and charts for Web 
> Applications?
> 
>   Also I have successfully experimented with Apache and PHP but have not yet
> identified graphics applications for this venue either! Ideas?
> 
>I am thinking about calling a C/C++ based application called from 
> Apache/PHP,
> where the C/C++ Application would call the graphics application as necessary!
> 
>   Is this the best architecture?
> 
> Thanks for the help.
> Thomas Dineen
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


I had nothing but good luck with Imagick. Very powerful.

http://php.net/manual/en/book.imagick.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Pear windows installation paths.

2011-07-12 Thread Plamen Ivanov
Running PHP 5.3.6 Windows VC9 zipped binaries (windows.php.net).
I got the following messages after running 'pear' in the command line:

PHP Parser error: syntax error, unepxected '@' in
C:\php\PEAR\pearcmd.php on line 28

PHP Parser error: syntax error, unepxected '@' in
C:\php\PEAR\pearcmd.php on line 28

Because of the backslashes windows uses in paths, the last single
quote gets escaped.
Replacing \' with \\' fixes the problem.

Just wondering if this is a bug or expected behavior?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Mangling URLs for RewriteRule parsing

2011-07-12 Thread Daevid Vincent
I'm fumbling trying to think of a nice easy way to mangle my URLs within PHP
for SEO and apache's RewriteRules magic.

Given a basic rule like this:

RewriteCond ^/foo/movie/genre/([-a-z\|]*)_([-a-z\|]*)/([0-9]+)/videos.html$ 
RewriteRule /browse_scenes.php?&genre_id=${genres:$2}&pg=$1&%{QUERY_STRING}
[NC,L]

I currently have a wrapper createPageLink() that right now just spits back
the 'ugly' URL style. (ie. the 'Rule' portion), but what I want it to do is
spit back the nice 'Cond' part instead)

Do I just have to make a giant switch/case statement for all the
'browse_scenes.php' and other .php pages?

It seems to me that I should be able to dynamically build the URLs that are
inserted into my .php page (the ones that show up in the browser bottom bar
on hover).

I'm fairly flexible at this point as I'm just starting to do this SEO stuff,
so I thought I'd ask if someone has a nice function or class or something
that has already solved this kind of problem? Or is it such that every site
is unique and no such 'generic' kind of wrapper exists? I guess I'm thinking
of methodology or best practice type code, rather than a turnkey solution if
none exists.

d


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP control structure

2011-07-12 Thread Chris Stinemetz
Hey all,

I would like to add an if statement to the following function so that
the value 1 is assigned "corporate" and the value is 2 assign
"standard" to it.  Would you show me an example on adding it to the
below function? If there is a better way to reassign the value please
share.

Thank you,

Chris

public function ShowType()
{
$sql = "SELECT DISTINCT store_type FROM store_list WHERE
id_markets=$_POST[id]";
$res = mysql_query($sql,$this->conn);
$Type = 'store type...';
while($row = mysql_fetch_array($res))
{
$Type .= '' .
$row['store_type'] . '';
}
return $Type;
}

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php