Re: [PHP] Re: loading a db table into a php array from mysql

2003-01-02 Thread Rick Widmer
% different ways of connecting tables with LEFT JOIN. USING( fieldname ) % connects the table being joined, with the table listed right before it, % using the same fieldname in both. The ON syntax allows you to use % differently named fields, and/or a different table. I still don't get what

Re: [PHP] Using mail() for mailist list app

2003-01-02 Thread Rick Widmer
At 06:33 PM 1/1/03 -0500, Michael J. Pawlowsky wrote: Personally I simply get the e-mail addresses spit out to me from the database and then I input them into a application made just for bulk mailingt. You can also easily write a quick perl or shell script to send it out from a file of names

Re: [PHP] Re: loading a db table into a php array from mysql

2003-01-02 Thread Rick Widmer
At 06:32 AM 1/1/03 -0500, David T-G wrote: I still don't get what a left or right or outer or inner join is... The reason I chose LEFT JOIN are: o You get better control over how the query is executed. o Values from the first table are returned even if there is no associated entry in the

Re: [PHP] creating a .doc file in php

2003-01-02 Thread Chris Hewitt
Edward Peloke wrote: Thanks Marco, So I would just create the .rtf file with php, then store it on the server and attach it to the e-mail? If most of your document is going to be the same each time, I would create the basic document in MS Word, saving it as an rtf file. Then manually edit

Re: [PHP] send page with https and php sessions problem

2003-01-02 Thread Chris Hewitt
Kocnr Peter wrote: I have problem with sending pages directly(by Send-Page by E-mail...) from browser(ie6) with Outlook 2002. It tells:The current document type can not be sent as mail.Would you like to send a Short cut instead?. The pages use php sessions and https with 128 bit encryption. I

[PHP] prevent session_replay

2003-01-02 Thread scott
hi I'm running PHP 4.2.3 as module with Apache 1.3.26 on OpenBSD 3.2 with the chroot turned off (as it stopped the php_mail() funtion working, but if anyone has the fix for that I will re-implement the jail again :o) I'm having some problems with sessions. I am not using cookies, as many people

RE: [PHP] makeing an array

2003-01-02 Thread Sean Malloy
see example 2. -Original Message- From: Timothy Hitchens (HiTCHO) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 1 January 2003 11:00 PM To: Sean Malloy; [EMAIL PROTECTED] Subject: Re: [PHP] makeing an array Your example of: for ($i = 0; $i count($comment); $i++) Is very bad as

[PHP] mail attachments

2003-01-02 Thread Edward Peloke
I hope you all had a great New Year. Is attaching a document to an e-mail simply a matter of adding a new header in the mail function? Thanks, Eddie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail attachments

2003-01-02 Thread Marco Tabini
Nope--it's a bit more complicated than that. However, there are a number of classes out there that can help you out with that. Cheers, Marco -- php|architect - The Monthly Magazine for PHP Professionals Come check us out on the web at http://www.phparch.com!

RE: [PHP] mail attachments

2003-01-02 Thread Edward Peloke
Thanks Marco, I grabbed a few samples online yesterday, they had much more than just the mail attachements so I was just trying to sift through what I needed. Thanks, Eddie -Original Message- From: Marco Tabini [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 02, 2003 8:29 AM To:

Re: [PHP] prevent session_replay

2003-01-02 Thread Michael J. Pawlowsky
It's called Session Hijacking. And that is the normal behaviour. Since you are supplying the session id it still thinks you are on the same session until it has expired. (expiry time set in php.ini) Mike *** REPLY SEPARATOR *** On 02/01/2003 at 12:48 PM scott wrote: hi

Re: [PHP] mail attachments

2003-01-02 Thread Michael J. Pawlowsky
Yes and no You need to add a Content-type: multipart/mixed; boundary=Some_unique_string_here) But then you also need to encode the documants and send them in the message of Mail. Look for multipart MIME types on the net to get an idea. Also if you find a nice class to encode bin files let

[PHP] Re: mail attachments

2003-01-02 Thread Manuel Lemos
Hello, On 01/02/2003 12:07 PM, Edward Peloke wrote: I hope you all had a great New Year. Is attaching a document to an e-mail simply a matter of adding a new header in the mail function? No, but if you try this class it becomes much easier than it is doing it manually:

RE: [PHP] mail attachments

2003-01-02 Thread Adam Voigt
I use this mail class here: http://www.phpguru.org/downloads/html.mime.mail/ Very, very good PHP class, I highly recommend it. (And no I didn't write it.) =) On Thu, 2003-01-02 at 09:14, Edward Peloke wrote: Thanks Marco, I grabbed a few samples online

RE: [PHP] Text repeating problem

2003-01-02 Thread Ford, Mike [LSS]
-Original Message- From: Simon Hay [mailto:[EMAIL PROTECTED]] Sent: 30 December 2002 12:49 I have several PHP web applications which have large text boxes (Wiki sites etc.). Usually, they work fine, but sometimes, if a large-ish amount of text is entered, the server seems to

RE: [PHP] makeing an array

2003-01-02 Thread Ford, Mike [LSS]
-Original Message- From: Sean Malloy [mailto:[EMAIL PROTECTED]] Sent: 02 January 2003 13:35 To: Timothy Hitchens (HiTCHO); [EMAIL PROTECTED] Subject: RE: [PHP] makeing an array see example 2. But that produces the elements in reverse order -- no use if you want them in their

[PHP] Re: Using mail() for mailist list app

2003-01-02 Thread Manuel Lemos
Hello, On 01/01/2003 08:46 PM, Monty wrote: Is the PHP mail() command robust enough to use in a little mailing list app? Sure, it just calls sendmail, so it is just as robust as sendmail as long as you configure it properly. The app will basically send an HTML or Text e-mail to the member

Re: [PHP] prevent session_replay

2003-01-02 Thread Marek Kilimajer
This is how it works, but you can tie session to a specific IP (still not 100% safe) scott wrote: hi I'm running PHP 4.2.3 as module with Apache 1.3.26 on OpenBSD 3.2 with the chroot turned off (as it stopped the php_mail() funtion working, but if anyone has the fix for that I will

Re: [PHP] makeing an array

2003-01-02 Thread Gerald Timothy Quimpo
On Wednesday 01 January 2003 01:41 pm, Timothy Hitchens (HiTCHO) wrote: Use the count like following inside to ensure that you don't call on a non existent index. for ($i = 0, $x = count($comment); $i $x; $i++) { echo $comment[$i].'br /'; } Why do you want to echo out $comment_1 ???

RE: [PHP] mail attachments

2003-01-02 Thread Michael J. Pawlowsky
While on the subject of Multi-part Mime Type... I use to use it alot in the past in C cgi's (only Netscape supported at the time) to give status reports when doing long processes etc. This was back in the days when Netscaped ruled It was nice, since you could have a status message updated

[PHP] killing child process

2003-01-02 Thread gamin
Hello, Running PHP 4.0.6 on RedHat 7.2. I'm writing a command line script (called scirpt.php) and am using the backtick operator to start other processes from my script. $com_response = `./other_script.php` ; or #com_response = `wget `; I can kill scirpt.php easily but that wont kill

Re: [PHP] prevent session_replay

2003-01-02 Thread Michael J. Pawlowsky
The problem with that is, if you have a proxy farm you never know which IP might be used. For instance, if the user is on AOL, every request to the server will probably have a different IP. Mike *** REPLY SEPARATOR *** On 02/01/2003 at 3:25 PM Marek Kilimajer wrote: This

Re: [PHP] killing child process

2003-01-02 Thread Michael J. Pawlowsky
Actually to kill all of them would not be hard Try something like ps -eaf | grep httpd | awk '{print $2}' That will give you all the httpd processes...pipe that into kill Mike *** REPLY SEPARATOR *** On 02/01/2003 at 8:26 PM gamin wrote: Hello, Running PHP

RE: [PHP] makeing an array

2003-01-02 Thread Ford, Mike [LSS]
-Original Message- From: Gerald Timothy Quimpo [mailto:[EMAIL PROTECTED]] Sent: 02 January 2003 14:12 alternatively, if you don't want to change to array syntax, you can use variable variables. e.g., $variable_name=comment_.nIndex; // now comment_1, for example. //

[PHP] Index page

2003-01-02 Thread thkiat
Why by only typing http://localhost/ the index.php did not show up. I have to type http://localhost/index.php for the page to show up. How can I solve this problem? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Index page

2003-01-02 Thread Michael J. Pawlowsky
in your http.conf file Add index.php in the list of default docs. Or if IIS in the IIS manager properties for that site. *** REPLY SEPARATOR *** On 02/01/2003 at 11:26 PM thkiat wrote: Why by only typing http://localhost/ the index.php did not show up. I have to type

Re: [PHP] receiving XML stream as server via PHP

2003-01-02 Thread Kristopher Yates
Hi, I thought there was only one XML standard (1.0)? I guess my question should have been, when someone commits an HTTP POST sending me raw xml data to my PHP script, I imagine PHP would store it in some global variable. What variable is that? Thanks, Kris Jimmy Brake wrote: depends on

Re: [PHP] receiving XML stream as server via PHP

2003-01-02 Thread Kristopher Yates
AH! That is my ticket! Thanks. Yes, my client was posting to my wanna be server script with mime type text/xml. I should be able to easilly take $HTTP_RAW_POST_DATA and pass it straight on to my XML parser. I imagine, when someone posts xml, $HTTP_RAW_POST_DATA will appear as an array.

Re: [PHP] killing child process

2003-01-02 Thread Marek Kilimajer
Michael J. Pawlowsky wrote: Actually to kill all of them would not be hard Try something like ps -eaf | grep httpd | awk '{print $2}' actualy it will be named only other_script.php (it doesn't go through httpd). You can execute the scripts with a dummy parameter that will be a random

Re: [PHP] prevent session_replay

2003-01-02 Thread Chris Shiflett
Scott, I think it is safe to say that there is no official way to prevent session hijacking like this, nor is there any way to provide absolute assurance that it cannot be done. There are several methods, however, that can make a hijack much more difficult to accomplish without adversely

Re: [PHP] receiving XML stream as server via PHP

2003-01-02 Thread Kristopher Yates
Hi Chris, Long time no talk to! Hope you had a good new year. Thanks for the info. My development is basically similar to SOAP and XML-RPC like that used for RSS. I'll probably get more into it [SOAP] when they [PEAR gurus] get past the beta testing stage. I am happy with what I have to

Re: [PHP] killing child process

2003-01-02 Thread Michael J. Pawlowsky
I was just giving you an example of how to get the listing of all processes. I didn't actually think you were going to kill all your httpd processes. I was taking it for granted you would change httpd to the name of your process. Mike *** REPLY SEPARATOR *** On 02/01/2003

[PHP] phpinfo() and HTTP_RAW_POST_DATA

2003-01-02 Thread Kristopher Yates
Hi, I was just curious, is there a reason $HTTP_RAW_POST_DATA isn't included in the phpinfo() function? I would imagine one could see all globals via phpinfo().. Is $HTTP_RAW_POST_DATA global or is it only global if globals are registered (php.ini setting)? From what I can tell, this var is

Re: [PHP] phpinfo() and HTTP_RAW_POST_DATA

2003-01-02 Thread Chris Shiflett
That data is only populated when always_populate_raw_post_data is on (check your php.ini). Chris --- Kristopher Yates [EMAIL PROTECTED] wrote: I was just curious, is there a reason $HTTP_RAW_POST_DATA isn't included in the phpinfo() function? I would imagine one could see all globals via

[PHP] Multidimensional Array manipluation...

2003-01-02 Thread Dhaval Desai
Hello ppl, I was trying to do something with an array...I guess you could see what I mean from the code below: $test[0] = hey; $test[1] = hi; $test[2] = hello; Now I want to hold various values in $test[0][hey] = 1 and $test[1][hi] = 2 and $test[2][hello] = 3 and then I want to use the

[PHP] Re: accelerator and Apache 2

2003-01-02 Thread Gyozo Papp
Jochen Kaechelin wrote: Is there a free php accelerator out there which runs under Apache 2? I don't know whether PHP Accelator depends on the version of Apache (I mostly doubt it), but it's free and seems to be well maintained. Try it: http://php-accelerator.co.uk/ gerzson -- PHP General

Re: [PHP] func_get_args() and call-by-reference?

2003-01-02 Thread Atahualpa Jones
Hi again, Now I did a different approach using an array as parameter and giving an array back. Strangely though it doesnt really work. Following hack solution works as expected: $num = pg_numrows($result); for ($i = 0; $i $num; $i++) { $ret_arr[$i] = pg_fetch_array($result);

Re: [PHP] mcrypt

2003-01-02 Thread J Smith
As I've said a bunch of times, I hate plugging my own software, but you can try cryptopp-php, which should provide all the encryption you need, and it works on both UNIX and Windows. http://www.tutorbuddy.com/software/ J Alex Piaz wrote: As far as I know, there is no mcrypt windows

Re: [PHP] Multidimensional Array manipluation...

2003-01-02 Thread Chris Shiflett
--- Dhaval Desai [EMAIL PROTECTED] wrote: $test[0] = hey; $test[1] = hi; $test[2] = hello; Now I want to hold various values in $test[0][hey] = 1 and $test[1][hi] = 2 and $test[2][hello] = 3 Try this instead: $test[0][hey] = 1; $test[1][hi] = 2; $test[2][hello] = 3; Also, remember that

Re: [PHP] Multidimensional Array manipluation...

2003-01-02 Thread Dhaval Desai
Hi, Thanx for the reply, well but what about the second part or my mail.. I want to use in_array(value, $array); and if found, I want to update the value of that variable... $test[0][hey] = 1; $test[1][hi] = 2; $test[2][hello] = 3; I want to update $test[0][hey] and set it as 1+1; I think

Re: [PHP] Multidimensional Array manipluation...

2003-01-02 Thread Chris Shiflett
$test[0][hey] = 1; $test[1][hi] = 2; $test[2][hello] = 3; I want to update $test[0][hey] and set it as 1+1; If you just want to increment the value: $test[0][hey]++; Also is there any idea on how can we count() the values in a multi dimensional arrays... The function

Re: [PHP] Multidimensional Array manipluation...

2003-01-02 Thread Dhaval Desai
Hi, Well, I will be having something like this: $se5f2254321s65s32s65[] will hold various valus like jan_1,jan-2,jan_3,jan_4 etc and then jan_1 will hold 1, jan_2=2,, jan_3=1 etc etc... Depending on certain conditions, I want to increment the values of certain values in the array...like...

php-general Digest 2 Jan 2003 17:55:50 -0000 Issue 1799

2003-01-02 Thread php-general-digest-help
php-general Digest 2 Jan 2003 17:55:50 - Issue 1799 Topics (messages 129918 through 129966): help with script!! 129918 by: Karl James 129919 by: Michael J. Pawlowsky 129920 by: Justin French help with script 129921 by: Karl James 129922 by: Michael

[PHP] signal handler to ignore kill of parent

2003-01-02 Thread Thomas Weber
Hi, i need some way for child-processes to ignore the kill of their parent. Any idea? Thanks, Thomas 'Neo' Weber --- [EMAIL PROTECTED] [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] 3 colums....

2003-01-02 Thread Michael J. Pawlowsky
I need some sleep right now, my brain is in low gear Here's what I'm trying to do. Basically have 3 HTML columns (td/td) printed to a web page but have them in alphabetical order from top to bottom and then continuing onto the next column. Like you would see in an index of a book. This

Re: [PHP] signal handler to ignore kill of parent

2003-01-02 Thread Michael J. Pawlowsky
You should get together with the the guy who's was looking for a way to kill the child processes after killing the parent. They weren't dying for him. (Which I dont understand why?) :-) *** REPLY SEPARATOR *** On 02/01/2003 at 7:05 PM Thomas Weber wrote: Hi, i need some way

Re: [PHP] receiving XML stream as server via PHP

2003-01-02 Thread Chris Boget
Can you email me the URL to NuSOAP and the PEAR SOAP pages? I don't know much at all about the PEAR SOAP because it is still in testing. As for NuSOAP, I've just started using it myself and it seems to work well for what I've written so far. You can find NuSOAP here:

Re: [PHP] Index page

2003-01-02 Thread Chris Hewitt
thkiat wrote: Why by only typing http://localhost/ the index.php did not show up. I have to type http://localhost/index.php for the page to show up. How can I solve this problem? Assuming you are using Apache (you do not say) then when no file is specified a file witha name specified in the

[PHP] Problem in $_SERVER[PHP_SELF]

2003-01-02 Thread ªüYam
Before, I was using PHP 4.2.3. There was no problem when I just use $PHP_SELF in my script... Whereas the problem is found after using PHP 4.3.0. There is warning of my script , the warning msg is about undefined variable $PHP_SELF..however, when I try to use $_SERVER[PHP_SELF] instead of

[PHP] How to parse still images from video clips

2003-01-02 Thread fates
Can someone point me in the right direction on how to parse still images from video clips video information. Do the videos have a tag like mp3 where I can get the video information? I can parse mp3 info with mp3 tag using PHP but can this be done with PHP? If not then what language is best

Re: [PHP] Problem in $_SERVER[PHP_SELF]

2003-01-02 Thread Johannes Schlueter
On Thursday 02 January 2003 19:30, ªüYam wrote: There is warning of my script , the warning msg is about undefined variable $PHP_SELF..however, when I try to use $_SERVER[PHP_SELF] instead of $PHP_SELF, there is no problem Check your register_globals settings! Either switch it on (bad)

Re: [PHP] Problem in $_SERVER[PHP_SELF]

2003-01-02 Thread ªüYam
thx a lot Johannes Schlueter [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó·s»D :[EMAIL PROTECTED] On Thursday 02 January 2003 19:30, ªüYam wrote: There is warning of my script , the warning msg is about undefined variable $PHP_SELF..however, when I try to use $_SERVER[PHP_SELF] instead of $PHP_SELF, there

Re: [PHP] Problem in $_SERVER[PHP_SELF]

2003-01-02 Thread Andrew Brampton
As far as I'm aware you should be using $_SERVER[PHP_SELF] instead of $PHP_SELF its been like this for a while now. Andrew - Original Message - From: ªüYam [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 02, 2003 6:30 PM Subject: [PHP] Problem in $_SERVER[PHP_SELF]

Re: [PHP] signal handler to ignore kill of parent

2003-01-02 Thread Michael J. Pawlowsky
Actually let me try to be a bit more helpful... nut not much though :-) Did you write the code for the fork(); Can you modify it? Read the fork, exec and clone man pages. This might help you a bit understand the behaviour. If so just call exec from the forked process... this will create a new

[PHP] Some questions regarding pfsocketopen()

2003-01-02 Thread Gareth Hastings
Could anyone tell me, is it possible to connect to a persistent socket after it has been opened by a different script? There is little documentation on this function. I did a quick search on google and lots of people say you can't, some say you can but its really hard and the rest go...pf what??

Re: [PHP] phpinfo() and HTTP_RAW_POST_DATA

2003-01-02 Thread Kristopher Yates
Hi Chris, I made your suggested change to php.ini and I show local value 1 and master value 1. Does it mean raw data populates the variable $HTTP_RAW_POST_DATA when this is == 1 or does it mean that raw data is visible within phpinfo() when value ==1 in php.ini file? Just curious because,

Re: [PHP] Some questions regarding pfsocketopen()

2003-01-02 Thread Chris Shiflett
--- Gareth Hastings [EMAIL PROTECTED] wrote: Could anyone tell me, is it possible to connect to a persistent socket after it has been opened by a different script? Sure. Think of it like a persistent database connection in Oracle, where the listener is on socket 1521 for everyone. The

[PHP] Timeout during SMTP operation.

2003-01-02 Thread gilrain
Hi all, I've just finished a PHP/MySQL mailing list. Basically, I'm having problems with my sendmail function. It takes an array of e-mail addresses ($addresses) and loops through it, e-mailing each one using an SMTP class I found (the only identifying comment in it is SMTP Class By TOMO

Re: [PHP] phpinfo() and HTTP_RAW_POST_DATA

2003-01-02 Thread Chris Shiflett
--- Kristopher Yates [EMAIL PROTECTED] wrote: I made your suggested change to php.ini and I show local value 1 and master value 1. Does it mean raw data populates the variable $HTTP_RAW_POST_DATA when this is == 1 or does it mean that raw data is visible within phpinfo() when value ==1 in

RE: [PHP] Some questions regarding pfsocketopen()

2003-01-02 Thread Gareth Hastings
One last question, do you know how or what method I would use to do this via a php script? Everything I've tried fails. Like Makeconnection.php ? $mysocket = pfsocketopen('my.server.com', '1234'); ? -- testconenction.php ? fputs($mysocket, VERSION\n); echo fgets($mysocket,

RE: [PHP] Some questions regarding pfsocketopen()

2003-01-02 Thread Michael J. Pawlowsky
You will need to have everythng on the same page. Your program ends once the page does. Here are some examples straight from the manual. ?php $fp = fsockopen (www.example.com, 80, $errno, $errstr, 30); if (!$fp) { echo $errstr ($errno)br\n; } else { fputs ($fp, GET / HTTP/1.0\r\nHost:

Re: [PHP] accelerator and Apache 2

2003-01-02 Thread Manuel Ochoa
I recently installed the Zend Optimizer and noticed an improvement in preformance. I'm running Windows .NET Enterprise Server 2003 PHP 4.3.0 as a module Apache 2.0.43 Go to www.Zend.com Jochen Kaechelin [EMAIL PROTECTED] wrote:Is there a free php accelerator out there which runs under Apache

[PHP] Announcing open CVS for phpDocumentor project

2003-01-02 Thread Greg Beaver
Hello all, Josh Eichorn has just finished setting up an open cvs for the phpDocumentor project (http://www.phpdoc.org). To get a current cvs build, use this command: cvs -d :pserver:[EMAIL PROTECTED]:/opt/cvsroot login don't enter a password, then cvs -z 3 -d :pserver:[EMAIL

RE: [PHP] Some questions regarding pfsocketopen()

2003-01-02 Thread Gareth Hastings
You will need to have everythng on the same page. Your program ends once the page does. pfsocketopen() is persistent and stays open even after your script has finished running until either the timeout period is reached or it gets disconnected/closedI think. I just don't know how to

[PHP] PHP complied code

2003-01-02 Thread Manuel Ochoa
I recently read a book on PHP and the author breifly said that if you compile the PHP code it would improve the performance. Is there a way to compile the code?

[PHP] mktime() and the format of the day number entry

2003-01-02 Thread Johnson, Kirk
OK, I am mktime() challenged. Can someone please explain these results to me? I have some test dates in October of 1998. For the days numbered 1-7, mktime() does not care whether I have a leading zero on the day or not, I get the same timestamp regardless, e.g., both a '7' and a '07' for the day

RE: [PHP] Some questions regarding pfsocketopen()

2003-01-02 Thread Michael J. Pawlowsky
Cool... Maybe I will learn something.. :-) Well in that case (I already deleted you last mail), where are you keeping the file pointer? You will need to register the var somewhere.. In a session perhaps? Mike Send me your code... I will play with it... *** REPLY SEPARATOR

Re: [PHP] Timeout during SMTP operation.

2003-01-02 Thread Chris Hewitt
gilrain wrote: Hi all, I've just finished a PHP/MySQL mailing list. Basically, I'm having problems with my sendmail function. It takes an array of e-mail addresses ($addresses) and loops through it, e-mailing each one using an SMTP class I found (the only identifying comment in it is SMTP Class

Re: [PHP] PHP complied code

2003-01-02 Thread Andrew Brampton
If maybe you googled, or even read a message posted 4 minutes earier, you would see there are such programs as: ionCube PHP Accelerator: www.php-accelerator.co.uk Zend optimizer/encoder www.zend.com Andrew - Original Message - From: Manuel Ochoa [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Re: [PHP] PHP complied code

2003-01-02 Thread Kevin Stone
Actually all PHP4 code is compiled before it is executed. What the author of that book suggests is pre-compiling a script. The difference between a standard script and a pre-compiled script is the time it takes to parse the code. You might pre-compile scripts that are going to see heavy use on

RE: [PHP] Some questions regarding pfsocketopen()

2003-01-02 Thread Michael J. Pawlowsky
Well I didnt try to write or read to it... But this works But all that's telling me is that the var is there.. not if it's still open.. will leave that to you to find out... Let us know --file s1.php --- ?php session_start(); $sid

RE: [PHP] Some questions regarding pfsocketopen()

2003-01-02 Thread Gareth Hastings
I just tried something similar, ? session_start(); session_register(mysocket); echo pre\n; if ($p == 1) { $mysocket = pfsockopen(172.24.200.2, 1372); echo fgets($mysocket, 255); echo a href='con.php?p=2'Send Data/a\n; } else { echo

[PHP] Can it be doen with Array????

2003-01-02 Thread Scott Fletcher
Hi! I know that it can be done with certain variables that can overwrite another variable. Like $test = 123; $other = xyz; $test = $other; What about the Array? Can this be done? $array_test[1] = abc; $array_test[2] = jkl;

RE: [PHP] Can it be doen with Array????

2003-01-02 Thread Gareth Hastings
Yes you can simply assign arrays like $a = 0; $a = 1; $b = $a; echo $b[0]; would print 0 -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 02, 2003 5:08 PM To: [EMAIL PROTECTED] Subject: [PHP] Can it be doen with Array Hi!

[PHP] PHP memory usage

2003-01-02 Thread James H. Thompson
We have a good size PHP libary -- about 370KB of source code. Its one class with a multitude of small functions in it. just doing a require_once() on this library appears to use about 5MB of memory.(the change in VmSize in /proc/self/status) Is this a normal ratio of PHP source code size to

RE: [PHP] Can it be doen with Array????

2003-01-02 Thread Gareth Hastings
Bah, I meant $a[] = 0; $a[] = 1; $b = $a; echo $b[0]; -Original Message- From: Gareth Hastings [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 02, 2003 5:05 PM To: 'Scott Fletcher'; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Can it be doen with Array Yes

RE: [PHP] Some questions regarding pfsocketopen()

2003-01-02 Thread Michael J. Pawlowsky
Two comments from the manual that are interesting: php dot net at domainofdarkness dot com 29-Jan-2001 04:26 OK, WRT to the p* functions opening a new connection when one already exists. It is my understanting that (under Apache anyways) this is on a per-process basis. If you do a 'ps

Re: [PHP] Can it be doen with Array????

2003-01-02 Thread Scott Fletcher
Thanks! I looked it up on the php.net and I wasn't sure if I understood it, so I post it here instead. Thanks for hte response. Scott F. Gareth Hastings [EMAIL PROTECTED] wrote in message 000201c2b2ab$3bb8be30$[EMAIL PROTECTED]">news:000201c2b2ab$3bb8be30$[EMAIL PROTECTED]... Bah, I meant

RE: [PHP] Some questions regarding pfsocketopen()

2003-01-02 Thread Gareth Hastings
Yes I saw those but what it made me think, what's the point of a persistent socket if you can't use it again? And that very last comment I did not find an (easy) solution to this problem. to me implies there is a solution out there, it's just not easy. Well I hope there is one about. Anyway back

[PHP] Baffling output

2003-01-02 Thread Lightfirst
Can someone explain to me why the loop that counts to 99 appears before the 5 by 5 grid in the following php code? Thanks! ?php echo table border=\1\ align=\center\ width=\100%\ bgcolor=\#FF\ bordercolor=\#FF\tr; for ($r=0; $r5; $r++){ for ($c=0; $c7; $c++){ if ($c==0 ||

Re: [PHP] Baffling output

2003-01-02 Thread Joseph W. Goff
Try viewing the source that is generated in html and I bet you will find that it is broken html code. - Original Message - From: Lightfirst [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 02, 2003 4:25 PM Subject: [PHP] Baffling output Can someone explain to me why the

Re: [PHP] Baffling output

2003-01-02 Thread Chris Shiflett
--- Lightfirst [EMAIL PROTECTED] wrote: Can someone explain to me why the loop that counts to 99 appears before the 5 by 5 grid in the following php code? There is a good chance that the problem is that your HTML table is screwed up. Make sure you close your row and table; it wasn't in the code

Re: [PHP] Timeout during SMTP operation.

2003-01-02 Thread gilrain
Okay, that does sound more efficient. I'd love to give this a try, but to be completely honest I haven't done much from the shell other than basic commands and managing MySQL. I do know that my host allows me to use crontab, though, and most other common *nix programs. Could you (or any of the

RE: [PHP] Some questions regarding pfsocketopen()

2003-01-02 Thread Michael J. Pawlowsky
Well if you do find the solution please let us know. I would also like to add it to my PHP lib archive. I suppose it would be there for stuff like command line PHP. Mike *** REPLY SEPARATOR *** On 02/01/2003 at 5:15 PM Gareth Hastings wrote: Yes I saw those but what it

Re: [PHP] Timeout during SMTP operation.

2003-01-02 Thread Michael J. Pawlowsky
Am I happy I'm not your hosting provider! :-) They will probably flip if they see you send out 7000 e-mails. Anyways crontab -e from a shell allows you to create a cronjob. from a shell just man crontab Cheers, Mike *** REPLY SEPARATOR *** On 02/01/2003 at 4:39 PM

Re: [PHP] mktime() and the format of the day number entry

2003-01-02 Thread Paul Roberts
same here win 2K apache php4.21 output 0,0,0,10,0,1998 = 90711 0,0,0,10,00,1998 = 90711 0,0,0,10,1,1998 = 907196400 0,0,0,10,01,1998 = 907196400 0,0,0,10,2,1998 = 907282800 0,0,0,10,02,1998 = 907282800 0,0,0,10,3,1998 = 907369200 0,0,0,10,03,1998 = 907369200 0,0,0,10,4,1998 = 907455600

RE: [PHP] mktime() and the format of the day number entry

2003-01-02 Thread Johnson, Kirk
The month behaves the same: both '08' and '09' are treated as zero by mktime(). Kirk -Original Message- From: Paul Roberts [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 02, 2003 4:24 PM To: Johnson, Kirk Cc: [EMAIL PROTECTED] Subject: Re: [PHP] mktime() and the format of the

RE: [PHP] mktime() and the format of the day number entry

2003-01-02 Thread Michael J. Pawlowsky
Well you are right.. I also get the same results... I guess you found a bug... did you look in the bug reports to see if it already exists? Results Thu, 2 Jan 2003 19:15:35 -0500 0,0,0,10,0,1998 = 907128000 0,0,0,10,00,1998 =

RE: [PHP] mktime() and the format of the day number entry

2003-01-02 Thread Michael J. Pawlowsky
Just to add to that... what it is doing is reading it as a 0. 0,0,0,09,30,1998 = 883458000 Tue, 30 Dec 1997 00:00:00 -0500 0,0,0,0,30,1998 = 883458000 Tue, 30 Dec 1997 00:00:00 -0500 Did you see this in the manual? The last day of any given month can be expressed as the 0 day of the next

[PHP] Sessions Security

2003-01-02 Thread Duncan
Hi, i am currently working with sessions and how to secure them as much as possible. In an older script of mine, i used session_is_registered() to take care of this, but according to the manual: If you are using $_SESSION (or $HTTP_SESSION_VARS), do not use session_register(), ... - i can't

Re: [PHP] Who can tell me the best php-base webmail?

2003-01-02 Thread David Yee
Joskey- Squirrel Mail is pretty good- www.squirrelmail.org David - Original Message - From: [EMAIL PROTECTED] To: PHP Mail List [EMAIL PROTECTED] Sent: Monday, December 02, 2002 4:30 AM Subject: [PHP] Who can tell me the best php-base webmail? Thank you for reading my mail!

Re: [PHP] How to give parameters to a console php-script?

2003-01-02 Thread David Yee
Martin- the command line switches are stored in the $_SERVER['argv'] array. E.g. php -q myscript.php4 1000 The value of $_SERVER['argv'][1] in the myscript.php4 script would be 1000. David - Original Message - From: Martin Thoma [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday,

[PHP] Code contents of a function

2003-01-02 Thread Shawn McKenzie
I have a script with some functions and within the script I want to read the code from one of the functions into a string. Example: function myfunction() { echo something; echo something else; someotherfunction(); } I want to read: echo something; echo something else;

RE: [PHP] Code contents of a function

2003-01-02 Thread Peter Houchin
so put it in a if or switch statement eg if ($var){ myfunction(); } else { sumotherfunction(); } etc -Original Message- From: Shawn McKenzie [mailto:[EMAIL PROTECTED]] Sent: Friday, 3 January 2003 12:18 PM To: [EMAIL PROTECTED] Subject: [PHP] Code contents of a function I

Re: [PHP] Some questions regarding pfsocketopen()

2003-01-02 Thread Gerald Timothy Quimpo
On Friday 03 January 2003 06:15 am, Gareth Hastings wrote: Yes I saw those but what it made me think, what's the point of a persistent socket if you can't use it again? i think you could, after enough iterations and if the server allows, get to a point where each process has its own

Re: [PHP] PHP memory usage

2003-01-02 Thread Gerald Timothy Quimpo
On Friday 03 January 2003 05:54 am, James H. Thompson wrote: We have a good size PHP libary -- about 370KB of source code. Its one class with a multitude of small functions in it. that's a huge class. is it feasible to split it into smaller classes that do smaller things? i only ask. i

Re: [PHP] Code contents of a function

2003-01-02 Thread Shawn McKenzie
What??? I want to read the code from the function into a string! Peter Houchin [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... so put it in a if or switch statement eg if ($var){ myfunction(); } else { sumotherfunction(); } etc -Original

Re: [PHP] PHP Testing

2003-01-02 Thread Jim Lucas
Well, I have been chaning different settings the past few days and noticed that my messages had not been posted to the board. Finally got it going. But here is my question, now that my email IS working. can you override the engine setting in the virtual host block I am running Apache 1.3.26

Re: [PHP] mcrypt

2003-01-02 Thread Jason Sheets
Actually you should be able to get mcrypt working with PHP on Windows (mcrypt is not distributed with PHP because of the legal issues surrounding exporting encryption). If you visit the PHP manual page for mcrypt at http://www.php.net/manual/en/ref.mcrypt.php you will see the following under

Re: [PHP] Sessions Security

2003-01-02 Thread Justin French
Hi, There's actually another thread on this topic at the moment... quick summary: 1. you can't rely on the IP address 2. you can't rely on the referrer It's been suggested on the list that you could record the user agent into the session, and check against that -- keeping in mind that the user

  1   2   >