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
//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
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
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
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
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
[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
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";
>>
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
[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
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
[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
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
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
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
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
[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
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)
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
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
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
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
[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
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
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
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
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
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
Hi Fellow:
I wonder if there some list about HTML/CSS/JavaScript and Genereal Web Design.
Thanks
[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
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
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
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
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
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
Sorry about the top posting.
You my friend are a genious! $rows = $rowcount['(count(*))'] works like a
charm!
Thank you all.
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
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(
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
[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
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
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
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
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
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
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
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
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
--
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
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;
> }
>
> }
>
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
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
52 matches
Mail list logo