php-general Digest 18 Apr 2005 08:44:11 -0000 Issue 3404
Topics (messages 213239 through 213253):
Re: Localhost not working with cookies
213239 by: M. Sokolewicz
Php + flash, need some help making a small .FLA
213240 by: Matt Babineau
213241 by: Rory Browne
Re: Need help with file permissions for PHP files
213242 by: Rory Browne
213243 by: Ryan A
213247 by: Rory Browne
Re: [PHP-WIN] Localhost not working with cookies
213244 by: Tom Rawson
213245 by: trlists.clayst.com
PHP and Sessions
213246 by: Reynier Perez Mira
SSH2, Reading Streams and Timing Out
213248 by: Circumerro Reporting
ldappasswd equivalent on PHP
213249 by: Ilia Chipitsine
How to ignore E_STRICT and E_NOTICE with error_handler callback
213250 by: php.electroteque.org
213253 by: Marek Kilimajer
Re: Setting permissions such that file can be included but not open directly
213251 by: Kim Madsen
213252 by: Dasmeet Singh
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
Proudly Pinoy wrote:
I've read from php.net/setcookie and codecomments.com that using
localhost won't work with cookies and neither are IP addresses. So how
do I test cookies on local system?
set the hostname to an empty string;
and 2, don't CROSS-post. That's a *very* bad habit
--- End Message ---
--- Begin Message ---
Hi all -
Does anyone have any experience with integrating php + flash? Or know of any
good tutorial sites? Basically what I want to do is have an animated loading
screen, and then pull pictures from a database and display text from a
database, text could be scrolling across the bottom like CNN or something.
Anyone familiar with some techniques on doing this?
Any examples people may have of this would be great, just send me some
sample .FLA scripts!!
If you've got some examples of exactly what I want to do, and you also have
a paypal account, I can make it worth your time :-D
Thanks,
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
I've only used flash, a couple of times( many years ago ), so I can't
be of very much help, but you might be able to do something with ming
- http://www.php.net/ming . If I remember correctly it would involve
referencing images by their URL - images which would on the backend be
served up with php.
On 4/17/05, Matt Babineau <[EMAIL PROTECTED]> wrote:
> Hi all -
>
> Does anyone have any experience with integrating php + flash? Or know of any
> good tutorial sites? Basically what I want to do is have an animated loading
> screen, and then pull pictures from a database and display text from a
> database, text could be scrolling across the bottom like CNN or something.
> Anyone familiar with some techniques on doing this?
>
> Any examples people may have of this would be great, just send me some
> sample .FLA scripts!!
>
> If you've got some examples of exactly what I want to do, and you also have
> a paypal account, I can make it worth your time :-D
>
> Thanks,
>
> Matt Babineau
> Criticalcode
> w: http://www.criticalcode.com
> p: 858.733.0160
> e: [EMAIL PROTECTED]
>
>
--- End Message ---
--- Begin Message ---
> Two things Rory....
>
> a. You only replied to me, instead of the list. You have to probably
> click on "reply to all" in your mail client. I have included the lists
> address for this reply, so that it will appear there.
Yeah sorry about that mailing you only thing. All the other lists I'm
subscribed have the Reply-To field set so that replys are sent to the
list automaticly, so I keep forgetting when I reply to this one to
'reply to all'. I'll probably try proxying the php mailing list
through my unix server, and set the Reply-To field manually. Any idea
how to do that with GMail?
> 2. "Because it reads out of order."
> "Why?"
> "Top posting is bad."
> III. Trimming is good, because it gets right to the point.
Top-posting/Bottom-posting matters when the emphasis is on presention.
When you're simply trying to get a point across, then its level of
importance, drops significantly.
Finally I was concentrating on saying what I felt was to be said. I
think a free-form, discussion is much better than one where
top-posting / bottom-posting, is more important that the actual
content of the message.
--- End Message ---
--- Begin Message ---
PLEASE lets not start on the.....
> > 2. "Because it reads out of order."
>
> > "Why?"
>
> > "Top posting is bad."
>
> > III. Trimming is good, because it gets right to the point.
.....top posting / bottom posting thing again.
-Ryan
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.15 - Release Date: 4/16/2005
--- End Message ---
--- Begin Message ---
Because now it's out of order.
On 4/18/05, Ryan A <[EMAIL PROTECTED]> wrote:
> PLEASE lets not start on the.....
Only Joking.
>
> > > 2. "Because it reads out of order."
> >
Why?
> > > "Why?"
> >
> > > "Top posting is bad."
> >
> > > III. Trimming is good, because it gets right to the point.
>
> .....top posting / bottom posting thing again.
>
You should have sent that message before Jay sent his to me.
> -Ryan
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.308 / Virus Database: 266.9.15 - Release Date: 4/16/2005
>
>
--- End Message ---
--- Begin Message ---
On 18 Apr 2005 Proudly Pinoy wrote:
> I've read from php.net/setcookie and codecomments.com that using
> localhost won't work with cookies and neither are IP addresses. So
> how do I test cookies on local system?
Hmmm, this works just fine for me -- I do it all the time. I tend to
do it with a domain mapped to 127.0.0.1 via the hosts file, rather than
"localhost", but using that approach I can set cookies fine under Win98
(as far as I remember, not using it now), Win 2000, and Win XP, in both
Mozilla and IE. I am running Apache 1.3.29 as the local server in all
cases.
--
Tom
--- End Message ---
--- Begin Message ---
On 18 Apr 2005 Proudly Pinoy wrote:
> I've read from php.net/setcookie and codecomments.com that using
> localhost won't work with cookies and neither are IP addresses. So
> how do I test cookies on local system?
Hmmm, this works just fine for me -- I do it all the time. I tend to
do it with a domain mapped to 127.0.0.1 via the hosts file, rather than
"localhost", but using that approach I can set cookies fine under Win98
(as far as I remember, not using it now), Win 2000, and Win XP, in both
Mozilla and IE. I am running Apache 1.3.29 as the local server in all
cases.
--
Tom
--- End Message ---
--- Begin Message ---
Hi list:
I have this code that Works perfectly:
File: index.php
<?
session_start();
echo "<a href="logout.php?sid=". session_id()."">Close session</a>";
?>
File: logout.php
<?
session_unset();
session_destroy();
?>
When user click link all works fine but when user close window withouth click
link the session is not delete and all vars preserve they values. How can I fix
that? I use PHP 5.0.0 RC2 and Windows XP SP1.
Regards
Reynier P�rez Mira
3ero. Ing. Inform�tica
Entre m�s inteligente me siento, m�s me doy cuenta de lo ignorante que soy.
--- End Message ---
--- Begin Message ---
I have a system that is using PHP to SSH(2) and administrate remote systems.
It is set up to both sftp and run commands. The trouble I am having is
that it has been very
unreliable. While it always connects without trouble, it will often hang
while reading
or writing to a stream. (When executing a command you are returned a
stream that is then
read to retrieve your response).
When it hangs and times out I am not getting an error. I have placed
flush commands all
over the place (output buffering is off), so I get a partial view but no
ending error telling me
what went wrong (errors are on). To add to my confusion, this does not
always happen.
Sometimes it responds quickly, fully and successfully. Sometimes it will
hang for a long time
and fail with no error message. Sometimes it will respond quickly and
fail with no message.
I have socket_set_blocking to false on streams coming off the remote
server. I am reading
and writing in 5120 blocks. I have tried setting up time outs on the
streams to have my system
error out before php does, but that does not seem to be fully working.
Sorry if this message is not so clear. I am actually hoping that
somebody has worked with
php's ssh2 commands and has had good luck and can recommend a direction
for me.
ssh2 is being loaded via extensions=ssh2.so
php used is 4.3.10
webserver apache2
the server software is fedora 3
To add to the mix, previously I was using PHP's standard FTP functions
and then had php
execute local perl scripts that made the ssh2 connections for remote
commands and it
worked very well and I never experienced an incomplete response like this.
Thanks again for the help.
--- End Message ---
--- Begin Message ---
Dear Sirs,
I installed smbk5pwd, that module catches password change request and
synchronises both samba and kerberos passwords.
How can I do the same by php/ldap functions (not by calling external
binary ldappasswd) ?
Cheers,
Ilia Chipitsine
--- End Message ---
--- Begin Message ---
Hi there i have an error handler callback within an error class which is
also being used for pear errors. E_NOTICE and E_STRICT are still triggering
this callback method, so i have to make a check that the code is not one of
these. I have error_reporting to ignore both of these and still no luck,
any ideas ?
--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] wrote:
Hi there i have an error handler callback within an error class which is
also being used for pear errors. E_NOTICE and E_STRICT are still triggering
this callback method, so i have to make a check that the code is not one of
these. I have error_reporting to ignore both of these and still no luck,
any ideas ?
put this at the top of the error handling function:
if($errno == E_STRICT || $errno == E_NOTICE) return;
--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Mike [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 15, 2005 9:43 PM
> To: 'Dasmeet Singh'; [email protected]
> Subject: RE: [PHP] Setting permissions such that file can be included
but
> not open directly
>
> > directly to private/includefile.php can run the script
> > without authorising themselves...
> >
> > Is it possible to set folder permission such that files
> > inside it cant be open directly but could be included?
>
> Can you just give read permissions -only- to the user that PHP runs as
and
> not these other users?
Just put these kinda directives outside webscope, I.E.:
/home/USER/public_html/
/home/USER/private/
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
--- End Message ---
--- Begin Message ---
Kim Madsen wrote:
-----Original Message-----
From: Mike [mailto:[EMAIL PROTECTED]
Sent: Friday, April 15, 2005 9:43 PM
To: 'Dasmeet Singh'; [email protected]
Subject: RE: [PHP] Setting permissions such that file can be included
but
not open directly
directly to private/includefile.php can run the script
without authorising themselves...
Is it possible to set folder permission such that files
inside it cant be open directly but could be included?
Can you just give read permissions -only- to the user that PHP runs as
and
not these other users?
Just put these kinda directives outside webscope, I.E.:
/home/USER/public_html/
/home/USER/private/
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
Thanks that works as well :)
-
Free Website Promotion - A Complete Guide
http://hostwindow.info/web-hosting/9/free-website-promotion/1/
--- End Message ---