php-general Digest 2 Apr 2008 06:49:25 -0000 Issue 5381

2008-04-02 Thread php-general-digest-help
php-general Digest 2 Apr 2008 06:49:25 - Issue 5381 Topics (messages 272424 through 272429): Re: April Fools Easter Egg 272424 by: Zoltán Németh autoload with namespace 272425 by: Ryan Panning how to possibly cache something and the theory of better performance / better

php-general Digest 2 Apr 2008 18:50:38 -0000 Issue 5382

2008-04-02 Thread php-general-digest-help
php-general Digest 2 Apr 2008 18:50:38 - Issue 5382 Topics (messages 272430 through 272456): Re: array with null shows different with print_r and var_dump 272430 by: Casey 272432 by: Robert Cummings Re: APC FastCGI != upload progress ? 272431 by: Manuel Lemos Re:

[PHP] PHP: array with null shows different with print_r and var_dump

2008-04-02 Thread Sanjay Mantoor
Hello, I am new to PHP and PHP community. Following program outputs different values with print_r and var_dump. $array = array(null, NULL); print_r($array); prints values like below Array ( [0] = [1] = ) where as var_dump($array) prints values like below array(2) { [0]= NULL//

Re: [PHP] PHP: array with null shows different with print_r and var_dump

2008-04-02 Thread Casey
On Tue, Apr 1, 2008 at 11:49 PM, Sanjay Mantoor [EMAIL PROTECTED] wrote: Hello, I am new to PHP and PHP community. Following program outputs different values with print_r and var_dump. $array = array(null, NULL); print_r($array); prints values like below Array ( [0] =

Re: [PHP] APC FastCGI != upload progress ?

2008-04-02 Thread Manuel Lemos
Hello, on 03/30/2008 02:52 PM steve said the following: Hmmm... I am working on a PHP daemon for comet style connections... I'll keep that idea in mind. I guess that using Flash is best solution at the moment.. at least the only one I have working... I implement COMET connections with plain

Re: [PHP] PHP: array with null shows different with print_r and var_dump

2008-04-02 Thread Robert Cummings
On Wed, 2008-04-02 at 12:19 +0530, Sanjay Mantoor wrote: Hello, I am new to PHP and PHP community. Following program outputs different values with print_r and var_dump. $array = array(null, NULL); print_r($array); prints values like below Array ( [0] = [1] = ) where

Re: [PHP] Reporting mail as spam

2008-04-02 Thread Manuel Lemos
Hello, On Mon, Mar 31, 2008 at 12:01 PM, Sándor Tamás wrote: Hi, I wrote a little registration routine, which will send a confirmation letter to the user with a random number in the message body (my site is on a host, so I can't write in the subject, and ask the user to reply), which can

Re: [PHP] how to possibly cache something and the theory of better performance / better speed

2008-04-02 Thread Per Jessen
Joey wrote: OK now, getting greedy I want to take it to another level. Instead of having to read the folder for images every time, why not read the image names into a file so that we can maintain therbey caching the list. Your filesystem cache will do that for you anyway. /Per Jessen,

[PHP] help needed building php_dblib for PHP 5.2.5 on windows

2008-04-02 Thread Jason
Hi all, I have previously posted this on the windows specific list, however I believe this list reaches a wider audience so i'll try again. I am trying to recompile php 5.2.5 on win32, specifically trying to rebuild the freetds extension with the latest RC code from FreeTDS.org. I am

[PHP] E-Library Software

2008-04-02 Thread Ali Reza Sajedi
Hello, I am looking for an open source php based E-Library sofware. Could anybody help? Regards Ali -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] OT - Hosting Services for Non-profit

2008-04-02 Thread Wolf
I know there is at least 1 hoster on this list... I have a friend who works for a non-profit and they are currently looking for a new place to host their domain including the site and the email. I'm not sure what they can pay or anything at this point, but I figured I'd see about checking with

[PHP] cuRL script won't submit

2008-04-02 Thread Test User
why will this script not submit the form - it does input data into the form - but not submit it. below is the script and then the html form.. thanks #!/usr/bin/php ?php $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_COOKIEFILE, /temp/cookie.txt);

Re: [PHP] cuRL script won't submit

2008-04-02 Thread Test User
I added more info below and corrected the spelling of a word - very sorry to add more to your already full mailbox why will this script not submit the form - it does input data into the form - but not submit it. below is the script and then the html form.. thanks #!/usr/bin/php ?php $ch =

Re: [PHP] cuRL script won't submit

2008-04-02 Thread Daniel Brown
On Wed, Apr 2, 2008 at 9:24 AM, Test User [EMAIL PROTECTED] wrote: why will this script not submit the form - it does input data into the form - but not submit it. below is the script and then the html form.. thanks [snip!] curl_setopt($ch,

Re: [PHP] OT - Hosting Services for Non-profit

2008-04-02 Thread Daniel Brown
On Wed, Apr 2, 2008 at 8:40 AM, Wolf [EMAIL PROTECTED] wrote: I know there is at least 1 hoster on this list... I have a friend who works for a non-profit and they are currently looking for a new place to host their domain including the site and the email. I'm not sure what they can pay

[PHP] Help with inputbox

2008-04-02 Thread Ricardo Pinto
Description: text including spaces placed in an input text control in HTML show the whole text. text including spaces placed in an input text control in PHP does not show the whole text, only the first word up to the first space is displayed. The same happens with variables from a

Re: [PHP] cuRL script won't submit

2008-04-02 Thread Test User
many thanks.. I have been working on this for weeks! now I have to figure out how to extract that dynamic URL from the form before I post.. - Original Message From: Daniel Brown [EMAIL PROTECTED] To: Test User [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Wednesday, April 2,

Re: [PHP] cuRL script won't submit

2008-04-02 Thread Daniel Brown
On Wed, Apr 2, 2008 at 10:23 AM, Test User [EMAIL PROTECTED] wrote: many thanks.. I have been working on this for weeks! now I have to figure out how to extract that dynamic URL from the form before I post.. This may help to start: ?php $data =

Re: [PHP] E-Library Software

2008-04-02 Thread Daniel Brown
On Wed, Apr 2, 2008 at 7:57 AM, Wolf [EMAIL PROTECTED] wrote: STFW What has your searches on Google turned up? What about your browsing through sourceforge? Not to mention the the question, since your first message didn't get any responses from the list three days ago, why didn't you

[PHP] an easy destroying session issue...

2008-04-02 Thread pere roca
for destroying the session without closing the browser it should work... ?php session_start(); $_SESSION = array(); session_destroy(); $userid = safehtml($_POST['userid']); session_start(); //$sessionid can be used to retrieve the current name and session id as

Re: [PHP] an easy destroying session issue...

2008-04-02 Thread Daniel Brown
On Wed, Apr 2, 2008 at 10:34 AM, pere roca [EMAIL PROTECTED] wrote: ?php session_start(); $_SESSION = array(); session_destroy(); $userid = safehtml($_POST['userid']); session_start(); //$sessionid can be used to retrieve the current name and session id as a

Re: [PHP] Help with inputbox

2008-04-02 Thread Wolf
!-- SNIP -- div id=\quadro_1\ID : $x nbsp;nbsp;nbsp; Criação:nbsp;input type=\text\ size=\50\ maxlength=\12\ name=\\ value=$creation Modificação:nbsp;input type=\text\ size=\50\ maxlength=\50\ name=\\ value=$modif Origin_Val:nbsp;input type=\text\ size=\10\ maxlength=\50\

Re: [PHP] autoload with namespace

2008-04-02 Thread Nathan Nobbe
On Tue, Apr 1, 2008 at 8:28 PM, Ryan Panning [EMAIL PROTECTED] wrote: I haven't been keeping an eye on this list so if this has come up before please point me in the right direction. :) Playing around with dev PHP 5.3 and namespaces, I'm finding it hard to write an autoload function. Since

Re: [PHP] autoload with namespace

2008-04-02 Thread Jochem Maas
Nathan Nobbe schreef: On Tue, Apr 1, 2008 at 8:28 PM, Ryan Panning [EMAIL PROTECTED] wrote: I haven't been keeping an eye on this list so if this has come up before please point me in the right direction. :) Playing around with dev PHP 5.3 and namespaces, I'm finding it hard to write an

Re: [PHP] autoload with namespace

2008-04-02 Thread Richard Heyes
Playing around with dev PHP 5.3 and namespaces PHP 5.3 will have namespaces? -- Richard Heyes Employ me: http://www.phpguru.org/cv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] autoload with namespace

2008-04-02 Thread Ryan Panning
Jochem Maas wrote: essentially it boils down to replacing '::' with '/' to determine the path from the namespace in your case - that is easy enough, your still stuck with finding out whether your being asked to load a namespace, class, or function (do namespaced functions even trigger an

Re: [PHP] autoload with namespace

2008-04-02 Thread Nathan Nobbe
On Wed, Apr 2, 2008 at 12:25 PM, Richard Heyes [EMAIL PROTECTED] wrote: Playing around with dev PHP 5.3 and namespaces PHP 5.3 will have namespaces? ya; that and late static binding are like the two headliners. both oo btw ;) -nathan

Re: [PHP] autoload with namespace

2008-04-02 Thread Nathan Nobbe
On Wed, Apr 2, 2008 at 12:44 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Wed, Apr 2, 2008 at 12:25 PM, Richard Heyes [EMAIL PROTECTED] wrote: Playing around with dev PHP 5.3 and namespaces PHP 5.3 will have namespaces? ya; that and late static binding are like the two headliners.

Re: [PHP] autoload with namespace

2008-04-02 Thread Richard Heyes
err-um sorry for the noise; actually the namespaces work w/ functions as well. So not OO specific? Is there anything I can read that describes them? -- Richard Heyes Employ me: http://www.phpguru.org/cv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] autoload with namespace

2008-04-02 Thread Ryan Panning
Richard Heyes wrote: err-um sorry for the noise; actually the namespaces work w/ functions as well. So not OO specific? Is there anything I can read that describes them? Yes, it's on the docs site. Although this continues to change as I believe brackets {} are now the declaration method (but

[PHP] Re: autoload with namespace

2008-04-02 Thread Colin Guthrie
Ryan Panning wrote: Jochem Maas wrote: essentially it boils down to replacing '::' with '/' to determine the path from the namespace in your case - that is easy enough, your still stuck with finding out whether your being asked to load a namespace, class, or function (do namespaced

[PHP] Re: autoload with namespace

2008-04-02 Thread Colin Guthrie
Ryan Panning wrote: Richard Heyes wrote: err-um sorry for the noise; actually the namespaces work w/ functions as well. So not OO specific? Is there anything I can read that describes them? Yes, it's on the docs site. Although this continues to change as I believe brackets {} are now the

[PHP] Memory usage very high under AMD64?

2008-04-02 Thread Ed W
Hi I am trying to figure out expected memory usage of PHP Under my 32bit install Apache 2 processes are drawing around 45MB virtual and 25MB RSS. (XCache enabled) However, under 64bit, same PHP and Apache versions, FastCGI is consuming around 110MB virt and 25MB RSS. However, Apache2

Re: [PHP] Memory usage very high under AMD64?

2008-04-02 Thread Robert Cummings
64 bit integers are twice as big as 32 bit integers. Cheers, Rob. On Wed, 2008-04-02 at 20:16 +0100, Ed W wrote: Hi I am trying to figure out expected memory usage of PHP Under my 32bit install Apache 2 processes are drawing around 45MB virtual and 25MB RSS. (XCache enabled) However,

[PHP] Re: autoload with namespace

2008-04-02 Thread Ryan Panning
Colin Guthrie wrote: Ryan Panning wrote: Your idea for replacing '::' with '/' is good but I'd think it'll interfere with the arithmetic operator '/'. I'm sure they must have discussed such options. He didn't mean doing that in the code syntax, just in the autoload function to convert it to a

Re: [PHP] Memory usage very high under AMD64?

2008-04-02 Thread Ed W
45MB x2 is a lot less than 215MB... Also, I would expect the actual consumption to be less than 2x since not all the data will be doubled in size..? Any other suggestions on how to debug this 5x jump in memory usage? Thanks Ed W Robert Cummings wrote: 64 bit integers are twice as big as

[PHP] Get Free Information for Top twenty (20) online colleges and universities

2008-04-02 Thread steve_carpenter
Site which provide free information about Top twenty online colleges. http://www.online-colleges-and-degrees.com/ -- View this message in context: http://www.nabble.com/Get-Free-Information-for-Top-twenty-%2820%29-online-colleges-and-universities-tp16453305p16453305.html Sent from the PHP -

RE: [PHP] Get Free Information for Top twenty (20) online colleges and universities

2008-04-02 Thread admin
I ask you remove this spammer from our LIST Richard L. Buskirk Senior Software Engineer -Original Message- From: steve_carpenter [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2008 5:14 PM To: php-general@lists.php.net Subject: [PHP] Get Free Information for Top twenty (20)

Re: [PHP] php + copy file

2008-04-02 Thread Chris
$carpeta = subidos; // nombre de la carpeta ya creada. chmool 777 (todos los permisos) copy($_FILES['file']['tmp_name'] , $carpeta . '/' . $_FILE ['file']['name']); copied straight from my reply to the same question on php-db It's $_FILES not $_FILE (an 's' on the

[PHP] php + copy file

2008-04-02 Thread Emiliano Boragina
Hello I have the next code: -- archive_a_subir.php -- form action=archivo_subir.php method=post enctype=multipart/form-data input type=file name=file input type=submit value=ADJUNTAR ARCHIVO /form In archive_subir.php: ?

[PHP] PAM Authentication

2008-04-02 Thread Kyle Baczynski
Hi, I'm writing a script which requires PAM authentication in order for my users to log in. Unfortunately, it seems the PAM package on PECL won't work, as FreeBSD has no pam_pwdb.so file, so it returns a blank result. Can someone enlighten me on how to get pecl/PAM working, or another

[PHP] pecl/PAM

2008-04-02 Thread Kyle B
Hi, I've recently installed the pecl/PAM module, however, it appears that it is not functioning as it should. It's returning a value of 1, even if the username and password are completely incorrect. This is the file I'm using to test: development# cat test.php ?php if(pam_auth('sfdfgfdu',

Re: [PHP] autoload with namespace

2008-04-02 Thread Larry Garfield
On Wednesday 02 April 2008, Jochem Maas wrote: there is one curiosity / caveat underlying the 5.3 implementation... so does the namespace get supplied to the autoload function as well as the class name? is it just one big string or are they separate? one big string. how does php know

[PHP] Reading an xml file from a POST array

2008-04-02 Thread Michael Horowitz
Simple XML has great tools to read xml from a string or a file. But I have it coming in as an http POST and none of them work. Its coming in as a straight file and not as a variable = value pairing like a form does. What is the best way to do this in PHP Thanks for any help -- Michael

[PHP] RE: MensHealth 12916

2008-04-02 Thread php-general
Canadian Doctor Clara Best Price On Net 79% OFF http://www.beautywarm.com No virus found in this outgoing message Checked by PC Tools AntiVirus (4.0.0.26 - 10.067.006). http://www.pctools.com/free-antivirus/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: