php-general Digest 9 Mar 2006 11:11:31 -0000 Issue 4006

2006-03-09 Thread php-general-digest-help
php-general Digest 9 Mar 2006 11:11:31 - Issue 4006 Topics (messages 231695 through 231709): Re: .DAT file with PHP 231695 by: Rory Browne 231696 by: Rory Browne 231700 by: Jabez 231701 by: Paul Novitski 231708 by: Rory Browne Re: php tests failures

php-general Digest 9 Mar 2006 23:26:46 -0000 Issue 4007

2006-03-09 Thread php-general-digest-help
php-general Digest 9 Mar 2006 23:26:46 - Issue 4007 Topics (messages 231710 through 231737): Re: include not working properly? 231710 by: Jochem Maas SVN PHP 231711 by: Jon Morgan 231712 by: Jon Morgan 231713 by: Jens Kleikamp PHP + MMS Live Streaming +

Re: [PHP] .DAT file with PHP

2006-03-09 Thread Rory Browne
I didn't get the file, but If the lines are seperated by br's instead of newlines, then $filename = monkey.html; $file_array = preg_split(/br.*?/, file_get_content($filename)); $rev_array = array_reverse($file_array); $output = join(br /, $rev_array); This could be modded to maintain any

Re: [PHP] Convert all named entities into numeric character references

2006-03-09 Thread Robin Vickery
On 06/03/06, Jacob Friis Saxberg [EMAIL PROTECTED] wrote: Does anyone know of a Php funtion that can do this: http://golem.ph.utexas.edu/~distler/blog/NumericEntities.html Hi there! http://se.php.net/manual/en/function.htmlentities.php ? htmlentities converts to named entitites.

Re: [PHP] include not working properly?

2006-03-09 Thread Jochem Maas
robert mena wrote: Hi, Thanks. it worked. Since I have a common server where various virtualhosts reside what would you recommend in terms of security? 1. don't let assholes on your box. 2. read http://phpsec.org safemode and openbase_dir are primarily designed to protected legitimate

[PHP] SVN PHP

2006-03-09 Thread Jon Morgan
Hi. I'm trying to access SVN from PHP and as there seems to be no direct binding for it yet i've had a look at WebSVN source to try and list directories in a repository with the following code but it just doesn't return anything. It doesn't return anything whether re-directing or not (i..e.

[PHP] SVN PHP

2006-03-09 Thread Jon Morgan
Hi. I'm trying to access SVN from PHP and as there seems to be no direct binding for it yet i've had a look at WebSVN source to try and list directories in a repository with the following code but it just doesn't return anything. It doesn't return anything whether re-directing or not (i..e.

[PHP] Re: SVN PHP

2006-03-09 Thread Jens Kleikamp
Jon Morgan wrote: Hi. I'm trying to access SVN from PHP and as there seems to be no direct binding for it yet i've had a look at WebSVN source to try and list directories in a repository with the following code but it just doesn't return anything. It doesn't return anything whether

[PHP] PHP + MMS Live Streaming + Protect URL.

2006-03-09 Thread Gentil de Bortoli Júnior
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, guys. I have a little problem here and I would like to know if you have any idea about how to handle it. I have an URL which is streaming a live TV channel and I need to implement, using PHP, some kind of validation to allow that only one

Re: [PHP] PHP + MMS Live Streaming + Protect URL.

2006-03-09 Thread David Tulloh
It's a fairly standard authentication problem. I would solve it by using sessions. In the page and video stream start by checking for an authenticated flag in the session array. If the flag is present, display the content. If not, show a login page. When they login, set the authenticated flag

Re: [PHP] PHP + MMS Live Streaming + Protect URL.

2006-03-09 Thread Gentil de Bortoli Júnior
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 -Original Message- From: Gentil de Bortoli Júnior [mailto:[EMAIL PROTECTED] Sent: 9 March 2006 2:01 pm To: php-general@lists.php.net Subject: [PHP] PHP + MMS Live Streaming + Protect URL. Hello, guys. I have a little problem here

Re: [PHP] PHP + MMS Live Streaming + Protect URL.

2006-03-09 Thread Barry
Gentil de Bortoli Júnior wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 -Original Message- From: Gentil de Bortoli Júnior [mailto:[EMAIL PROTECTED] Sent: 9 March 2006 2:01 pm To: php-general@lists.php.net Subject: [PHP] PHP + MMS Live Streaming + Protect URL. Hello, guys. I

Re: [PHP] PHP + MMS Live Streaming + Protect URL.

2006-03-09 Thread Gentil de Bortoli Júnior
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gentil de Bortoli Júnior wrote: I have a little problem here and I would like to know if you have any idea about how to handle it. I have an URL which is streaming a live TV channel and I need to implement, using PHP, some kind of validation to

[PHP] X-Mailer and headers when sending mail

2006-03-09 Thread Angelo Zanetti
Hi guys. When adding additional headers to an email that gets sent from the mail function. What purpose does the X-Mailer have? Also are the following linked: -X-Priority -Importance -X-MSMail-Priority Another question is can I omit the Message-ID for the email? or will this result in some

Re: [PHP] Zoomable map

2006-03-09 Thread Lester Caine
Paul Scott wrote: On Wed, 2006-03-08 at 13:12 -0600, Philip Hallstrom wrote: I have been searching for this, but maybe one of you has seen it before and can save me some time. I need a class that will allow me to create a zoomable map application. I have a map, I just need folks to be able to

[PHP] session handling

2006-03-09 Thread suresh kumar
i am having one problem in session handling. I am having 2 files,login page and hame page. when user enterd user name and password in login page .i used session to store the user id .in my second home page.i retrieve the user id.now i want the user id to be availble in my thrid page.plz help

[PHP] the best way to get Apache/PHP to handle *all* requests

2006-03-09 Thread Nic
Hi I've got apache2/mod_php4 and I want to pass all requests to a vhost through to a single PHP script. I've tried this config: VirtualHost * ServerName yyy DocumentRoot /var/local/yyy LocationMatch .* ForceType application/x-httpd-php /LocationMatch

[PHP] Re: session handling

2006-03-09 Thread João Cândido de Souza Neto
One important question is: You're using register_globals equal on or off? suresh kumar wrote: i am having one problem in session handling. I am having 2 files,login page and hame page. when user enterd user name and password in login page .i used session to store the user id .in my second

[PHP] setting vhost or directory based options to php when using apache with php4-cgi

2006-03-09 Thread Christoph Anton Mitterer
Hi. I'm using Debian sarge with php4-cgi and I'm looking for a way to set php settings like open_basedir or disable_functions at a per virtual_host or directry level from apache. This seems to be possible when using libapache2-mod-php4 using stuff like php_admin_value, but not with my php over

[PHP] Understanding system multiple steps

2006-03-09 Thread Mark Steudel
So I am using system() to try and access sftp from my php scripts. How do I do multiple steps once I've initiated my command e.g. $file = 'filname.txt'; system( C:\sftp\sftp.exe login flags | put .$file ); Im on a windows box, so I don't know if I can do something like this ... anyway any help

Re: [PHP] X-Mailer and headers when sending mail

2006-03-09 Thread Paul Scott
On Thu, 2006-03-09 at 17:27 -0800, Angelo Zanetti wrote: When adding additional headers to an email that gets sent from the mail function. What purpose does the X-Mailer have? It identifies the mail client. So I normally set X-Mailer = MySite Mailer; or something. This directive won't

Re: [PHP] session handling

2006-03-09 Thread tedd
i am having one problem in session handling. I am having 2 files,login page and hame page. when user enterd user name and password in login page .i used session to store the user id .in my second home page.i retrieve the user id.now i want the user id to be availble in my thrid page.plz help

Re: [PHP] Calling Curt Z, Curt Z to the white courtesy phone please

2006-03-09 Thread Max Schwanekamp
Curt Zirzow wrote: I'm including the list in this reply in case any wants to give some feedback. http://zirzow.dyndns.org/php-general/NEWBIE http://www.thelinuxconsultancy.co.uk/phpeditors.php is no longer valid. I mean, the list is no longer there, though the URL is still valid. It got

[PHP] php-cgi limitations

2006-03-09 Thread Max Schwanekamp
Can anyone offer or point me to a summary of differences between running php as an Apache module vs as a cgi executable? Specifically, I'm wanting to upgrade our servers to php 5 but there is one crucial third-party app we're using that still needs php 4, so I'm hoping I can run just that app

Re: [PHP] session handling

2006-03-09 Thread Gerry Danen
$ID is not a global, but $_SESSION[ID] would be... Gerry http://groups.yahoo.com/group/php_and_mysql/ On 3/9/06, suresh kumar [EMAIL PROTECTED] wrote: i am having one problem in session handling. I am having 2 files,login page and hame page. when user enterd user name and password in login

[PHP] Re: Building php-pcre extension on windows

2006-03-09 Thread Manish Marathe
On 3/7/06, Manish Marathe [EMAIL PROTECTED] wrote: PHP experts everywhere!! I am building PHP 5.1.2 on windows without pcre-regex extension. I am building building pcre independently and then I am building the extension php_pcre.dll. I build few other extensions too. I keep the extensions

[PHP] What is the effect of --enable-memory-limit

2006-03-09 Thread Khai
If I compile php with --enable-memory-limit and set a memory limit in php.ini, what will this do ? Thanks Khai -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php-cgi limitations

2006-03-09 Thread El Bekko
Max Schwanekamp wrote: Can anyone offer or point me to a summary of differences between running php as an Apache module vs as a cgi executable? Specifically, I'm wanting to upgrade our servers to php 5 but there is one crucial third-party app we're using that still needs php 4, so I'm hoping

Re: [PHP] Re: php-cgi limitations

2006-03-09 Thread Max Schwanekamp
El Bekko wrote: Max Schwanekamp wrote: Can anyone offer or point me to a summary of differences between running php as an Apache module vs as a cgi executable? Specifically, I'm wanting to upgrade our servers to php 5 but there is one crucial third-party app we're using that still needs php

[PHP] Extending a class with a static constructur (like PEAR::DB)

2006-03-09 Thread weston
So... I'm trying to extend PEAR::DB. It'd be great to keep everything it offers and just add a few more perhaps unconventional functions. Intuitively, it seemed like this approach might work: ?PHP require_once(DB.php); # Toy Extension of DB Class class DBToyExt extends DB

Re: [PHP] Random permission strangeness

2006-03-09 Thread Chris
Paul Scott wrote: On Thu, 2006-03-09 at 16:05 +1100, Chris wrote: What's the whole error message (ie context)? Is it coming from cron or randomly in your scripts? From Xdebug... Its random. I am just thinking though that what it *might* be is that the initial session is timing out

Re: [PHP] What is the effect of --enable-memory-limit

2006-03-09 Thread Chris
Khai wrote: If I compile php with --enable-memory-limit and set a memory limit in php.ini, what will this do ? http://www.php.net/manual/en/ini.core.php#ini.memory-limit -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: Building php-pcre extension on windows

2006-03-09 Thread Chris
Manish Marathe wrote: On 3/7/06, Manish Marathe [EMAIL PROTECTED] wrote: PHP experts everywhere!! I am building PHP 5.1.2 on windows without pcre-regex extension. I am building building pcre independently and then I am building the extension php_pcre.dll. I build few other extensions too. I

Re: [PHP] Understanding system multiple steps

2006-03-09 Thread Chris
Mark Steudel wrote: So I am using system() to try and access sftp from my php scripts. How do I do multiple steps once I've initiated my command e.g. $file = 'filname.txt'; system( C:\sftp\sftp.exe login flags | put .$file ); Im on a windows box, so I don't know if I can do something like

Re: [PHP] Extending a class with a static constructur (like PEAR::DB)

2006-03-09 Thread Chris
[EMAIL PROTECTED] wrote: So... I'm trying to extend PEAR::DB. It'd be great to keep everything it offers and just add a few more perhaps unconventional functions. Intuitively, it seemed like this approach might work: ?PHP require_once(DB.php); # Toy Extension of DB Class

Re: [PHP] Extending a class with a static constructur (like PEAR::DB)

2006-03-09 Thread weston
Weston wrote: $dte = DBToyExt::connect(mysql://weston_tssa:[EMAIL PROTECTED]/weston_tssa); $dte-testext('testing'); $dte-testext($dte-moo); $dte-testext($dte-bar); On Fri, Mar 10, 2006 at 10:43:02AM +1100, Chris wrote: $dte will only have the return value of

Re: [PHP] Extending a class with a static constructur (like PEAR::DB)

2006-03-09 Thread Chris
[EMAIL PROTECTED] wrote: Weston wrote: $dte = DBToyExt::connect(mysql://weston_tssa:[EMAIL PROTECTED]/weston_tssa); $dte-testext('testing'); $dte-testext($dte-moo); $dte-testext($dte-bar); $dte will only have the return value of DBToyExt::connect() - it won't allow you to access other

Re: [PHP] Extending a class with a static constructur (like PEAR::DB)

2006-03-09 Thread weston
So... I'm trying to extend PEAR::DB. It'd be great to keep everything it offers and just add a few more perhaps unconventional functions. $dte = DBToyExt::connect(mysql://weston_tssa:[EMAIL PROTECTED]/weston_tssa); DB::connect() is actually a factory call. So what is

[PHP] large file transfers

2006-03-09 Thread Christopher Taylor
Has anyone seen a script or class that can handle file uploads of large files (greater than 20 meg)? Any direction as to where to look would be appreciated. Chris

Re: [PHP] large file transfers

2006-03-09 Thread Chris
Christopher Taylor wrote: Has anyone seen a script or class that can handle file uploads of large files (greater than 20 meg)? Any direction as to where to look would be appreciated. PHP can handle it, whether your server will time out with large files like that I don't know. Look at

RE: [PHP] large file transfers

2006-03-09 Thread Shaunak Kashyap
Try: http://www.heylove.de/ It walks you through creating your own file upload class and in the end gives an example of how to use that class. Shaunak Kashyap Senior Web Developer WPT Enterprises, Inc. 5700 Wilshire Blvd., Suite 350 Los Angeles, CA 90036 Direct: 323.330.9870 Main:

Re: [PHP] Random permission strangeness

2006-03-09 Thread Paul Scott
On Fri, 2006-03-10 at 10:26 +1100, Chris wrote: If you leave your browser open for 20 mins or something and then try to log in, does that replicate it? Ah hah! The plot thickens! It seems that I can: 1. Launch the app - thereby starting the initial session 2. Leave the session to time out

Re: [PHP] Random permission strangeness

2006-03-09 Thread Chris
Paul Scott wrote: On Fri, 2006-03-10 at 10:26 +1100, Chris wrote: If you leave your browser open for 20 mins or something and then try to log in, does that replicate it? Ah hah! The plot thickens! It seems that I can: 1. Launch the app - thereby starting the initial session 2. Leave

Re: [PHP] Random permission strangeness

2006-03-09 Thread Paul Scott
On Fri, 2006-03-10 at 16:00 +1100, Chris wrote: If you can produce a small test case might be time for a bug report. It shouldn't give you permission denied errors. Will work on it over the weekend. I am going to try something dead simple with the session stuff and see what I can do with it.