[PHP] Checking URL & mail

2001-03-23 Thread Rosen
Hi, How can I check for existing site (e.g. http://www.somehost.com/someone) and check for existing mail ? Thanks, Rosen Marinov -- 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] Creating tree using table?

2001-03-23 Thread E K L
Hi all, Currently, i'm trying to write a program which is related to tree manipulation. Meaning that, i'll search the tree to get level or count how many child exist for particular parent, for example. Initially i planned to use table to represent all kind of datas that are parent, left

[PHP-CVS] cvs: php4 / NEWS

2001-03-23 Thread Daniel Beulshausen
dbeuFri Mar 23 00:33:23 2001 EDT Modified files: /php4 NEWS Log: update news Index: php4/NEWS diff -u php4/NEWS:1.619 php4/NEWS:1.620 --- php4/NEWS:1.619 Thu Mar 22 18:09:21 2001 +++ php4/NEWS Fri Mar 23 00:33:22 2001 @@ -2,6 +2,7 @@ ||

[PHP] Sending html email

2001-03-23 Thread Floyd Piedad
Can anybody tell me the easiest and quickest way to send email in HTML format? Thanks, Floyd -- 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 PROTEC

Re: [PHP] Problems uploading Files

2001-03-23 Thread Carsten Gehling
From: "Kilian" <[EMAIL PROTECTED]> Sent: Thursday, March 22, 2001 7:28 PM > The user the webserver process runs under may not have the permission to > upload the file. In many cases, the webserver runs as nobody. Thus, if you > want to upload a file, nobody needs write-access to the directory in

Re: [PHP] HELP? HTTP HEADER GURUS etc?

2001-03-23 Thread Tobias Talltorp
Try out cURL. I think it will work for java and C aswell: http://curl.haxx.se It does posts and handles cookies and more. // Tobias "brunatex" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hello, > > Not sure if this is exactly focused on PHP, but i thoug

[PHP] Sorry....sessions ... again...with code...

2001-03-23 Thread Miguel Loureiro
|Hello all, I'm mad with mesorry but see if can understand why I'm mad. Copy the 3 attached files, and run it. In one.php just click to the link (it works.), now in two.php you can see: " and now: aaa", cool hum... Clicking in OFF link you can see the result of phpinfo, but section of

Re: [PHP] Sending html email

2001-03-23 Thread Brad Hubbard
> Can anybody tell me the easiest and quickest way to send email in HTML > format? http://www.php.net/manual/en/function.mail.php Read it. Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

RE: [PHP] Creating tree using table?

2001-03-23 Thread Neil Kimber
This is a big topic. I'll be brief. This all depends upon your data structure. There are a couple of ways that you can store information like this. The classic (purist) method would be to have a table of the following type: table_Tree Node ID | Parent ID | Node Data

[PHP] Why the data in HTML form lost when the user press back button?

2001-03-23 Thread Carfield Yim
Why the data in HTML form lost when the user press back button? And I find that this problem only exist if I use session_start() to enable session variable. But I can't disable it because the user information in session useful in every pages -- PHP General Mailing List (http://www.php.net/) To u

[PHP-CVS] cvs: php4 /ext/standard basic_functions.c file.c

2001-03-23 Thread Romolo Manfredini
romolo Fri Mar 23 01:30:51 2001 EDT Modified files: /php4/ext/standard basic_functions.c file.c Log: Added target ownership check in function copy for safe_mode operations Index: php4/ext/standard/basic_functions.c diff -u php4/ext/standard/basic_functi

[PHP-CVS] cvs: php4 /ext/dbx .cvsignore LICENSE dbx.c dbx.dsp dbx.h dbx_mysql.c dbx_mysql.h dbx_odbc.c dbx_odbc.h php_dbx.h

2001-03-23 Thread Marc Boeren
mboeren Fri Mar 23 02:23:58 2001 EDT Added files: /php4/ext/dbx .cvsignore Removed files: /php4/ext/dbx LICENSE Modified files: /php4/ext/dbx dbx.c dbx.dsp dbx.h dbx_mysql.c dbx_mysql.h

[PHP] key generation with mcrypt

2001-03-23 Thread Dean Hall
Does anyone know a good way to generate /good/ keys for algorithms used with mcrypt? I know openssl has key generation scripts, and it seems a little inane that mcrypt doesn't provide key generation functions. After all, encryption algorithms are not secure without sufficiently random and well-cho

[PHP] sql problem

2001-03-23 Thread Wade Halsey
Hi ppl ("select empname from employer where empno = (select employercode from badclient where pesal = '$Persal')") Could anyone help me out with the syntax? Im running an interbase db and php4.04 Thanks Wade

[PHP] Check URL & Mail

2001-03-23 Thread Rosen
Hi, How can I check for existing site (e.g. http://www.somehost.com/someone) and check for existing mail (e.g. [EMAIL PROTECTED])? Thanks, Rosen Marinov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

[PHP] string->integer

2001-03-23 Thread Matt Williams
Hi I am trying to validate a form to check the user has entered there date of birth correctly There are three fields day, month & year. how can I check whether a string is a number? I have tried using is_long(), is_int(), is_integer() to check the values ,but it doesn't seem to be working. the

RE: [PHP] Sorry....sessions ... again...with code...

2001-03-23 Thread Jeff Armstrong
I have tried you code and cannot see any real problem? This is what I see happening: 1 one.php creates a session and sets the value of $a to 'a' 2 click on 2 and you get to two.php with the value set to 'a' 3 click on OFF and you get to off.php where the value is unset 4 click back and y

RE: [PHP] sql problem

2001-03-23 Thread Jeff Armstrong
Not sure what you are trying to do? Not sure what a Persal is (maybe an Arial?) Perhaps you want: select E.empname from employer E, badclient B where E.employercode = B.employercode and E.pesal='$Persal' Note there are two tables given aliases of E and B that are JOINED by the first c

Re: [PHP-CVS] cvs: php4 /sapi/fastcgi fastcgi.c

2001-03-23 Thread Ben Mansell
On Thu, 22 Mar 2001, Derick Rethans wrote: > On Thu, 22 Mar 2001, Ben Mansell wrote: > > > joostersThu Mar 22 10:48:51 2001 EDT > > > > Modified files: > > /php4/sapi/fastcgi fastcgi.c > > Log: > > Fix a bug with POST requests. If the Content-Type header wasn't present,

[PHP] test

2001-03-23 Thread ²Hµµ­»­·«H¤l
-- ¡± Origin:²Hµµ­»­·«H«F  ¡± from:er.twbbs.org ¡± -- 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 PROTE

[PHP] session don't work with php that have version more than 4.03pl1

2001-03-23 Thread Weerapong Sirikanya
I have problem about using session with php that have version newer than 4.03pl1. this is the test code. - test_session.php - $PHPSESSID"; $abc = 1; ?> test_session2 --- result is: $PHPSESSID -> 16529ad58656fc32ec

Re: [PHP] session don't work with php that have version more than 4.03pl1

2001-03-23 Thread Renze Munnik
Hi, Try: session_start_start(); for a change. If you don't it will never work. Not even with versions older than 4.03pl1. RenzE. On Fri, Mar 23, 2001 at 07:03:37PM +0700, Weerapong Sirikanya wrote: > I have problem about using session with php that have version newer than 4.03pl1. > this is

[PHP] WebCam and PHP

2001-03-23 Thread Marcelo Pereira
Hi All, How can I show images, captured by a webcamp, in my website using PHP ??? Thanks, Marcelo Pereira

Re: [PHP] session don't work with php that have version more than 4.03pl1

2001-03-23 Thread Renze Munnik
Oops Should be: session_start(); ofcourse, instead of session_start_start(); RenzE. -- 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-CVS] cvs: php4 /sapi/fastcgi fastcgi.c

2001-03-23 Thread Zeev Suraski
If it crashes PHP though, it may give remote users a way to attack (even though I can't really think of one in this case) Zeev At 12:57 23/3/2001, Ben Mansell wrote: >On Thu, 22 Mar 2001, Derick Rethans wrote: > > > On Thu, 22 Mar 2001, Ben Mansell wrote: > > > > > joostersThu Mar 2

Re: [PHP] Crypt problem

2001-03-23 Thread Christian Reiniger
On Friday 23 March 2001 00:04, you wrote: > you dont... as far as i know, > crypt only works on <= 8 chars > it will truncate anything over 8. That's "traditional" Unix crypt. PHP's crypt() may also understand other crypt algorithms that can handle longer passwords. Check the manual. > > the pr

Re: [PHP] regexp on us tele number

2001-03-23 Thread Christian Reiniger
On Thursday 22 March 2001 16:17, you wrote: > i'm still getting the hang of regexps, however i have on small problem > - I can't seem to make one to work on a US telephone number. does > anyone have something similar that i could work from? Well, how does/can a US telephone number look like? --

Re: [PHP] mail(): carriage return required??

2001-03-23 Thread Christian Reiniger
On Friday 23 March 2001 01:49, you wrote: > > Use \r\n for email line breaks. > > Should I write a function that replace any corrance of '\n' with '\r\n' > in a string myself? > Hard to believe that the PHP guys haven't encountered this before and > didn't write some PHP function to do this for us

Re: [PHP] writing to a file

2001-03-23 Thread Christian Reiniger
On Friday 23 March 2001 06:17, you wrote: > how would that look on a code view? i plan to write the variable > $message on top of the existing data > > > Don't even bother with that previous answer. You have what you want > > to write in a string, $new. Read the file and put that into another >

Re: [PHP] mail(): "\r\n" gives extra empty line between each line in Outlook

2001-03-23 Thread Christian Reiniger
On Friday 23 March 2001 06:57, you wrote: > Hi all, > > First I had a problem that text from a textarea form object passed to > mail() ended up as a single line of text in MS Outlook. > I changed the newlines to newlines _with_ carriage returns: > strtr($mailbody, "\n", "\r\n"); Re-read the descr

Re: [PHP] Check URL & Mail

2001-03-23 Thread Christian Reiniger
On Friday 23 March 2001 12:25, you wrote: > Hi, > How can I check for existing site (e.g. > http://www.somehost.com/someone) and check for existing mail (e.g. > [EMAIL PROTECTED])? You posted this exact question already 3 hours ago. Why did you post it a second time? -- Christian Reiniger LGDC

Re: [PHP-CVS] cvs: php4 /sapi/fastcgi fastcgi.c

2001-03-23 Thread Ben Mansell
On Fri, 23 Mar 2001, Zeev Suraski wrote: > If it crashes PHP though, it may give remote users a way to attack (even > though I can't really think of one in this case) No crash, but the POST data gets silently ignored. -- Ben Mansell, <[EMAIL PROTECTED]> Zeus Technology L

[PHP-CVS] cvs: php4 /ext/dbx dbx.c dbx_pgsql.c dbx_pgsql.h php_dbx.h

2001-03-23 Thread Rui Hirokawa
hirokawaFri Mar 23 03:50:04 2001 EDT Added files: /php4/ext/dbx dbx_pgsql.c dbx_pgsql.h Modified files: /php4/ext/dbx dbx.c php_dbx.h Log: added initial support for PostgreSQL to ext/dbx. Index: php4/ext/dbx/dbx.c d

RE: [PHP] Check URL & Mail

2001-03-23 Thread Jon Haworth
> Hi, > How can I check for existing site (e.g. > http://www.somehost.com/someone) and check for existing mail (e.g. > [EMAIL PROTECTED])? You will most likely find the answer at: http://marc.theaimsgroup.com/?l=php-general&r=1&w=2 If you don't get any joy at this address I'd also suggest visit

Re: [PHP-CVS] cvs: php4 /sapi/fastcgi fastcgi.c

2001-03-23 Thread Zeev Suraski
Ah, so that's ok to wait for 4.0.6 then... At 13:31 23/3/2001, Ben Mansell wrote: >On Fri, 23 Mar 2001, Zeev Suraski wrote: > > > If it crashes PHP though, it may give remote users a way to attack (even > > though I can't really think of one in this case) > >No crash, but the POST data gets silen

[PHP-CVS] cvs: php4 /ext/dbx dbx_pgsql.c dbx_pgsql.h

2001-03-23 Thread Rui Hirokawa
hirokawaFri Mar 23 05:40:13 2001 EDT Modified files: /php4/ext/dbx dbx_pgsql.c dbx_pgsql.h Log: changed license of PostgreSQL module in ext/dbx. Index: php4/ext/dbx/dbx_pgsql.c diff -u php4/ext/dbx/dbx_pgsql.c:1.1 php4/ext/dbx/dbx_pgsql.c:1.2 ---

[PHP] Don't understand HTTP_SESSION_VARS

2001-03-23 Thread Michael Champagne
Ok, I'm not really getting this. Without anything in my php.ini I was able to register session vars just like session_register('var') and then access them using $GLOBALS['var']. From what I'm gathering there's a performance hit from using the $GLOBALS? So I turned register_globals off, I'm regi

Re: [PHP] php 4.04pl 1-3 for red hat 7

2001-03-23 Thread Larry Hotchkiss
Thanks. I just grabbed the source and am looking over it. The way the red hat RPM is configed is perfect for me except for the exclusion of enable-trans-sid. Am I correct in assuming in addition to using --enable-trans-sid that I should also use the current config options displayed by phpi

[PHP] PHP XML

2001-03-23 Thread Ales Kracik
does anybody know how to switch off entities resoving in PHP XML? thanks -- 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] Date subtraction

2001-03-23 Thread Jeff Armstrong
Do it in MySQL = Fast Don't fiddle in PHP = waste of your time. Look into the following: select UNIX_TIMESTAMP(date1)-UNIX_TIMESTAMP(date1) as diff_secs, TO_DAYS(date1)-TO_DAYS(date1) as diff_days, PERIOD_DIFF(date1,date2)as diff_months, YEAR(dat

Re: [PHP] reading microsoft word document text in php?

2001-03-23 Thread Erick Papadakis
hi david, thanks for the response! would u also know how i can read some excel and powerpoint files? thanks/erick > If youu are on a *nix system, there is a package called mswordview, or > alternatively you could check the www.htdig.org site for document parsers > (catdoc.pl and parsedoc.pl,

Re: [PHP] reading microsoft word document text in php?

2001-03-23 Thread Erick Papadakis
actually, i am not sure how i can use this to convert an uploaded word or pdf file into plain text and then do somethign with that text? can someone please help? thanks/erick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] Permission denied

2001-03-23 Thread John Almberg
Hi all, I'm trying to upload a file from a client browser to my server. On the client side, I've got: Send this file: On the server side, I've got: echo ("$userfile"); echo ($HTTP_POST_FILES['userfile']['name'] .""); echo ($

Re: [PHP] Permission denied

2001-03-23 Thread Adam Wright
Don't forget, PHP (in general) runs as the webserver (normally "nobody" or "apache" for Apache servers). Make sure your webserver has write access to /home/jalmberg/public_html/qiksys/images/ adamw - Original Message - From: "John Almberg" <[EMAIL PROTECTED]> To: "PHP General List" <[EMA

[PHP-CVS] cvs: php4 / NEWS

2001-03-23 Thread Andrei Zmievski
andrei Fri Mar 23 06:26:17 2001 EDT Modified files: /php4 NEWS Log: Wrap lines. Index: php4/NEWS diff -u php4/NEWS:1.620 php4/NEWS:1.621 --- php4/NEWS:1.620 Fri Mar 23 00:33:22 2001 +++ php4/NEWS Fri Mar 23 06:26:17 2001 @@ -2,7 +2,8 @@ |||

[PHP] PHP_SELF problems!

2001-03-23 Thread Erick Papadakis
hi, i am using my program http://localhost/test.php inside this program is a form, which points to $PHP_SELF but, when i submit this form, the link actually becomes http://localhost/php/php.exe/test.php this results in some images not being displayed correctly! is there anyway i can

RE: [PHP] Permission denied

2001-03-23 Thread John Almberg
Hi Adam, thanks for your quick repsonse. I'm just renting space on a (Linux/Apache) server, so I don't have any control over how PHP is configured on the machine. Perhaps there is a way for me to change my 'local' PHP configuration? I don't know much about this aspect of PHP, obviously. I'm just

RE: [PHP] Permission denied

2001-03-23 Thread John Almberg
Adam, Just ran phpinfo and you are correct: the Apache User/Group is "nobody". H'. This sounds like a problem. Hope there is an answer! - John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] Don't understand HTTP_SESSION_VARS

2001-03-23 Thread Chris Lee
I have never heard that $GLOBALS[''] causes performance issues, where did you get this info? does $HTTP_SESSION_VARS work if you turn register_globals on; in php.ini? here is my session.egn file. -- Chris Lee [EMAIL PROTECTED] "Michael Champagne" <[EMAIL PROTECTED]> wrote in

Re: [PHP] WebCam and PHP

2001-03-23 Thread Chris Lee
wow thats a vague question :) are you trying to display them to the user? echo " "; or are you trying to read that data ? fopen('/path/imagename.jpg', 'r'); is the file not in the document root ? header('Content-Type: image/jpeg'); readfile('/path/imagename.jpg');

Re: [PHP] session don't work with php that have version more than 4.03pl1

2001-03-23 Thread Chris Lee
you have to register the variable after it is set, not before. also only register the variable once, dont keep re-registering it, some builds ie php-4.0.5 (snap) doesnt like re-registering vars (sometimes). this is my session file, works great for me. -- Chris Lee [EMAIL PROTECTED] "

Re: [PHP] key generation with mcrypt

2001-03-23 Thread Joe Conway
> Does anyone know a good way to generate /good/ keys for algorithms used with > mcrypt? I know openssl has key generation scripts, and it seems a little > inane that mcrypt doesn't provide key generation functions. After all, > encryption algorithms are not secure without sufficiently random and

Re: [PHP] string->integer

2001-03-23 Thread Chris Lee
even better, verify the date as a whole rather then just as an int. there you go, try it. someone puts an invalid date in? no problem it fixes it for you. -- Chris Lee [EMAIL PROTECTED] ""Matt Williams"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

[PHP] Session Confusion

2001-03-23 Thread KPortsmout
Ok these sessions have got me all confused, I need to have two seperate sessions one for when a user signs up, to stop them using there back button and inadvertantly signing up twice. And then one when they login. Both of them work great as standalone but if say I went and log into my account a

Re: [PHP] Why the data in HTML form lost when the user press back button?

2001-03-23 Thread Chris Lee
this is a client side issue, not a server side (php) issue. when a page is called, php is loaded, everything is worked out and php echo's the data requested, then php closes. this is the key, php closes. why should it keep running, its done its job. when the user goes to a new page, php is agai

[PHP-CVS] cvs: php4 /ext/dbx Makefile.in dbx.c dbx.dsp dbx_mysql.c dbx_mysql.h dbx_odbc.c dbx_odbc.h dbx_pgsql.c dbx_pgsql.h php_dbx.h

2001-03-23 Thread Marc Boeren
mboeren Fri Mar 23 06:50:17 2001 EDT Modified files: /php4/ext/dbx Makefile.in dbx.c dbx.dsp dbx_mysql.c dbx_mysql.h dbx_odbc.c dbx_odbc.h dbx_pgsql.c dbx_pgsql.h php_dbx.h Log: Fixed compile errors for Postg

[PHP] PHP on Digital Unix

2001-03-23 Thread Olivier, Dave
Folks, I am in the process of trying to install PHP 4.0.4pl1 on my Digital Unix 5.1 machine. I follow the instructions from php.net and in the install instructions. I can do everything right but, after I run the ./configure --with-mysql --with-apache=../apachex --enable-track-vars, I run the ma

[PHP] Array Cleansing

2001-03-23 Thread pkshifted
Maybe someone could help with this? I'm trying to remove white space values from my array, and resequence them, so that the following: foo[0] = "value", foo[1] = " ", foo[2] = "value", foo[3] = " ", foo[4] = "value" after running through a piece of code would turn into foo[0] = "value", foo[1

RE: [PHP] Array Cleansing

2001-03-23 Thread Cal Evans
One way to do it is to spin through the original array using a for/next loop and build a second array of only the rows you want to keep. Then, rename the new array to the old array. ($oldArray = $newArray;) Cal http://www.calevans.com -Original Message- From: [EMAIL PROTECTED] [mailto:[

RE: [PHP] Complex IF statement

2001-03-23 Thread Chris Mulcahy
if (($variable=="duck") || ($variable=="goose")) { } else { } -Original Message- From: JCampbell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 12, 2000 11:19 PM To: Main PHP List Subject: [PHP] Complex IF statement Thank you all for your help earlier! Now I need to know if it is

RE: [PHP] Session Confusion

2001-03-23 Thread Jack Dempsey
If that's a copy of your code, you might want to check the if($SET=1) line...that will always return true, because you're setting a variable, not checking for equality...should be if($SET==1) instead jack -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Fri

Re: [PHP] Permission denied

2001-03-23 Thread Adam Wright
If you have shell access to the box, you can chgrp some stuff and allow PHP to write to it. Otherwise, you'll have to talk to the ISP directly (get them to setup setuid versions of common shell commands for this sort of requirement). There is no way to make PHP 'login', any as PHP is server side,

RE: [PHP] sessions.. again...

2001-03-23 Thread PHPBeginner.com
Few of us have time to play with your script, but if you refer to the fact that the form you submitted and once new page came up - you clicked back seeing nothing, that is something that happens most of the time. As Sascha once explained that to me - that is the way Sessions work. well, if that

RE: [PHP] Freshmeat Ad?

2001-03-23 Thread PHPBeginner.com
I guess it was designed a while ago... can't find any other solution.. ;-)) Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Michael Geier [mailto:[EMAIL PROTECTED]] Sent: Frid

RE: [PHP] Move data from one MySql table to another?

2001-03-23 Thread PHPBeginner.com
Oh yeah, at my work I do it all the time, the simplest way is to create a small function which will: $SQL = "SELECT * FROM table WHERE ID=$id"; and then (whatever method you use) catch that array and call some function moveMe($array='') { if(!is_array($array) or $array=='') Return

RE: [PHP] Sessions to password protect directory?

2001-03-23 Thread PHPBeginner.com
All you need is to add this into .htaccess php_value auto_prepend auth.php when any file under that directory is being accessed, auth.php will come on top, there - make your own script to pass-protect yourself.. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PH

RE: [PHP] Problems uploading Files

2001-03-23 Thread PHPBeginner.com
You have to chmod that directory (not needed for FTP of course) Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Renzi, Sebastian [mailto:[EMAIL PROTECTED]] Sent: Friday, March

RE: [PHP] Sending html email

2001-03-23 Thread PHPBeginner.com
here: charset to be is text/html $mess .= 'your HTML code'; $mess .= 'as you like'; here is going mail() see php.net/mail for how to add the headers Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -O

RE: [PHP] PHP_SELF problems!

2001-03-23 Thread PHPBeginner.com
a common problem: you have compiled PHP as CGI, make it run as a module, and that problem will disappear. well, if you really want to have it under CGI, try to check phpinfo() for a solution Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PR

[PHP] RE: Word docs

2001-03-23 Thread DAve Goodrich
Sorry I deleted the message, but here are some options for converting word docs on the fly. I'd think you could easily pipe docs through these tools to get the output you want. http://word2x.alcom.co.uk/ http://www.wvWare.com/ an online document converter using wv to do the conversion. Works fa

Re: [PHP] Session Confusion

2001-03-23 Thread KPortsmout
If that's a copy of your code, you might want to check the if($SET=1) line...that will always return true, because you're setting a variable, not checking for equality...should be if($SET==1) instead jack Ooops ok put that bit right, I should really know better :-) but it still doesn`t sol

[PHP] limiting .htaccess reach

2001-03-23 Thread Joe Sheble aka Wizaerd
I'm using an .htaccess file to auto_append and auto_prepend files within a specific directory, and it works great. Unfortunaltely if I create a new sub-directory that doesn't have it's own .htaccess file, it too tries to use the auto_append and auto_prepend values of the .htaccess file from th

php-general Digest 23 Mar 2001 16:48:28 -0000 Issue 584

2001-03-23 Thread php-general-digest-help
php-general Digest 23 Mar 2001 16:48:28 - Issue 584 Topics (messages 45245 through 45314): Re: writing to a file 45245 by: hi 45248 by: adam 45251 by: adam 45277 by: Christian Reiniger Re: Silly sessions problem. 45246 by: hi Complex IF statement

[PHP] NNTP

2001-03-23 Thread Tim
Does anyone know of any examples of using IMAP to connect to NNTP newsgroups, any feedback would be appreciated Cheers. -- 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 administra

Re: [PHP] Move data from one MySql table to another?

2001-03-23 Thread darion mapp
i know what you are trying to do i have done it before, just don't quite remember how i solved the problem, but i think what i did was to create the move link with the id of the field that you want to move, then another php file will do the stuff: 1. using the insert with the select statment yo

RE: [PHP] Permission denied

2001-03-23 Thread John Almberg
Whoopee!!! After two days of propeller-spinning, I finally uploaded a file successfully!!! I had to use an FTP connection to do it, because my PHP process didn't have permission to write files to my directory, but that's fine. Here's the code snippet that worked the trick, with my servername/us

[PHP] "w" problem

2001-03-23 Thread Jorn van Eck
Hi there, Does someone know what's the "w" is for. This is the error message: Warning: fopen("../_webstats/include/caches/last_visitors.cache.html","w") Does it has to do with "write" rights?? Thanks for your answers! -- Jorn van Eck Student Information Engineering Almere Tel: +31 614430902 E-

RE: [PHP] "w" problem

2001-03-23 Thread Boget, Chris
> Does someone know what's the "w" is for. This is the error message: > Warning: > fopen("../_webstats/include/caches/last_visitors.cache.html","w") Read the docs on fopen(); > Does it has to do with "write" rights?? Yes. Read the docs on fopen(); The documentation is your friend. :) Chris

[PHP] Image background bleeding through text

2001-03-23 Thread Kevin Rose
Hello, I am using GD v. 1.8.3, freetype 1.3.1 and php 4.0.3.p1. I am having a problem with some of my background color bleeding through my font/text when I create a new image with ImageTTFText. Specifically I want my text to be pure white (255,255,255), but it is not appearing that way on my

Re: [PHP-CVS] cvs: php4 /ext/dbx .cvsignore LICENSE dbx.c dbx.dsp dbx.h dbx_mysql.c dbx_mysql.h dbx_odbc.c dbx_odbc.h php_dbx.h

2001-03-23 Thread Andi Gutmans
+#if !(WIN32|WINNT) +#include "php_config.h" +#endif You should use PHP_WIN32 instead of (WIN32|WINNT). In any case, I think these three lines can be erased because php.h includes php_compat.h which in turn includes php_config.h when not under Windows and the Windows config when necessary. An

RE: [PHP] Move data from one MySql table to another?

2001-03-23 Thread Boget, Chris
> To populate new_table from old_table you can give it this SQL: > INSERT INTO new_table (name, address) VALUES SELECT name, address FROM > old_table; Umm, I didn't think you could do subselects in MySQL? Or am I missing something? Chris

RE: [PHP] Move data from one MySql table to another?

2001-03-23 Thread Altunergil, Oktay
from the docs; The following will not yet work in MySQL: SELECT * FROM table1 WHERE id IN (SELECT id FROM table2); SELECT * FROM table1 WHERE id NOT IN (SELECT id FROM table2); SELECT * FROM table1 WHERE NOT EXISTS (SELECT id FROM table2 where table1.id=table2.id); . . . MySQL only supports I

RE: [PHP] Move data from one MySql table to another?

2001-03-23 Thread darion mapp
NO it is not possible to use subselects at this point BUT It is possible to insert via a select check the mysql site for the insert syntax -- On Fri, 23 Mar 2001 12:41:04 Boget, Chris wrote: >> To populate new_table from old_table you can give it this SQL: >> INSERT INTO new_table (name, addr

RE: [PHP] Move data from one MySql table to another?

2001-03-23 Thread darion mapp
NO it is not possible to use subselects at this point BUT It is possible to insert via a select check the mysql site for the insert syntax -- On Fri, 23 Mar 2001 12:41:04 Boget, Chris wrote: >> To populate new_table from old_table you can give it this SQL: >> INSERT INTO new_table (name, addr

RE: [PHP] security

2001-03-23 Thread Boget, Chris
> check HTTP_REFERER. If it's not your server. toss it. It's > not the most secure way but check the page, there are other > variables you can use to accomplish the same thing. Even better (and it'll *always* work as far as I know), check $HTTP_HOST. Chris

RE: [PHP] security

2001-03-23 Thread Cal Evans
RE: [PHP] securityI was going to say that but I wasn't sure if $HTTP_HOST would get the host of the page that is now executing or the host of where the page was coming from. Cal http://www.calevans.com -Original Message- From: Boget, Chris [mailto:[EMAIL PROTECTED]] Sent: Friday,

RE: [PHP] Move data from one MySql table to another?

2001-03-23 Thread Boget, Chris
> MySQL only supports INSERT ... SELECT ... and REPLACE ... SELECT ... > Independent sub-selects will probably be available in Version > 4.0. You can now use the function IN() in other contexts, however. I tried the query in the original post and I could not get it to work. This is what I got:

[PHP] limiting .htaccess reach

2001-03-23 Thread Joe Sheble (Wizaerd)
I'm using an .htaccess file to auto_append and auto_prepend files within a specific directory, and it works great. Unfortunaltely if I create a new sub-directory that doesn't have it's own .htaccess file, it too tries to use the auto_append and auto_prepend values of the .htaccess file from th

RE: [PHP] Move data from one MySql table to another?

2001-03-23 Thread darion mapp
Remove the "values" in your sql and see -- On Fri, 23 Mar 2001 13:00:23 Boget, Chris wrote: >> MySQL only supports INSERT ... SELECT ... and REPLACE ... SELECT ... >> Independent sub-selects will probably be available in Version >> 4.0. You can now use the function IN() in other contexts,

Re: [PHP] Complex IF statement

2001-03-23 Thread darion mapp
try if($var = "duck" || $var = "goose"){}else{} now you should look into the switch-case function also -- On Wed, 13 Dec 2000 00:19:08 JCampbell wrote: >Thank you all for your help earlier! > >Now I need to know if it is possible to create a complex if statement? > >if ($variable=="duck") ||

[PHP] Strange behave of ImageTTFText()

2001-03-23 Thread Paulo Vinícius Vitto Ruthes
folks... when using my ImageTTFText() it behave quite strangely, it writes my messages backwards... can you explain me what tha hell it's going on? -- [ Paulo Vinícius Vitto Ruthes ] [ [EMAIL PROTECTED] ] [ICQ#:18058144] ["Viva la cucaracha!!"] -- PHP General Mail

[PHP] chrooting

2001-03-23 Thread Kurth Bemis
has anyone seen ANY information on chrooting apache? i'm interested in file system security...keeping users from reading other users files, etc ~kurth -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

[PHP-CVS] cvs: php4(PHP_4_0_5) /pear/Cache/Container file.php

2001-03-23 Thread Christian Stocker
chregu Fri Mar 23 10:35:17 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/pear/Cache/Container file.php Log: just the changes from the HEAD dev here. rather important Index: php4/pear/Cache/Container/file.php diff -u php4/pear/Cache/Container/file.php:1

RE: [PHP] Move data from one MySql table to another?

2001-03-23 Thread Boget, Chris
> Remove the "values" in your sql and see Bingo! Damn, this is *so* cool. This is going to save me much work in the future. :) Thanks everyone, who was involved in this thead, for the insight! I read the docs a billion times... I'm not sure how I missed this. :p Chris

Re: [PHP] Pre-Written Script ?

2001-03-23 Thread John McCreesh
In article <[EMAIL PROTECTED]>, Jack Sasportas <[EMAIL PROTECTED]> writes >PhpMyAdmin is to manage MySQL, I want to take an existing table lets say >phone_book and then have a script generate the add/edit/modify scripts so I >don't have to code it, and look at how it is coded... http://phpmyedit.

[PHP-CVS] cvs: php4(PHP_4_0_5) /pear/Cache Output.php

2001-03-23 Thread Christian Stocker
chregu Fri Mar 23 10:36:37 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/pear/CacheOutput.php Log: GarbageCollection was moved into a PEAR-Deconstructor (from the HEAD Branch) Index: php4/pear/Cache/Output.php diff -u php4/pear/Cache/Output.php:1.

RE: [PHP] Array Cleansing

2001-03-23 Thread pkshifted
This is the code I'm currently using /* testing stuff */ echo "\n"; /* end of test */ And this is the output I'm getting

[PHP-CVS] cvs: php4 /pear/DB MAINTAINERS ifx.php

2001-03-23 Thread Jon Parise
jon Fri Mar 23 11:26:55 2001 EDT Added files: /php4/pear/DB ifx.php Modified files: /php4/pear/DB MAINTAINERS Log: Adding an Informix (ifx) database implementation. Submitted by: "Tomas V.V.Cox" <[EMAIL PROTECTED]>

RE: [PHP] Array Cleansing

2001-03-23 Thread Cal Evans
Try: if (!empty($work[$loop])) Cal http://www.calevans.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, March 23, 2001 2:07 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Array Cleansing This is the code I'm currently usi

Re: [PHP] Array Cleansing

2001-03-23 Thread Szii
You assign to $newloop, then do a ++$newloop, and THEN dump $newloop. ie, you assign to 0, inc to 1, and dump 1...which isn't filled in yet. -Szii - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, March 23, 2001 12:07 PM Subject

  1   2   >