Re: [PHP] Virtual includes of PHP into SSI pages.

2005-11-16 Thread cron
For this to work you must set html and shml as a php file extension in apache. This is because shml includes are made before it reaches apache output, so if you have file "a" including file "b" it the same as having only one file "a" with copy and paste of file "b" with shml file extension and thu

Re: [PHP] PHP 5 && OO && performance && exceptions

2005-11-11 Thread cron
Some more thought. To solve this problem would be necessary to create some utility class like System in java and that way should be possible to do a System::echo($string) based on type, i guess this can be accomplished using overloading. Am I making any sense? - Original Message -

Re: [PHP] PHP 5 && OO && performance && exceptions

2005-11-10 Thread cron
I was not considering that, I was using $obj_string->getValue(), the __toString method and type casting could save me some keystrokes :) Anyway, did you abandon the development with the basic types class? Angelo - Original Message - From: "Jake Gardner" <[EMAIL PROTECTED]> To:

[PHP] PHP 5 && OO && performance && exceptions

2005-11-09 Thread cron
Hello, Currently I'm make some utilities classes and I took the idea from java to make some wrappers class like String, Integer and so on. This allows me to use the type hint for basic types in php. Anyone have a clue if replacing the all in one type in php for objects types will degrade t

Re: [PHP] Memory Leak?

2005-10-23 Thread cron
I think the php GC only kicks in at the end of a script some calls to mysql_free_result might help Angelo - Original Message - From: "Richard Lynch" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: Sent: Saturday, October 22, 2005 11:40 PM Subject: Re: [PHP] Memory Leak? On Sat,

Re: [PHP] Re: How do I POST data with headers & make the browser follow?

2005-10-06 Thread cron
Print out the form and on the body tag put some javascript to do the post stuff ex: style="display:none", this will hide form from the user - Original Message - From: "Ragnar" <[EMAIL PROTECTED]> To: Sent: Friday, October 07, 2005 1:30 AM Subject: [PHP] Re: How do I POST data wi

Re: [PHP] Re: displaying image from blog

2005-10-04 Thread cron
You have to echo a single image and only the image(no html tags) as binary for this to work. One must also set the header from the page to the correct mime type for the image work. ex: Page: displayImg.php header('Content-Type: image/jpeg'); // set correct header, more info on:http://us2.php.ne

Re: [PHP] Bitwise operators

2005-09-26 Thread cron
The second value is the number of spaces to shift, dint realize that. Thanks for your time Chris. Angelo - Original Message - From: "Chris Boget" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; Sent: Monday, September 26, 2005 2:02 PM Subject: Re: [PHP] Bitwise operators > >I test

Re: [PHP] Bitwise operators

2005-09-26 Thread cron
I tested; I don't want to waste peoples time. Rewriting the question: $a = 4; $b = 3; $c = $a << $b; $d = $a >> $b; echo "c = " . $c . ""; echo "d = " . $d . ""; this outputs: c = 32 d = 0 The question is why? Angelo - Original Message - From: "Chris W. Pa

[PHP] Bitwise operators

2005-09-26 Thread cron
Hello, >From php manual: $a << $b Shift leftShift the bits of $a $b steps to the left (each step means "multiply by two") $a >> $b Shift rightShift the bits of $a $b steps to the right (each step means "divide by two") So i ask what this output? $a = 4; $b = 3; echo $a << $b; echo $a >> $b;

Re: [PHP] ftp_site problem

2005-09-22 Thread cron
try: if(ftp_site($conn_id, "SITE chmod 0777 /public_html/EditPage/cd_ef_W.txt")) echo 'successful'; else 'failed'; it works for me Crom - Original Message - From: "Al" <[EMAIL PROTECTED]> To: Sent: Thursday, September 22, 2005 9:34 PM Subject: [PHP] ftp_site problem I can't get

Re: [PHP] File complete check (FTP)

2005-09-22 Thread cron
How about check file size? Crom - Original Message - From: "Johannes Tyra" <[EMAIL PROTECTED]> To: Sent: Thursday, September 22, 2005 5:04 PM Subject: [PHP] File complete check (FTP) Hello, i want to check if a file (jpg image) is completely uploaded on a server. If checked für the t

Re: [PHP] email validation (no regex)

2005-09-21 Thread cron
As an admin I would assume this as spammers trying to get some emails and I would block this on the firewall. - Original Message - From: "Michael Sims" <[EMAIL PROTECTED]> To: Sent: Wednesday, September 21, 2005 4:22 PM Subject: RE: [PHP] email validation (no regex) Jim Moseby w

Re: [PHP] upload file - clients path to file?

2005-08-31 Thread cron
Interaction to write to a input file type is denied in browsers not to read the value so you can can get the full path using JavaScript like any other input in the form(document.formname.inputname.value) and pass it to other input field lets say input fullpath using something like document.formnam

[PHP] Re: PHP Security

2005-08-29 Thread cron
Sorry for the split of threds, i dont have the original email. This is the answer from computerworld regarding the article http://www.computerworld.com/securitytopics/security/holes/story/0,10801,104124,00.html , >Thank you for taking the time to write in. I see your point. >The article

Re: [PHP] PHP and Active Directory

2005-08-12 Thread cron
Some years ago i did this with ASP and a VB activex component i belive you can access a Activex from php. Angelo - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: Sent: Friday, August 12, 2005 2:24 AM Subject: Re: [PHP] PHP and Active Dire

[PHP] Event-Driven Programing

2005-07-27 Thread cron
Hello, Anyone willing to share knowledge or points to articles that try to implement event-driven programming in PHP. And yes, I know php is not event driven language but I like the approach when working with 3 layers patterns. Regards, Angelo