php-general Digest 24 Aug 2009 06:55:03 - Issue 6302
Topics (messages 297111 through 297111):
Re: wierd behavior on parsing css with no php included
297111 by: Jim Lucas
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To
php-general Digest 24 Aug 2009 19:27:56 - Issue 6303
Topics (messages 297112 through 297140):
unset( $anobject) does not invoce __destruct()
297112 by: Ralph Deffke
297115 by: kranthi
297116 by: Stuart
297117 by: Lupus Michaelis
297118 by: Ralph
Ralph Deffke wrote:
Hi folks, i did post this also on the Wamp page but maybe someone out there
had to solve that problem as well.
systems involved
Firefox 3.0.13
Firefox 3.5.2
IE 6
Wamp:
apache 2.2.11
PHP 5.2.9 php 5.3
I do parse css files through php
If you state that they have not PHP
but it should? shouldn't it how can I destroy a class instance invocing
__detruct() of the class ?!?!?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
perfect, thats what I was looking for, great thanks
ralph
Jim Lucas li...@cmsws.com wrote in message
news:4a923946.3020...@cmsws.com...
Ralph Deffke wrote:
Hi folks, i did post this also on the Wamp page but maybe someone out
there
had to solve that problem as well.
systems involved
On Mon, 2009-08-24 at 10:58 +0200, Ralph Deffke wrote:
perfect, thats what I was looking for, great thanks
ralph
Jim Lucas li...@cmsws.com wrote in message
news:4a923946.3020...@cmsws.com...
Ralph Deffke wrote:
Hi folks, i did post this also on the Wamp page but maybe someone out
that is correct and that is the problem, and even that is not all !!!
try this
?php
abstract class a {
public function __construct(){
echo constructingbr;
}
public function __detruct(){
echo destructingbr;
}
}
class b extends a{
}
$c = new b();
unset( $c );
?
the
At 9:44 PM -0700 8/22/09, Lars Torben Wilson wrote:
Hi Keith,
Glad it works! I'm not sure how inverting the case statement helps you
minimize the code in each case. As both I and Adam showed, you can do
the same thing more efficiently (and IMHO much more readably) like
this:
switch ($sum)
{
On Mon, 2009-08-24 at 15:13 +0200, Ralph Deffke wrote:
that is correct and that is the problem, and even that is not all !!!
try this
?php
abstract class a {
public function __construct(){
echo constructingbr;
}
public function __detruct(){
echo destructingbr;
typing error sorry
forget my last post
is there a was to destroy an object if there is hold a reference somewhere?
Stuart stut...@gmail.com wrote in message
news:a5f019de0908240606x5fdca70bkb31dd32b072e5...@mail.gmail.com...
2009/8/24 kranthi kranthi...@gmail.com:
unset($obj) always calls
On Sat, Aug 22, 2009 at 12:32 PM, ÈýÏÝÂÔdanondan...@gmail.com wrote:
Lets assume I have the string cats i saw a cat and a dog
i want to strip everything except cat and dog so the result will be
catcatdog,
using preg_replace.
I've tried something like /[^(dog|cat)]+/ but no success
2009/8/24 Ralph Deffke ralph_def...@yahoo.de
typing error sorry
forget my last post
is there a was to destroy an object if there is hold a reference somewhere?
Stuart stut...@gmail.com wrote in message
news:a5f019de0908240606x5fdca70bkb31dd32b072e5...@mail.gmail.com...
2009/8/24 kranthi
this is also not the full truth try this and it works
what are the circumstances that is causing this problem then, yes I do have
distributed references over my script and there are clearly references still
set, however after running the snipped script I can not see what I do
special in my script
-Original Message-
From: Nitebirdz [mailto:nitebi...@sacredchaos.com]
Sent: 20 August 2009 02:58 PM
To: php-general@lists.php.net
Subject: Re: [PHP] SESSIONS lost sometimes
On Thu, Aug 20, 2009 at 02:34:54PM +0200, Angelo Zanetti wrote:
Hi Leon,
No harm intended :) Just thought
Hi all
I'm upgrading PHP version from PHP 4 to 5.3.0 and Apache to 2.2.13, but I'm
facing a weird problem on the following statement:
$StringaParametri=exec('java -cp ..\\java rsa6230 ' . $Token);
It works on PHP 4 and PHP 5 CGI, but it hang Apache using MOD_PHP5. The
problem occurs when 2 or
2009/8/24 Ralph Deffke ralph_def...@yahoo.de:
this is also not the full truth try this and it works
what are the circumstances that is causing this problem then, yes I do have
distributed references over my script and there are clearly references still
set, however after running the snipped
Hi, I am still a newbie in php. Is there a shorter way to include a php
value in a form?
input type=text name=fullname size=40 value=?php echo
{$user['fullname']}; ? /
is it possible to do smth like this ?=php {$user['fullname']}; ? like in
JSP?
Can I omit the last whitespace before the closing ?
On Mon, 2009-08-24 at 17:56 +0200, Grega Leskovšek wrote:
Hi, I am still a newbie in php. Is there a shorter way to include a php
value in a form?
input type=text name=fullname size=40 value=?php echo
{$user['fullname']}; ? /
is it possible to do smth like this ?=php {$user['fullname']}; ?
Hi,
The code below actually takes input from a web form and sends the fields
captured in an email. It used to work quite well since past few years. It
has stopped now. I used Google's mail servers (google.com/a/website.com)
?
$fName = $_REQUEST['fName'] ;
$emailid = $_REQUEST['emailid'] ;
On Mon, 2009-08-24 at 09:12 -0700, Chris Carter wrote:
Hi,
The code below actually takes input from a web form and sends the fields
captured in an email. It used to work quite well since past few years. It
has stopped now. I used Google's mail servers (google.com/a/website.com)
?
2009/8/24 Chris Carter chandan9sha...@yahoo.com:
Hi,
The code below actually takes input from a web form and sends the fields
captured in an email. It used to work quite well since past few years. It
has stopped now. I used Google's mail servers (google.com/a/website.com)
?
$fName =
On Mon, Aug 24, 2009 at 09:12:19AM -0700, Chris Carter wrote:
Hi,
The code below actually takes input from a web form and sends the fields
captured in an email. It used to work quite well since past few years. It
has stopped now. I used Google's mail servers (google.com/a/website.com)
You are absolutely right, more information is needed. Many ISP's are
changing port number assignments on their SMTP outgoing email to prevent
abuse. A simple change like that could cause the email to not go out, and
it has nothing to do with PHP.
Warren Vail
Vail Systems Technology
On Mon, Aug 24, 2009 at 05:56:46PM +0200, Grega Leskov??ek wrote:
Hi, I am still a newbie in php. Is there a shorter way to include a php
value in a form?
input type=text name=fullname size=40 value=?php echo
{$user['fullname']}; ? /
is it possible to do smth like this ?=php
On Mon, 2009-08-24 at 12:26 -0400, Paul M Foster wrote:
On Mon, Aug 24, 2009 at 09:12:19AM -0700, Chris Carter wrote:
Hi,
The code below actually takes input from a web form and sends the fields
captured in an email. It used to work quite well since past few years. It
has stopped
Is there any alternative method to do this !!! Sending email through PHP?
Paul M Foster wrote:
On Mon, Aug 24, 2009 at 09:12:19AM -0700, Chris Carter wrote:
Hi,
The code below actually takes input from a web form and sends the fields
captured in an email. It used to work quite well
PHP pages won't open at all on my server. HTML pages open fine, but when
going to the PHP pages that are on my server, the browser tries to download
the page like a file instead of presenting it by the browser. What can I do
to make the PHP processor to be handled properly? Do I need to
see http://cn.php.net/manual/en/language.oop5.abstract.php
PHP 5 introduces abstract classes and methods. It is not allowed to
create an instance of a class that has been defined as abstract. Any
class that contains at least one abstract method must also be
abstract. Methods defined as abstract
On Mon, Aug 24, 2009 at 01:30:00PM -0500, RRT wrote:
PHP pages won't open at all on my server. HTML pages open fine, but when
going to the PHP pages that are on my server, the browser tries to download
the page like a file instead of presenting it by the browser. What can I do
to make the
I dont agree, and as u see in my snipped code it works fine.
in an abstract class u can define an implementation to define some basic
things a overwriting function in an extending class has to take care of as
well.
this includes specialy magic functions.
thats what they are made for. may be you
Stuart, u are right, the refcount in php 5 doesn't matter, where something
left behind in my memory from earlier days, However i do have the effect
that unsetting an object does NOT call __dectruct() ! but when the script
ends it is called. this can be easily tested by putting a echo in destruct.
Hi
I have a problem with uploading files that are bigger than the Master Value
allow me to, which is 32 MB. I've set the max_upload_filesize and
max_post_size in a .htaccess file and the phpinfo() reports the new local
value (128 MB) according to the .htaccess, but the script fails silently
On Mon, Aug 24, 2009 at 10:37:11AM -0700, Chris Carter wrote:
Is there any alternative method to do this !!! Sending email through PHP?
Sure. You can use a class like PHPMailer rather than the built-in mail()
function. But it's not going to matter if the problem is at the mail
server, etc.
2009/8/24 Paul M Foster pa...@quillandmouse.com:
On Mon, Aug 24, 2009 at 10:37:11AM -0700, Chris Carter wrote:
Is there any alternative method to do this !!! Sending email through PHP?
Sure. You can use a class like PHPMailer rather than the built-in mail()
function. But it's not going to
Use preg_replace_callback instead!
preg_replace_callback is better performance than preg_replace with /e.
-
code
$str=cats i saw a cat and a dog;
$str1=preg_replace_callback(/(dog|cat|.)/is,call_replace,$str);
echo
i test your codes again,it is work correctly!
But for backends compatibly with older php versions my codes is better
:),i'm sorry for my mistake at moment.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
is it the case that unset() does not trigger an error or throw an exception
if it's argument was never set?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, Aug 24, 2009 at 09:54:03PM +0200, Thomas Gabrielsen wrote:
Hi
I have a problem with uploading files that are bigger than the Master
Value allow me to, which is 32 MB. I've set the max_upload_filesize and
max_post_size in a .htaccess file and the phpinfo() reports the new local
On Mon, Aug 24, 2009 at 09:54:03PM +0200, Thomas Gabrielsen wrote:
Hi
I have a problem with uploading files that are bigger than the Master
Value allow me to, which is 32 MB. I've set the max_upload_filesize and
max_post_size in a .htaccess file and the phpinfo() reports the new local
That link won't load for me. Did you get it to load OK for you?
Ryan Cavicchioni r...@confabulator.net wrote in message
news:20090824192749.ga13...@mail.confabulator.net...
On Mon, Aug 24, 2009 at 01:30:00PM -0500, RRT wrote:
PHP pages won't open at all on my server. HTML pages open fine,
Ryan Cavicchioni ryan...@confabulator.net wrote in message
news:20090824205810.gc32...@mail.confabulator.net...
On Mon, Aug 24, 2009 at 09:54:03PM +0200, Thomas Gabrielsen wrote:
Hi
I have a problem with uploading files that are bigger than the Master
Value allow me to, which is 32 MB. I've
Ashley Sheridan wrote:
That would seem sensible to me though really. A constructor only bears
true for the base class, so any classes which inherit it must
incorporate all the constructor parts. A destructor doesn't know about
further classes which will need to inherit it, so it shouldn't be
I would also be shure that u run into the srcipt time out time. of course
there is one limit u can be a little bit under or a little bit above.
measure the time with microtime() and compare it with the script time out
settings and u will have the answer
ralph_def...@yahoo.de
Thomas Gabrielsen
Hi Lars and list!
New facts about the strange bug initially diagnosed as array() returning NULL:
Firstly, the issue is not really about array() returning null, but about full
blown UndefinedBehavior(TM) progressively trashing local variables. It just so
happened that I noticed it first with a
causes an error
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `'$'' in
C:\wamp\www\TinyCreator\testCrapp6.php on line 42
Tom Worster f...@thefsb.org wrote in message
news:c6b87877.11463%...@thefsb.org...
is it the case that unset() does not trigger an error or throw an
well I would call this an error in the first view , and some of u where
right! and the stuff with the refernce counter seems to be right as well.
however I can't see a reason for it as 5.x works through refernces. so
unsetting a REFERENCE to the object does not destroy it.
How to destroy the
I did start a new topic
have a look there;
Ralph Deffke ralph_def...@yahoo.de wrote in message
news:79.73.03363.43752...@pb1.pair.com...
but it should? shouldn't it how can I destroy a class instance invocing
__detruct() of the class ?!?!?
--
PHP General Mailing List
Ralph Deffke wrote:
Sorry to bring it to this thread, but could you respond to Ashley in the
[PHP] wierd behavior on parsing css with no php included thread.
We would like the solution place in the archives to future visitor benefit.
Thanks
Jim
--
PHP General Mailing List
Oh I see. I missed out one thing too.
There is no need to put the same code under both case 7 6 separately, but
just under case 6 will do.
This is simpler in fact!
Thanks Tedd and Torben!
I'll fix to this style from now onwards.
tedd tedd.sperl...@gmail.com wrote in message
The only e-commerce site I've worked on was based on OSCommerce. It's
pretty good, easy to integrate new functionality into, and not too
much
trouble to style up to look the way you want with CSS.
Thanks, Ash. I downloaded CRE Loaded, which is an off-shoot of
osCommerce, and the latest
Ralph Deffke wrote:
causes an error
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `'$'' in
C:\wamp\www\TinyCreator\testCrapp6.php on line 42
Tom Worster f...@thefsb.org wrote in message
news:c6b87877.11463%...@thefsb.org...
is it the case that unset() does not trigger
hack988 hack988 wrote:
Use preg_replace_callback instead!
preg_replace_callback is better performance than preg_replace with /e.
-
code
$str=cats i saw a cat and a dog;
For the record Shawn: I received your previous post from Aug 22 and I
think that it is the best solution.
Jonathan
On Tue, Aug 25, 2009 at 12:41 AM, Shawn McKenzienos...@mckenzies.net wrote:
hack988 hack988 wrote:
Use preg_replace_callback instead!
preg_replace_callback is better performance
Hi all,
i'm discutting with my friend about this question for 30 min and i do not
agree with he. Here is the question:
Why is it important from a security perspective to never display PHP error
messages directly to the end user, yet always log them?
Answers: (choose 2)
Error messages
54 matches
Mail list logo