[PHP] db connection error: need help badly

2001-01-24 Thread [EMAIL PROTECTED]
Quoting from my previous message. I think my exact question is that when I add a new db on to db server, How do I set up username and password to access that db? All I did was just run the query at "mysql" database to insert Host, username at "user" table ( left password blank)and gave all

Re: [PHP] db connection error: need help badly

2001-01-24 Thread Jørg V . Bryne
I always use mysql_setpermission, which is a script for easy adding of users and permissions etc. step by step. It comes with the standard dist. of mysql. Mvh Jrg - Original Message - From: "Jacky@lilst" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 24, 2001 10:45 PM

[PHP] RE: Zend Store products questions

2001-01-24 Thread Adi Brand
Hello Andrew, Thank you for contacting Zend and your interest in our products. Regarding your questions, the answers are: 1. YES. The Encoder Plugins are perpetual and have no time limitation. 2. You will receive all the prducts at nce, and you are entitled to all major S/W upgrades within

WG: [PHP] Shared Memory with Yast-installed mod_php4 from SuSE.

2001-01-24 Thread Thomas Weber
-Ursprungliche Nachricht- Von: Thomas Weber [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 24. Januar 2001 09:50 An: [EMAIL PROTECTED] Betreff: AW: [PHP] Shared Memory with Yast-installed mod_php4 from SuSE. Thanks Stathis i tried it twice to compile it, ./configure , make,

Re: [PHP] where does database go at host

2001-01-24 Thread Richard Lynch
I'm going to created a database with the use of a php/html page on my commercial host (forsite.net). I have yet to master the unix directory system so I don't want to play around looking for it. Does a database have to "live" in the MySQL directory, or can it be in my html web directory? How

Re: [PHP] Bad file descriptors

2001-01-24 Thread Richard Lynch
There are only so many files that your OS can have open at any one time -- Perhaps you are hitting that limit?... I think you can increase this with... "ulimit"??? Another possibility is that if you need to copy an entire directory structure, rather than making PHP walk through it copying one

Re: [PHP] Repition Reduction ?

2001-01-24 Thread Richard Lynch
I'm making a small quiz script, and wanted to know how I could minimize repition of questions to a single user. And also how to randomize all the questions ? If you put all the questions in an array, and then call http://php.net/shuffle on it, you'll do both. -- PHP General Mailing List

Re: [PHP] session.save_path

2001-01-24 Thread Richard Lynch
Warning: open(/tmp\sess_1b7577b36d874741ed1e74b4bead0dfd, O_RDWR) failed: m (2) in h:\program\apache\htdocs/boa/sessionTest.php on line 5 Warning: open(/tmp\sess_1b7577b36d874741ed1e74b4bead0dfd, O_RDWR) failed: m (2) in Unknown on line 0 Warning: Failed to write session data (files). Please

[PHP] Missing php_imap.so module, PLEASE HELP

2001-01-24 Thread Dezider Gra
I dunno what's wrong. I have wu-imap installed and running. I want to compile php with imap support, so I downloaded and untarred wu-imapd. When compiling php I specified the locaiton of c-client files in the source dir of wu-imap. Make, make install ran withou error ( or I didn't notice any ).

[PHP] Status of debugger_on( )

2001-01-24 Thread [EMAIL PROTECTED]
Hello Can someone tell me the present status of debugger_on( ) function? Does it still exist? the documentation says it does! Is there someone who is really using it? Thanks in advance Tarique -- = B2B Application Providers

[PHP] Any PHP/MySQL webhosts that allow 'load data infile' statement ?

2001-01-24 Thread Margot
Does anyone know of any reputable PHP/MySQL webhosting companies that allow clients to use the "load data ... infile" statement? Many enquiries to well known webhosts have resulted in a universal '"no". TIA Margot. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP] last_insert_id function

2001-01-24 Thread [EMAIL PROTECTED]
I got this quote right out of the php manual. My Id field happen to be type BIGINT as it said so I tried using LAST_INSERT_ID(); and turn out to be error said "unidentified function". Any clue? *** mysql_insert_id() converts the return type of the native

[PHP] Bi-directional popen()?

2001-01-24 Thread Mark Lipscombe
Hi, Is it at all possible, no matter how much trickery and such involved, to do something similar to popen(), but bi-directional? Thanks, Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

RE: [PHP] last_insert_id function

2001-01-24 Thread Maxim Maletsky
for example: $SQL = "INSERT INTO users SET name='Maxim', surname='Maletsky'"; now you have to insert into another table where you need to relate that user to the entry: $SQL2 = "INSERT INTO questions SET question='how did you sleep?', made_by=LAST_INSERT_ID()"; LAST_INSERT_ID() will be here

Re: [PHP] sleep and usleep not working ??

2001-01-24 Thread Daniel Grace
""Benny Nissen"" [EMAIL PROTECTED] wrote in message 94k0ql$em$[EMAIL PROTECTED]">news:94k0ql$em$[EMAIL PROTECTED]... Hi All I have tried to get this to work but it does not produce any output in the browser - why $i = 1; while ($i) { if(connection_aborted()) break; echo $i; echo

RE: [PHP] last_insert_id function

2001-01-24 Thread Mark Lipscombe
Someone jump in here and correct me if I'm wrong, but by the time you get around to executing the second query, LAST_INSERT_ID() from MySQL isn't necessarily going to be the desired value, because another record may well have been inserted in that time? On 24 Jan 2001 18:25:27 +0900, Maxim

Re: [PHP] last_insert_id function

2001-01-24 Thread [EMAIL PROTECTED]
So can I do either way as I show below here? first could be : $sql = "insert into user (name,email) values('Jack','[EMAIL PROTECTED]')"; $result = mysql_query($sql); $sql1 = "insert into userFriend (userId,friendName,) values(LAST_INSERT_ID(),'John');" $result1 = mysql_query($sql1); or second

RE: [PHP] last_insert_id function

2001-01-24 Thread Maxim Maletsky
no it will keep it very well. In fact most common errors with this function is that it still keeps the same value when you do something wrong. This issue is described in more details on every single manual that has LAST_INSERT_ID() in it - read where you found it ... it is written there ... I am

RE: [PHP] last_insert_id function

2001-01-24 Thread Maxim Maletsky
Yes, except that in the second case you first will have to do the insertion of $sql and then assign $lastId to mysql_insert_id(); Cheers, Maxim Maletsky -Original Message- From: Jacky@lilst [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 25, 2001 7:36 AM To: Maxim Maletsky; [EMAIL

RE: [PHP] last_insert_id function

2001-01-24 Thread Maxim Maletsky
a thing to understand (just in case you didn't) that mysql_insert_id() must be called after mysql_query($sql) was made... otherwise how do we know the last id... ? Cheers, Maxim Maletsky -Original Message- From: Maxim Maletsky Sent: Wednesday, January 24, 2001 6:38 PM To:

[PHP-CVS] cvs: php4 /ext/gd gd.c php_gd.h

2001-01-24 Thread Derick Rethans
derick Wed Jan 24 01:24:27 2001 EDT Modified files: /php4/ext/gdgd.c php_gd.h Log: - Commited a patch that adds support for converting Images to WBMP format. (Thanx to Denis Gasparin [EMAIL PROTECTED]) @- Added support for converting images from

Re: [PHP] last_insert_id function

2001-01-24 Thread [EMAIL PROTECTED]
Can we store the value retrieved by last_insert_id for later use? say we want to related 3 queries together and under that case, we will then need to store the first "last_insert_id value" somewhere and then retrive the second "last_insert_id value" from the second insert query before both values

RE: [PHP] last_insert_id function

2001-01-24 Thread Maxim Maletsky
I am not really sure about this one, but the first thing I would do is that I would try it. It could be though ... Cheers, Maxim Maletsky -Original Message- From: Jacky@lilst [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 25, 2001 7:53 AM To: Maxim Maletsky; 'Mark Lipscombe' Cc:

Re: [PHP] Sockets

2001-01-24 Thread Jason Brooke
The online manual has some working examples Also, using the socket funcs in Php isn't very different from using them in C - try searching www.google.com if the examples in the manual aren't enough jason - Original Message - From: "Boget, Chris" [EMAIL PROTECTED] To: "Php (E-mail)"

[PHP] Form data is not remembered

2001-01-24 Thread Alain Fontaine
Hi, I have a page with a couple of form fields that are being POSTed to a processing PHP script. The page that contains these form fields is itself a PHP page that uses sessions and so on. I have to make "server-side data validation" on the fields because of their complexity. When the user hits

Re: [PHP] Funny php://stdout behaviour

2001-01-24 Thread ARTEK
Hi Richard, thank you for your answer: When calling the php4 code below, sometimes the browser receives -the "HTML estandar text" -sometimes the "Text generated from PHP" (but NEVER both!) -and ocassionaly the error: "Warning: fopen("php://stdout","w") - Bad file descriptor in

Re: [PHP] last_insert_id function

2001-01-24 Thread Alain Fontaine
Hi, Anyway, as far as I know, mysql_insert_id() is just a PHP implementation calling the exact same code as mySQL's internal last_insert_id() function; except for the drawback with the BIGINT thing, the functionality should be exactly the same for both. "Maxim Maletsky" [EMAIL PROTECTED] a

Re: [PHP] last_insert_id function: I did already

2001-01-24 Thread [EMAIL PROTECTED]
I did try already. What I did was I assign value from LAST_INSERT_ID(); onto a virable after I run the first insert query the same way we do to mysql_insert_id and the result when the page is executed, it said " unidentified function" which of course because php does not know LAST_INSERT_ID like

Re: [PHP] last_insert_id function: I did already

2001-01-24 Thread Alain Fontaine
Hi, To use mySQL's internal function, try something like this: mysql_query("insert into mytable values(1,2,3)"); $rs = mysql_query("select LAST_INSERT_ID() from mytable"); $theLastInsertedID = mysql_result($rs,0,0); ""Jacky@lilst"" [EMAIL PROTECTED] a écrit dans le message news:

Re: Re: [PHP] PHP Editors

2001-01-24 Thread Piotr Duszynski
Everyone has their favorite editor, and FWIW mine is editplus. I've programmed for almost 20 years with many different editors and in my opinion, this is the best editor I've ever used. It works great with PHP. www.editplus.com I use PHPED (www.phped.com). It has some bugs but I like it.

[PHP] Extending PHP

2001-01-24 Thread Thomas Wentzel
Hi, I would like to know if anybody has had any luck in writing a PHP module, that uses an external (C) library, using ext_skel, buildconf/phpize... I've been reading the apidocs as well as "Web Application Development with PHP 4.0" but I still can't get it to work.. The problem is that

[PHP] Saving Images...

2001-01-24 Thread Miguel Loureiro
Hi, could you tell me how to save image created ( with ImageCreate , and other stuff ..), there is any SaveImageAs... or something like that ? Do you know where can I find tutorials about creating, using thumb nails? Thanks your time... Miguel Loureiro [EMAIL PROTECTED] ENJOY LIFE...

[PHP] last_insert_id:sql internal function

2001-01-24 Thread [EMAIL PROTECTED]
Don't you have to do something like this? $something = mysql_query("into mytable."); $result = mysql_query($something); $rs = mysql_query("select LAST_INSERT_ID() from mytable"); $theLastInsertedID = mysql_result($rs,0,0); corerct? Jack [EMAIL PROTECTED] "There is nothing more

Re: [PHP] Beginner in php!

2001-01-24 Thread Tshering Norbu
Here is collection I got from this list; www.editplus.com www.codecharge.com www.phpedit.com www.ultraedit.com NOBBY - Original Message - From: kaab kaoutar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 24, 2001 4:28 PM Subject: [PHP] Beginner in php! Hi guys!

Re: [PHP] Form data is not remembered

2001-01-24 Thread Klepto
Try the "GET" method in the form. Jaks - Original Message - From: Alain Fontaine [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 24, 2001 2:11 AM Subject: [PHP] Form data is not "remembered" Hi, I have a page with a couple of form fields that are being POSTed to a

RE: [PHP] Beginner in php!

2001-01-24 Thread Jon Haworth
Hi, welcome to the wonderful world of PHP... grin You can use any text editor you like to write your PHP, my personal favourite is EditPlus 2 (www.editplus.com), but this is holy war territory so try a few out and see which one you get on with best. There are loads of great tutorials all over

Re: [PHP] Newbie frustration!

2001-01-24 Thread Christian Reiniger
On Tuesday 23 January 2001 22:03, Gerry wrote: All I need is to be able to learn how to load everything from a script and how to call the script with a URL to the directory. eg. ? if (Yarns/) { include "header,nav, fetch content,footer"; else "?"; } ? a href="http://mysite.com/Yarns/"

Re: [PHP] Session problems

2001-01-24 Thread Johannes Janson
I don't know if it'll help but here my bit of the php.ini: session.save_handler = files ; handler used to store/retrieve data session.save_path = C:\Programme\Apache Group\Apache\cgi-bin\php4\sessiondata; argument passed to save_handler ; in

Re: [PHP] file or fopen to fetch a web page???

2001-01-24 Thread Christian Reiniger
On Wednesday 24 January 2001 01:25, Richard Lynch wrote: I wonder myself, which method is better to fetch a web page: $file = fopen($url, "r"); $page = fread($file, 5); or $file = join('', file($url)); Probably about the same either way... Perhaps. In an earlier

[PHP-CVS] cvs: php4 /pear/HTML Form.php

2001-01-24 Thread Stig Bakken
ssb Wed Jan 24 03:04:34 2001 EDT Modified files: /php4/pear/HTML Form.php Log: typo Index: php4/pear/HTML/Form.php diff -u php4/pear/HTML/Form.php:1.7 php4/pear/HTML/Form.php:1.8 --- php4/pear/HTML/Form.php:1.7 Tue Jan 9 17:01:55 2001 +++

Re: WG: [PHP] Shared Memory with Yast-installed mod_php4 from SuSE.

2001-01-24 Thread Christian Reiniger
On Wednesday 24 January 2001 09:55, Thomas Weber wrote: Thanks Stathis i tried it twice to compile it, ./configure , make, make install. but i don't get a new libphp4.so! I found only a libphp4.a wich is 9MB (the original libphp4.so is only 2.5MB . You forgot the --with-apxs

[PHP-CVS] cvs: php4 /pear/HTML ITX.php

2001-01-24 Thread Sebastian Bergmann
sbergmann Wed Jan 24 03:19:29 2001 EDT Modified files: /php4/pear/HTML ITX.php Log: Forgot to include IT.php. Index: php4/pear/HTML/ITX.php diff -u php4/pear/HTML/ITX.php:1.3 php4/pear/HTML/ITX.php:1.4 --- php4/pear/HTML/ITX.php:1.3 Fri Jan 19

[PHP] strangeness with is_dir()

2001-01-24 Thread hsmith
Hi all I'm trying to use is_dir to go thru a dir to list all dirs of that I have a dir with 3 other dirs in them [root@universe templates]# pwd /www/docs/webit/admin/templates [root@universe templates]# ls -l total 12 drwxr-xr-x 4 root root 4096 Jan 12 13:16 1/ drwxr-xr-x 4

[PHP] Checking if files are there?

2001-01-24 Thread Sam
Hi all, I was wondering if you could use PHP to test if a picture is there? I.E. checking if you could open the picture or not, and displaying a message either way. I have tried $file = fopen ("../images/maps/$filename.jpg", "r"); if (!$file) { print "This is no map for this trip.";

AW: WG: [PHP] Shared Memory with Yast-installed mod_php4 from SuSE.

2001-01-24 Thread Thomas Weber
Yea, thank you It worked! Formerly i used the --with-apache command (wich hasn't worked) and now with the --with-apxs it works. Great, thank you very much! :)) -- Thomas -Ursprüngliche Nachricht- Von: Christian Reiniger [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 24. Januar

RE: [PHP] Checking if files are there?

2001-01-24 Thread Jon Haworth
Yep. $file = @fopen (. The @ sign suppresses the warning messages. Should work fine after this. HTH Jon -Original Message- From: Sam [mailto:[EMAIL PROTECTED]] Sent: 24 January 2001 12:19 To: 'php' Subject: [PHP] Checking if files are there? Hi all, I was wondering if

[PHP] roxen

2001-01-24 Thread Remigiusz Sokolowski
HI! Anybody has some experince with working Roxen+PHP? How about speed, features in compare to Apache for example? TIA RemS -- ---/\-- Remigiusz Sokolowski e-mail: [EMAIL PROTECTED]/ \

Re: [PHP] strangeness with is_dir()

2001-01-24 Thread Daniel Lundqvist
On Wed, Jan 24, 2001 at 01:48:29PM +0200, [EMAIL PROTECTED] wrote: Hi all I'm trying to use is_dir to go thru a dir to list all dirs of that I have a dir with 3 other dirs in them [root@universe templates]# pwd /www/docs/webit/admin/templates [root@universe templates]# ls -l total

[PHP] PHP and PDF!!!!!

2001-01-24 Thread Bruno Freire
I Know that PHP can make PDF files. But Some body PLEASE can pass to me a Binary instalation of this library?? Or tell me where i can find it THANKS

Re: [PHP] Bi-directional popen()?

2001-01-24 Thread Richard Lynch
Is it at all possible, no matter how much trickery and such involved, to do something similar to popen(), but bi-directional? The user-contributed notes indicate that popen() *is* bi-directional for those OSes that support them... Meanwhile, if yours doesn't, you could maybe wrangle something

Re: [PHP] error with REPLACE or UPDATE

2001-01-24 Thread Richard Lynch
I getting dificulties with an updating records procedure: like I have an Auto-Increment field I try to use the REPLACE (but without the the auto-increment I tried also UPDATE). I checked also the variables with an echo, and also all the usual things I could imagine... What goes wrong?... #

Re: [PHP] Use variables, functions ect. in a textfile

2001-01-24 Thread Richard Lynch
Im working on a site where we want to put all the text into text-files. Im having troubles doing this, though. If I have a text like this "Today there are more than users registered", and I put it in a .txt-file, how can I execute the code wich should return the numer ? Im building

Re: [PHP] Form data is not remembered

2001-01-24 Thread Steve Edberg
At 2:41 AM -0800 1/24/01, Klepto wrote: Try the "GET" method in the form. Jaks - Original Message - From: Alain Fontaine [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 24, 2001 2:11 AM Subject: [PHP] Form data is not "remembered" Hi, I have a page with a couple

Re: [PHP] |O:T| Can anyone translate for me this Perl code into PHP?

2001-01-24 Thread Chris Hayes
Hi Maxim, It is simple, I can see it, but I do not understand what is that RegEx for, what is $pid ( fork() ) and where does it actually send emails... right... you look like Blair and Clinton saying the Human Genome has been 'completely' discovered. Simple, but ## the first part is

[PHP] Editors, again (was Re: [PHP] Beginner in php!)

2001-01-24 Thread Steve Edberg
At 4:40 PM +0600 1/24/01, Tshering Norbu wrote: Here is collection I got from this list; www.editplus.com www.codecharge.com www.phpedit.com www.ultraedit.com See this list: http://www.itworks.demon.co.uk/phpeditors.htm Some of the comments are a bit out of date - for instance,

RE: Re: [PHP] Funny php://stdout behaviour

2001-01-24 Thread Dotan Cohen
I actually was getting prompted to download the .php file sometimes... So, the user would be able to open the file in, say, VI and see your code? Big security hole, no? Of which versions of php4 was this characteristic? Dotan Cohen --- MySQLphp4

[PHP] eval() to string???

2001-01-24 Thread [ rswfire ]
I want to evaluate some PHP code to a string. How can I do this? $php_code = "echo 'hello';" I would like to evaluate the code to "hello" in another string...

[PHP] Prob with blobs

2001-01-24 Thread davey sonya
Can anyone help with inserting a blob field into a database Interbase 6? I am using a textarea field for user input/text and need to insert the field into my database. I am getting the following error if I do a normal insert statement: 'conversion error from string "BLOB"' Thanks in advance.

[PHP] declare variable

2001-01-24 Thread kaab kaoutar
Hi all! first thanks for urvreplies about the editors and tutorials! well while trying a my first php form i had to use a loop in the confirmation part which looks like: ?php echo " " . $personal["name"]. "\n" . $personal["email"] . "br " ; echo Count($beer); $i=0; for ($i=0;$iCount($beer);$i++)

[PHP] HTTP_REFERER vs. session_whatever() vs. header()

2001-01-24 Thread Scott Fletcher
Hi Everyone! I did post the note in the past about the problem with HTTP_REFERER which doesn't work in Netscape 6.0. It turned out that I was looking at the wrong thing the whole time. What I found is that it isn't really Netscape problem. It turned out that Netscape 6.0 can't use 2 times

Re: [PHP] declare variable

2001-01-24 Thread Alexander Wagner
kaab kaoutar wrote: ?php echo " " . $personal["name"]. "\n" . $personal["email"] . "br " ; echo Count($beer); $i=0; for ($i=0;$iCount($beer);$i++) echo $beer[i]; ? i have the same error the constant i is not defined ... how acn i fix it ? Try for ($i=0;$iCount($beer);$i++) echo

AW: [PHP] eval() to string???

2001-01-24 Thread Thomas Weber
try eval("\$php_code;"); -Ursprngliche Nachricht- Von: [ rswfire ] [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 24. Januar 2001 15:36 An: [EMAIL PROTECTED] Betreff: [PHP] eval() to string??? I want to evaluate some PHP code to a string. How can I do this? $php_code = "echo

AW: [PHP] eval() to string???

2001-01-24 Thread Thomas Weber
okay, i see here is an example: $php_code = "$foo + $bar"; eval("\$var = \"$php_code\";); now in $var there should be the eval of $foo + $bar -Ursprngliche Nachricht- Von: Robert S. White [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 24. Januar 2001 16:20 An: [EMAIL PROTECTED]

RE: [PHP] eval() to string???

2001-01-24 Thread indrek siitan
Hi, I want to evaluate the code in $php_code to *another* string... you have to do it through output buffering: ob_start(); eval($php_code); $another_string=ob_get_contents(); ob_end_clean(); Rgds, Tfr --== [EMAIL PROTECTED] == http://tfr.cafe.ee/ == +372-50-17621 ==-- --

RE: [PHP] file storage/downloader...

2001-01-24 Thread johnny p.
-Original Message- From: Ignacio Vazquez-Abrams [mailto:[EMAIL PROTECTED]] Sent: Monday, January 22, 2001 11:01 AM To: johnny p. Cc: [EMAIL PROTECTED] Subject: Re: [PHP] file storage/downloader... On Sun, 21 Jan 2001, johnny p. wrote: Ok, here's the prolem: I'm trying to

Re: [PHP] error with REPLACE or UPDATE

2001-01-24 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: snip $connect = mysql_connect(xx); or die ("dBase not connect.") snip $sql = "REPLACE CLIENT SET ID = \"$id\", ITEM = \"$item\", TITLE =\"$title\", AUTHOR = \"$author\", PUBLISHER = \"$publisher\", DELIVERY =

[PHP] Integration of PHP with MS Outlook?

2001-01-24 Thread Jon Haworth
Hi list, Is it possible to get PHP to create entities in Outlook, specifically tasks and calendar entries? TIA Jon Please visit us on the Internet: http://www.witanjardine.co.uk 'The information included in this e-mail is of a confidential nature and is intended only for the addressee. If

[PHP] Failed to write session data (files)?

2001-01-24 Thread bill
When I try to use sessions without cookies, I get the following error. Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 What does that mean? Of course, the session data isn't saved when this happens. The

[PHP] Test for Cookies

2001-01-24 Thread Karl J. Stubsjoen
Hi, I need to test for cookies. What is the simplest way to do this? Thanks - Karl -- 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] Test for Cookies

2001-01-24 Thread Brian V Bonini
By trying to set a cookie and read it back. -Original Message- From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 24, 2001 11:50 AM To: PHP Mailing List Subject: [PHP] Test for Cookies Hi, I need to test for cookies. What is the simplest way to do

[PHP] Posting to list

2001-01-24 Thread Brian V Bonini
Everytime I send a post to [EMAIL PROTECTED] The message goes through but I also recieve back the following This is the Postfix program at host kgb.ijs.si. I'm sorry to have to inform you that the message returned below could not be delivered to one or more destinations. For further

Re: [PHP] Form data is not remembered

2001-01-24 Thread Monte Ohrt
If the form page is not being cached, it would probably get reloaded when they clicked back, thus losing the data. I'd suggest redrawing the form with the fields populated and with the appropriate error messages. Then you don't need to mess with caches or sessions for that matter, and the user

[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-01-24 Thread Rasmus Lerdorf
rasmus Wed Jan 24 09:32:26 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: Some karma for Dan Index: CVSROOT/avail diff -u CVSROOT/avail:1.53 CVSROOT/avail:1.54 --- CVSROOT/avail:1.53 Tue Jan 23 07:56:13 2001 +++ CVSROOT/avail Wed

Re: [PHP] Authenticating across sites/servers

2001-01-24 Thread Donncha O Caoimh
A few things to try: 1. Use session variables that expire after a certain time. The remote host, your partner, has to contact your host every X hours to get a new session key and all communication is done for that period of time using that key in the URL. 2. Use difficult to guess user

Re: [PHP] licencing php

2001-01-24 Thread Rasmus Lerdorf
This is covered by the LICENSE file that comes with PHP. And yes, you can distribute PHP on a CD-Rom like that as long as you abide by the terms of the license. -Rasmus On Wed, 24 Jan 2001, Miguel Martinez wrote: Hi: We are a web programming company and a custom ask us for those things:

[PHP] building a language pack

2001-01-24 Thread jeremyf10
I'm the author of an opensource php auctioning system and have recently been receving alot of emails concerning the availibility of different languages. I was wondering what the best way to build a sort of language pack would be (one file for french, one for english, one for german, etc).

RE: [PHP] last_insert_id function

2001-01-24 Thread Don Read
On 24-Jan-01 Mark Lipscombe wrote: Someone jump in here and correct me if I'm wrong, but by the time you get around to executing the second query, LAST_INSERT_ID() from MySQL isn't necessarily going to be the desired value, because another record may well have been inserted in that time?

Re: [PHP] date question

2001-01-24 Thread Hardy Merrill
Which database? Fang Li [[EMAIL PROTECTED]] wrote: There is a LiveDate (-MM-DD) field in my table. 1. I want data from last 5 days up to now, and its order should be from latest; 2. I want data for next month. Any help would be appreciated. -- PHP General Mailing List

Re: [PHP] Test for Cookies

2001-01-24 Thread Karl J. Stubsjoen
Karl J. Stubsjoen [[EMAIL PROTECTED]] wrote: Hi, I need to test for cookies. What is the simplest way to do this? Be a little more specific - do you want to know if there are cookies at all, or if there are specific cookies? Depends on the settings in the Data Handling section of

php-general Digest 24 Jan 2001 18:42:37 -0000 Issue 474

2001-01-24 Thread php-general-digest-help
php-general Digest 24 Jan 2001 18:42:37 - Issue 474 Topics (messages 36342 through 36450): Re: as stupid as I normally am. ( Nope!) 36342 by: Samantha Savvakis 36343 by: Jacky.lilst storing query result in arrays: waste of memory? 36344 by: Tyson Lloyd Thwaites

Re: [PHP-CVS] cvs: php4 / NEWS /ext/mysql/libmysql acinclude.m4 bmove.ccharset.c config-win.h dbug.h default.c errors.c fix_copyright global.hlibmysql.c m_string.h mf_dirname.c mf_format.c mf_pack.c mf_path.cmy_alloc.c my_create.c my_fopen.c my_i

2001-01-24 Thread Thimble Smith
On Tue, Jan 23, 2001 at 08:59:42PM +0100, Sebastian Bergmann wrote: I can't link the latest CVS of PHP on Win32: libmysql.lib(my_thr_init.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _win_pthread_init libmysql.lib(my_compress.obj) : error LNK2001: Nichtaufgeloestes externes

[PHP] -

2001-01-24 Thread Karl J. Stubsjoen
What does - do? As in: $Something-then_something_over_here -- 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] -

2001-01-24 Thread Cal Evans
It's means that what's on the right is part of the object on the left. i.e. $myObject-myMethod(); fires the method myMethod() of the object $myObject. echo $myObject-myAttribute; displays the value of the attribute myAttribute of the object $myObject. Clear as mud? ;) Cal

Re: [PHP] mysql_fetch_array strangeness

2001-01-24 Thread Markus Fischer
Because, basically, in php an array is a hash with just numbers as keys. m. -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5

Re: [PHP] -

2001-01-24 Thread Karl J. Stubsjoen
Aisch! Hmmm... yep, clear as mud. Let me describe what I we have going on: We have a function called ToForm which looks like it verifies values coming in from a POST. This function is invoked like this: $generic-ToForm("cart_id", NO_DEFAULT_VALUE); $generic-ToForm("email_address",

Re: [PHP] building a language pack

2001-01-24 Thread Alex Black
I'm of the opinion that abstracting all "lang-specific" strings to an xml file is the easiest, cleanest way to go. that means "layman" authors can translate without screwing up your code, and you can get a lot of languages fast. it's also pretty convenient to get the strings out, and to add new

Re: [PHP] -

2001-01-24 Thread Joe Stump
$Something is an instance of a class - so like this: class Foo { var $test function echo_test() { echo $this-test; } } $foo = new Foo; $foo-test = 'this'; $foo-echo_test(); --Joe On Wed, Jan 24, 2001 at 12:05:17PM -0700, Karl J. Stubsjoen wrote: What does

Re: [PHP] -

2001-01-24 Thread Chris Lee
? class generic { var $test_1; var $test_2; function set_var($var_1, $var_2) { $this-test_1 = $var_1; $this-test_2 = $var_2; } } $something = new generic; $something-set_var(10, 12); echo $something-test_1 . "br\n"; echo $something-test_2 . "br\n"; ? all

RE: [PHP] -

2001-01-24 Thread Cal Evans
$generic is an object. Somewhere you've got a line in your code that instantiates it. (i.e. $generic = new ...) Cal http://www.calevans.com -Original Message- From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 24, 2001 1:18 PM To: Cal Evans; PHP Mailing List

[PHP-CVS] cvs: php4 / README.Zeus

2001-01-24 Thread Ben Mansell
joostersWed Jan 24 10:20:36 2001 EDT Modified files: /php4 README.Zeus Log: Added 'you must use gcc' comment to build instructions. Index: php4/README.Zeus diff -u php4/README.Zeus:1.7 php4/README.Zeus:1.8 --- php4/README.Zeus:1.7Tue

Re: [PHP-CVS] cvs: php4 /ext/mysql/libmysql config-win.h update_sources

2001-01-24 Thread Sebastian Bergmann
MySQL Team wrote: mysql Wed Jan 24 10:11:25 2001 EDT Modified files: /php4/ext/mysql/libmysqlconfig-win.h update_sources Log: Don't #define HAVE_COMPRESS on windows. The error libmysql.lib(my_thr_init.obj) : error LNK2001: Not resolved external symbol

[PHP] SMTP interface in php?

2001-01-24 Thread George Schlossnagle
Is there a generic SMTP interface library for php? Something akin to perl's Net::SMTP. php's mail() is not terribly flexible for sending mass mail, and I was going to write one that's a lower-level interface, but I don't want to waste my time re-inventing the wheel if one already exists

RE: [PHP] Test for Cookies

2001-01-24 Thread Brian V Bonini
You'll need to at least reload the page so the cookie can be sent back to the server after it's set. Try this: it's taken directly from the annotations on the setcookie function page of the php manual. ?php $status = 0; if (isset($myTstCky) ($myTstCky == "ChocChip")) $status = 1; if

Re: [PHP] SMTP interface in php?

2001-01-24 Thread Alex Black
yes, manuel lemos has a fantastic one at phpclasses.upperdesign.com I've got it running a couple places, it works _really_ well :) but I've never done mass mailing with it. -alex -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc. http://www.turingstudio.com

[PHP] login authentication / session handling...

2001-01-24 Thread johnny p.
Ok, I'm probably asking something that's been asked rediculous amounts of times before, but I'll go ahead and ask again since I'm finding it difficult to find a common method, or a preferred login and session handling process. So, here goes... I am trying to do what everyone else in the web

Re: [PHP-CVS] cvs: php4 /ext/mysql/libmysql config-win.h update_sources

2001-01-24 Thread Thimble Smith
On Wed, Jan 24, 2001 at 07:33:07PM +0100, Sebastian Bergmann wrote: libmysql.lib(my_thr_init.obj) : error LNK2001: Not resolved external symbol _win_pthread_init OK. Can you add the attached file to the libmysql directory and see if it fixes the problem? If so, I'll add it to CVS.

Re: [PHP] PHP - Interrupted Scripts,

2001-01-24 Thread Joe Stump
set_time_limit(0) sets the limit to 0 or inifinate. But it will end like any other script (ie end of script or exit;) --Joe On Wed, Jan 24, 2001 at 09:41:44PM +0100, Timo Mika Gl??er wrote: and what does set_time_limit(0) do??? set it to infinity??? i have some fucntion call in there which

Re: [PHP] Test for Cookies

2001-01-24 Thread Karl J. Stubsjoen
In IE | Tools | Internet Options | Security | Custom Level You'll find 2 items under Cookies - Allow cookies that are stored on your computer - Allow per-session cookies (not stored) Both haveing the options (enabled / prompt / disabled) The cookie test script is succesful if and only if

[PHP] Redirect

2001-01-24 Thread Karl J. Stubsjoen
What is wrong with this redirect: ? $rdrct = "http://www.dogpile.com"; header ("Location: " . $rdrct); exit; ? Thanks! Karl -- 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

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-01-24 Thread Rasmus Lerdorf
rasmus Wed Jan 24 11:54:48 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: dev account for Dave Hayden Index: CVSROOT/avail diff -u CVSROOT/avail:1.54 CVSROOT/avail:1.55 --- CVSROOT/avail:1.54 Wed Jan 24 09:32:24 2001 +++

  1   2   >