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

2003-01-02 Thread Jason Wong
On Friday 03 January 2003 06:15, Scott Fletcher wrote: > 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. It begs the question -- why didn't you just try out the code you posted? It surely would've been much quicke

Re: [PHP] PHP Testing

2003-01-02 Thread Rick Widmer
At 05:25 PM 1/2/03 -0800, Jim Lucas wrote: DocumentRoot /some/path/public_html php_admin_value engine On try php_admin_value php_engine on|off Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Mass-mailing method

2003-01-02 Thread Manuel Lemos
Hello, On 01/03/2003 04:08 AM, Cesar Aracena wrote: I did a registration page for a customer, and now I'm trying to develop a way for him to send an e-mail once in a while to the people registered with him. I did something (shown below) and everything seems to be ok, but the e-mail never reaches.

[PHP] Re: 2 servers for mail implementation

2003-01-02 Thread Manuel Lemos
Hello, On 01/03/2003 01:11 AM, Roger Thomas wrote: dear all, i have 2 servers that were *given* to me to setup and implement webmail solution for our client. i have done some groundwork in terms of the backend applications that are needed to do this. what i wanted to know is, how best can i dist

[PHP] returning data from a function in a class

2003-01-02 Thread Ken Nagorski
Hi there, I am totally new at classes and oop... I have never done any object oriented stuff before so I don't know if my question is a php one, a browser issue or an oop one but here goes. I am writing a class that deals with members for a site (I know there are examples on the web, I have used

[PHP] Re: Timeout during SMTP operation.

2003-01-02 Thread Manuel Lemos
Hello, On 01/02/2003 06:02 PM, Gilrain wrote: 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 commen

RE: [PHP] DUMB QUESTION I'M SURE

2003-01-02 Thread rw
Quoting Cesar Aracena <[EMAIL PROTECTED]>: ### Try by adding a backslash to the : there (..."\: "...) ### ### Cesar L. Aracena ### [EMAIL PROTECTED] ### [EMAIL PROTECTED] ### (0299) 156-356688 ### Neuquén (8300) Capital ### Argentina ### ### ### -Mensaje original- ### De: Adam French [m

RE: [PHP] Mass-mailing method

2003-01-02 Thread Michael J. Pawlowsky
I have the same problem with one of my clients. I use this... Just keep it well protected... you can cat, ls, find etc. no ps for some reason Might also depend on server security settings. But worth a shot. -- STart Here

Re: [PHP] DUMB QUESTION I'M SURE

2003-01-02 Thread Jason k Larson
I think it's just the $query var not having the right number of quotes. I added single quotes around the value. $name = $_POST['username']; $name = $name; $db = mysql_connect("localhost"); mysql_select_db("vinyldealers",$db); $query = "SELECT shops.name FROM shops WHERE name = '".$name."'"; $re

RE: [PHP] DUMB QUESTION I'M SURE

2003-01-02 Thread Cesar Aracena
What they mean is to make that line: $query = "SELECT shops.name FROM shops WHERE name = $name"; Cesar L. Aracena [EMAIL PROTECTED] [EMAIL PROTECTED] (0299) 156-356688 Neuquén (8300) Capital Argentina -Mensaje original- De: Adam French [mailto:[EMAIL PROTECTED]] Enviado el: viernes, 03

RE: [PHP] DUMB QUESTION I'M SURE

2003-01-02 Thread Cesar Aracena
Try by adding a backslash to the : there (..."\: "...) Cesar L. Aracena [EMAIL PROTECTED] [EMAIL PROTECTED] (0299) 156-356688 Neuquén (8300) Capital Argentina -Mensaje original- De: Adam French [mailto:[EMAIL PROTECTED]] Enviado el: viernes, 03 de enero de 2003 3:18 Para: [EMAIL PROTECT

Re: [PHP] DUMB QUESTION I'M SURE

2003-01-02 Thread Tom Rogers
Hi, Friday, January 3, 2003, 4:18:05 PM, you wrote: AF> I'm just starting out, this is my script... AF> $name = $_POST['username']; AF> $name = $name; AF> $db = mysql_connect("localhost"); AF> mysql_select_db("vinyldealers",$db); AF> $query = "SELECT shops.name FROM shops WHERE name = ".$name.";

[PHP] Re: DUMB QUESTION I'M SURE

2003-01-02 Thread Fernando Serboncini
on the line that starts with $query = there's an extra ." the line should be: $query = "SELECT shops.name FROM shops WHERE name = ".$name; []s Fernando "Adam French" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm just starting out, this is my script... >

RE: [PHP] Mass-mailing method

2003-01-02 Thread Cesar Aracena
I'm going to try changing that. I don't have access to my client's server as I work remotely, so I can't view any logs... or can I? If anyone else have something for me to try, start shooting... Thanks, Cesar L. Aracena [EMAIL PROTECTED] [EMAIL PROTECTED] (0299) 156-356688 Neuquén (8300) Capital

[PHP] DUMB QUESTION I'M SURE

2003-01-02 Thread Adam French
I'm just starting out, this is my script... " .$feildvalue. ""; } echo""; } ?> This is the error I get... Parse error: parse error, unexpected ':' in C:\Xitami\webpages\php\result1.php on line 12 I dunno what I'm doing wrong. Help please??? -- PHP General Mailing List (http://www.php.ne

Re: [PHP] Mass-mailing method

2003-01-02 Thread Michael J. Pawlowsky
Take a look at the sendmail.log for some clues... But I had something weird were it worked fine for me at home Linux 8 PHP 4.2.2 and when I sent it up to the prod server I had to change the ."\r\n"; to ."\n"; Which technically is wrong. Go figure! But take a look at the sendmail log to begin wi

[PHP] Mass-mailing method

2003-01-02 Thread Cesar Aracena
Hi all, I did a registration page for a customer, and now I'm trying to develop a way for him to send an e-mail once in a while to the people registered with him. I did something (shown below) and everything seems to be ok, but the e-mail never reaches... Can someone find the problem or maybe poin

Re: [PHP] way to insert timer / pause?

2003-01-02 Thread Jeff Bluemel
thats a good idea Mike... thanks for the suggestion. "Michael J. Pawlowsky" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Thank god the tag in HTML was removed. > Don't know how long you've been working on sites, > but I started at the same time the fir

Re: [PHP] way to insert timer / pause?

2003-01-02 Thread Michael J. Pawlowsky
Thank god the tag in HTML was removed. Don't know how long you've been working on sites, but I started at the same time the first NSCA Mosaic browser came out. About 10 years now. They had back then, and everyone starting using it just about everywhere! Imagine trying to read complete pages

Re: [PHP] way to insert timer / pause?

2003-01-02 Thread Jeff Bluemel
Andrew, my application is of customer service tries to recharge the balance on a pin, and it is over their charge limit (the customer service personnel) then I was thinking I would display a header for a few seconds telling them the recharge failed, and why. however, I think I will just out it in

Re: [PHP] way to insert timer / pause?

2003-01-02 Thread Jeff Bluemel
thanks for the reply Mike... Jeff "Michael J. Pawlowsky" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I'm not sure I totally understand... but... > > to pause... sleep(10); i.e. 10 second pause Everything stops... not just output > > you can buffer every

Re: [PHP] way to insert timer / pause?

2003-01-02 Thread Jeff Bluemel
thanks Sed "Sed" <[EMAIL PROTECTED]> wrote in message 014d01c2b2d7$86935330$fe78a8c0@mamma">news:014d01c2b2d7$86935330$fe78a8c0@mamma... Sure, just read the following: http://www.php.net/manual/en/function.sleep.php As a reply for your second question, you can always assign the output to a varia

Re: [PHP] email/time question

2003-01-02 Thread Michael J. Pawlowsky
Well a few ways you can do it... how precise does it need to be? You can have PHP write the mails to files with the time to be sent in then or in the filename; like somerandomstring.200301021545 Run a script from cron that would look at the files, parse the time and if it's time to send them ju

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

2003-01-02 Thread Tom Rogers
Hi, Friday, January 3, 2003, 10:33:39 AM, you wrote: MJP> Just to add to that... what it is doing is reading it as a 0. 0,0,0,09,30,1998 =>> 883458000 MJP> Tue, 30 Dec 1997 00:00:00 -0500 0,0,0,0,30,1998 =>> 883458000 MJP> Tue, 30 Dec 1997 00:00:00 -0500 MJP> Did you see this in the manual?

Re: [PHP] email/time question

2003-01-02 Thread John Nichel
Running Linux / UNIX? man crontab Make a php script for command line use. Randy Johnson wrote: Here is what i need to do. I have a form where a user will submit, email address, email text and a time like 11:15pm and at 11:15pm the email is supposed to be sent out. any ideas on how i can

Re: [PHP] PHP memory usage

2003-01-02 Thread James H. Thompson
> 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? Its sp

Re: [PHP] parse error

2003-01-02 Thread John Nichel
You have numerous errors in that code. Your DB connection line is messed up, the username and password either need to be a quoted string, a variable representing that string, or a constant. Your database selection needs to be quoted. You need to escape out the double quotes that you want to

[PHP] BreadCrumb Class

2003-01-02 Thread Michael J. Pawlowsky
I was wondering if anyone had a good BreadCrumb class. If not I will write my own, but thought surely there must be many out there. But quick searches only brought up "Poof" which is more than I want. Thanks, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] email/time question

2003-01-02 Thread Randy Johnson
Here is what i need to do. I have a form where a user will submit, email address, email text and a time like 11:15pm and at 11:15pm the email is supposed to be sent out. any ideas on how i can make this happen automatically??? Randy -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Sessions & Security

2003-01-02 Thread Duncan
Ah, thanks a lot. I will add my 2 cents in there then :) Regards, Duncan Justin French wrote: 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 cou

RE: [PHP] way to insert timer / pause?

2003-01-02 Thread SED
Sure, just read the following: http://www.php.net/manual/en/function.sleep.php As a reply for your second question, you can always assign the output to a variable and echo the variable in the end of the script. Regards, Sumarlidi E. Dadason SED - Graphic Design

[PHP] Re: PHP memory usage

2003-01-02 Thread Fernando Serboncini
I don't know if I'm talking bullshit, but don't forget that each parameter or return valeu in php, if not explicited as a pointer, it's a copy of the full parameter. This way, any function a(myclass c) { return c; } would create another copy of "c" in memory. Things get a bit larger when you

[PHP] help with form adding to database!!

2003-01-02 Thread Karl James
Hey guys, I cant figure out what’s wrong with this code. Im sure its syntax can some one take a look at it and Help me out What im trying to do is create a form for sign up. So that the values will be added to the table in the databse.. For log in purposes. Thanks Karl Here is the code.

Re: [PHP] way to insert timer / pause?

2003-01-02 Thread Andrew Brampton
I beleive you can use output buffering to stop anything from being displayed until the very last moment. Or you can code your page with tables. I know IE wont' render a table until the last (I beleive), so this could stop your html from showing. Or if there is going to be a long pause, you could

Re: [PHP] way to insert timer / pause?

2003-01-02 Thread Michael J. Pawlowsky
I'm not sure I totally understand... but... to pause... sleep(10); i.e. 10 second pause Everything stops... not just output you can buffer everything and only output it when you want look at ob_start But a warning... your server or the clients might change the expexted behaviour. Mik

[PHP] 2 servers for mail implementation

2003-01-02 Thread Roger Thomas
dear all, i have 2 servers that were *given* to me to setup and implement webmail solution for our client. i have done some groundwork in terms of the backend applications that are needed to do this. what i wanted to know is, how best can i distribute the backend applications between those 2 serve

Re: [PHP] parse error

2003-01-02 Thread Dan Goodes
Or, another option is to use single-quotes in the HTML: echo(""); That way you can include variables in there if you see fit (since the string itself is still double-quoted), and you don't have to worry about escpaing the double-quotes. -Dan On Thu, 2 Jan 2003, Michael J. Pawlowsky wrote: >

[PHP] way to insert timer / pause?

2003-01-02 Thread Jeff Bluemel
if there a command, or a way I can put say a 5 second, or a 10 second pause which will make it so it will output x amount of html, and then continue? or if I can pause it will it not display any of the html until the entire script has ran? -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] parse error

2003-01-02 Thread Michael J. Pawlowsky
You need to esape your quotes in the HTML as in echo(""); should be echo(""); Mike *** REPLY SEPARATOR *** On 02/01/2003 at 11:27 PM Ezequiel Sapoznik wrote: >Hi! >I am receiving a parse error in the following code. The file is located at >http://www.historiadelpais.

Re: [PHP] parse error

2003-01-02 Thread Gerald Timothy Quimpo
On Friday 03 January 2003 10:27 am, Ezequiel Sapoznik wrote: > echo(" width="274" height="43">"); you have embedded double quotes inside a string delimited by double quotes. use single quotes to delimit the string (since nothing inside is a variable). or escape your internal double quotes with

[PHP] parse error

2003-01-02 Thread Ezequiel Sapoznik
Hi! I am receiving a parse error in the following code. The file is located at http://www.historiadelpais.com.ar/ppal_bio.php Anyone can help me? Thanks! Ezequiel Biografias "); print ""; echo(""); echo(""); echo(""); echo(""); echo(""); echo(""); echo(""); echo("

Re: [PHP] Code contents of a function

2003-01-02 Thread Gerald Timothy Quimpo
On Friday 03 January 2003 09:17 am, Shawn McKenzie wrote: > 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. you'd probably have to fopen/fgets or file, and then parse for the function start and end and read the contents.

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 a

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 Requi

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

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 have

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 persiste

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 >

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

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

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

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 m

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

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 => 907

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

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 oth

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 c

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

[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! "; for ($r=0; $r<5; $r++){ for ($c=0; $c<7; $c++){ if ($c==0 || $c%7==0) echo ""; else if ($c%6==0) echo ""; else { echo "

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 bac

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 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 auxw|gr

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

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

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

[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] Some questions regarding pfsocketopen()

2003-01-02 Thread Gareth Hastings
I just tried something similar, \n"; if ($p == "1") { $mysocket = pfsockopen("172.24.200.2", "1372"); echo fgets($mysocket, 255); echo "Send Data\n"; } else { echo (isset($mysocket) ? "It's set\n" : "Not set\n"); echo $mysocket; fputs($mysocket,

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 --- Next"; ?> file s2

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 y

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

[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

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

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 acc

[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 PROTECTED]:/opt/cv

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 Apach

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. \n"; } else { fputs ($fp, "GET / HTTP/1.0\r\nHost: www.example.com\r\n\r\n"); while (!feof($fp)) { echo fgets ($fp,128); } fclose ($f

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 -- testconenction.php if I call the makeconnection.php script and then call the testconnection right after it fails with invalid file r

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

[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 (2001/09

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 per

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, th

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

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

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 (

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

[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

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 Di

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: http://dietrich.ganx4.com

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 w

[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 () 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 code wor

[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-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 J.

  1   2   >