[PHP] printer problem with network shared printers

2008-06-10 Thread Kasun Denepitiyage
hi im using the winXp as my server OS and i want to release a printout to client local printer. so i tried to use that shred printer using php printer_open() function but i coudnt. so please provide me the best solution for this issue. i can use client side script but i need server side solut

Re: [PHP] Problem with output_buffering directive in cli

2008-06-10 Thread Nathan Nobbe
On Tue, Jun 10, 2008 at 10:27 PM, Mike Burba <[EMAIL PROTECTED]> wrote: > I am using Smarty templates to format HTML emails from the command > line (using cli). My typical command is: > php filename.php > > However, and I am struggling with templates that are greater than 10k. > It looks like th

Re: [PHP] Class & Type Casting

2008-06-10 Thread Nathan Nobbe
On Tue, Jun 10, 2008 at 5:13 AM, Leurent Francois <[EMAIL PROTECTED]> wrote: > I was asking myself if there was a good reason this syntax not to work > > class string_extented{ > function __construct($str){ > $this->contents=$str; > } > function __toString(){ > return $this->contents; > } > > } >

Re: [PHP] class? package?

2008-06-10 Thread Nathan Nobbe
On Wed, Jun 11, 2008 at 12:02 AM, Larry Garfield <[EMAIL PROTECTED]> wrote: > On Tuesday 10 June 2008, Shelley wrote: > > Hi all, > > > > If you are designing with OO principles, could you give an explanation of > > what is the difference classes and packages? > > > > Several principles talks abou

[PHP] Re: SPAM SPAM [PHP] Build and Deployment Process

2008-06-10 Thread Paul Scott
On Tue, 2008-06-10 at 14:56 -0700, VamVan wrote: > What is the best method to build and deploy php scripts along the different > environments? You can talk about rpm's and stuff In my project(s) I use Phing. http://phing.info It is even written in PHP, so keeping this thread on topic. --Paul --

Re: [PHP] class? package?

2008-06-10 Thread Larry Garfield
On Tuesday 10 June 2008, Shelley wrote: > Hi all, > > If you are designing with OO principles, could you give an explanation of > what is the difference classes and packages? > > Several principles talks about classes and packages, such as: > The classes in a package are reused together. If you reu

Re: [PHP] Class & Type Casting

2008-06-10 Thread Larry Garfield
On Tuesday 10 June 2008, Leurent Francois wrote: > I was asking myself if there was a good reason this syntax not to work > > class string_extented{ > function __construct($str){ > $this->contents=$str; > } > function __toString(){ > return $this->contents; > } > > } > > //that's working fine > $te

[PHP] Problem with output_buffering directive in cli

2008-06-10 Thread Mike Burba
I am using Smarty templates to format HTML emails from the command line (using cli). My typical command is: php filename.php However, and I am struggling with templates that are greater than 10k. It looks like the Smarty output is getting truncated at about 10k. Smarty uses output_buffering, so

[PHP] Re: mssql extension

2008-06-10 Thread Shawn McKenzie
Shawn McKenzie wrote: Mathieu Pelletier wrote: Hello ! My Workstation/server: Window XPApache 2.2.4 (win32) PHP/5.2.3SQl Server 2003 I have never been able to load mssql extension in my life...In my php .ini file, I removed the ; correctly : extension=php_mssql.dll Other extensions wor

[PHP] Build and Deployment Process

2008-06-10 Thread VamVan
Hello All, What is the best method to build and deploy php scripts along the different environments? You can talk about rpm's and stuff My specific scenario is Step1: Developer checks code in to perforce (repo) Step 2: Then I need to upgrade my integration instance. Step 3: Upgrade QA insta

Re: [PHP] Row Count

2008-06-10 Thread Daniel Brown
On Tue, Jun 10, 2008 at 3:51 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: > > So in your query, add this > > SELECT COUNT(*) as total FROM your_table > > Then in your code use this instead > > $rows = $rowcount['total']; > > This makes a little more sense then using the count(*) thing, to me at least

Re: [PHP] Row Count

2008-06-10 Thread Jim Lucas
Dan Shirah wrote: Sorry about the top posting. You my friend are a genious! $rows = $rowcount['(count(*))'] works like a charm! Thank you all. So in your query, add this SELECT COUNT(*) as total FROM your_table Then in your code use this instead $rows = $rowcount['total']; This makes

RE: [PHP] Row Count

2008-06-10 Thread Jay Blanchard
[snip] print_r($rowcount); returns Array ( [(count(*))] => 110796.0 ) and 110796 is the correct number of rows in my table, but that number isn't coming through the the variable. [/snip] Because ifx_fetch_row returns an array, not a value. -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Row Count

2008-06-10 Thread Dan Shirah
print_r($rowcount); returns Array ( [(count(*))] => 110796.0 ) and 110796 is the correct number of rows in my table, but that number isn't coming through the the variable. On 6/10/08, Daniel Brown <[EMAIL PROTECTED]> wrote: > > On Tue, Jun 10, 2008 at 1:43 PM, Dan Shirah <[EMAIL PROTECTED]> wrote

Re: [PHP] Row Count

2008-06-10 Thread Daniel Brown
On Tue, Jun 10, 2008 at 1:43 PM, Dan Shirah <[EMAIL PROTECTED]> wrote: > > I'm not getting any errors, but no number/data displays for $rows when it > should be telling me there is over 100,000 records. > > Any ideas why it isn't returning a number value for $rowcount[0]/$rows? Try to print_r(

Re: [PHP] Row Count

2008-06-10 Thread Dan Shirah
Okay, I decided to try the COUNT method since all I really wanted to get in the first place was how many rows would be returned for a specific query. So, I have the below: I'm not getting any errors, but no number/data displays for $rows when it should be telling me there is over 100,000 record

Re: [PHP] Row Count

2008-06-10 Thread Dan Shirah
Sorry about the top posting. You my friend are a genious! $rows = $rowcount['(count(*))'] works like a charm! Thank you all.

Re: [PHP] Row Count

2008-06-10 Thread Daniel Brown
Quit top-posting, Shirah. You know better than that. ;-P On Tue, Jun 10, 2008 at 1:49 PM, Dan Shirah <[EMAIL PROTECTED]> wrote: > print_r($rowcount); returns Array ( [(count(*))] => 110796.0 ) and 110796 is > the correct number of rows in my table, but that number isn't coming through > the

Re: [PHP] Row Count

2008-06-10 Thread Daniel Brown
On Tue, Jun 10, 2008 at 12:42 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: > Jim Lucas wrote: > > I should slow down also and make sure all is well with my messages before > sending. > > $query = 'SELECT COUNT(*) FROM brev_pending_summary_detail '; // BASIC QUERY Yeah that and quit stealing th

Re: [PHP] Row Count

2008-06-10 Thread Jim Lucas
Jim Lucas wrote: Dan Shirah wrote: Hello all, I am having a problem with trying to count the number of rows returned by my query. I connect to the database fine, my query displays and runs fine, but my row count is incorrect. If I do not put in any serch criteria and my basic query ends up

RE: [PHP] Row Count

2008-06-10 Thread bruce
jay... nah... jus that we saw the msg at the same time!!! a freak occurance. -Original Message- From: Daniel Brown [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2008 8:30 AM To: Jay Blanchard Cc: Jim Lucas; Dan Shirah; php-general Subject: Re: [PHP] Row Count On Tue, Jun 10, 2008

Re: [PHP] Row Count

2008-06-10 Thread Daniel Brown
On Tue, Jun 10, 2008 at 11:27 AM, Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] > He is using the ifx extension for an informix database, not mysql > [/snip] > > Dan was one of the ones who so clearly corrected me! Wow, are we all > rushing through stuff today?? I know. I should be ashame

RE: [PHP] Row Count

2008-06-10 Thread Jay Blanchard
[snip] He is using the ifx extension for an informix database, not mysql [/snip] Dan was one of the ones who so clearly corrected me! Wow, are we all rushing through stuff today?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Row Count

2008-06-10 Thread Daniel Brown
On Tue, Jun 10, 2008 at 11:08 AM, Jim Lucas <[EMAIL PROTECTED]> wrote: > Daniel Brown wrote: >> >> On Tue, Jun 10, 2008 at 10:54 AM, Jim Lucas <[EMAIL PROTECTED]> wrote: >>> >>> Daniel Brown, did you read through this too quickly also??? >> >>Jim Lucas, what did I miss? >> > > He is using the i

Re: [PHP] Row Count

2008-06-10 Thread Jim Lucas
Daniel Brown wrote: On Tue, Jun 10, 2008 at 10:54 AM, Jim Lucas <[EMAIL PROTECTED]> wrote: Daniel Brown, did you read through this too quickly also??? Jim Lucas, what did I miss? He is using the ifx extension for an informix database, not mysql -- Jim Lucas "Some men are born to gr

Re: [PHP] Row Count

2008-06-10 Thread Jim Lucas
Dan Shirah wrote: Hello all, I am having a problem with trying to count the number of rows returned by my query. I connect to the database fine, my query displays and runs fine, but my row count is incorrect. If I do not put in any serch criteria and my basic query ends up being "SELECT * FROM

Re: [PHP] Row Count

2008-06-10 Thread Daniel Brown
On Tue, Jun 10, 2008 at 10:54 AM, Jim Lucas <[EMAIL PROTECTED]> wrote: > > Daniel Brown, did you read through this too quickly also??? Jim Lucas, what did I miss? -- Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, an

RE: [PHP] About HTML & CSS

2008-06-10 Thread Jay Blanchard
[snip] I wonder if there some list about HTML/CSS/JavaScript and Genereal Web Design. [/snip] I wondered that too! And then I found Google and searched for them and there they were. 8^{)} -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Row Count

2008-06-10 Thread Jim Lucas
Daniel Brown wrote: On Tue, Jun 10, 2008 at 10:11 AM, Dan Shirah <[EMAIL PROTECTED]> wrote: If I do not put in any serch criteria and my basic query ends up being "SELECT * FROM brev_pending_summary_detail" then the value of $rowcount is 110796. If one search criteria is used the value of $rowco

Re: [PHP] Preg_Replace $pattern syntax error

2008-06-10 Thread Daniel Brown
On Mon, Jun 9, 2008 at 8:07 PM, Graham Anderson <[EMAIL PROTECTED]> wrote: > Hi > > How can I convert the regular expression: > (.*?) > into a pattern that PHP will accept? [snip!] Change this: $pattern='(.*?)'; To this: $pattern='/(.*?)<\/p>/Uis'; This adds the delimiters (/) to th

[PHP] Re: Reiterative Copy() in a Directory Alternative

2008-06-10 Thread Shawn McKenzie
Wei, Alice J. wrote: Hi, I have a scenario here where I wanted to read through a directory and copy all the files into another directory out on the server somewhere. It appears that I cannot do reiterative copying from the files to another folder, according to the error I keep seeing: PHP

[PHP] About HTML & CSS

2008-06-10 Thread Alberto García Gómez
Hi Fellow: I wonder if there some list about HTML/CSS/JavaScript and Genereal Web Design. Thanks

Re: [PHP] Imagick installation issue

2008-06-10 Thread Shawn McKenzie
BornPlayDie wrote: Yes, I forgot to mention, I did restart apache. Date: Sat, 7 Jun 2008 20:21:26 -0400 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] Imagick installation issue CC: php-general@lists.php.net On 6/7/08, BornPlayDie <[EMAIL PROTECTED]> wrote: I am trying to

Re: [PHP] Row Count

2008-06-10 Thread Daniel Brown
On Tue, Jun 10, 2008 at 10:39 AM, Jay Blanchard <[EMAIL PROTECTED]> wrote: > > ifx_num_rows may be soon to be an included function. Does anyone else smell PECL's? ;-P -- Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VP

[PHP] Reiterative Copy() in a Directory Alternative

2008-06-10 Thread Wei, Alice J.
Hi, I have a scenario here where I wanted to read through a directory and copy all the files into another directory out on the server somewhere. It appears that I cannot do reiterative copying from the files to another folder, according to the error I keep seeing: PHP Warning: copy(a2.txt)

RE: [PHP] Row Count

2008-06-10 Thread Jay Blanchard
[snip] On Tue, Jun 10, 2008 at 10:18 AM, Jay Blanchard <[EMAIL PROTECTED]> wrote: > > http://www.php.net/mysql_num_rows That would be just peachy if it worked on his Informix database, Jay. ;-P [/snip] OK, OK...so I read it through too quickly! Then I would suggest a second query to count t

Re: [PHP] Row Count

2008-06-10 Thread Daniel Brown
On Tue, Jun 10, 2008 at 10:11 AM, Dan Shirah <[EMAIL PROTECTED]> wrote: > > If I do not put in any serch criteria and my basic query ends up being > "SELECT * FROM brev_pending_summary_detail" then the value of $rowcount is > 110796. If one search criteria is used the value of $rowcount becomes 110

Re: [PHP] Row Count

2008-06-10 Thread Daniel Brown
On Tue, Jun 10, 2008 at 10:18 AM, Jay Blanchard <[EMAIL PROTECTED]> wrote: > > http://www.php.net/mysql_num_rows That would be just peachy if it worked on his Informix database, Jay. ;-P -- Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! D

RE: [PHP] Row Count

2008-06-10 Thread bruce
jay... he's dealing with informix.. not sure if mysql/php calls apply. -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2008 7:19 AM To: Dan Shirah; php-general Subject: RE: [PHP] Row Count [snip] I am having a problem with trying to count the nu

Re: [PHP] Row Count

2008-06-10 Thread Dan Shirah
Jay, I am querying an Informix database, not MySQL. When I count the rows against my MSSQL database I do use the mssql_num_rows function and it works great. I tried using the ifx_num_rows function with the ifx_fetch_row function but could not seem to get it to work, so instead I used the ifx_affe

RE: [PHP] Row Count

2008-06-10 Thread Jay Blanchard
[snip] I am having a problem with trying to count the number of rows returned by my query. I connect to the database fine, my query displays and runs fine, but my row count is incorrect. If I do not put in any serch criteria and my basic query ends up being "SELECT * FROM brev_pending_summary_deta

[PHP] Row Count

2008-06-10 Thread Dan Shirah
Hello all, I am having a problem with trying to count the number of rows returned by my query. I connect to the database fine, my query displays and runs fine, but my row count is incorrect. If I do not put in any serch criteria and my basic query ends up being "SELECT * FROM brev_pending_summary

RE: [PHP] class? package?

2008-06-10 Thread Jay Blanchard
[snip] If that's the case, then why not just use one class as one package? What's the point of splitting a package into several classes? :-( [/snip] First of all think of what a class is and what it is meant to represent. Secondly think of a package in literal sense...a package can hold one or mor

Re: [PHP] class? package?

2008-06-10 Thread Shelley
On Tue, Jun 10, 2008 at 6:32 PM, Iv Ray <[EMAIL PROTECTED]> wrote: > If you are designing with OO principles, could you give an explanation of >> what is the difference classes and packages? >> > > A class is a language construct, classes are processed/executed by php. > > A package is an architec

Re: [PHP] Class & Type Casting

2008-06-10 Thread Andrew Ballard
On Tue, Jun 10, 2008 at 5:42 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: >> //that's working fine >> $test= new string_extended("this is my anonymous string"); >> echo $test; >> >> >> /that's not working, but should'nt it be the case ? >> $test = (string_extended) "This is my anonymous string"; >>

RE: [PHP] slowness mystery (part 2)

2008-06-10 Thread Jay Blanchard
[snip] But now i have sort of the same problem in loading a bit of HTML text. It takes 1100ms to load 2Kb of HTML. I think it should be more like 100-300ms. [/snip] Server config? Apache config? Bandwidth? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

Re: [PHP] class? package?

2008-06-10 Thread Iv Ray
If you are designing with OO principles, could you give an explanation of what is the difference classes and packages? A class is a language construct, classes are processed/executed by php. A package is an architectural approach - this is how you combine your code/classes. When I was summa

[PHP] class? package?

2008-06-10 Thread Shelley
Hi all, If you are designing with OO principles, could you give an explanation of what is the difference classes and packages? Several principles talks about classes and packages, such as: The classes in a package are reused together. If you reuse one of the classes in a package, you reuse them a

[PHP] slowness mystery (part 2)

2008-06-10 Thread Rene Veerman
In my previous post, I listed 50Kb of obfusicated gzipped javascript loading in 3.5 seconds. It turns out that it was the decompression of the obfusication that was causing the delay. Twiddling with parameters for phpjso (the obfusicator) brought that down to just 320ms. But now i have sort of th

Re: [PHP] Bulk Email Problems

2008-06-10 Thread Iv Ray
Hi Andre, I am not sure I understand what is the problem. What does it mean - that worked fine for the last few years resulting in many requests for forgotten passwords and renewed site activity. And what does it mean - Last year, we sent it again, after a few minor code changes, and had no

Re: [PHP] Class & Type Casting

2008-06-10 Thread Richard Heyes
//that's working fine $test= new string_extended("this is my anonymous string"); echo $test; /that's not working, but should'nt it be the case ? $test = (string_extended) "This is my anonymous string"; echo $test; I'll find this very usefull :x, it's just a syntax ehancement nope ? Can't give

[PHP] Class & Type Casting

2008-06-10 Thread Leurent Francois
I was asking myself if there was a good reason this syntax not to work class string_extented{ function __construct($str){ $this->contents=$str; } function __toString(){ return $this->contents; } } //that's working fine $test= new string_extended("this is my anonymous string"); echo $test; /tha