# [EMAIL PROTECTED] / 2007-04-19 02:19:14 +0200:
> Roman Neuhauser wrote:
> > # [EMAIL PROTECTED] / 2007-04-18 11:54:59 +0200:
> >> but a practical question for you Roman (seeing as your very much
> >> into OOP),
> >
> > I'm not very much into OOP, I'm very much into programming techniques
> > tha
# [EMAIL PROTECTED] / 2007-04-18 23:03:08 -0500:
> On Wed, April 18, 2007 2:21 am, Tijnema ! wrote:
> > Hmm, this is what i get:
> > ~# php -r 'var_dump($foo);'
> > NULL
> > ~# php -r 'var_dump(@$foo);'
> > NULL
> >
> >
> > PHP6 snapshot from a month ago.
>
> Your php.ini doesn't have error_report
This is starting to get super ugly indeed...
I was hoping I wouldn't have to essentially write an HTTP daemon from
scratch, so I'll keep the sockets in mind as a *last* resort.
As much as it would simplify things if $HTTP_RAW_POST_DATA (and friends)
was fixed to always contain the data regardles
On 19 April 2007 04:36, Richard Lynch wrote:
> On Wed, April 18, 2007 4:57 am, Ford, Mike wrote:
> > On 17 April 2007 01:18, Richard Lynch wrote:
> > > Or is it explicitly stated in the manual somewhere I'm not seeing
> > > that one can put things in $GLOBALS directly? [shrug]
> >
> http://uk2.ph
Roman Neuhauser wrote:
...
>
> You'll have to change the code. I'm suggesting a nice clean way that'll
> not only conform to the probable rules of PHP 6 (which are not specific
> to PHP, at least static is not), but that'll also conform to the rules
> of good design. You're saying the changes
hi,
i use serialize() to save my object in $_SESSION.
But i have one Problem:
the member-variables from the baseclass are not saved.. :(
How can i fix this?
thanks in advance
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Tobias Wurst wrote:
i use serialize() to save my object in $_SESSION.
Why? There's no point in serialising something into $_SESSION. Anything
you put in there gets serialised by the session handler.
But i have one Problem:
the member-variables from the baseclass are not saved.. :(
How can i
as far as I know serialize() saves all the properties of the object...
and I think you can store objects in session without serializing it
since PHP serializes-unserializes it for you automatically - or not?
greets
Zoltán Németh
2007. 04. 19, csütörtök keltezéssel 13.17-kor Tobias Wurst ezt írta
On 4/18/07, Richard Lynch <[EMAIL PROTECTED]> wrote:
On Wed, April 18, 2007 9:04 am, Bagus Nugroho wrote:
> I'm confuse about usage of php.ini directive "register_argc_argv".
> Is used for command line purpose only?
I suspect that in CGI (and possibly even FCGI) $argv and $argc may
also end up
>From the PHP manual:
-Original Message-
From: Zoltán Németh [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 19, 2007 8:40 AM
To: Tobias Wurst
Cc: php-general@lists.php.net
Subject: Re: [PHP] serialize an object
as far as I know serialize() saves all the properties of the object...
and
Sorry for that ctrl+enter sends, when I wanted ctrl+V to paste :(
All registered variables are serialized after the request finishes. Registered
variables which are undefined are marked as being not defined. On subsequent
accesses, these are not defined by the session module unless the user
I've got 2 sites on a shared host running php4 and I think it's a matter of
when, not if, I should move them to one of my host's php5 servers.
I don't see anything in the php manual on migrating that indicates my code
would be affected.
I'm a little concerned about "gotchas" that would take my
At 8:59 AM +1200 4/19/07, Bruce Cowin wrote:
Now can we please close this thread! There are better forums to discuss
this - it has nothing to do with PHP!!
Lori
Lori:
True, it has nothing to do with php programming other than
compliance, accessibility, data gathering and data presentation.
Al wrote:
Anyone had experience or comments on the subject.
setup php5 dev (local||hosted) server, setup site on dev server, test
clive
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I suggest installing php locally on a dev machine, testing your code on
it and if it works just go on.
greets
Zoltán Németh
2007. 04. 19, csütörtök keltezéssel 10.03-kor Al ezt írta:
> I've got 2 sites on a shared host running php4 and I think it's a matter of
> when, not if, I should move them t
On 4/19/07, Ford, Mike <[EMAIL PROTECTED]> wrote:
On 19 April 2007 04:36, Richard Lynch wrote:
> On Wed, April 18, 2007 4:57 am, Ford, Mike wrote:
> > On 17 April 2007 01:18, Richard Lynch wrote:
> > > Or is it explicitly stated in the manual somewhere I'm not seeing
> > > that one can put thing
At 11:36 PM -0500 4/18/07, Richard Lynch wrote:
But I don't think we're going to reach that Utopia where IE and FF
actually follow the standards in the same ways well enough to get out
of this CSS hack nightmare.
Well, as long as the old IE browsers are being used, then we'll
continue to have
Hi. I have attempted to look at the archives for this, but keep
getting redirected back to the main PHP site when I click on the
archive link. With that said, does anyone know of any good resources
for sending text messages using PHP? I have Googled this topic and
found a few, but find it h
On Apr 19, 2007, at 9:08 AM, tedd wrote:
At 8:59 AM +1200 4/19/07, Bruce Cowin wrote:
Now can we please close this thread! There are better forums to
discuss
this - it has nothing to do with PHP!!
Lori
Lori:
True, it has nothing to do with php programming other than
compliance, accessi
That, and the big OT at the end means Off-Topic... So if you don't want
to get OT, just hit delete. ;)
tedd wrote:
At 8:59 AM +1200 4/19/07, Bruce Cowin wrote:
Now can we please close this thread! There are better forums to discuss
this - it has nothing to do with PHP!!
Lori
Lori:
True,
# [EMAIL PROTECTED] / 2007-04-19 10:50:19 +0200:
> Roman Neuhauser wrote:
> >>> I wouldn't do it that way. A single class should not be a database
> >>> driver *and* manage connections.
> >> fair enough, although personally I find that going a bit far, I don't
> >> see the win in splitting up the '
André Medeiros wrote:
php://stdin perhaps?
On 4/18/07, Justin Frim <[EMAIL PROTECTED]> wrote:
André Medeiros wrote:
> Reading from php://input on a webserver will retrieve the Body of the
> HTTP Request.
Not for me it doesn't.
That only seems to work when the form is submitted as
application/
On 19.04.2007 13:17 Tobias Wurst wrote:
hi,
i use serialize() to save my object in $_SESSION.
you don't need this. php serializes your objects for you
But i have one Problem:
the member-variables from the baseclass are not saved.. :(
How can i fix this?
can you provide a small example?
t
hello,
I'm writting a script where I use the function microtime with sessions and I
have a problem.
This is my code:
if( $_SESSION['uperm'] == '1' ){
$t_start = microtime(1);
}
()
if( $_SESSION['uperm'] == '1' ){
$t_end = microtime(1) - $t_start;
$time .= "\n " . 'This page was lo
Hello Tim,
Am 2007-04-16 19:22:21, schrieb Tim:
> Also can i reccomend:
>
> "Web Database Applications with PHP and MySQL"
Do you know an equivalent book for php5 and PostgreSQL 8.1/8.2?
Greetings
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consulta
Hello Arthur,
Am 2007-04-12 13:40:08, schrieb Arthur Erdös:
> Hello all,
>
> is there a way to free memory allocated by variables in PHP?? This is a
> very important issue concerning long running scripts...
>
> I have a script that generates > 5000 Newsletters and when the script
> finishes it
Hello Richard,
It seems no one had understood me right...
Am 2007-04-10 21:48:12, schrieb Richard Lynch:
> Personally, I would use http://php.net/imap_open and friends to add
> the mailbox, and let the OS and installed IMAP software choose the
> correct mbox/Maildir option based on the server con
i think I "found" a bug: http://bugs.php.net/bug.php?id=36172
i used __sleep and __wakeup -> don't work
without __sleep and __wakeup -> it is working :)
>you don't need this. php serializes your objects for you
thats true, thanks :)
--
PHP General Mailing List (http://www.php.net/)
To unsubs
> In
> fact, I may be going out on a limb here, but I challenge anyone to
> describe a layout that isn't covered.
I want a layout that looks identical in every browser without resorting to
something like:
switch($browser){
case 'IE':include('ie.css');
case 'Mozilla':include('mozilla.css')
Can we kill this now please? It's not a php issue, is an old and endless
argument and is better addressed on a css / design list.
Panquekas wrote:
hello,
I'm writting a script where I use the function microtime with sessions
and I
have a problem.
This is my code:
if( $_SESSION['uperm'] == '1' ){
$t_start = microtime(1);
}
when you initially log in, it creates this variable.
Sounds to me like it is creating the $_SES
However, if I put a hardlink instead of the symlink, all works fine!
The permissions of the symlink and the file linekd are all 777.
Has anyone already had this problem before, or would anyone have an
idea of
the cause?
smrsh itself may disallow symlinks. Wouldn't surprise me.
Why not just us
smrsh itself may disallow symlinks. Wouldn't surprise me.
Why not just use #!/usr/bin/php -q at the top of your PHP script?
Something else to my previous answer.
Here is the answer of the sendmail guys. Maybe they are still right? Would
PHP have a problem to handle symlinked input files? I ha
On 4/17/07, mbneto <[EMAIL PROTECTED]> wrote:
Hi Richard,
I am using the same script. And it is using the CURLOPT_POST.
- mb
On 4/16/07, Richard Lynch <[EMAIL PROTECTED]> wrote:
>
> HEAD is just like GET, only it gets just the headers (hence the name)
> usually to see if the document has chan
On 4/19/07, Myron Turner <[EMAIL PROTECTED]> wrote:
André Medeiros wrote:
> php://stdin perhaps?
>
> On 4/18/07, Justin Frim <[EMAIL PROTECTED]> wrote:
>> André Medeiros wrote:
>>
>> > Reading from php://input on a webserver will retrieve the Body of the
>> > HTTP Request.
>>
>> Not for me it doe
I know vtext.com sends email to phones. Perhaps using the mail function you
could just send a message to [EMAIL PROTECTED] and they would get the
message. To my knowledge this is a free service and works with all phone
providers since they do the message for you. Just a thought.
Hope this helps,
I actually believe that vText is strictly for Verizon Wireless users,
but I tried sending web messages to friends without it and, according to the
system, the messages went through. So I guess you could give it a shot.
On 4/19/07, Brian Seymour <[EMAIL PROTECTED]> wrote:
I know vtext.com se
What ways are there to tell if PHP is actually built into an Apache 2
installation or if it's installed as a shared object?
I've dropped a file containing phpinfo() on the server I'm looking at,
hoping the Server API value would give me a clue, but it just says
"Apache 2.0 Filter," and I don't kn
Panquekas wrote:
It's d0ne, thank you very much!
No problem, just remember to reply on list next time.
It was what you were saying, the $_SESSION['uperm'] wasn't being define in
the first place, I moved my login script above that "if" and it work it
out.
And thanks for that "trick" of erro
On Thu, April 19, 2007 4:08 pm, Weston C wrote:
> What ways are there to tell if PHP is actually built into an Apache 2
> installation or if it's installed as a shared object?
>
> I've dropped a file containing phpinfo() on the server I'm looking at,
> hoping the Server API value would give me a cl
On Thu, April 19, 2007 1:23 pm, dan1 wrote:
>>> However, if I put a hardlink instead of the symlink, all works
>>> fine!
>>> The permissions of the symlink and the file linekd are all 777.
>>>
>>> Has anyone already had this problem before, or would anyone have an
>>> idea of
>>> the cause?
>>
>> s
On Thu, April 19, 2007 1:33 pm, dan1 wrote:
> This is a poor place to find an answer, because the one thing that
> stands out is that this is a problem with php, not Sendmail, and this
> is
> a Sendmail newsgroup not a php newsgroup. Your dangerously outdated
> version of php is running and emitt
On Thu, April 19, 2007 11:42 am, Michelle Konzack wrote:
> Hello Richard,
>
> It seems no one had understood me right...
>
> Am 2007-04-10 21:48:12, schrieb Richard Lynch:
>> Personally, I would use http://php.net/imap_open and friends to add
>> the mailbox, and let the OS and installed IMAP softwa
On Thu, April 19, 2007 11:32 am, Panquekas wrote:
> I'm writting a script where I use the function microtime with sessions
> and I
> have a problem.
>
> This is my code:
>
> if( $_SESSION['uperm'] == '1' ){
> $t_start = microtime(1);
> }
>
> ()
>
> if( $_SESSION['uperm'] == '1' ){
> $t_end
On 4/19/07, Richard Lynch <[EMAIL PROTECTED]> wrote:
On Thu, April 19, 2007 4:08 pm, Weston C wrote:
> What ways are there to tell if PHP is actually built into an Apache 2
> installation or if it's installed as a shared object?
>
> phpinfo() / Server API value .. just says "Apache 2.0 Filter"
I
Install PHP5 on any old box you have laying around and test there first.
On Thu, April 19, 2007 9:03 am, Al wrote:
> I've got 2 sites on a shared host running php4 and I think it's a
> matter of
> when, not if, I should move them to one of my host's php5 servers.
>
> I don't see anything in the
On Thu, April 19, 2007 8:37 am, David Giragosian wrote:
> $argv and $argc came in way handy when I wrote several php-gtk apps a
> few
> years ago, which uses the CLI exe version...
They are way handy for any CLI.
The question I'm kinda wondering is what purpose is served by having a
php.ini setti
I'm wondering if the OP is failing to re-define the baseclass when
loading in the saved object...
But, yes, get rid of the by-hand serializing first, as PHP will
serialize it for you.
On Thu, April 19, 2007 7:40 am, Zoltán Németh wrote:
> as far as I know serialize() saves all the properties of t
On Thu, April 19, 2007 3:34 am, Ford, Mike wrote:
> But, notwithstanding that, how about Example 12.3 at
> http://php.net/global#language.variables.scope.global?
That's good enough for me.
Just never noticed it before.
Thanks!
--
Some people have a "gift" link here.
Know what I want?
I want yo
On Thu, April 19, 2007 9:21 am, Tijnema ! wrote:
> Hmm, that's quite ugly, what happens when defining a variable outside,
> and inside a function. and then get the reference to it? Will the
> first var be overwritten, and when the function ends, it will refer to
> the old var again?
I can't un-twi
On Apr 19, 2007, at 4:59 PM, Weston C wrote:
On 4/19/07, Richard Lynch <[EMAIL PROTECTED]> wrote:
On Thu, April 19, 2007 4:08 pm, Weston C wrote:
> What ways are there to tell if PHP is actually built into an
Apache 2
> installation or if it's installed as a shared object?
>
> phpinfo() / S
On Thu, April 19, 2007 2:50 am, Justin Frim wrote:
...
> limitations. Form field names must not be permitted to contain
> periods,
> spaces, or opening square brackets. Those all get converted to
> underscores before the keys are created to the $_POST[] array, with no
> way to determine the origi
On Thu, April 19, 2007 4:59 pm, Weston C wrote:
> On 4/19/07, Richard Lynch <[EMAIL PROTECTED]> wrote:
>> On Thu, April 19, 2007 4:08 pm, Weston C wrote:
>> > What ways are there to tell if PHP is actually built into an
>> Apache 2
>> > installation or if it's installed as a shared object?
>> >
>>
Richard Lynch wrote:
On Thu, April 19, 2007 8:37 am, David Giragosian wrote:
$argv and $argc came in way handy when I wrote several php-gtk apps a
few
years ago, which uses the CLI exe version...
They are way handy for any CLI.
The question I'm kinda wondering is what purpose is served by hav
On Thu, April 19, 2007 2:27 am, Roman Neuhauser wrote:
> No, I've been using php-recommended.ini for the last several years.
> It has that error_reporting = E_ALL by default, and that's one of the
> reasons I've been using it.
I don't think your PHP CLI is using the php.ini that you think it's
usi
On Thu, April 19, 2007 2:25 am, Roman Neuhauser wrote:
> I'm at a complete loss then. Richard, what would you advise to someone
> in such a messy situation?
I don't really see why anybody is getting bent out of shape about
'almostatic' methods in PHP, but if they're maybe gonna go away, roll
out t
# [EMAIL PROTECTED] / 2007-04-19 17:28:42 -0500:
> On Thu, April 19, 2007 2:27 am, Roman Neuhauser wrote:
> > No, I've been using php-recommended.ini for the last several years.
> > It has that error_reporting = E_ALL by default, and that's one of the
> > reasons I've been using it.
>
> I don't th
On Thu, April 19, 2007 1:00 pm, Jim Moseby wrote:
>
>> In
>> fact, I may be going out on a limb here, but I challenge anyone to
>> describe a layout that isn't covered.
>
>
> I want a layout that looks identical in every browser without
> resorting to
> something like:
>
> switch($browser){
> c
On Thu, April 19, 2007 5:47 pm, Roman Neuhauser wrote:
> # [EMAIL PROTECTED] / 2007-04-19 17:28:42 -0500:
>> On Thu, April 19, 2007 2:27 am, Roman Neuhauser wrote:
>> > No, I've been using php-recommended.ini for the last several
>> years.
>> > It has that error_reporting = E_ALL by default, and th
# [EMAIL PROTECTED] / 2007-04-19 17:57:25 -0500:
> On Thu, April 19, 2007 5:47 pm, Roman Neuhauser wrote:
> > # [EMAIL PROTECTED] / 2007-04-19 17:28:42 -0500:
> >> On Thu, April 19, 2007 2:27 am, Roman Neuhauser wrote:
> >> > No, I've been using php-recommended.ini for the last several
> >> years.
Tijnema ! wrote:
On 4/19/07, Myron Turner <[EMAIL PROTECTED]> wrote:
André Medeiros wrote:
> php://stdin perhaps?
>
> On 4/18/07, Justin Frim <[EMAIL PROTECTED]> wrote:
>> André Medeiros wrote:
>>
>> > Reading from php://input on a webserver will retrieve the Body
of the
>> > HTTP Request.
>>
Michelle Konzack wrote:
Hello Tim,
Am 2007-04-16 19:22:21, schrieb Tim:
Also can i reccomend:
"Web Database Applications with PHP and MySQL"
Do you know an equivalent book for php5 and PostgreSQL 8.1/8.2?
Beginning PHP and PostgreSQL 8: From Novice to Professional (Paperback)
might have s
Sorry burst your bubble, but your solution isn't a viable one in my case.
php://input only works if the form is submitted using
application/x-www-form-urlencoded.
Take your sample HTML code there and add enctype="multipart/form-data"
to the tag, and I'm pretty sure you'll find that php://inpu
That's not been my experience. I've tested it with
enctype="multipart/form-data", since that's what you asked for, though
the enctype wasn't included in my sample code. I've run it on PHP
Version => 5.1.6 (Fedora core 4) and PHP 4.3.11 Fedora core 2.
Here it is on Fedora 2:
http://www.
Justin Frim wrote:
> Sorry burst your bubble, but your solution isn't a viable one in my case.
> php://input only works if the form is submitted using
> application/x-www-form-urlencoded.
>
> Take your sample HTML code there and add enctype="multipart/form-data"
> to the tag, and I'm pretty sure
Hi,
Friday, April 20, 2007, 2:04:14 PM, you wrote:
HH> Hi everyone,
HH> I can't seem to be able to copy a txt file from the server over to a network
HH> drive.
HH> Server is apache on winxp and the remote PC is also running XP.
HH> Remote folder is shared with all read/write rights enabled.
HH> I
Myron Turner wrote:
> That's not been my experience. I've tested it with
> enctype="multipart/form-data", since that's what you asked for, though
> the enctype wasn't included in my sample code. I've run it on PHP
> Version => 5.1.6 (Fedora core 4) and PHP 4.3.11 Fedora core 2.
> Here it is on Fe
Gregory Beaver wrote:
[21:58] can you do a file upload without multipart?
[21:59] Well, if you want to pick a POST apart yourself, sure
[21:59] set a mime type PHP doesn't understand and it will be
in http_raw_post_data and then you can do whatever you want with it
So the answer is "sort of."
Gregory Beaver wrote:
Myron Turner wrote:
That's not been my experience. I've tested it with
enctype="multipart/form-data", since that's what you asked for, though
the enctype wasn't included in my sample code. I've run it on PHP
Version => 5.1.6 (Fedora core 4) and PHP 4.3.11 Fedora core 2
On 4/19/07, Edward Vermillion <[EMAIL PROTECTED]> wrote:
Fedora, and I'm assuming RedHat and possibly others that use their
system layout, will put the loading line in /etc/httpd/conf.d/
php.conf so yes it can be in an external configuration file.
That's the exact location, and it's a shared o
Interesting...
But how will the user-agent know how to pack the data?
AFAIK, if you don't specify enctype in the tag, the user-agent
will assume application/x-www-form-urlencoded. I'm assuming that if you
put in something that's not recognized (like
multipart/x-non-parsed-form-data), the use
Regarding some discussion a while back about putting in a feature
request for obtaining the POST body...
I can see the advantage of streaming the POST body directly to disk,
because then you don't have to allocate a huge amount of memory for
keeping a copy of the POST body in a variable. So m
# [EMAIL PROTECTED] / 2007-04-20 10:26:29 +1000:
> Michelle Konzack wrote:
> >Hello Tim,
> >
> >Am 2007-04-16 19:22:21, schrieb Tim:
> >>Also can i reccomend:
> >>
> >>"Web Database Applications with PHP and MySQL"
> >
> >Do you know an equivalent book for php5 and PostgreSQL 8.1/8.2?
>
> Beginnin
73 matches
Mail list logo