php-general Digest 27 Nov 2006 19:22:58 -0000 Issue 4483

2006-11-27 Thread php-general-digest-help
php-general Digest 27 Nov 2006 19:22:58 - Issue 4483 Topics (messages 245169 through 245190): Re: PHP and XML 245169 by: Børge Holen Re: Please hack my app 245170 by: Ivo F.A.C. Fokkema 245171 by: Ivo F.A.C. Fokkema Re: Storing objects in sessions recursively

[PHP] Re: Please hack my app

2006-11-27 Thread Ivo F.A.C. Fokkema
On Wed, 22 Nov 2006 09:57:50 +0100, Ivo F.A.C. Fokkema wrote: Hi List, As this subject may start you wondering what the hell I'm thinking, let me clearify: I've been rewriting an GPL'ed PHP/MySQL app from scratch for the last 12 months or so. It facilitates storage of DNA mutations and

Re: [PHP] Storing objects in sessions recursively

2006-11-27 Thread Dave M G
Vincent, Jochem, Thank you for replying. The issue turned out to be my Article class took arguments in its constructor, which was unacceptable because the argument could not be serialized when being passed along during the session. By adjusting my object so that the constructor takes no

Re: [PHP] Storing objects in sessions recursively

2006-11-27 Thread Stut
Dave M G wrote: The issue turned out to be my Article class took arguments in its constructor, which was unacceptable because the argument could not be serialized when being passed along during the session. By adjusting my object so that the constructor takes no arguments, and then creating

Re: [PHP] Storing objects in sessions recursively

2006-11-27 Thread Jochem Maas
Dave M G wrote: Vincent, Jochem, Thank you for replying. The issue turned out to be my Article class took arguments in its constructor, which was unacceptable because the argument could not be serialized when being passed along during the session. why would the arguments need to be

[PHP] Running AMP from CD

2006-11-27 Thread Ryan A
Hello, A little while back there was a discussion on running Apache,MySql and PHP from a CD... I can't seem to find that thread and i cant seem to find the links i had from that thread, so Can anybody suggest/recommend a way to run our project from CD? Our project is made in PHP 4 with a

Re: [PHP] Running AMP from CD

2006-11-27 Thread Paul Scott
On Mon, 2006-11-27 at 03:39 -0800, Ryan A wrote: Any help appreciated, even if its a one line link, thanks in advance! Our team ships our products as an Ubuntu linux Live CD with all the bits and pieces pre-installed, which also gives the user an option to install and set up a live server with

Re: [PHP] Storing objects in sessions recursively

2006-11-27 Thread Jochem Maas
Stut wrote: Dave M G wrote: The issue turned out to be my Article class took arguments in its constructor, which was unacceptable because the argument could not be serialized when being passed along during the session. By adjusting my object so that the constructor takes no arguments, and

Re: [PHP] Storing objects in sessions recursively

2006-11-27 Thread Stut
Jochem Maas wrote: this is wrong - the ctor is not called at all when unserializing, check this code snippet: php -r ' class Test { function __construct() { echo foo\n; } } $t = new Test; $s = serialize($t); unset($t); $u = unserialize($s); ' this only outputs 'foo' once. seems like whatever

Re: [PHP] Running AMP from CD

2006-11-27 Thread Rory Browne
http://www.wellho.net/solutions/general-windows-running-apache-and-mysql-from-a-cd.html On 11/27/06, Paul Scott [EMAIL PROTECTED] wrote: On Mon, 2006-11-27 at 03:39 -0800, Ryan A wrote: Any help appreciated, even if its a one line link, thanks in advance! Our team ships our products as an

Re: [PHP] Storing objects in sessions recursively

2006-11-27 Thread Jochem Maas
Stut wrote: Jochem Maas wrote: this is wrong - the ctor is not called at all when unserializing, check this code snippet: php -r ' class Test { function __construct() { echo foo\n; } } $t = new Test; $s = serialize($t); unset($t); $u = unserialize($s); ' this only outputs 'foo' once.

Re: [PHP] Storing objects in sessions recursively

2006-11-27 Thread Stut
Jochem Maas wrote: heck it's monday what you expect ;-) (I have the same excuse for fridays) I use the same excuse Tuesday to Thursday, I find that, on balance, it works better for me. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Running AMP from CD

2006-11-27 Thread Ryan A
Hi Paul, Sounds good but I dont think its right for this project because we are making educational pages that are presently online... but will later be distributed for free to students, mostly young ones at that... 10-15yrs old so it has to be as simple as possible for example: User gets

Re: [PHP] Running AMP from CD

2006-11-27 Thread Alberto Ferrer
www.apachefriends.org have a Lamp on CD project. 2006/11/27, Ryan A [EMAIL PROTECTED]: Hello, A little while back there was a discussion on running Apache,MySql and PHP from a CD... I can't seem to find that thread and i cant seem to find the links i had from that thread, so Can anybody

[PHP] Tidy HTML source?

2006-11-27 Thread Mark Kelly
Hi. In the stuff I do almost all the HTML is generated with PHP as basically none of it is static (lots of tabular data, state-sensitive links, stuff like that). Am I crazy to make an extra effort in my code to make the generated HTML pretty? By this I mean linebreaks, indentation etc. -

Re: [PHP] Running AMP from CD

2006-11-27 Thread Ryan A
You wouldnt happen to have a direct link to that page would you? coz I cant find it in their products section... Thanks! R Alberto Ferrer [EMAIL PROTECTED] wrote: www.apachefriends.org have a Lamp on CD project. 2006/11/27, Ryan A : Hello, A little while back there was a discussion on

Re: [PHP] Tidy HTML source?

2006-11-27 Thread Richard Lynch
On Mon, November 27, 2006 11:10 am, Mark Kelly wrote: In the stuff I do almost all the HTML is generated with PHP as basically none of it is static (lots of tabular data, state-sensitive links, stuff like that). Am I crazy to make an extra effort in my code to make the generated HTML

Re: [PHP] Running AMP from CD

2006-11-27 Thread Richard Lynch
Another option might be to use something like wget or htdig to just rip through the whole site and generate a static site out of it... I did something like that once for an educational CD, except I just wrote the generator myself. I'm not sure wget existed back then, and I'm pretty sure htdig

Re: [PHP] Running AMP from CD

2006-11-27 Thread Paul Scott
On Mon, 2006-11-27 at 08:42 -0800, Ryan A wrote: Sounds good but I dont think its right for this project because we are making educational pages that are presently online... but will later be distributed for free to students, mostly young ones at that... 10-15yrs old so it has to be as simple

[PHP] mail header questions

2006-11-27 Thread Chantal Rosmuller
Hi everyone, I'm working on a mailform and it's kind of working but I still have 2 problems: 1) I can't get the From header right, when I receive the test mail the sender is apache 2) The BCC headers (there's more then one) are not stripped. Here's my script: /* haal de gegevens op

[PHP] getting around the undefined index

2006-11-27 Thread Ross
I have not found a satisfactory way of doing this yet $text = $_REQUEST['text_size']; if ($text) { echo $text; } I send the $text_size variable to the browser with lines like... a href=? $_SERVER['PHP_SELF']; ??text_size=small class=size1 id=oneA/a When the page initially loads I get

Re: [PHP] Running AMP from CD

2006-11-27 Thread Ryan A
Hey Rich, To be honest I thought of using WGET and if I remember correctly it was suggested in the original old thread... but once i started reading up on wget, the damn thing has so many switches I got lost and gave up hope pretty soon. Another thing that I am not sure if WGET will handle

Re: [PHP] Running AMP from CD

2006-11-27 Thread Ryan A
Hey Paul, Now this is sounding promising! Can you send me details on how/where I can download your package to give it a go? Firefox launches on CD start and I hope just in this case FF is launched, because we have found that most of our to be users are on IE... so this was designed

Re: [PHP] getting around the undefined index

2006-11-27 Thread Stut
Ross wrote: I have not found a satisfactory way of doing this yet $text = $_REQUEST['text_size']; if ($text) { echo $text; } I send the $text_size variable to the browser with lines like... a href=? $_SERVER['PHP_SELF']; ??text_size=small class=size1 id=oneA/a When the page initially

Re: [PHP] getting around the undefined index

2006-11-27 Thread Eric Butera
On 11/27/06, Ross [EMAIL PROTECTED] wrote: I have not found a satisfactory way of doing this yet $text = $_REQUEST['text_size']; if ($text) { echo $text; } I send the $text_size variable to the browser with lines like... a href=? $_SERVER['PHP_SELF']; ??text_size=small class=size1

Re: [PHP] getting around the undefined index

2006-11-27 Thread Paul Novitski
At 11/27/2006 11:21 AM, Ross wrote: $text = $_REQUEST['text_size']; if ($text) { echo $text; } I send the $text_size variable to the browser with lines like... a href=? $_SERVER['PHP_SELF']; ??text_size=small class=size1 id=oneA/a When the page initially loads I get a undefined index

Re: [PHP] Running AMP from CD

2006-11-27 Thread Paul Scott
On Mon, 2006-11-27 at 11:41 -0800, Ryan A wrote: Now this is sounding promising! Can you send me details on how/where I can download your package to give it a go? I will upload the ISO to our download site in the morning (I only get 3GB per month bandwidth from my home ADSL) and you can

Re: [PHP] Tidy HTML source?

2006-11-27 Thread tedd
At 5:10 PM + 11/27/06, Mark Kelly wrote: Hi. In the stuff I do almost all the HTML is generated with PHP as basically none of it is static (lots of tabular data, state-sensitive links, stuff like that). Am I crazy to make an extra effort in my code to make the generated HTML pretty? By

[PHP] text only and text sizer

2006-11-27 Thread Ross
$text_only = isset($_GET['text_only']) ? $_GET['text_only'] : 1; if ($text_only==1) { ? a href=?php echo $_SERVER['PHP_SELF'];??text_only=0off/a // import css here ? } else { ? a href=?php echo $_SERVER['PHP_SELF'];??text_only=1on/a/span // import css here ? } ? secondly the text size links

Re: [PHP] text only and text sizer

2006-11-27 Thread Paul Novitski
At 11/27/2006 02:11 PM, Ross wrote: $text_only = isset($_GET['text_only']) ? $_GET['text_only'] : 1; if ($text_only==1) { ? a href=?php echo $_SERVER['PHP_SELF'];??text_only=0off/a // import css here ? } else { ? a href=?php echo $_SERVER['PHP_SELF'];??text_only=1on/a/span // import css here

[PHP] Re: mail header questions

2006-11-27 Thread Manuel Lemos
Hello, on 11/27/2006 05:14 PM Chantal Rosmuller said the following: I'm working on a mailform and it's kind of working but I still have 2 problems: 1) I can't get the From header right, when I receive the test mail the sender is apache There is From: and From . From is not a real header.

[PHP] func_get_args as a hash? (faster constructors)

2006-11-27 Thread Kelly Jones
If I define a function like this: function foo ($x, $y, $z) {} and then call: foo(1,2,bar); is there a function I can call inside foo() that yields this hash: {x = 1, y = 2, z = bar} In other words, gives me the values *and names* of the arguments to foo? func_get_args just yields the

Re: [PHP] Tidy HTML source?

2006-11-27 Thread Mark Kelly
On Monday 27 November 2006 17:10, Mark Kelly wrote: Am I crazy to make an extra effort in my code to make the generated HTML pretty? Thanks everyone for your thoughts on this - I'm quite relieved that I'm not the only one who sits and tweaks so that the HTML is nice and readable. It just

Re: [PHP] Running AMP from CD

2006-11-27 Thread Paul Scott
On Mon, 2006-11-27 at 11:41 -0800, Ryan A wrote: Hey Paul, Now this is sounding promising! Can you send me details on how/where I can download your package to give it a go? The ISO image is now available at: http://fsiu.uwc.ac.za/iso/ --Paul All Email originating from UWC is covered by

[PHP] fput error

2006-11-27 Thread Manoj Singh
Hello all, I am using ftp function to upload the file in server. But i am getting this error: The filename, directory name, or volume label syntax is incorrect. Can anyone help me? Thanks Regards Manoj

FW: [PHP] Re: Please hack my app

2006-11-27 Thread Jordan Forssman
Hi, My name is Jordan Forssman, I am representing a company called Armorize Technologies. We have developed a source code analysis platform for PHP, called CodeSecure, which scans source code for SQL injection, cross site scripting, command injection, etc, vulnerability. The tool will tell you

[PHP] ldap_sasl_bind GSSAPI question.

2006-11-27 Thread Back Ports
Hi all, Does anyone know if GSSAPI support based on patches mentioned in bug report: 30819 (http://bugs.php.net/bug.php?id=30819) are still in CVS (or part of php-5.2.0)? If not, could someone kindly point me to the patch (if it's still out there). Appreciate any input, thanks. Mustafa. --

Re: [PHP] ldap_sasl_bind GSSAPI question.

2006-11-27 Thread Chris
Back Ports wrote: Hi all, Does anyone know if GSSAPI support based on patches mentioned in bug report: 30819 (http://bugs.php.net/bug.php?id=30819) are still in CVS (or part of php-5.2.0)? If not, could someone kindly point me to the patch (if it's still out there). You will have to ask for