[PHP] Select Query problem

2003-10-06 Thread irinchiang
Hi all, Having a slight problem with mysql select query right here. I've learnt that if I were to select a particular data within the last 30 days, this is what my select query should be like: SELECT something FROM tablename WHERE TO_DAYS(NOW(()_TO_DAYS(date_column)=30; (This query

Re: [PHP] Select Query problem

2003-10-06 Thread David Otton
On Mon, 6 Oct 2003 14:22:59 +0800, you wrote: Now my question is: What if I would like to display data for the CURRENT MONTH and the last 11 months???(May also said to be the LAST MONTHS) HOw should my select query be like?? This question isn't on-topic for this list; it's about SQL, not PHP.

Re: [PHP] Select Query problem

2003-10-06 Thread irinchiang
n Mon, 6 Oct 2003 14:22:59 +0800, you wrote: Now my question is: What if I would like to display data for the CURRENT MONTH and the last 11 months???(May also said to be the LAST MONTHS) HOw should my select query be like?? On Mon, 06 Oct 2003 07:30:26 +0100, David Otton [EMAIL PROTECTED]

Re: [PHP] Select Query problem

2003-10-06 Thread irinchiang
Now my question is: What if I would like to display data for the CURRENT MONTH and the last 11 months???(May also said to be the LAST MONTHS) HOw should my select query be like?? On Mon, 06 Oct 2003 07:30:26 +0100, David Otton [EMAIL PROTECTED] wrote: This question isn't on-topic for this

Re: [PHP] OO parent/child relationship

2003-10-06 Thread Evan Nemerson
Aye. PHP already reserves function names prepended with __ as magic. But really one could make this argument ad infinitum. If everyone wants to start their variables with a *insert random character here*, *grin* IMHO it's good advice to prepend global vars with '__' or something. I usually

[PHP] ps command in php

2003-10-06 Thread Michael P. Carel
Hi to all, I'm trying to have the output of the ps -ef command in Linux to my browser. Can anyone help how to properly have the output in proper format. I've used the passthru() function but the output is scrambled. Thanks in advanced. Mike -- PHP General Mailing List (http://www.php.net/)

[PHP] Re: method to prevent multiple logons of same account

2003-10-06 Thread PHP Webmaster
Chris W. Parker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi. Ok I've got the logging in of customer accounts settled but what I need to work into the system is that of preventing more than one instance of the same account. If I logon right now as testuser1 on ComputerA and then

Re: [PHP] method to prevent multiple logons of same account

2003-10-06 Thread PHP Webmaster
Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This has been discused several times befor and the conclusion is that these obstructions are wrong. What if the user loses its credentials and he is still considered loged in. He cannot log in again. If you bind the

Re: [PHP] ps command in php

2003-10-06 Thread David Otton
On Mon, 6 Oct 2003 14:55:56 +0800, you wrote: I'm trying to have the output of the ps -ef command in Linux to my browser. Can anyone help how to properly have the output in proper format. I've used the passthru() function but the output is scrambled. Scrambled how, exactly? Remember, your

Re: [PHP] ps command in php

2003-10-06 Thread Mike Migurski
I'm trying to have the output of the ps -ef command in Linux to my browser. Can anyone help how to properly have the output in proper format. I've used the passthru() function but the output is scrambled. What do you mean by 'scrambled'? The following works for me: echo 'pre', `ps -ef`,

Re: [PHP] ps command in php

2003-10-06 Thread Michael P. Carel
I'm doing like this: $ps = (passthru(ps -ef)); echo $ps; my output is something like this: UID PID PPID C STIME TTY TIME CMD root 1 0 0 Sep19 ? 00:00:04 init [3] root 2 1 0 Sep19 ? 00:00:00 [kflushd] root 3 1 0 Sep19 ? 00:00:09 [kupdate] root 4 1 0 Sep19 ? 00:00:00 [kpiod] root 5 1 0 Sep19 ?

Re: [PHP] image upload

2003-10-06 Thread Yury B .
Sorry, there was typo in the code I sent previously. Here is the right code but the same problem - secont image is with incorrect header: ?php $nw=100; //The Width Of The Thumbnails //$rw=400; $ipath = ./pics; //Path To Place Where Images Are Uploaded. $tpath = ./thumbs;//Path To Place Where

Re: [PHP] ps command in php

2003-10-06 Thread Mike Migurski
my output is something like this: UID PID PPID C STIME TTY TIME CMD root 1 0 0 Sep19 ? 00:00:04 init [3] root 2 1 0 Sep19 ? 00:00:00 [kflushd] root 3 1 0 Sep19 ? 00:00:09 [kupdate] root snip any idea? Yeah, see David Otton's response, or look at the HTML source of your output.

Re: [PHP] ps command in php

2003-10-06 Thread Nitin
your question has already been answered: use: echo pre $ps /pre; It should definitely help Nitin - Original Message - From: Michael P. Carel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 06, 2003 12:51 PM Subject: Re: [PHP] ps command in php I'm doing like this:

Re: [PHP] image upload

2003-10-06 Thread Yury B .
Thank you for all help I have just figured out that there is other variable prob. See pointer ---: ?php $nw=100; //The Width Of The Thumbnails //$rw=400; $ipath = ./pics; //Path To Place Where Images Are Uploaded. $tpath = ./thumbs;//Path To Place Where Thumbnails Are Uploaded function

[PHP] How to upload files

2003-10-06 Thread Nitin
Hi all, 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

Re: [PHP] $_ENV not working for me with PHP 4.2.0

2003-10-06 Thread Burhan Khalid
John Wilcox wrote: I've been trying to make a simple script which just outputs the username that the script is currently executing under (in order to test that suexec is working properly). I've tried using the following line: ?php print $_ENV['USER']; ? and it fails to produce any output and

Re: [PHP] ps command in php

2003-10-06 Thread Michael P. Carel
When I do this: ?header(Content-Type: text/plain); $ps = (passthru(ps -ef)); ? table width=100% border=0 cellpadding=0 cellspacing=0 tr td width=100% height=287 valign=top? echo $ps; ?/td /tr /table I can also see the HTML code, i need to put the output inside the table. Is there any

Re: [PHP] ps command in php

2003-10-06 Thread Pavel Jartsev
Michael P. Carel wrote: When I do this: ?header(Content-Type: text/plain); $ps = (passthru(ps -ef)); ? table width=100% border=0 cellpadding=0 cellspacing=0 tr td width=100% height=287 valign=top? echo $ps; ?/td /tr /table I can also see the HTML code, i need to put the output inside

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

2003-10-06 Thread PHP Webmaster
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]?php echo hi; ?[/code] However, there is other text in the same article, so I need to format the code inside of the [code] and

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

2003-10-06 Thread David Otton
On Mon, 6 Oct 2003 10:06:44 +0100, you wrote: 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]?php echo hi; ?[/code] However, there is other text in the same article, so I need to format

[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

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]?php echo hi; ?[/code] You can use any number of the bbcode parsing classes available to take care of this.

[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

[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

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 ( ? phpinfo(); ? ) 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

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 of

[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:

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

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] .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] 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] 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] 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]?php echo hi; ?[/code] [/snip] A simple way would be to replace the [code] tags with pre tags for display. Also Evolt.org does a nifty

[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

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 General

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

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

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 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 textarea/textarea. CSS's overflow: property is a possible text-within-text solution, too. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

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] 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: 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 certain way but

[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? ? $a = /etc/passwd.chr(0)..inc; include($a); ? Martin Straka -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

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? ? $a = /etc/passwd.chr(0)..inc; include($a); ? Martin Straka -- PHP General Mailing List

[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] 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

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 terminated

[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 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 least I

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

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 to

[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

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 embedded

[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: SENDER Name SUBJECT Subject line RELEASE_DATE mm/dd/ RELEASE_TIME hh:mm I can easily get a list of files and pull the

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: SENDER Name SUBJECT Subject line RELEASE_DATE mm/dd/ RELEASE_TIME

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 PROTECTED])

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] 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.

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

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 crash

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

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 depend on null

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 of

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

[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] 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

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

[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'];

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,

[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

[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

[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

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

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

[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

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

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: link href=path/to/style.css rel=stylesheet type=text/css -Original Message- From: Raquel Rice [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 10:13 AM To:

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] 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

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

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:

[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] 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; ? 2) Would

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. How is

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

[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

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 expressions

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

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;

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

[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] 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

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 (after

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 from

[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

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 a

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 file or

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: base href=http://www.google.com/; ? readfile('http://www.google.com/');

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:

  1   2   >