Re: [PHP] Committing OO Sin

2003-10-06 Thread Becoming Digital
> I don't know of any good books for patterns. I'm quite happy with "Design Patterns Explained." It's great for the relative novice who's interested in design patterns. Design Patterns Explained Alan Shalloway, James R. Trott Addison-Wesley, 2001 ISBN: 0201715945 Edward Dudlik

Re: [PHP] general OO php question

2003-10-06 Thread Becoming Digital
The "best" way to do this depends on what you really want to accomplish. Not knowing anything about your project, it seems like your register function might fit within the constructs of a larger class. However, it may do best as an independant object, but that's not really the issue. Regardle

[PHP] -OT- Software Fashion

2003-10-06 Thread andu
I'm sure many of you read this on /. but in case you didn't here it is: http://www.softwarereality.com/soapbox/softwarefashion.jsp Regards, Andu Novac -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] storing the passthru() output as an array

2003-10-06 Thread Michael P. Carel
Thanks it works. > On Mon, 2003-10-06 at 19:41, Michael P. Carel wrote: > > Hi again, > > > > Have another problem here I need to get the output of this syntax > > > > $ps = (passthru("ps -ef")); > > > > and store it in an array line by line, I specifically want to get the > > Columns of the PI

Re: [PHP] storing the passthru() output as an array

2003-10-06 Thread David Otton
On Tue, 7 Oct 2003 09:41:03 +0800, you wrote: >Have another problem here I need to get the output of this syntax > >$ps = (passthru("ps -ef")); > >and store it in an array line by line, Turn on output buffering, grab the output of your script, then turn it off. (ob_start, ob_get_contents, ob_end_

RE: [PHP] storing the passthru() output as an array

2003-10-06 Thread Chris Kay
I don't know if this is the easiest way but a solution Pipe ps -ef to a file read the file into an array and do with it what you will. EG $filename = "/tmp/psefdump.txt"; exec("ps -ef > $filename"); $lines = file($filename); foreach ( $lines as $var ) { // Yadda Yadda } Hope this hel

Re: [PHP] storing the passthru() output as an array

2003-10-06 Thread Brad Pauly
On Mon, 2003-10-06 at 19:41, Michael P. Carel wrote: > Hi again, > > Have another problem here I need to get the output of this syntax > > $ps = (passthru("ps -ef")); > > and store it in an array line by line, I specifically want to get the > Columns of the PID for this command and store it in a

[PHP] storing the passthru() output as an array

2003-10-06 Thread Michael P. Carel
Hi again, Have another problem here I need to get the output of this syntax $ps = (passthru("ps -ef")); and store it in an array line by line, I specifically want to get the Columns of the PID for this command and store it in a selection box . Any Idea how, thanks in advance. Mike -- PHP Ge

RE: [PHP] general OO php question

2003-10-06 Thread Chris W. Parker
Kirk Babb on Monday, October 06, 2003 4:57 PM said: > If I have a class called Registration, should I code in the > mysql_connect inside each function inside the class that needs it, or > should I make a function called dbConnect? What you should do is define a db c

Re: [PHP] ps command in php

2003-10-06 Thread Michael P. Carel
thanks to all its working now > Michael P. Carel wrote: > > When I do this: > > > $ps = (passthru("ps -ef)); ?> > > > > > > > > > > > > > > I can also see the HTML code, i need to put the output inside the table. > > Is there any solution for this? > > > > Just remove first line of

[PHP] general OO php question

2003-10-06 Thread Kirk Babb
If I have a class called Registration, should I code in the mysql_connect inside each function inside the class that needs it, or should I make a function called dbConnect? If so, how can I correctly call dbConnect inside the other functions of the class? would it be something like this? Or am I

[PHP] Passing POST args to PHP when run as a CGI (was Re: [PHP] $_ENV not working for me with PHP 4.2.0)

2003-10-06 Thread John Wilcox
--- Curt Zirzow <[EMAIL PROTECTED]> wrote: > Technically it is 4.1.0 (where did you see the > 4.2.0?) but anything > prior to that you should use $HTTP_ENV_VARS my mistake, you're right, it was 4.1.0. > http://php.net/manual/en/language.variables.predefined.php > http://php.net/manual/en/reserve

Re: [PHP] OPTIONS field header handle problem

2003-10-06 Thread Chris Shiflett
--- [EMAIL PROTECTED] wrote: > How could I send response message with the header OPTIONS in PHP > instead of send it with Apache configuration? You can set HTTP response headers with the header() function: http://www.php.net/header Hope that helps. Chris = My Blog http://shiflett.org/

[PHP] OPTIONS field header handle problem

2003-10-06 Thread orlandopozo
How could I send response message with the header OPTIONS in PHP instead of send it with Apache configuration? Thanks in advanced.

[PHP] Singleton Was: [PHP] OO parent/child relationship

2003-10-06 Thread Gerard Samuel
Gerard Samuel wrote: Andy Crain wrote: This all seems like a perfect case for the singleton pattern. See http://www.phppatterns.com/index.php/article/articleview/6/1/1/ and http://www.phppatterns.com/index.php/article/articleview/75/1/1/ Andy Im currently trying to wrap the brain around the Singl

[PHP] Re: Any idea how to do this?

2003-10-06 Thread Paul van Schayck
Hello, [EMAIL PROTECTED] (Ryan A) wrote in > So I have decided that I am going to try to make the same thing on our > site but offer it free to the public...only problem is...I dont know > where to start and was hopeing someone here can give me tips/urls or > links to boost me on my way... You kn

Re: [PHP] null character - file related function

2003-10-06 Thread Burhan Khalid
Curt Zirzow wrote: Some functions are documented as binary safe, i'm not entirely sure what php's policy is on noting if a function is binary safe or not. I believe for some, it states in the manual. Something like "this function became binary safe as of PHP version ___". -- Burhan Khalid phplis

Re: [PHP] File read and sort question

2003-10-06 Thread Burhan Khalid
Susan Ator wrote: I have no control over 1) file naming 2) file inclusion in the directory 3) file removal from the directory This is all being handled through another program written in C. Hrmm what can you do to the files? If this is a linux system, you can write a shel

RE: [PHP] Any idea how to do this?

2003-10-06 Thread Chris W. Parker
Ryan A on Monday, October 06, 2003 1:34 PM said: > HEHEHEHE good one Chris, John seems unusally snappy today... > But seriously, this cant be ALL that hard, not even a suggestion of > where to start? > I have searched on google but have never really tried any of php'

Re: [PHP] php5 and possible oop features/questions

2003-10-06 Thread Tit \"Black\" Petric
one small stone in a pond of stones, but what this pond needs is a bridge to an island in the middle. From: "Marek Kilimajer" <[EMAIL PROTECTED]> > In this case you will benefit from the new _call() interceptor method: > > class Dynamic { > > _call($methodName, $parameters) { > /* detect what meth

Re: [PHP] Any idea how to do this?

2003-10-06 Thread Ryan A
HEHEHEHE good one Chris, John seems unusally snappy today... But seriously, this cant be ALL that hard, not even a suggestion of where to start? I have searched on google but have never really tried any of php's image stuff so need help from someone who has...or atleast a starting point. Cheers, -

Re: [PHP] include() problems

2003-10-06 Thread Burhan Khalid
Gustave Bernier wrote: I'm new to PHP and I'm trying to use the include function but with no success... My server's ini file is set as (allow_url_fopen, 0) so I'm having some trouble to pass different values for the php file I'm calling. The address is: http://mydomain.com/forums/ssi.php?a=act

Re: [PHP] Any idea how to do this?

2003-10-06 Thread Chris Shiflett
--- "CPT John W. Holmes" <[EMAIL PROTECTED]> wrote: > I've also come across a site called www.google.com. Can anyone tell > me how to make that for my site, also? If you can just send me the > script, that'd be great. Here you go: http://www.google.com/";> http://www.google.com/'); ?> :-) Chris

Re: [PHP] php5 and possible oop features/questions

2003-10-06 Thread Curt Zirzow
* Thus wrote Marek Kilimajer ([EMAIL PROTECTED]): > In this case you will benefit from the new _call() interceptor method: > > class Dynamic { > > _call($methodName, $parameters) { > /* detect what method name is to be used and get its > implementation from a fi

Re: [PHP] Any idea how to do this?

2003-10-06 Thread CPT John W. Holmes
From: "Ryan A" <[EMAIL PROTECTED]> > Sometime back I used to visit this URL: > http://www.groundbreak.com/graphics.html > to make the graphics for some products as it was easy to use and give pretty > decent results, but now i see that the owner has converted it into a paysite > and is asking for

[PHP] Any idea how to do this?

2003-10-06 Thread Ryan A
Hi, Sometime back I used to visit this URL: http://www.groundbreak.com/graphics.html to make the graphics for some products as it was easy to use and give pretty decent results, but now i see that the owner has converted it into a paysite and is asking for a whopping 200$ per membership :-( So I h

Re: [PHP] php5 and possible oop features/questions

2003-10-06 Thread Marek Kilimajer
In this case you will benefit from the new _call() interceptor method: class Dynamic { _call($methodName, $parameters) { /* detect what method name is to be used and get its implementation from a file or a database */ } } Tit "Black" Petric wrote: yeah i know, php5 would benefit greatly fro

Re: [PHP] .htaccess - Still asking for login information although already sent through address bar

2003-10-06 Thread PHP Webmaster
"Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tuesday 07 October 2003 00:32, PHP Webmaster wrote: > > > If I use my login form, the login box pops up only once. If I copy the text > > from the address bar (generated by the form) and paste it into the address > > bar

Re: [PHP] php5 and possible oop features/questions

2003-10-06 Thread Tit \"Black\" Petric
yeah i know, php5 would benefit greatly from something like this the problem with php in general is that you cant seperate a class over multiple files (as you must have one file with the class sometimes quite big, over 50kb) i guess you can split it someways with the implements feature, having a

[PHP] Re: functions using other functions inside of classes?

2003-10-06 Thread Kirk Babb
I'm reading up on OO and PHP, so I'll retract the previous question until I can ask something better. Just ignore it. Thanks, Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] timeout question

2003-10-06 Thread Curt Zirzow
* Thus wrote David Coleman ([EMAIL PROTECTED]): > I have a PHP page that for some reason is taking an ungodly long time to > execute. I suspect that this is simply b/c I’m running Apache 1.3 / > MySQL 4.013-nt, PHP 4, Zend studio 3.0, and MySQL GUI on a 266 MhZ win2K > server. (Yes people, I know

Re: [PHP] php5 and possible oop features/questions

2003-10-06 Thread Marek Kilimajer
Tit "Black" Petric wrote: will something in the likes of this be possible in php5? /***/ class some_classname { function some_function(); } function some_classname::some_function($prefix, $text) { return $prefix.": ".$text."\n"; } $test = new some_classname; $test->some_function("

RE: [PHP] timeout question

2003-10-06 Thread Vail, Warren
http://www.php.net/manual/en/function.set-time-limit.php Warren Vail -Original Message- From: David Coleman [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 11:47 AM To: [EMAIL PROTECTED] Subject: [PHP] timeout question I have a PHP page that for some reason is taking an ungod

Re: [PHP] Compiled Regular Expressions?

2003-10-06 Thread Curt Zirzow
* Thus wrote Manuel Vázquez Acosta ([EMAIL PROTECTED]): > Hi all: > > I need to know if PHP compiles regular expressions. If it does so, is there > any way to cache the compiled resource in order to speed up next calls to > preg_* functions? caching is built into pcre library, all your expression

[PHP] timeout question

2003-10-06 Thread David Coleman
I have a PHP page that for some reason is taking an ungodly long time to execute. I suspect that this is simply b/c I’m running Apache 1.3 / MySQL 4.013-nt, PHP 4, Zend studio 3.0, and MySQL GUI on a 266 MhZ win2K server. (Yes people, I know I’m choking the poor thing, but I can’t afford a new se

Re: [PHP] Anybody know of a good web site on how to create P3P privacy policies?

2003-10-06 Thread Chris Shiflett
--- Dan Anderson <[EMAIL PROTECTED]> wrote: > Does anyone know of a good web site on how to create a P3P Privacy > policy? Here are the two URLs I find most helpful: 1. http://www.w3.org/P3P/develop.html - This page is specifically for developers and gives you the information you need to be consi

Re: [PHP] proc_open to return an encrypted string?

2003-10-06 Thread Curt Zirzow
* Thus wrote Robert Van Overmeiren ([EMAIL PROTECTED]): > Hello, > > I want to take a String variable and GPG encrypt it, then email the > encrypted string. > > One of our developers suggested using "proc_open" and to "set the process to > 'gpg -a --encrypt -r 0x35E891B0'", but couldn't clarify.

Re: [PHP] Array of Classes

2003-10-06 Thread Rob Wiltbank
Cheers! Just what I was looking for. :) Rob "David Otton" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Mon, 6 Oct 2003 13:41:22 -0400, you wrote: > > >1) How can I create an array of classes so they could be referenced, for > >instance: $array[$uniqueID][$class->var] = 10; ? >

[PHP] Anybody know of a good web site on how to create P3P privacy policies?

2003-10-06 Thread Dan Anderson
Does anyone know of a good web site on how to create a P3P Privacy policy? When I googled I kept getting other people privacy policies and proprietary tools. Thanks in advance, -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Multiple attachments in an email

2003-10-06 Thread Curt Zirzow
* Thus wrote Ajay Singh ([EMAIL PROTECTED]): > Hi, > > Please guide how to send multiple attachments in one mail through php mail script. > The following code is working for the one attachment: If you look at it closely you are already sending two attachements. For a guide read and implement:

RE: [PHP] PHP & CSS

2003-10-06 Thread Jay Blanchard
[snip] This is a question as to how I would apply variables from an ini file to the file called in the manner you so nicely explained to me. [/snip] Using fopen() you would then write the variables to the CSS file. As long as you fclose the CSS file before you get to the link rel in the HTML you'l

Re: [PHP] File read and sort question

2003-10-06 Thread Marek Kilimajer
Susan Ator wrote: I have no control over 1) file naming 2) file inclusion in the directory 3) file removal from the directory This is all being handled through another program written in C. So far I have been able to put the relevant info from each file into the database t

Re: [PHP] PHP & CSS

2003-10-06 Thread David Otton
On Mon, 6 Oct 2003 11:13:04 -0700, you wrote: >I'm currently building a dynamic site which draws page configuration >variables from config (ini) files. To use those variables from the >ini files, I write the style sheet in the header of each page. > >Here's my problem. I want to link to a style

RE: [PHP] PHP & CSS

2003-10-06 Thread Chris Hubbard
Raquel, this is an HTML question, not PHP. And here's the answer: The following goes in the < head > section of your html: -Original Message- From: Raquel Rice [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 10:13 AM To: PHP-General Subject: [PHP] PHP & CSS I'm currently build

Re: [PHP] OO parent/child relationship

2003-10-06 Thread Gerard Samuel
Andy Crain wrote: This all seems like a perfect case for the singleton pattern. See http://www.phppatterns.com/index.php/article/articleview/6/1/1/ and http://www.phppatterns.com/index.php/article/articleview/75/1/1/ Andy Im currently trying to wrap the brain around the Singleton Registry article.

[PHP] Re: PHP & CSS

2003-10-06 Thread erythros
people will still be able to see your style sheet, by folling the link to your css file. how are you apling the variables in the first place? now that you are link to a style sheet what has changed (apperance wise) with the output of the page. is the formating not being applied? can you send a samp

Re: [PHP] Array of Classes

2003-10-06 Thread David Otton
On Mon, 6 Oct 2003 13:41:22 -0400, you wrote: >1) How can I create an array of classes so they could be referenced, for >instance: $array[$uniqueID][$class->var] = 10; ? > >2) Would it instantiate when that particular element was used and would the >constructor run at that point? > >3) Any way to

RE: [PHP] File read and sort question

2003-10-06 Thread Susan Ator
I have no control over 1) file naming 2) file inclusion in the directory 3) file removal from the directory This is all being handled through another program written in C. So far I have been able to put the relevant info from each file into the database then display with

[PHP] Compiled Regular Expressions?

2003-10-06 Thread Manuel Vázquez Acosta
Hi all: I need to know if PHP compiles regular expressions. If it does so, is there any way to cache the compiled resource in order to speed up next calls to preg_* functions? Manu. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Array of Classes

2003-10-06 Thread Rob Wiltbank
Greetings.. Doing some persistant connection socket-based PHP stuff and I'm trying to figure out a few things: 1) How can I create an array of classes so they could be referenced, for instance: $array[$uniqueID][$class->var] = 10; ? 2) Would it instantiate when that particular element was used a

[PHP] php 4.3.3 / pcntl_signal problem?

2003-10-06 Thread Karl Pielorz
Hi All, [This is quite a long post, my apologies :(] I have the CLI version of PHP 4.3.3 running under FreeBSD 5.1-Release. I seem to have encountered some 'strange' behaviour with signals... I may have missed the plot so far as signals go under PHP, but from within my signal handler routine -

RE: [PHP] OO parent/child relationship

2003-10-06 Thread Andy Crain
This all seems like a perfect case for the singleton pattern. See http://www.phppatterns.com/index.php/article/articleview/6/1/1/ and http://www.phppatterns.com/index.php/article/articleview/75/1/1/ Andy > -Original Message- > From: Evan Nemerson [mailto:[EMAIL PROTECTED] > Sent: Monday, O

[PHP] Multiple attachments in an email

2003-10-06 Thread Ajay Singh
Hi, Please guide how to send multiple attachments in one mail through php mail script. The following code is working for the one attachment: Thanks & regards, Ajay // Read POST request params into global vars $to = $_POST['to']; $from= $_POST['from']; $subject = $_POST['subject']; $m

Re: [PHP] File read and sort question

2003-10-06 Thread Brad Pauly
Susan Ator wrote: The problem with using a database is the files within the directory are changing on, sometimes, a minute by minute basis. I think reading them into the database then deleting them when they are deleted from the directory would be a huge amount of overhead. No? Something else whic

Re: [PHP] How can I get a function name?

2003-10-06 Thread Leif K-Brooks
RDias wrote: How can I get a function name? If you're using PHP 4.3.0+, try the __FUNCTION__ magic constant. http://us2.php.net/manual/en/language.constants.predefined.php -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted

[PHP] How can I get a function name?

2003-10-06 Thread RDias
How can I get a function name? >From inside a function / method, i need discover it name. How can i do this? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File read and sort question

2003-10-06 Thread Chris Sherwood
Susan It appears that you will want to use a database. and update it when the files are removed. (possibly provide a page to do uploading, modifications and deletions with .. this way you can automate the db) other than that you will have to recreate everything each time you process or display th

RE: [PHP] File read and sort question

2003-10-06 Thread Robert Cummings
On Mon, 2003-10-06 at 12:36, Susan Ator wrote: > The problem with using a database is the files within the directory are > changing on, sometimes, a minute by minute basis. I think reading them into > the database then deleting them when they are deleted from the directory > would be a huge amount

Re: [PHP] null character - file related function

2003-10-06 Thread Curt Zirzow
* Thus wrote Martin Straka ([EMAIL PROTECTED]): > Hi, > > On Mon, 6 Oct 2003, Mark Charette wrote: > > > > Strings in PHP are binary safe and thus do not rely on null temrination. > > > > You are, of course, right (just a brainfart on my part ...). > > > > There are a number of functions that dep

Re: [PHP] .htaccess - Still asking for login information although already sent through address bar

2003-10-06 Thread Jason Wong
On Tuesday 07 October 2003 00:32, PHP Webmaster wrote: > If I use my login form, the login box pops up only once. If I copy the text > from the address bar (generated by the form) and paste it into the address > bar (after restarting the browser) the logon box does not appear. Perhaps you could s

Re: [PHP] PHP Bug Problems

2003-10-06 Thread Richard Baskett
on 10/2/03 7:00, Jay Blanchard at [EMAIL PROTECTED] wrote: > [snip] >> Because it is not a bug, it is bad code design! 8000+ lines of $x = 1; is >> just >> downright goofy! Did you happen to try it with 8000+ repeated blocks of any >> other type? My bet is that it would quit then too. > > Yeah no

RE: [PHP] File read and sort question

2003-10-06 Thread Susan Ator
The problem with using a database is the files within the directory are changing on, sometimes, a minute by minute basis. I think reading them into the database then deleting them when they are deleted from the directory would be a huge amount of overhead. No? Something else which I did not make c

Re: [PHP] Newbie

2003-10-06 Thread John Hicks
Hi John-- Your name caught my eye, so I had to reply! Unfortunately I run PHP on Linux so can't be sure about your situation with Windex. But I think your problem is that you are opening your phpinfo.php file from your local file system. You should instead open it through your webserver. (i.e

Re: [PHP] .htaccess - Still asking for login information although already sent through address bar

2003-10-06 Thread PHP Webmaster
"Nathan Taylor" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Does it continuously ask or just twice? I've found a weird issue with .htaccess where if the domain name is a mask for a subdomain host and you try to access an .htaccess protected page it will prompt you for the password

Re: [PHP] .htaccess - Still asking for login information although already sent through address bar

2003-10-06 Thread PHP Webmaster
"Mika Tuupola" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Mon, 6 Oct 2003, PHP Webmaster wrote: > > > Iv'e got a .htaccess file protecting a site using HTTPS. I have tried using > > a form to send the login details to the site through the address bar > > (http://user:[EMAIL P

Re: [PHP] File read and sort question

2003-10-06 Thread Robert Cummings
On Mon, 2003-10-06 at 12:10, Susan Ator wrote: > I have a directory with an ever-changing number of files. Some will be > removed and others added on a continuing basis. > > The files are ascii with the following layout: > > Name > Subject line > mm/dd/ > hh:mm > > I can easily get a lis

[PHP] File read and sort question

2003-10-06 Thread Susan Ator
I have a directory with an ever-changing number of files. Some will be removed and others added on a continuing basis. The files are ascii with the following layout: Name Subject line mm/dd/ hh:mm I can easily get a list of files and pull the necessary information. I need, however to be

Re: [PHP] null character - file related function

2003-10-06 Thread Martin Straka
Hi, On Mon, 6 Oct 2003, Mark Charette wrote: > > Strings in PHP are binary safe and thus do not rely on null temrination. > > You are, of course, right (just a brainfart on my part ...). > > There are a number of functions that depend on null termination of > strings; handing a string with embedd

[PHP] functions using other functions inside of classes?

2003-10-06 Thread Kirk Babb
If I have a class with several functions, and one of the functions is used by the other functions in the class, how do I get to it? In particular I'd like the dbConnect, fail and success functions to be seen by the other functions in the class. I guess I just don't understand the way to use OO ye

Re: [PHP] null character - file related function

2003-10-06 Thread Mark Charette
On 6 Oct 2003, Robert Cummings wrote: > > Strings in PHP are binary safe and thus do not rely on null temrination. You are, of course, right (just a brainfart on my part ...). There are a number of functions that depend on null termination of strings; handing a string with embedded nulls in it t

Re: [PHP] IRC

2003-10-06 Thread Chris Shiflett
--- Paulo Nunes <[EMAIL PROTECTED]> wrote: > How can i build a chat using PHP and without refreshing a frame > every x seconds? Use chunked transfers. The flush command can help you achieve this: http://www.php.net/flush Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Devel

Re: [PHP] null character - file related function

2003-10-06 Thread Robert Cummings
On Mon, 2003-10-06 at 11:29, Mark Charette wrote: > On Mon, 6 Oct 2003, Martin Straka wrote: > > > > Is somewhere documented that everything after NULL (0x00 %00) character > > is ignored for example in functions include, fopen etc? > > Interestingly, no, it's not documented in the manual (at leas

[PHP] proc_open to return an encrypted string?

2003-10-06 Thread Robert Van Overmeiren
Hello, I want to take a String variable and GPG encrypt it, then email the encrypted string. One of our developers suggested using "proc_open" and to "set the process to 'gpg -a --encrypt -r 0x35E891B0'", but couldn't clarify. How is this done? Would it be something like this...? ---

Re: [PHP] null character - file related function

2003-10-06 Thread Mark Charette
On Mon, 6 Oct 2003, Martin Straka wrote: > > Is somewhere documented that everything after NULL (0x00 %00) character > is ignored for example in functions include, fopen etc? Interestingly, no, it's not documented in the manual (at least I couldn't find any official documentation on NULL terminate

Re: [PHP] IRC

2003-10-06 Thread Marek Kilimajer
Search for "hidden iframe" Paulo Nunes wrote: How can i build a chat using PHP and without refreshing a frame every x seconds? Thanks!!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] IRC

2003-10-06 Thread Paulo Nunes
How can i build a chat using PHP and without refreshing a frame every x seconds? Thanks!!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] null character - file related function

2003-10-06 Thread Marek Kilimajer
You cannot have chr(0) in filenames Martin Straka wrote: Hi, Is somewhere documented that everything after NULL (0x00 %00) character is ignored for example in functions include, fopen etc? Martin Straka -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] null character - file related function

2003-10-06 Thread Martin Straka
Hi, Is somewhere documented that everything after NULL (0x00 %00) character is ignored for example in functions include, fopen etc? Martin Straka -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re[4]: [PHP] OO parent/child relationship

2003-10-06 Thread Robert Cummings
On Mon, 2003-10-06 at 06:22, Tom Rogers wrote: > >> > >> Well I must have missed that one :) > >> My answer, if GLOBALS were not meant to be used they wouldn't be there.. > >> So if they make life easier go ahead and use them. I notice a lot of 'purists' > >> on this list that want things done a c

Re: [PHP] attach file with mail() function??

2003-10-06 Thread Steve Buehler
At 06:34 PM 10/5/2003, Roy W wrote: Is there a way to attach a file with the mail() function? Thanks! Yes. Take a look at http://www.php.net/mail Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php classes

2003-10-06 Thread Jeremy Johnstone
I don't know if these will help you, but maybe take a look here: phpclasses.org (code samples to read over) hotscripts.com (complete programs to read over) devshed.com (heard they had good articles, never really been there) Jeremy On Mon, 2003-10-06 at 07:13, Cameron Metzke wrote: > Anybody know

Re: [PHP] Wrapping code inside [code]xxx[/code] tags.

2003-10-06 Thread David Otton
On Mon, 6 Oct 2003 07:12:07 -0500, you wrote: >Also Evolt.org does a nifty thing with code in iframes within >articles. Just a . CSS's overflow: property is a possible text-within-text solution, too. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] php classes

2003-10-06 Thread Cameron Metzke
Yep thanx guys they look really cool :), and yes your right google is my friend lol, ive been looking for days on google with more search terms than ever but i missed these 2. take care and again thanx :D "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] Anybody kno

Re: [PHP] Re: mail() function, how to get it work?

2003-10-06 Thread Burhan Khalid
Manuel Lemos wrote: Hello, On 10/03/2003 12:44 PM, Kristian Snabb wrote: How do I set up the mail() function in php.ini. How do I define the username and password? My smtp service requires me to log on. I'm using Apache 2.0.47 on WinXP Pro. There is no way to set SMTP authentication using th

RE: [PHP] php classes

2003-10-06 Thread Jay Blanchard
[snip] Anybody know of any real world php class tutorials?, so far ive read ones about building car and cake classes but i tend to learn better from actually follow a tutorial and building something though it and i done know jack about building cars lol. [/snip] There is a reason for class "tutori

Re: [PHP] php classes

2003-10-06 Thread daniel
pear dude, check it out .. > Anybody know of any real world php class tutorials?, so far ive read > ones about building car and cake classes but i tend to learn better > from actually follow a tutorial and building something though it and i > done know jack about building cars lol. > > -- > PHP Ge

[PHP] php classes

2003-10-06 Thread Cameron Metzke
Anybody know of any real world php class tutorials?, so far ive read ones about building car and cake classes but i tend to learn better from actually follow a tutorial and building something though it and i done know jack about building cars lol. -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] Wrapping code inside [code]xxx[/code] tags.

2003-10-06 Thread Jay Blanchard
[snip] I have on my site a part where users' can submit articles and no doubt their articles will contain code. Code is wrapped inside of [code] tags, i.e. [code][/code] [/snip] A simple way would be to replace the [code] tags with tags for display. Also Evolt.org does a nifty thing with code in

RE: [PHP] How to upload files

2003-10-06 Thread Jay Blanchard
[snip] I'm looking for a method to enable my users to upload thier html files and embedded pictures to my server. I think it should be something very easy, but as I'm doing it for the first time, I thought it would be better to seek help from the experienced one. So any idea, how can I do it easly

Re: [PHP] Newbie

2003-10-06 Thread Burhan Khalid
Wang Feng wrote: To find out if IIS is running, you can follow the following steps : Start --> Run --> services.msc [enter] This will pull up a list of services running on your system, where you can check the status of Apache and IIS. Where did you *learn* the services.msc command? How and where

Re: [PHP] .htaccess - Still asking for login information although already sent through address bar

2003-10-06 Thread Nathan Taylor
Does it continuously ask or just twice? I've found a weird issue with .htaccess where if the domain name is a mask for a subdomain host and you try to access an .htaccess protected page it will prompt you for the password, redirect you to the subdomain and then prompt you again. Nathan

Re: [PHP] .htaccess - Still asking for login information although already sent through address bar

2003-10-06 Thread Mika Tuupola
On Mon, 6 Oct 2003, PHP Webmaster wrote: > Iv'e got a .htaccess file protecting a site using HTTPS. I have tried using > a form to send the login details to the site through the address bar > (http://user:[EMAIL PROTECTED]) but the .htaccess password protection box That does not look like

Re: [PHP] Re: php5 and possible oop features/questions

2003-10-06 Thread Eugene Lee
On Mon, Oct 06, 2003 at 12:36:49PM +0200, Tit Black Petric wrote: : : Not really what i was getting at dude, i dont see how defining a class : variable will let me define a method outside of a given class, or to : dynamically extend/implement other classes inside a general one? Why the desire to

[PHP] Re: php5 and possible oop features/questions

2003-10-06 Thread Tit \"Black\" Petric
Not really what i was getting at dude, i dont see how defining a class variable will let me define a method outside of a given class, or to dynamically extend/implement other classes inside a general one? try again ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

Re[4]: [PHP] OO parent/child relationship

2003-10-06 Thread Tom Rogers
Hi, Monday, October 6, 2003, 2:10:46 PM, you wrote: RC> On Sun, 2003-10-05 at 23:37, Tom Rogers wrote: >> Hi, >> >> Well I must have missed that one :) >> My answer, if GLOBALS were not meant to be used they wouldn't be there.. >> So if they make life easier go ahead and use them. I notice a lot

Re: [PHP] Newbie

2003-10-06 Thread Burhan Khalid
John Hicks wrote: Hi list, I have just installed PHP4.3.3-Win32. I have a book that said create a phpinfo.php ( ) file and place it in my Apache 2 htdocs file. I did this and when I run it opens in a blank page of DreamweaverMX. I tried to "open with" Internet Explorer and it does nothing. First

[PHP] [O|T] XML/XHTML

2003-10-06 Thread Becoming Digital
A friend asked me to recommend a good XML/XHTML reference or guide. I was able to point him to a number of websites, but he said that he would prefer a book. Sadly, I don't know of any, so I'm hoping some of you can offer up your favourites. Thanks a lot, and sorry for the OT. Edward Dudlik

[PHP] Re: .htaccess - Still asking for login information although already sent through address bar

2003-10-06 Thread PHP Webmaster
"Php Webmaster" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > Iv'e got a .htaccess file protecting a site using HTTPS. I have tried using > a form to send the login details to the site through the address bar > (http://user:[EMAIL PROTECTED]) but the .htaccess password

Re: [PHP] Wrapping code inside [code]xxx[/code] tags.

2003-10-06 Thread Burhan Khalid
PHP Webmaster wrote: Hi all, I have on my site a part where users' can submit articles and no doubt their articles will contain code. Code is wrapped inside of [code] tags, i.e. [code][/code] You can use any number of the bbcode parsing classes available to take care of this. http://www.phpclas

[PHP] .htaccess - Still asking for login information although already sent through address bar

2003-10-06 Thread PHP Webmaster
Hi all, Iv'e got a .htaccess file protecting a site using HTTPS. I have tried using a form to send the login details to the site through the address bar (http://user:[EMAIL PROTECTED]) but the .htaccess password protection box still appears asking for the username and password! The only thing I c

  1   2   >