Re: [PHP] Not quite relevant question about coding and query

2001-01-18 Thread php3
Addressed to: "Jacky@lilst" <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from "Jacky@lilst" <[EMAIL PROTECTED]> Fri, 19 Jan 2001 14:00:02 -0600 > > Sorry, I think it should be like this: > > $queryInsert = "insert into user values ('firstname','lastname','email')"; > $res

[PHP] temporary unsubscribe mailing list

2001-01-18 Thread Wen Ni Leong
I would like to unsubscribe the mailing list for a week which is effective from 20th of Jan 2001 to 28th of Jan 2001. I hope you can automatic reactive me into the mailing list after the 28th of Jan 2001. Thank you. >From Wendy Leong [EMAIL PROTECTED] -- PHP General Mailing List (http://www.ph

Re: [PHP] Not quite relevant question about coding and query

2001-01-18 Thread [EMAIL PROTECTED]
Sorry, I think it should be like this: $queryInsert = "insert into user values ('firstname','lastname','email')"; $resultinsert = mysql_query($queryInsert); $UserIdLatest = mysql_insert_id(userId); Is that correct? Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal

Re: [PHP] RE: Ethics question...

2001-01-18 Thread jeremy brand
> I can't really do that since I have never tried it. I plan on testing it under extreme load eventually. If I do before someone else does, I'll post my results. But for the mean time, our set up is working perfectly, so it may be a while. I'm a big thttpd advocate, so I'd (for no better reaso

Re: [PHP] Not quite relevant question about coding and query

2001-01-18 Thread [EMAIL PROTECTED]
So what i should really do is like this: $anotherQuery = "select mysql_insert_id(UserID) from user"; $resultUserID = mysql_query($anotherQuery); is that corerct? Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" - Original Message - From:

Re: [PHP] RE: Ethics question...

2001-01-18 Thread Rasmus Lerdorf
> > By the way, there is a PHP module for thttpd. > > Thank you. I know. I haven't had a chance to spend time testing it. > > Would anyone recommend it for mission critical environments? I can't really do that since I have never tried it. -Rasmus -- PHP General Mailing List (http://www.php.

Re: [PHP] RE: Ethics question...

2001-01-18 Thread jeremy brand
> By the way, there is a PHP module for thttpd. Thank you. I know. I haven't had a chance to spend time testing it. Would anyone recommend it for mission critical environments? Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy

Re: [PHP] RE: Ethics question...

2001-01-18 Thread Rasmus Lerdorf
> I think the single most importand piece of software that saves us the > most money is thttpd. That all runs in a single thread and uses > select to pump out content. Since it is a single thread, it never > chews up tons of memory forking children. By the way, there is a PHP module for thttpd.

Re: [PHP] RE: Ethics question...

2001-01-18 Thread jeremy brand
> Apache doesn't have threading (yet). > If your business depends upon it, you may want to take a look at > Solaris/Zeus if you are really getting heavy load high traffic. We serve millions of hits a day off of a small farm of FreeBSD servers running Apache+php for our dynamic content. Thttpd fo

Re: [PHP] PHP site on CD-ROM

2001-01-18 Thread Rasmus Lerdorf
You would need to go through a web server for it to work. On Fri, 19 Jan 2001, Philip Apostol wrote: > Can I run a PHP/Apache/MySQL services on a CD-ROM. We have PHP scripts that > handle queries on a large database. We would like to distribute it on a > CD-ROM so they could access the databas

Re: [PHP] Not quite relevant question about coding and query

2001-01-18 Thread php3
Addressed to: "Jacky@lilst" <[EMAIL PROTECTED]> "Jason Murray" <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> ** Reply to note from "Jacky@lilst" <[EMAIL PROTECTED]> Fri, 19 Jan 2001 13:15:13 -0600 What happens when more than one person updates the tables at nearly the same

[PHP] PHP site on CD-ROM

2001-01-18 Thread Philip Apostol
Can I run a PHP/Apache/MySQL services on a CD-ROM. We have PHP scripts that handle queries on a large database. We would like to distribute it on a CD-ROM so they could access the database offline. Is it possible? Or are there any similar solutions for this? Im thinking of a text-file database

Re: [PHP] below10host.com as webhost?

2001-01-18 Thread Egan
On Thu, 18 Jan 2001 23:11:28 -0600, "Jeff Lacy" <[EMAIL PROTECTED]> wrote: >I'm sorry, but why do you say webservpro doesn't make a lot of money? If you analyze ISP costs as I have, I believe you may find that the prices webservpro charges are about as low as they can go to still provide good se

RE: [PHP] Not quite relevant question about coding and query

2001-01-18 Thread Dave Haggerty
>-Original Message- >From: Jason Murray [mailto:[EMAIL PROTECTED]] >Sent: Thursday, January 18, 2001 9:57 PM >To: 'Jacky@lilst'; [EMAIL PROTECTED] >Subject: RE: [PHP] Not quite relevant question about coding and query > > >> $query = "insert into user values >('firstname','lastname','add

Re: [PHP] Not quite relevant question about coding and query

2001-01-18 Thread [EMAIL PROTECTED]
thanks for Jason:-) Lucky the ID is sequential. That was command I was looking for. cheers Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" - Original Message - From: Jason Murray <[EMAIL PROTECTED]> To: 'Jacky@lilst' <[EMAIL PROTECTED]>;

RE: [PHP] Not quite relevant question about coding and query

2001-01-18 Thread Jason Murray
> $query = "insert into user values ('firstname','lastname','address','phone')"; > $resultinsert = mysql_query($query); > > $getID = "select userID from user"; // Will this get me the > // Id of the record I just inserted? > $resultID = mysql_query($getID); N

[PHP] Not quite relevant question about coding and query

2001-01-18 Thread [EMAIL PROTECTED]
Hi people Using db as Mysql, I want to write a query to insert data into a table, say User table, and right away after I have inserted that particular record into User table, I want to retrive the ID for that particular record (the record that I just inserted) to insert into another table, say

Re: [PHP] a text formating & cpu question

2001-01-18 Thread php3
Addressed to: Noel Akins <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from Noel Akins <[EMAIL PROTECTED]> Thu, 18 Jan 2001 22:05:46 + > > Hello, Question 1: A long time ago, I started my first big project > using php3 and MySQL that would return on a query a listing o

Re: [PHP] RE: Ethics question...

2001-01-18 Thread Michael A. Peters
John Hinsley wrote: > > "Randy Johnson" <[EMAIL PROTECTED]> wrote: > > > is there any benchmarks or proof that I should host a high traffic site on a > > FREEBSD/APACHE instead of a redhat Linux/Apache server? Apache doesn't have threading (yet). If your business depends upon it, you m

[PHP] Gear Head -- From Home Pages to Popularity

2001-01-18 Thread php3
Addressed to: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] In his current column for Network World, Gear Hear (AKA Mark Gibbs) talks about PHP and Zend Technologies. Since you hang out on this mailing list, you may not learn much, but go ahead and take a look

[PHP] Gear Head -- From Home Pages to Popularity

2001-01-18 Thread php3
Addressed to: [EMAIL PROTECTED] [EMAIL PROTECTED] The current column for Gear Head, (AKA Mark Gibbs) in Network World magazine is all about PHP and Zend Technonogies. Since you hang around on this mailing list, you may not learn much but rejoice in the thought that his column is po

RE: [PHP] below10host.com as webhost?

2001-01-18 Thread Internet Services
Have you looked at www.communitech.net ? -Original Message- From: Jeff Lacy [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 12:11 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] below10host.com as webhost? I'm sorry, but why do you say webservpro doesn't make a lot of money? I am

[PHP] Good Reads

2001-01-18 Thread Sean Brown
Does anyone have any suggestions on a good book for beginners. I currently own "PHP3 Programming Browser-Based Applications" by David Medinets. I have no regrets thus far on purchasing the book but it seems to leave a lot out and his examples are somewhat... skewed. Cheers -- PHP General Maili

Re: [PHP] below10host.com as webhost?

2001-01-18 Thread Jeff Lacy
I'm sorry, but why do you say webservpro doesn't make a lot of money? I am really looking for a good host for a 'friend' of mine. He has a small website (<20mb) and I don't think it gets too many hits. He doesn't have very much money to spend on a web host, so it must be something cheap. It n

RE: [PHP] RE: Ethics question...

2001-01-18 Thread John Hinsley
"Randy Johnson" <[EMAIL PROTECTED]> wrote: > is there any benchmarks or proof that I should host a high traffic site on a > FREEBSD/APACHE instead of a redhat Linux/Apache server? I don't know where thetre is any proof as such, but certainly the consensus is that FreeBSD is better than

Re: [PHP] Variable method

2001-01-18 Thread Steve Edberg
At 4:53 PM -0800 1/18/01, Blaine Grady wrote: >Suppose I have: > $method = "doIt"; >inside a class. How do I construct the statment, using $method, to >call: > $this->doIt(); >I tried every combination I can think of but I keep getting "Call to >unsupported or undefined function" when d

php-general Digest 19 Jan 2001 04:11:50 -0000 Issue 463

2001-01-18 Thread php-general-digest-help
php-general Digest 19 Jan 2001 04:11:50 - Issue 463 Topics (messages 35371 through 35559): Forms! 35371 by: Fredrik Arild Takle 35432 by: Alex Black 35440 by: Clive Cartlidge 35445 by: Alex Black 35448 by: Clive Cartlidge Re: (Newbie) String within a

Re: [PHP] Web hosting for PHP/MySQl development

2001-01-18 Thread Egan
>Any recommendations for a good, savvy host for doing some PHP/MySQL >development? Not looking for a free service, obviously, but > knowledgeable tech support We try. > good mysql/php 4/zend support No Zend yet. > decent mail handling APOP for secure POP password. Sendmail. Not sure what e

[PHP] a text formating & cpu question

2001-01-18 Thread Noel Akins
Hello, Question 1: A long time ago, I started my first big project using php3 and MySQL that would return on a query a listing of info from the database that was displayed in the browser with nested tables. If a user really wanted to test the limits of the database, he/she could get back over 3

Re: [PHP] MySQL + PWS Problems

2001-01-18 Thread Toby Butzon
What were you doing compiling binaries? Are you referring to mysql or php when you say you tried to compile? What OS? --Toby - Original Message - From: "Chris" <[EMAIL PROTECTED]> To: "Phil Driscoll" <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001 10:46 P

Re: [PHP] MySQL + PWS Problems

2001-01-18 Thread Chris
i downloaded the binaries but when I compiled it said I was missing string.obj - Original Message - From: "Phil Driscoll" <[EMAIL PROTECTED]> To: "Chris" <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001 4:44 AM Subject: Re: [PHP] MySQL + PWS Problems > >Wh

Re: [PHP] MySQL + PWS Problems

2001-01-18 Thread Chris
i downloaded the binaries but when I compiled it said I was missing string.obj - Original Message - From: "Phil Driscoll" <[EMAIL PROTECTED]> To: "Chris" <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001 4:44 AM Subject: Re: [PHP] MySQL + PWS Problems > >Wh

Re: [PHP] date("t")

2001-01-18 Thread Maurice Rickard
It does indeed work. Thanks, Toby! -Maurice At 10:47 PM -0500 1/18/01, Toby Butzon wrote: >You might try this: > >Arguments for mktime for my reference and for yours are ... > >int mktime (int hour, int minute, int second, int month, int day, int year >[, int is_dst]) > >Then put it together wi

Re: [PHP] date("t")

2001-01-18 Thread Toby Butzon
You might try this: Arguments for mktime for my reference and for yours are ... int mktime (int hour, int minute, int second, int month, int day, int year [, int is_dst]) Then put it together with date() like this... date("t", mktime(1, 1, 1, $mm, 1, $)); This is untested, but should work

[PHP] date("t")

2001-01-18 Thread Maurice Rickard
I know I can get the number of days in the current month with date("t"), but how would I go about getting the number of days in a different month? I have a form that allows users to insert a date. If the value they put in doesn't exist (February 31, 2001, for example), I want to override it.

RE: [PHP] Web hosting for PHP/MySQl development

2001-01-18 Thread Maxim Maletsky
I have just gotten my own dedicated server my my personal websites... it is www.insidecrew.net they are quite cool.. FreeBSD, a good link and root password to you, then you installk what you wish... Cheers, Maxim Maletsky -Original Message- From: Tyler Longren [mailto:[EMAIL PROTECTED]]

[PHP] cookie does not work

2001-01-18 Thread Fai
I'm working with php3 and IIS, i had set cookie with: name, $session->cookie, $session->timeid+3600, but these cookie work right only on localhost and not on the others computer of the LAN, the options setting of internet: enable Cookie, can anybody tell me why? Thank You! -- PHP General Ma

[PHP] File upload on linux

2001-01-18 Thread MacBane
I have some file upload code but it is not woking on debian linux, could some one give me a hand here is the part of the code that is broken the path is below $the_path is set some where else $path = "/var/www/cms/gentext/$section/$doctype/"; if (!@copy($the_file, $the_path."\".$the_file_name

Re: [PHP] Problem with PHP using Java Classes

2001-01-18 Thread Fraser MacKenzie
Thanks. I will try this. Fraser On Thu, 18 Jan 2001, Alex Akilov wrote: > Fraser, > > >>extension_dir=/usr/local/lib/php/extensions/no-debug-non-zts-20001214:/home/local/java/jdk1.2.2/jre/lib/i386 > > Change the above to only list the directory that contains the > libphp_java.so. > The jdk

Re: [PHP] Running java under php4 (PHP4 ext/java)

2001-01-18 Thread Fraser MacKenzie
Ok. Alex, here it is: [java] java.class.path=/home/local/src/php-4.0.4/ext/java/php_java.jar:/home/local/java/jdk1.2.2/jre/lib:/home/local/java/jdk1.2.2/jre/bin java.home=/home/local/java/jdk1.2.2/bin:/home/local/java/jdk1.2.2/jre/bin java.library.path=/home/local/src/php-4.0.4/ext/java:/home/lo

[PHP] Help with PHP Shell Scripting

2001-01-18 Thread Justin Yu
Hi, When I tried connecting to Postgres through a shell script that I wrote, I get the following error: "Fatal error: Call to undefined function: pg_connect()" After searching the web for a solution, I realized that I have to compile PHP into its CGI version. Currently, PHP is installed as an

Re: [PHP] XML Parser is a bit strict

2001-01-18 Thread Francois Beauregard
At 11:52 01-01-19 +1100, Brian White wrote: >As far as I understand XHMTL, it simply HTML made XML compliant, which >basically means you always have to put in an end tag. True enough... There is a tool though on the w3c call HTMLTidy that you can pass your HTML code through and will give you bac

Re: [PHP] Ethics question...

2001-01-18 Thread John Hinsley
Frank Joerdens <[EMAIL PROTECTED]> wrote: (the context is Microsoft using other OSs) > Do you know for a fact that they do? If so, how? That'd be a very cool > tidbit of information to share . . . See also: http://www.unix-vs-nt.org/kirch/ A good document to hit clients/funders/bosses over t

Re: [PHP] how do I do this, please?

2001-01-18 Thread John Hinsley
Thanks Richard: I finally got it. I'm *really* rusty 'cos I went completely code blind and struggled for a day with a silly syntax error! This works just fine: http://localhost/calculate_form.html"); exit; } if ($calc == "add") { $result = $val1 + $val2; } else if ($calc == "su

Re: [PHP] Ultimate Editor

2001-01-18 Thread James Mclean
yes, but i preferr vim myself. bluefish has an excellent range of php functions available though, it is fast as well and crashes not often > Has anyone tried Bluefish for Linux? > > > > > -Original Message- > > From: Michael A. Peters [mailto:[EMAIL PROTECTED]] > > Sent: January 18, 2001

RE: [PHP] Ultimate Editor

2001-01-18 Thread Michael A. Peters
On Thursday, January 18, 2001, at 05:18 PM, Scott Gerhardt wrote: > The latest version of Bluefish really has a lot of tools and features for > PHP4. Agreed. I still like nedit better, though :D note: nedit does NOT have the php features bluefish has as far as button clicking stuff or synta

RE: [PHP] Web hosting for PHP/MySQl development

2001-01-18 Thread Tyler Longren
I suggest www.csoft.net They've got great servers. They provide inexpensive PHP/MySQL web hosting. I think you get as many databases as you desire. They also have telnet, ssh, and probably emacs. They probably have everything else you listed too. You have the option of having an OpenBSD server.

RE: [PHP] Ultimate Editor

2001-01-18 Thread Michael A. Peters
Yes. We (abriasoft) include it with some of our products. It's got a lot of nice features, and runs very well. On Thursday, January 18, 2001, at 05:05 PM, Scott Gerhardt wrote: > Has anyone tried Bluefish for Linux? > > > > > -Original Message- > > From: Michael A. Peters [mailt

[PHP] Re: (PHP+Linux+Apache+MySQL)+(Windows+Explorer)

2001-01-18 Thread Kevin Leavell
I use PHP, Apache, MySQL, Explorer on my Win98 machine. I set up my client's sites as virtual hosts under Apache which is running in Windows. It works great for me aside from the normal Windows abnormalities. Someday I may grow up and get a Linux box going but this works well for now. Kevin >

[PHP] Web hosting for PHP/MySQl development

2001-01-18 Thread Chris Lott
Any recommendations for a good, savvy host for doing some PHP/MySQL development? Not looking for a free service, obviously, but somebody with: knowledgeable tech support, good mysql/php 4/zend support, decent mail handling, and developers tools like: telnet/ssh, emacs, procmail, crontab access, et

RE: [PHP] Ultimate Editor

2001-01-18 Thread Scott Gerhardt
The latest version of Bluefish really has a lot of tools and features for PHP4. If it's been a while since you tried it, I would suggest taking another look at it. > -Original Message- > From: Ignacio Vazquez-Abrams [mailto:[EMAIL PROTECTED]] > Sent: January 18, 2001 7:12 PM > To: Scot

RE: [PHP] Ultimate Editor

2001-01-18 Thread Jerry Lake
I just installed Bluefish a few days ago. I haven't had a lot of time to mess with it, but it seems like a Linux variety of homesite (which is great with me) I'll give it a week or two and see what I think. anyone else? Jerry Lake -Original Message- From: Scott Gerhardt [mailto:[EMAIL PR

RE: [PHP] Ultimate Editor

2001-01-18 Thread Ignacio Vazquez-Abrams
On Thu, 18 Jan 2001, Scott Gerhardt wrote: > Has anyone tried Bluefish for Linux? > Tried it, didn't like it. The best option is probably to use something like Samba (http://www.samba.org/) or NFS Maestro (http://www.hummingbird.com/products/nc/nfs/index.html) to share files cross-platform. --

RE: [PHP] Ultimate Editor

2001-01-18 Thread Scott Gerhardt
Has anyone tried Bluefish for Linux? > -Original Message- > From: Michael A. Peters [mailto:[EMAIL PROTECTED]] > Sent: January 18, 2001 7:02 PM > To: Chris Aitken > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Ultimate Editor > > > look into nedit. > > It does very well on linux, and I he

Re: [PHP] Ultimate Editor

2001-01-18 Thread Michael A. Peters
look into nedit. It does very well on linux, and I hear there's a Windows port. I have a screenshot of nedit at http://24.5.29.77/nedit.jpeg nedit website is http://www.nedit.org/ It doesn't have a publish directly to the web function, nor does it have a built in server- but I just use thttpd

Re: [PHP] Ultimate Editor

2001-01-18 Thread Nathan Cook
If I may make a session download phped.com or find another editor (notepad) and then use that in conjunction with ftp net drive (look for it on the web somewhere), it will allow you view the ftp servers drive, copy and paste and save directly to the server... works very nice. .:: Nathan Cook [ [E

[PHP] Variable method

2001-01-18 Thread Blaine Grady
Suppose I have: $method = "doIt"; inside a class. How do I construct the statment, using $method, to call: $this->doIt(); I tried every combination I can think of but I keep getting "Call to unsupported or undefined function" when doIt() is a proper method. I have no problem with stand

Re: [PHP] XML Parser is a bit strict

2001-01-18 Thread Brian White
( I am still not used to this mailing list - I keep hiting "Reply" and only sending it to the poster. ) Part of the XML standard is that every element will have start and end tags. HTML actually uses the syntax of SGML, which allows some tags to have their end tags omitted - therefore, on som

Re: [PHP] date problem: some months have 5 weeks... how I discoverwhichones?

2001-01-18 Thread jeremy brand
> For a newspaper, a week start on sunday and ends in a saturday. > > Media planners divide ads in newspapers by monhs and than by weeks, > respectively. Well, this _seems_ contradictory to your original "definition", but I got it. > so let's say: > > january 2001 started in a monday > > Su M

Re: [PHP] Sendmail User ID

2001-01-18 Thread Yurais Fernández Leal
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ok I solved the problem I put a user on the trusted class of the sendmail and added -f otheruser in the php.ini file... thanks everyone -BEGIN PGP SIGNATURE- Version: PGPfreeware 6.5.8 for non-commercial use iQA/AwUBOm

Re: [PHP] Announcement: Smarty - the PHP compiling template engine

2001-01-18 Thread Josh G
Nice... has a lot of cool ideas in it, a few of which I'm also working on for the templating part of a content management system I'm working on in my spare time (like compilation, except i'm going to do it at save-time, not 1st run-time, since i control the publishing functions). Gfunk -

[PHP] problems creating a png image from an array{HELP}

2001-01-18 Thread Nikos Tahos
I have a txt file as input.This file has the coordinates for a gas network.With php I am creating an array with the above coordinates and then I create from the array the image from the network.When the txt file is >21Kb there is no image, else all works perfect{with a smaller txt file).I am using

Re: [PHP] date problem: some months have 5 weeks... how I discoverwhich ones?

2001-01-18 Thread Romulo Roberto Pereira
For a newspaper, a week start on sunday and ends in a saturday. Media planners divide ads in newspapers by monhs and than by weeks, respectively. so let's say: january 2001 started in a monday Su Mo Tu We Th Fr Sa 123 4 5 6 - 1st week 7 89 10 11 12 13 - 2nd w

Re: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-18 Thread Egan
On Thu, 18 Jan 2001 19:08:44 -0500, "Toby Butzon" <[EMAIL PROTECTED]> wrote: >Plus if you're just looking for soemthing to get your layout started, you >can start in FrontPage and just never open PHP files in it once you start >adding PHP ;) I'm using HoTMetaL Pro 6.0. It's great for table layo

Re: [PHP] (PHP+Linux+Apache+MySQL)+(Windows+Explorer)

2001-01-18 Thread jeremy brand
you can also, very easily, dual boot. (you said same machine). I have had IE 5 working (for the most part) under wine in debian about 6 months ago. It would crash every now and again, and the widgets looked wierd, but it was useable. If I were you, it might make more sense to just spend the wh

Re: [PHP] Sendmail User ID

2001-01-18 Thread Yurais Fernández Leal
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Well man I'd consider the choice of invoking sendmail -f, it's right what I need to do, but how can I do so in the mail function ? Is there something I have to alter in the php.ini file ? - - Original Message - From: "Robert Hough" <[EMAI

[PHP] R: [PHP] Can a PHP program recieve an e-mail and write it to a file???

2001-01-18 Thread Delbono
It depends on your MAIL SERVER (and on your OS.) For Linux I think SendMail can forward mails to an external program For WinNT I know POSTOFFICE allows this. But PostOffice is commercially released not for free. In this case the mails are redirected to the program via STDIN Bye N. -Messa

Re: [PHP] date problem: some months have 5 weeks... how I discoverwhich ones?

2001-01-18 Thread jeremy brand
All months have more than 4 weeks except February (but only when it is not a leap year). I'm probably not understanding what exactly you are trying to do. By your definition then, wouldn't this month only have 3 weeks? January 2001 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11

Re: [PHP] date problem: some months have 5 weeks... how I discover which ones?

2001-01-18 Thread Josh G
can't think of exactly the math, but get the weekdayday of the 1st, divide how many days in the month/7, and it should be easy enuff. use a combination of date() and mktime() to get the first day of the month methinks. Gfunk - http://www.gfunk007.com/ I sense much beer in you.

Re: [PHP] (PHP+Linux+Apache+MySQL)+(Windows+Explorer)

2001-01-18 Thread Ignacio Vazquez-Abrams
On Thu, 18 Jan 2001, Andrés de la Varga wrote: > Can I have (PHP+Linux+Apache+MySQL)+(Windows+Explorer) in the same machine > to develope stand alone? > > Andrés de la Varga > http://www.vmware.com/ -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.

[PHP] Ultimate Editor

2001-01-18 Thread Chris Aitken
At 06:47 PM 18/01/2001, you wrote: >What I'd like an editor to do for me is help out with how the page looks. >One I set up a page that looks half-way decent - even if I use stock >templates or style sheets - I can always plop the code in later by hand and >that's no biggie. It's just that initia

Re: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-18 Thread Toby Butzon
Plus if you're just looking for soemthing to get your layout started, you can start in FrontPage and just never open PHP files in it once you start adding PHP ;) --Toby - Original Message - From: "Ignacio Vazquez-Abrams" <[EMAIL PROTECTED]> To: "Murph" <[EMAIL PROTECTED]> Cc: <[EMAIL PRO

[PHP] (PHP+Linux+Apache+MySQL)+(Windows+Explorer)

2001-01-18 Thread Andrés de la Varga
Can I have (PHP+Linux+Apache+MySQL)+(Windows+Explorer) in the same machine to develope stand alone? Andrés de la Varga -- 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 administr

[PHP] date problem: some months have 5 weeks... how I discover which ones?

2001-01-18 Thread Romulo Roberto Pereira
Hey! A little bit of definition: - a week start on sunday and ends on saturday; - a year has 365/7 ~= 52 weeks; How do I discover what months have 5 weeks and what have 4? Rom

Re: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-18 Thread Ignacio Vazquez-Abrams
On Thu, 18 Jan 2001, Murph wrote: > I'd like to take a look at EditPlus2. Got a link? > http://www.editplus.com/ > What I'd like an editor to do for me is help out with how the page looks. > One I set up a page that looks half-way decent - even if I use stock > templates or style sheets - I can

Re: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-18 Thread Murph
> James, > > I too have used various WYSIWYG html coders, and most of the time, I found > my self hampered by application limitations. It is a fair way to study code > generated...but that method of learning can be dangerous as well. I also > find I have quicker response/fixes to bugs in handcod

Re: [PHP] XML Parser is a bit strict

2001-01-18 Thread Chris Adams
On 18 Jan 2001 14:28:16 -0800, Chris Lee <[EMAIL PROTECTED]> wrote: >I dont know if you can use XHTML syntax in XML, I dont think it works like >this, I think XML is more strict. XHTML *is* XML - it's just HTML reformulated so that a valid XHTML document can be parsed by a normal XML parser witho

Re: [PHP] How to get userID/password from the browser session

2001-01-18 Thread david klein
It works! Great! Thank you very much for the great help! Regards, David >From: Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> >To: david klein <[EMAIL PROTECTED]> >Subject: Re: [PHP] How to get userID/password from the browser session >Date: Thu, 18 Jan 2001 18:38:34 -0500 (EST) > >On Thu, 18 Jan

Re: [PHP] $PHP_SELF truncated to 17 chars

2001-01-18 Thread Shawn Blaylock
I've checked phpinfo(); and none of the other vars are truncated. I think I just solved the problem! It's a crude hack though =( I set $PHP_SELF = $HTTP_SERVER_VARS['PATH_INFO'] at the beginning of the script, and that seems to have solved it. In the bug info they said it might be related to the Z

Re: [PHP] Can a PHP program recieve an e-mail and write it to afile???

2001-01-18 Thread Ignacio Vazquez-Abrams
On Thu, 18 Jan 2001, Chris Hayes wrote: > > > Date sent:Thu, 18 Jan 2001 15:20:24 -0500 (EST) > From: Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> > To: Jeremy Bowen <[EMAIL PROTECTED]> > Copies to:<[EMAIL PROTECTED]> > Subject:

Re: [PHP]

2001-01-18 Thread eschmid+sic
On Thu, Jan 18, 2001 at 03:14:44PM -0800, Shawn Blaylock wrote: > It's my understanding that whitespace is ignored. I could be wrong here, > though. Whitespace plays a very importend role. Between the opening tag and after a whitespace should follow valid PHP or XML code. There is one exception:

Re: [PHP] $PHP_SELF truncated to 17 chars

2001-01-18 Thread jeremy brand
Then it is something else, not those variables themselves. Do you have a configuration issue? Are you running on Windows; do you need to reboot? check phpinfo(); and see if all your variables are truncated. Just a few thought. Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [

Re: [PHP] Where is information about Forms?

2001-01-18 Thread Ignacio Vazquez-Abrams
On Fri, 19 Jan 2001, Josh G wrote: > they're automagically converted to global variables. > Strictly speaking, no. They're put into $HTTP_*_VARS, and if register_globals is on in php.ini, then they're available in $GLOBALS in the order given by variables_order in php.ini. > Gfunk -

Re: [PHP] How to get userID/password from the browser session

2001-01-18 Thread Ignacio Vazquez-Abrams
On Thu, 18 Jan 2001, david klein wrote: > In Apache authentication, userID/password are stored in browser session, and > every time, these information will be sent back to the Apache server and do > the authentication. > > My question is: can we get the userID/password from the browser session, >

Re: [PHP] $PHP_SELF truncated to 17 chars

2001-01-18 Thread Shawn Blaylock
Unfortunately, it's hacking off the last few characters in SCRIPT_NAME, too. --Shawn jeremy brand wrote: > > I'm not aware of this bug, but temporarily you might consider using > the $SCRIPT_NAME variable. The same values is stored in it AFAIK. > > Jeremy > > Jeremy Brand :: Sr. Software En

Re: [PHP] $PHP_SELF truncated to 17 chars

2001-01-18 Thread jeremy brand
I'm not aware of this bug, but temporarily you might consider using the $SCRIPT_NAME variable. The same values is stored in it AFAIK. Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - -

[PHP] How to get userID/password from the browser session

2001-01-18 Thread david klein
In Apache authentication, userID/password are stored in browser session, and every time, these information will be sent back to the Apache server and do the authentication. My question is: can we get the userID/password from the browser session, especially in PHP? Thank you very much in advan

Re: [PHP]

2001-01-18 Thread Shawn Blaylock
It's my understanding that whitespace is ignored. I could be wrong here, though. --Shawn Toby Butzon wrote: > > Has using > --Toby > > - Original Message - > From: <[EMAIL PROTECTED]> > To: "Alexander Wagner" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Thursday, January 18, 2001

[PHP] Announcement: Smarty - the PHP compiling template engine

2001-01-18 Thread Monte Ohrt
Release 1.0. Please welcome Smarty to the PHP template engine arena :-) Inventors: Monte Ohrt Andrei Zmievski http://www.phpinsider.com/php/code/Smarty/ DESCRIPTION: What is Smarty? Smarty is a template engine for PHP. One of the unique aspects about Smarty that sets it apart from

Re: [PHP] Where is information about Forms?

2001-01-18 Thread Josh G
they're automagically converted to global variables. becomes $foo on the page you're submitting to. Nice, wot? Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. - Original Mes

Re: [PHP]

2001-01-18 Thread Toby Butzon
Has using To: "Alexander Wagner" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, January 18, 2001 4:21 PM Subject: Re: [PHP] On Thu, Jan 18, 2001 at 10:02:42PM +0100, Alexander Wagner wrote: > > [EMAIL PROTECTED] wrote: > > > > > > > > > > > > And for all three cases the closing tag

Re: [PHP] Where is information about Forms?

2001-01-18 Thread Ignacio Vazquez-Abrams
On Thu, 18 Jan 2001, Karl J. Stubsjoen wrote: > Hello, > > Looking through the PHP Site (someone needs to improve the search features), > and can't find information about querying form field values etc... > > Thanks! > http://www.php.net/manual/en/html/language.variables.external.html -- Ignac

[PHP] Where is information about Forms?

2001-01-18 Thread Karl J. Stubsjoen
Hello, Looking through the PHP Site (someone needs to improve the search features), and can't find information about querying form field values etc... Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

[PHP] $PHP_SELF truncated to 17 chars

2001-01-18 Thread Shawn Blaylock
I'm having a problem with $PHP_SELF being cut down to 17 characters, for instance /Scripts/php/phpscript.php?value=123 would be cut down to /Scripts/php/phps There was a bug opened up on bugs.php.net, id number 5380, but I can't find a solution in the comments listed there. I was wondering if a

Re: [PHP] Quotes and Values

2001-01-18 Thread Josh G
True, but iirc it's not xml compliant, and might not be a good habit, and it then leaves you without the option to use it in JS calls, like: echo "" Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers t

Re: [PHP] srtoring user selection on the database...

2001-01-18 Thread Ignacio Vazquez-Abrams
On Thu, 18 Jan 2001, Ignacio Vazquez-Abrams wrote: > On Thu, 18 Jan 2001, Ignacio Vazquez-Abrams wrote: > > > Even shorter: > > > > $acc=implode(",", array_flip($cb)); > > > > Assuming, of course, that the original values are unique (oops!). > > Oh wait: $acc=implode(",", array_keys($cb)); THA

Re: [PHP] srtoring user selection on the database...

2001-01-18 Thread Ignacio Vazquez-Abrams
On Thu, 18 Jan 2001, Ignacio Vazquez-Abrams wrote: > Even shorter: > > $acc=implode(",", array_flip($cb)); > Assuming, of course, that the original values are unique (oops!). -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-m

Re: [PHP] srtoring user selection on the database...

2001-01-18 Thread Ignacio Vazquez-Abrams
On Thu, 18 Jan 2001, Romulo Roberto Pereira wrote: > Hey!!! thank you for your answer... what you think about this solution: > > while(list($key, $val) = each($cb)) { > if ($val == 1 && $key != 0) { > $acc = $key; > } else { > $acc = $acc.",".$key; > } > > } > Even shorter: $acc=implode(",

Re: [PHP] Quotes and Values

2001-01-18 Thread Chris Lee
alot of people inside on escaping your double quotes, I dont, I use single quotes, its nicer to read. echo "\n"; echo "\n"; I find the prior easier to read. they both work 100% no quibles. Chris Lee Mediawaveonline.com ""Karl J. Stubsjoen"" <[EMAIL PROTECTED]> wrote in message 017b01c081a0$

Re: [PHP] srtoring user selection on the database...

2001-01-18 Thread jeremy brand
> while(list($key, $val) = each($cb)) { > if ($val == 1 && $key != 0) { > $acc = $key; > } else { > $acc = $acc.",".$key; > } This looks syntactically correct. > } > // by the way this: $acc=.$key would be a valid command? like the c++ $a =+ > $b I usually use (for a string): .= that wou

  1   2   3   4   >