Re: [PHP] what vars should go in session vars?

2002-01-23 Thread sean
Erik: If I could paraphrase your question, it'd be, "is it better to leave info in session vars or use db calls" - if that's right, I'd say db call for your particular need is faster/easier, as you'll be accessing the db anyway (getting their personal info). Just add a style sheet preference f

[PHP] Checking ps aux

2002-01-23 Thread Alan Todd
I need to help makeing a script that will ps aux | grep and file to see if it is running -- if not start it up i have a pl file running in the back ground and i wanted to check it .. Thanks Alan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For add

[PHP] Question about 4.0.6-7 Mysql 4.0.1 and Redhat 7.2

2002-01-23 Thread Jim Lucas [php]
I know, the base install installs 4.0.6-7. but my problem comes when i try upgrading to mysql 4.0.1. When I try installing 4.0.1 of mysql it has to uninstall the 3.23.41-1 version and then install 4.0.1 I get a conflict that says that libmysqlclient.so.10 is needed by php.mysql and a few other

Re: [PHP] looking for newbie help in solving logic problem

2002-01-23 Thread Anton Stroganov
perhaps $[connit.$i] would to it? - Original Message - From: "Larry Brown" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 18, 2002 20:24 Subject: [PHP] looking for newbie help in solving logic problem > The following is an over simplified description. With additiona

[PHP] (again)Writing new lines in txt- files?=)

2002-01-23 Thread Mårten Andersson
hello again! =) I.m using fwrite() to write to the file. What I want is a new row i a textdocument after each strung I insert.. I've been told that "\n" should be the solution to the problem whith new rows i a text-document. But I am not sure that's want I wanted... =) I'll try to be more spe

Re: [PHP] looking for newbie help in solving logic problem

2002-01-23 Thread Jason Wong
On Saturday 19 January 2002 12:24, Larry Brown wrote: > The following is an over simplified description. With additional items not > included everything here works except for the last string. (hence the > problem) > > _ > #page 1 > #pull info from several similar sections from a file stored in $a

Re: [PHP] (again)Writing new lines in txt- files?=)

2002-01-23 Thread Alexander Skwar
So sprach »Mårten Andersson« am 2002-01-23 um 19:27:04 + : > hello again! =) > > I.m using fwrite() to write to the file. What I want is a new row i a > textdocument after each strung I insert.. > > I've been told that "\n" should be the solution to the problem whith new > rows i a text-do

FW: [PHP] PHP 4.1.1 on iPlanet 6 sp1 on XP Home (I'm reaching here)..

2002-01-23 Thread James Hallam
Sorry to re-post this, but I'm really stuck with this one - does *anyone* out there use iPlanet on Windows? Have you encountered a problem like mine? Thanks, James -Original Message- From: James Hallam [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 22, 2002 2:48 PM To: [EMAIL PROTEC

Re: [PHP] what vars should go in session vars?

2002-01-23 Thread Erik Price
Nick, thanks for taking a moment to respond -- >> What I'm wondering is, what should I store in session variables? > > Whatever you need to. Thanks. >> for the user, to influence the way the site behaves. But I was >> thinking >> of adding ten pre-set style sheets (diff't colors, fonts, etc),

[PHP] Checking for daylight savings

2002-01-23 Thread Dan Phiffer
A client of mine wants me to increase the accuracy of the daylight savings mechanism in his web application. It currently checks using the date() function and the "I" switch. Is there anything out there that takes into account the many special cases involved with daylight savings? I'm looking for

RE: [PHP] PHP Chat REALTIME

2002-01-23 Thread Andrew Chase
> -Original Message- > From: Joffrey van Wageningen [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 22, 2002 7:35 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] PHP Chat REALTIME > > the real problem is how to get the data to the client without > use of a socket I've been tinkering

[PHP] newbie needs quick help with formatting dates

2002-01-23 Thread Steven Jarvis
I'm pretty new to PHP, and I need to re-format some date data, but I can't figure out how to do it. This may be a "doh!" question, but I've looked through the manual, and I can't seem to find what I'm looking for. I have some dates formatted as mm/dd/yy that I need to convert to mmdd so I

Re: [PHP] newbie needs quick help with formatting dates

2002-01-23 Thread val petruchek
http://www.php.net/manual/en/ref.datetime.php Valentin Petruchek (aki Zliy Pes) http://zliypes.com.ua mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list ad

[PHP] More Fun With Sessions!

2002-01-23 Thread Jeff Sheltren
Well, I was having problems getting sessions working at all on my FreeBSD box, but they are now working... But that leads me to more problems... For any others that might have a problem w/ FreeBSD, try setting the referer_check to 0 'session.referer_check = 0' Once I changed that things seem to

Re: [PHP] More Fun With Sessions!

2002-01-23 Thread Richard Baskett
You only need to register the variable once when you initiate the session. Also as of php 4.1 I believe you do not have to register your session vars you can just acccess them like $_SESSION['counter']: http://www.php.net/manual/en/ref.session.php Basically what I see you're doing is reregisteri

[PHP] Anyone know of way to convert the characters like linefeed, carrier return, etc.

2002-01-23 Thread Scott Fletcher
Hi! Does anyone know how to use the php code to identify the character like linefeed or carrier return or space, etc.? I'm making a loop to identify those and replace it with a HTML characters so the data would be HTML compactible. For example, replacing the line feed with a "", etc. Th

Re: [PHP] Anyone know of way to convert the characters like linefeed, carrier return, etc.

2002-01-23 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Scott Fletcher blurted > For example, replacing the line feed with a "", etc. The only > problem is I can not tell what characters are in there because it is not > readable by the web browser. I hope I explained it clear enough.

[PHP] help on PHP from

2002-01-23 Thread Wee Chua
Hi all, How can I get the whole string after submitting with Form? I don't see any variables and valuables in the address bar of the browser unless I manually create the link with ? and & in form action column. Please help and explain. thanks, Wee -- PHP General Mailing List (http://www.php.net

RE: [PHP] More Fun With Sessions!

2002-01-23 Thread Matt Schroebel
Your code works fine on my FreeBSD box running php 4.0.4pl1 but not one running php 4.0.6 ... May explain your linux issues? i.e. versions of php ... -Original Message- From: Richard Baskett [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 23, 2002 3:37 PM You only need to register

Re: [PHP] help on PHP from

2002-01-23 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Wee Chua blurted > Hi all, > How can I get the whole string after submitting with Form? I don't see any > variables and valuables in the address bar of the browser unless I manually > create the link with ? and & in form action column.

Re: [PHP] help on PHP from

2002-01-23 Thread Richard Baskett
You'll see all the variables if you post the form using GET instead of POST, but using POST it automatically sends those variables to the target page and you can access them directly using their same names. For example on your form you have a variable called $Name and it posts to form2.php you c

Re: [PHP] Anyone know of way to convert the characters like linefeed, carrier return, etc.

2002-01-23 Thread Scott Fletcher
This one work pretty well, so I'm using this one in addition to the recent posting! nl2br(htmlentities($ch)); Thanks, Scott "Nick Wilson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > * and then Scott F

Re: [PHP] help on PHP from

2002-01-23 Thread Rudi Ahlers
User Method=GET, and not METHOD=POST Regards Rudi Ahlers UNIX Operator and Support RTT Fuel Group - Original Message - From: Wee Chua <[EMAIL PROTECTED]> To: PHP (E-mail) <[EMAIL PROTECTED]> Sent: Wednesday, January 23, 2002 11:01 PM Subject: [PHP] help on PHP from Hi all, How can I ge

RE: [PHP] More Fun With Sessions!

2002-01-23 Thread Jeff Sheltren
Thanks, everyone for responding... after much headache I seem to have got it working. (not fixed, but working.) I was running php 4.0.6 on linux where the code worked. I just installed php 4.0.4pl1 on the freebsd box and now everything works great. It was probably not the best solution, but it

Re: [PHP] Anyone know of way to convert the characters like linefeed, carrier return, etc.

2002-01-23 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Scott Fletcher blurted > > nl2br(htmlentities($ch)); Neat! - -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.explodingnet.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE8Ty4x

Re: [PHP] help on PHP from

2002-01-23 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Rudi Ahlers blurted > User Method=GET, and not METHOD=POST I think maybe I missunderstood her mail! - -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.explodingnet.com -BEGIN PGP SIGNATURE- Version:

[PHP] What is going on here? list() = each()

2002-01-23 Thread Chris Boget
What is getting echo'd out is: "0, this" Why? What am I missing here? Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] What is going on here? list() = each()

2002-01-23 Thread Rick Emery
change to: -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 23, 2002 3:43 PM To: PHP-General Subject: [PHP] What is going on here? list() = each() What is getting echo'd out is: "0, this" Why? What am I missing here? Chris -- PHP Genera

[PHP] How to make a line feed in HTML from "LF"?

2002-01-23 Thread Scott Fletcher
Hi! How do I make a line feed in HTML from "LF"?? The data I got on each line is not evenly spread out. Thnaks, Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list admi

Re: [PHP] What is going on here? list() = each()

2002-01-23 Thread Chris Boget
> change to: > $var = "this.that"; > list( $thisVal, $thatVal ) = explode( ".", $var ); > echo "$thisVal, $thatVal" > ?> Silly me. Chris -all embarrassed now... :p -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

[PHP] Correction

2002-01-23 Thread Scott Fletcher
I mean how to make the data in HTML to work like a Line Feed? That way, the data are all align! Thanks, Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-

Re: [PHP] Re: How should I cache database data for php?

2002-01-23 Thread DL Neil
Thanks Garth, - I put it aside until I could find enough clear time to spend reading it through. It makes for good reading - and your comment about caching being 'funny'/suiting different situations in different ways is definitely correct. I think you've helped me understand/clarify some mistak

RE: [PHP] Correction

2002-01-23 Thread Rick Emery
$newlines = nl2br($oldline); print $newlines; The $oldline would contain text which contains newline characters. -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 23, 2002 3:57 PM To: [EMAIL PROTECTED] Subject: [PHP] Correction I mean how to m

RE: [PHP] Re: easy question

2002-01-23 Thread Martin Towell
and I think, also, if it's the last command then you don't need to semi-colon (I put it in anyway for completeness, etc) found that out by accident... -Original Message- From: val petruchek [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 1:02 AM To: PHP Subject: Re: [PHP] Re:

[PHP] can anyone explain this error ?

2002-01-23 Thread Matthew Darcy
I am doing an insert into a EMPTY mysql table. 1 field is an auto increment. here is the error I get when I do the insert "Column count doesn't match value count at row 1" What does this mean ? Here is the php used to insert it. Data Submitted View the records ~ Thanks, Matt. --

[PHP] Re: [PEAR-DEV] Re: [metabase-dev] RE: [PEAR-DEV] New MetabaseAniversary release

2002-01-23 Thread Manuel Lemos
Hello, "Tomas V.V.Cox" wrote: > > El mar, 22-01-2002 a las 19:02, Manuel Lemos escribió: > > Hello Lukas, > > > > Lukas Smith wrote: > > > > > FYI: there has been a lot of discussion about this project in the last > > > couple months (especially december irrc) on the pear-dev mailinglist. So > >

[PHP] That one doesn't work!

2002-01-23 Thread Scott Fletcher
Hi! That one doesn't work! The new line does work, but the data doesn't work like a margin alignment or something. Like a type writer format where everything fit in nicely, not one line that are too short and the next line that are too long. Just that at the end of each line that is perfec

RE: [PHP] can anyone explain this error ?

2002-01-23 Thread Rick Emery
It means you are trying to insert 22 values into 20 fields -Original Message- From: Matthew Darcy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 23, 2002 4:11 PM To: PHP developers Subject: [PHP] can anyone explain this error ? I am doing an insert into a EMPTY mysql table. 1 field

Re: [PHP] That one doesn't work!

2002-01-23 Thread Ben Sinclair
So you want to know how to justify text? This is not a PHP question. HTML documentation: http://www.idocs.com/tags/ -- Ben Sinclair [EMAIL PROTECTED] - Original Message - From: "Scott Fletcher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 23, 2002 4:11 PM Subjec

Re: [PHP] can anyone explain this error ?

2002-01-23 Thread Richard Baskett
Basically you're trying to add more values into the table than columns specified. You have 22 values and only 20 columns specified in your $query. Rick "Finish each day and be done with it. You have done what you could; some blunders and absurdities have crept in; forget them as soon as you can

RE: [PHP] can anyone explain this error ?

2002-01-23 Thread Matthew Darcy
gents, thanks. I have been working hard on this php thing for a couple of days now from setup to starting development. Today a couple of "glitches" have slipped past me. I think I am tired and been working on this for too long with out a break. thanks for pointing out the errors. Out of interes

[PHP] What do you mean?

2002-01-23 Thread Scott Fletcher
What do you mean? There is a php function that can clean up the carriage return and line feed. There's a php function somewhere that will fix up the amount of spaces for each lines to make the end of each line to be all aligned. So, what would it be? Thank, Scott -- PHP General Mailing Lis

Re: [PHP] can anyone explain this error ?

2002-01-23 Thread Richard Baskett
MySQL has really good error reporting so when you get an error it usually has to do exactly with what it reports. Your error: "Column count doesn't match value count at row 1" Is saying that the number of columns you specified in the first part of your insert query does not match the number of t

Re: [PHP] What do you mean?

2002-01-23 Thread Ben Sinclair
Yes, there is a function that "cleans up" carriage returns and line feeds by changing them to 's. There is no function to magically justifty text. Find some HTML documentation and output the HTML to justify your text. -- Ben Sinclair [EMAIL PROTECTED] - Original Message - From: "Scott Fle

RE: [PHP] What do you mean?

2002-01-23 Thread Rick Emery
First, no such PHP function exists which "will fix up the amount of spaces for each lines to make the end of each line to be all aligned". Second, you could verify that in section "LXXXIII. String functions" of the PHP manual before asking. Third, please keep the same subject line. It makes fol

Re: [PHP] Q: while loop on an array

2002-01-23 Thread Jeff Bearer
check out the foreach control structure it may be exactly waht you need. http://www.php.net/manual/en/control-structures.foreach.php On Wed, 2002-01-23 at 10:17, Joe Rice wrote: > > Hello, > > I would like to know how i can know when i'm at the > end of an array during a while loop? > > rese

RE: [PHP] looking for newbie help in solving logic problem

2002-01-23 Thread Larry Brown
Awsome, That helps tremendously. Larry S. Brown President/CEO Dimension Networks, Inc. Member ICCA (727) 723-8388 -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] I think get rid of this 'problem' by using arrays. As in: echo ' etc -- PHP Genera

Re: [PHP] What do you mean?

2002-01-23 Thread BS
maybe not a justify function, but with a little creativity str_pad() will take the argument string and pad it to a new length with another string... ( ...) so if you know how long you would like each line or can figure it out... that could end up being a lot of extra little characters though.

Re: [PHP] Need opinion On sessions - Cookies mandatory?

2002-01-23 Thread Jason G.
At 09:35 AM 1/23/2002 +0100, Nick Wilson wrote: >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA1 > > >* and then Jason G. blurted > > If cookies do not work, then you must have a session_id appended to the > > URL. HTTP is a "stateless" protocol. So every time you make a request > via > > HT

Re: [PHP] Checking ps aux

2002-01-23 Thread bvr
What is your question ? bvr. On Wed, 23 Jan 2002 11:30:58 -0500, Alan Todd wrote: >I need to help makeing a script that will ps aux | grep and file to see if >it is running -- if not start it up >i have a pl file running in the back ground and i wanted to check it .. > >Thanks >Alan > > >-- >

[PHP] Re: What do you mean?

2002-01-23 Thread David Robley
[EMAIL PROTECTED] (Scott Fletcher) wrote in [EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: > What do you mean? There is a php function that can clean up the > carriage return and line feed. There's a php function somewhere that > will fix up the amount of spaces for each lines to make the end of

Re: [PHP] Need opinion On sessions - Cookies mandatory?

2002-01-23 Thread BS
as far as i've been able to figure, you don't _have_ to give session call a session name to regain the session data. if you don't supply a name, it looks for the previous session for that computer. or you could pass it one through your forms or what have you. regardless, you can compile your php e

[PHP] PHP don't know 'localhost'

2002-01-23 Thread Alex Shi
Hi, Today I met a very strange problem. My system had been working perfect since long time back when I setup mysql/php/apache on RH 7.1, until today I found that php could not connect mysql with the user from 'localhost'. But actually user@localhost can login to mysql from terminal. 'Locahost' j

[PHP] Memory usage with Apache

2002-01-23 Thread Thomas E. Ruth
Hello, I'm using PHP 4.0.4pl1 with Apache 1.3.14. I have a PHP script that accumulates data for insertion into a database. This script runs in peices and unset()'s variables that contain the data periodically in hopes of freeing memory for the next batch of records. Apparently it's not working t

RE: [PHP] Need opinion On sessions - Cookies mandatory?

2002-01-23 Thread SpamSucks86
The idea of building a website is largely to accommodate as large a portion of your visitors as possible. I'm not worried about people bookmarking sessionID's, but what if someone copy/pastes the URL to a friend and they use the section. My friend gave me an excellent idea, and that is to check th

[PHP] Basic Authentication with IIS

2002-01-23 Thread SpamSucks86
With apache, you can easily match up a L/P to an htpasswd file. With IIS, the user has to be created as the windows level. I'm moving a site from an apache server to an IIS server, and need to figure out an easy way to do basic authentication. I guess putting a chunk of code at the top of every sc

[PHP] PHP Equivalent of REXX x2c and c2x Functions

2002-01-23 Thread David Drewa
I'm trying to port an application from WinREXX to PHP. What is the PHP equivalent of the x2c() (hexadecimal to character) and c2x() (character to hexadecimal) functions? Is this hexdec() and dechex() functions? Or hex2bin()? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsub

[PHP] Re: Basic Authentication with IIS

2002-01-23 Thread jas
Yeah basically on an IIS server you have a default www group that you can use because it has read only permissions, if you need to add a user just go to administrative tools on the server and then computer management if not in a domain or active directory users and groups if the server is a member

RE: [PHP] Need opinion On sessions - Cookies mandatory?

2002-01-23 Thread Mark
This won't work because some ISP's will assign a new IP every few minutes or with each request. I'm thinking of AOL. On Wed, 23 Jan 2002 18:46:50 -0500, SpamSucks86 wrote: >The idea of building a website is largely to accommodate as large a >portion of your visitors as possible. I'm not worried a

Re: [PHP] Re: PHP vs Java reliability

2002-01-23 Thread Aaron
Geoff Caplan wrote: >Michael > >>>the "Why PHP" on zend.com is a great place to go for this sort of >>> >stuff... > >>Honestly, it doesn't seem all that professional a resource paper... >> > >I would tend to agree - not something you could show to a hard-headed >corporate purchasing committee wit

[PHP] Re: [Kopia] [PHP] Re: Sessions problem with FreeBSD 4.3

2002-01-23 Thread Yasuo Ohgaki
Jeff Sheltren wrote: >>What happens if you set "register_globals=Off" and use >>$_SESSION? >> >> > Thanks for the reply. I will try changing register_globals to Off. I am > not quite sure I know what you mean by using $_SESSION though, could someone > please explain how that is uesd? > Session

[PHP] Re: PHP Sessions

2002-01-23 Thread Yasuo Ohgaki
David Orn Johannsson wrote: > I'm Trying to make a simple authentication for a news-system. > I have a encrypted passwd in a db that i fetch and compare to the user > input and if it compares ok then the user sees the catagories that he > can select from. > > The thing is I'm not quite getting t

Fw: [PHP] PHP Equivalent of REXX x2c and c2x Functions

2002-01-23 Thread hugh danaher
- Original Message - From: "hugh danaher" <[EMAIL PROTECTED]> To: "David Drewa" <[EMAIL PROTECTED]> Sent: Wednesday, January 23, 2002 4:36 PM Subject: Re: [PHP] PHP Equivalent of REXX x2c and c2x Functions > > RTFN > http://www.php.net/manual-lookup.php?pattern=Hex > > > - Original

[PHP] emulate a browser

2002-01-23 Thread Frank Benady
Hi All Can I emulate the first request of a browser when it tries to connect to a distant server using a domain name and parse the answer from the remote server to know if there is a website located there or if there is no hosting (or even some kind of forwarding) configured for this domain name

RE: [PHP] Re: Templates: how to get that HTML outta my templates!

2002-01-23 Thread Mikusch, Rita
> * and then Mikusch, Rita blurted > > Thank you for the reply. I'm trying to "roll my own" template system, but > > don't really know how to go about some of the details. My best bet would > > probably be to install phplib and dissect itsee how the experts did it! > > At the very least i

[PHP] to evaluate ...

2002-01-23 Thread Thorsten Wandersmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sorry for bothering you, but I really didn't find answeres on dejanews and in the tutorial, or better, I did not see them. I need the following variables: $width1 $width2 $width3 . . . $widthn Because it is not shure, how many they are, I need to

RE: [PHP] to evaluate ...

2002-01-23 Thread Martin Towell
try changing: echo "$$temp\n"; to echo $$temp."\n"; or even echo ${$temp}."\n"; does that work? -Original Message- From: Thorsten Wandersmann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 12:16 PM To: [EMAIL PROTECTED] Subject: [PHP] to evaluate ...

Re: [PHP] emulate a browser

2002-01-23 Thread Michael Sims
At 01:45 AM 1/24/2002 +0100, Frank Benady wrote: >Hi All > >Can I emulate the first request of a browser when it tries to connect to a >distant server using a domain name and parse the answer from the remote >server to know if there is a website located there or if there is no hosting >(or even so

[PHP] Re: how to sum array items, vertically?

2002-01-23 Thread Siggy
Unfortunately I have to change and meddle with dates and times, so I can't. Siggy Format: The code is basically: $everything [ $date ] = array(10, 20, 30, 40); where $date is simply a text string like "01/01/2001"; Eg: array(4) { ["07/01/2002"]=> array(3) { [6]=> int(7200) [5]=> i

[PHP] CGI PHP processing .shtml

2002-01-23 Thread Christian Cresante
i want to have php process .shtml files. i tried appending the following to .htaccess, but to no avail: AddType application/x-httpd-php .shtml is it because php is running as a cgi program? how would i go about getting this to work. its php 4.0.6 running on a sparc, if that matters. thank

Re: [PHP] to evaluate ...

2002-01-23 Thread Jason Wong
On Thursday 24 January 2002 09:15, Thorsten Wandersmann wrote: > Sorry for bothering you, but I really didn't find answeres on dejanews and > in the tutorial, or better, I did not see them. > > I need the following variables: > > $width1 > $width2 > $width3 > . > . > . > $widthn > > > Because it i

[PHP] Form Problem

2002-01-23 Thread Michael P. Carel
Hi there, I have a problem here regarding the form table name variable (i.e ), when i used Href tags to send the variable in the next script it does'nt recognized the $Process variable. I've tried the the submit type but but im having problem with other $variable in the table which is not part

Re: [PHP] changing unix password in php?

2002-01-23 Thread Larry Brown
I've tried several versions of this: $command = "su root"; $id = "whoami"; passthru($command, $result); passthru($id, $result2); echo $result; echo $result2; "Jon Farmer" <[EMAIL PROTECTED]> wrote in message news:00de01c1a42c$9401d970$[EMAIL PROTECTED]... > > Along this line, I have attempted to

RE: [PHP] Form Problem

2002-01-23 Thread Martin Towell
somewhere in the form put: -Original Message- From: Michael P. Carel [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 1:48 PM To: php Subject: [PHP] Form Problem Hi there, I have a problem here regarding the form table name variable (i.e ), when i used Href tags to send t

Re: [PHP] Form Problem

2002-01-23 Thread Jason Wong
On Thursday 24 January 2002 10:47, Michael P. Carel wrote: > Hi there, > > I have a problem here regarding the form table name variable (i.e name=Process type text>), when i used Href tags to send the variable in the > next script it does'nt recognized the $Process variable. I've tried the > the

[PHP] Viral Marketing PHP (was Re: [PHP] Computer Science and PHP)

2002-01-23 Thread Manuel Lemos
Hello, Dl Neil wrote: > One other dimension, the institutions can only offer classes in the languages (and >techniques/technologies) that > the trainers know and than they have the resources (hardware, >compilers/interpreters) to cover. > > Maybe therein lies an answer to the 'marketing' side

[PHP] PHP-GTK version 0.5.0 released

2002-01-23 Thread Andrei Zmievski
Greetings! I have released PHP-GTK version 0.5.0, also known as "monday starts on saturday". The version number was bumped from 0.1.1 to this one to indicate that PHP-GTK is now a fairly mature and stable extension and can be used for a variety of applications (just look on Freshmeat). I would a

[PHP] I lost the message...

2002-01-23 Thread Todd Cary
I am embarrassed to say that I lost the anser to my question on the syntax to get a list of all of the files in a specified directory matching a sertain criteria. Anyone willing to give me another chance? Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General Mailing List (http:

[PHP] seems easy...

2002-01-23 Thread Justin French
Hi, Really simple, but can't see which funtion to use in the manual. I want to take a user-inputted string $text, and IF it's length is more than $limit, trim it to the limited length, and then tack on some kind of "... text cut (too long)" thing on the end. I'm only missing one bit (line4): 1

RE: [PHP] I lost the message...

2002-01-23 Thread Martin Towell
$result = `ls foo*`; // :) :# ??? Martin -Original Message- From: Todd Cary [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 3:17 PM To: [EMAIL PROTECTED] Subject: [PHP] I lost the message... I am embarrassed to say that I lost the anser to my question on the syntax t

RE: [PHP] seems easy...

2002-01-23 Thread Jason Murray
> 1 $limit = "5000"; > 2 if(strlen($text) > $limit) > 3{ > 4 > 5$text .= "...sorry, text was too long"; > 6} 4$text = substr($text, 0, $limit); 5$text .= " ... (More)"; :) Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTE

RE: [PHP] seems easy...

2002-01-23 Thread Martin Towell
$limit = "5000"; if(strlen($text) > $limit) { $text = substr($text, 0, $limit); $text .= "...sorry, text was too long"; } -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 3:34 PM To: php Subject: [PHP] seems easy... Hi, Really

[PHP] mail() question

2002-01-23 Thread Matthew Walker
I’ve tried Reading The Fine Manual on this, and can’t find an easy answer. Here’s the headers for a message from the script, and the error I’m getting on some mail it sends… Return-Path: Received: (from wwwrun@localhost) by arsenic.mth.com (8.11.6/8.11.3) id g0O4UCQ27546;

Re: [PHP] UPDATE - MySQL having some trouble

2002-01-23 Thread J.F.Kishor
hi, > I can't the UPDATE command in MySQL to work properly. Here is my > query > > $query = "update table set lastname=$lastname, firstname=$firstname ^ replace table with > where username=$username"; ($lastname,

[PHP] Printing JPEG images generated with ImageJPEG with IE/WIN

2002-01-23 Thread David_Bourne
Hello I am creating images with ImageJPEG using information from a form. The image displays well in IE (Mac OS X), and IE and Netscape on Windows. However, when printing from IE / Windows all I get is a small red X. The image can be saved to disk, imported in MS Word and printed OK. It also p

Re: [PHP] I lost the message...

2002-01-23 Thread Todd Cary
As I recall, I need to use the file function e.g. fopen(). Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-

Re: [PHP] I lost the message...

2002-01-23 Thread Todd Cary
This seems to work. Is there a better way? chdir("/home/docvault"); $dir = dir("."); $dir->rewind(); while ($file=$dir->read()) { if (($file != ".") & ($file != "..")) { $Filelist[] = $file; } } $dir->close(); Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] --

[PHP] How can the Surfer download

2002-01-23 Thread Todd Cary
What is the syntax to give the surfer an opportunity to download a file? Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list admi

Re: [PHP] How can the Surfer download

2002-01-23 Thread Jason Wong
On Thursday 24 January 2002 13:27, Todd Cary wrote: > What is the syntax to give the surfer an opportunity to download a file? Please elaborate. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* Kitchen activity is highlighted. Butter up a friend. */ -- PHP General Mailing List

Re: [PHP] to evaluate ...

2002-01-23 Thread hugh danaher
If your heart is set upon using $width1... then write your variable like in the following: for ($i=1;$i<=$some_end_number;$i++) { ${"width".$i}="something width"; } hugh - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: "Thorsten Wandersmann" <[EMAIL PROTECTED]>

[PHP] Displaying array of elements problem

2002-01-23 Thread Michael P. Carel
Hi there, I have another problem out here. Im using the for loop to display an array of element in the checkbox form. My problem is how could i set the this if to an error message if their are a NULL selection. By default this will display blank for no selection which i whant to be avoided. I don

Re: [PHP] Split files

2002-01-23 Thread Martin Thoma
Hi and thaks for your answer. ... > Making any sense? Year, so I have to do it manually (thought someone could preveting me from reinvent the wheel... ;-) > What are you really trying to achieve? I'm trying to split a large binary file (>2 GB) into peaces of 700 MB to burn it on a cd. It's a

Re: [PHP] Split files

2002-01-23 Thread Jason Wong
On Thursday 24 January 2002 15:34, Martin Thoma wrote: > Hi and thaks for your answer. > ... > > > Making any sense? > > Year, so I have to do it manually (thought someone could preveting me from > reinvent the wheel... ;-) > > > What are you really trying to achieve? > > I'm trying to split a lar

[PHP] Difference between i586 RPM and SRC.RPM?

2002-01-23 Thread gaukia 345
Wanted to download PHP 4.1.1 RPM. What's the difference between i586 RPM and SRC.RPM? What sites provide non-FTP download for PHP4.1.1 RPM? Thanx ppl! _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

[PHP] Creating a pdf document

2002-01-23 Thread Mihail Bota
Hello, I was wondering if I could save the result of a query in a pdf document. I looked for any functions that might help, but I got confused because I could not see how/where exactly to insert the necessary .dll's. I'd like to do this (saving the output of a query) by using mysql installed on a