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 - 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:
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//
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] =
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
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
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
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,
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
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
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
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);
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 =
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,
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
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
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,
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 =
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
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
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
!-- 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\
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
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
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
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
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
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.
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:
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
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
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
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
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,
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
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
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 -
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)
$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
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:
?
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
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',
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
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
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:
45 matches
Mail list logo