Re: AW: [PHP] How to pipe a command output into another command

2001-02-23 Thread Martin Kong
Thanks! After upgrading to the latest PHP, it's working now. Sebastian Stadtlich wrote: > > this one uses pipe > > $command=`find $verzeichnis. -iname $DateiPattern |sort -f`; > $verzeichnisliste = explode ("\n",$command); > > sebastian > > -Ursprungliche Nachricht- > Von: Martin

RE: [PHP] isset()

2001-02-23 Thread PHPBeginner.com
the SOLUTION: strlen() is the length of string, right? Then instead of doing 1. comparison 2. function execution (I am talking here about your 1/bazillions of a second) a perfect solution would be : if($var!='') and, this is only 1. comparison am I right? Now, no matter how muc

[PHP] Upload --Permission denied simple error...

2001-02-23 Thread Dhaval Desai
hi! I have fws simple lines: Warning: Unable to create 'C:\': Permission denied in c:\phpdev2\www\upload\action.php on line 3 and I get this error..I tried coyping to D:\ too but the same error.. Can u tell me what could be the problem possibly.. Thank you Dhaval Desai __

RE: [PHP] Counter Help

2001-02-23 Thread PHPBeginner.com
Thanks, I still remember your reply on my test post be in touch! Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Navid Yar [mailto:[EMAIL PROTECTED]] Sent: Saturday, February

RE: [PHP] isset()

2001-02-23 Thread PHPBeginner.com
Whatever they input is not the objects, right? then (I've just double-checked it, to be sure I am not saying some 'BULL') $var = 0; if($var) echo 'var matched'; if(isset($var)) echo 'var is set'; when the $var is 0 the second condition will return true, the first will be fal

RE: [PHP] Counter Help

2001-02-23 Thread Navid Yar
Sounds good to me, I should, and will, always keep that in mind. Thanks for the tips. Also I want to say PHPBeginner.com is starting off very well, keep up the good work. I've been watching over it to see when the grand opening would be, and it's finally here. I hope it becomes a success someday.

Re: [PHP] isset()

2001-02-23 Thread Joe Stump
You're wrong in saying that you "usually know what the variable will be" - you never know what it's going to be. You aren't entering it you need to remember that mostly idiots are inputting the data :O) --Joe On Sat, Feb 24, 2001 at 04:17:02PM +0900, PHPBeginner.com wrote: > have I said it

RE: [PHP] isset()

2001-02-23 Thread PHPBeginner.com
have I said it won't work, Joe? I said that using strlen() might not be necessary. (re-read my post) On my own opinion the same things could be done without using the string functions. Am I wrong in something there? then thanks for correcting me - will know it for the feature. Sincerely, Maxi

Re: [PHP] isset()

2001-02-23 Thread Joe Stump
You are COMPLETELY wrong here. isset() is designed to check if a variable is SET - NOT if it has something in it. empty() is designed for strings NOT for ints - so if it's set to 0 it will fail. Finally in PHP 4 + you have problems when you do checks and variables aren't set. I do this, like I

Re: RE: [PHP] special characters with perl,mysql,php

2001-02-23 Thread Mitchell Hagerty
The special character I'm concerned with at the moment is the back tick ` which mysql doesn't like on an insert. I was looking for a way not to parse the entire file evertime I inserted or extracted them from the database. Its simple enough todo in perl and php just seems like it would burn al

Re: [PHP] encrypt and decrypt in standard PHP

2001-02-23 Thread Mukul Sabharwal
Hi, You can also use an RC4Encryption / Decryption class made in PHP. http://www.devhome.net/php/tutorials/230101.html it's pretty easy to use. --- Richard Lynch <[EMAIL PROTECTED]> wrote: > You could use popen() to execute http://gnupg.org or > PGP... > > It would be easier to recompile PHP,

RE: [PHP] Using while as for...

2001-02-23 Thread PHPBeginner.com
you can do while($count<=10) { echo "Number is $count \n"; $count++; } Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Felipe Lopes [mailto:[EMAIL PROTECTED]] Sent: Wed

RE: [PHP] URGENT: IE pops-up an Error and File Download Fails. Needs to be fixed NOW. Please advise.

2001-02-23 Thread PHPBeginner.com
Cheers! I've fixed that by adding some extra characters (new lines actually) in a loop... it worked... my conclusion was - MSIE5.01 bug ... didn't read pockets well ... Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginne

RE: [PHP] string question

2001-02-23 Thread PHPBeginner.com
check out php.net/number-format Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 24, 2001 4:53 AM To: [EMA

RE: [PHP] Problem with $REMOTE_ADDR

2001-02-23 Thread PHPBeginner.com
If you are developing on windows (save - refresh ie ... ) then sure, your IP is the IP of the machine ... if someone connects to you from outside then the remote host won't be 127.0.0.1 .. it will be his own Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Beg

RE: [PHP] Parsing a string

2001-02-23 Thread PHPBeginner.com
Oh, yeah... my favorite: explode()! $var = '1,2,3,4,5,6,7,8,9,10'; $var_array = explode(',',$var); /* will become: $var_array[0] = '1'; $var_array[1] = '2'; $var_array[2] = '3'; $var_array[3] = '4'; ... and so on */ as you notice the array starts from 0 Sincerely, Maxim

RE: [PHP] PHP / Filemaker?

2001-02-23 Thread PHPBeginner.com
never heard of one... is there any? I'm curious too... Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: knaSen [mailto:[EMAIL PROTECTED]] Sent: Friday, February 23, 2001 7:05 P

RE: [PHP] php_self

2001-02-23 Thread PHPBeginner.com
You have compiled it as CGI, didn't ya? recompile it as apache's module if you can so apache can give PHP_SELF the right value, Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From:

RE: [PHP] mail prob

2001-02-23 Thread PHPBeginner.com
just get some examples from php.net/mail and pass the variables to it any way you wish - it all will work Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: W.D. [mailto:[EMAIL P

RE: [PHP] Counter Help

2001-02-23 Thread PHPBeginner.com
Yeah, this is very silly thing using arrays without quotes, I once had this problem - learned it - and sticked to using quotes whenever is not an integrer. advising to everyone, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.c

RE: [PHP]

2001-02-23 Thread PHPBeginner.com
No it will give you the same value twice... you need a loop ACT VIC looping the rows .,...{ echo "".$row['state_abbr']." "; } Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Messa

RE: [PHP] Location

2001-02-23 Thread PHPBeginner.com
You need to have an array or db with file and description in ca you use array : $location = Array( '/index.php' => 'HOME', '/prod_info.php' => 'Product Information', ..etc ); and then if(isset($location[$PHP_SELF])) echo $location[$PHP_SELF]; and so on ... note: this is j

RE: [PHP] Counter Help

2001-02-23 Thread PHPBeginner.com
Yup, you need to have your key strings in quotes '', so it doesn't think it's a constant. ALWAYS use $array['key'] and not $array[key] except for the integrers Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com

RE: [PHP] Problems sending mail to aol with the mail() function

2001-02-23 Thread PHPBeginner.com
I cannot help you, but I KNOW you are not the only one, I've been asked this question already, and, I think I've seen something on php.net under mail() ... I believe this is your XSender thing, but not sure ... Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP

RE: [PHP] concatenate vars?

2001-02-23 Thread PHPBeginner.com
no, you need to do three different comparisons : if( ... something ... ) (eregi("stuff1", $one) and eregi("stuff2", $two) and eregi("stuff3", $three)) ? : do this : do that Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www

RE: [PHP] books

2001-02-23 Thread PHPBeginner.com
Professional PHP Programming is a good one Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: grios [mailto:grios]On Behalf Of Gustavo Vieira Goncalves Coelho Rios Sent: Thursday

php-general@lists.php.net

2001-02-23 Thread PHPBeginner.com
use urlencode() www.php.net/urlencode Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Tom Harris [mailto:[EMAIL PROTECTED]] Sent: Friday, February 23, 2001 4:12 AM To: [EMAIL

RE: [PHP] Templates & PHP

2001-02-23 Thread PHPBeginner.com
try these: search google for fast templates templates, check out sourceforge.net there's a whole bunch of this applications. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From:

RE: [PHP] Sessions and naming a file with SID

2001-02-23 Thread PHPBeginner.com
PHP does it automatically for you. YES your session id is $PHPSESSID so creating a file called $PHPSESSID should work, I suppose Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- F

RE: [PHP] How do I request a new feature?

2001-02-23 Thread PHPBeginner.com
bugs.php.net Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Ide, Jim [mailto:[EMAIL PROTECTED]] Sent: Friday, February 23, 2001 3:49 AM To: '[EMAIL PROTECTED]' Subject: [PHP]

RE: [PHP] variable sent using pots is cat!

2001-02-23 Thread PHPBeginner.com
It shouldn't have happened, can you give as a come sample to resolve your situation? Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: kaab kaoutar [mailto:[EMAIL PROTECTED]]

RE: [PHP] International support

2001-02-23 Thread PHPBeginner.com
Hi (Soma Interesting?) I am also a developer here in Tokyo and have done few I-Mode websites using PHP and mySQL. (I've used PostgreSQL with Japanese, but not for I-Mode) ( see www.japaninc.com/i ) There's no particular problems of storing the 2-bit data in your databases, the only thing is that

RE: [PHP] isset()

2001-02-23 Thread PHPBeginner.com
I don't agree with you in here, you usually know what kind of variable you're checking, so strlen() will work just as well as $var ? 'OK' : 'Empty' will work or the isset() - common, it was made for checking the variables - use it. strlen() is in fact an overhead, why would you allow your desi

Re: [PHP] Location

2001-02-23 Thread Steve Werby
"Brandon Feldhahn" <[EMAIL PROTECTED]> wrote: > Im making a website and i want the viewer to know were he of she is, > what do i need to do to make a location bar (home > serverices ect...) > with the $PHP_SELF command, i wasent able to figure it out so i am > asking assistance from another person

[PHP] Can't connect php to mysql on linux

2001-02-23 Thread George Alexander
Hi, I working on Redhat Linux 6.1 and I've installed MySQL-3.23.33-1.i386.rpm and MySQL-client-3.23.33-1.i386.rpm. MySql is working fine. I've even created a database also using MySqlAdmin. Regarding Php I've installed php-3.0.18-1.6.x.i386.rpm and as for Apache : apache-1.3.14-2.6.2.i386.rpm.

Re: [PHP] Using while as for...

2001-02-23 Thread Andrew Hill
Whups, forgot a blasted semicolon... $count = 1; while($count < 10) { echo "Number is $count \n"; $count++; } Cheers, Andrew On 2/24/01 12:20 AM, "Andrew Hill" <[EMAIL PROTECTED]> wrote: > $count = 1; > > while($count < 10) > { >echo "Number is $count \n"; >$coun

RE: [PHP] Download PHP from Linux machine?

2001-02-23 Thread ..s.c.o.t.t..
well, you could load lynx, then type "G" (go) and type in "www.php.net" on the address bar, then navigate your way to the download page from there. (it's only one page deep into the site) that's how i did it at work on our linux machine. > -Original Message- > From: Simons [mailto:[EMAI

Re: [PHP] Using while as for...

2001-02-23 Thread Andrew Hill
$count = 1; while($count < 10) { echo "Number is $count \n"; $count++ } > for ($count = 0; $count <= 10; $count++){ > echo "Number is $count \n"; > } > > Could anyone tell me how is it with while instead of for?? > Thank you!! Best regards, Andrew --

RE: [PHP] Help INSERTing to MySQL

2001-02-23 Thread ..s.c.o.t.t..
you dont need to have a list of field names if you insert the exact amount of fields that exist in the table... if you have fields Name and Email, you can do: INSERT INTO mytable VALUES ('myname','[EMAIL PROTECTED]') without a problem. however, if you have fields Name, Email and Password the pr

RE: [PHP] Help INSERTing to MySQL

2001-02-23 Thread ..s.c.o.t.t..
0 also works for AUTO_INCREMENT fields... > -Original Message- > From: Philip Olson [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 23, 2001 18:41 > To: Clayton Dukes > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Help INSERTing to MySQL > > > > > If I knew I could get answers that e

RE: [PHP] special characters with perl,mysql,php

2001-02-23 Thread ..s.c.o.t.t..
i use a regexp to slash-out single quotes for inclusion into an SQL query: // quote a value to make it appropriate for inclusion in an SQL string function db_quote($value) { return ereg_replace("'","\\'",$value); } > -Original Message- > From: Mitchell Hagerty [mailto:[EMAIL PROTECTE

RE: [PHP] Using while as for...

2001-02-23 Thread ..s.c.o.t.t..
this is how you'd do it, in any of three ways, depending on the values you want to start/stop with. //counts from 0 to 10 $count=0; while ($count <= 10) { echo "$count, "; $count++; } print ""; //counts from 1 to 10 $count=0; while (++$count <= 10) { echo "$count, "; } pr

Re: [PHP] Download PHP from Linux machine?

2001-02-23 Thread Simons
try to "double quotes" the url ""Jorge Alvarez"" <[EMAIL PROTECTED]> ¼¶¼g©ó¶l¥ó 976k7t$2t2$[EMAIL PROTECTED]">news:976k7t$2t2$[EMAIL PROTECTED]... > Hi there, > > I want to download PHP from my Linux server, but I can't just type "lynx > http://www.php.net/do_download.php?download_file=php-4.0.4

php-general Digest 24 Feb 2001 04:43:15 -0000 Issue 530

2001-02-23 Thread php-general-digest-help
php-general Digest 24 Feb 2001 04:43:15 - Issue 530 Topics (messages 41318 through 41430): Re: PHP and PAM 41318 by: Krznaric Michael Re: Problem with $REMOTE_ADDR 41319 by: Jeff Oien 41320 by: Rosen Re: trouble getting .php3 files to work in php4.0.4pl1 (static)

[PHP] Using while as for...

2001-02-23 Thread Felipe Lopes
I was trying to code the following script using while instead of for, but I'm havig a lot of problems...Is it possible to do what I want? for ($count = 0; $count <= 10; $count++){ echo "Number is $count \n"; } Could anyone tell me how is it with while instead of for?? Thank you!! Feli

Re: [PHP] special characters with perl,mysql,php

2001-02-23 Thread Kyndig
If your refering to: ' or " just use: addslashes($value); to escape special characters. On Fri, 23 Feb 2001, Mitchell Hagerty wrote: > Hey All, > > What would be a good method for inserting data into a blob field > that contained special characters using perl then retrieving that > data

Re: [PHP] special characters with perl,mysql,php

2001-02-23 Thread Joe Stump
What type of special characters? --Joe On Fri, Feb 23, 2001 at 08:54:09PM -0600, Mitchell Hagerty wrote: > Hey All, > > What would be a good method for inserting data into a blob field > that contained special characters using perl then retrieving that > data with php? > > URI::Escape has work

[PHP] compliling imap support into php

2001-02-23 Thread Mitchell Hagerty
Does the fun ever stop? This one has thrown me, I have imap install and running on my system but evidently not c.client.a (which i do) . Has anyone else has problems with this? What is a good imap src to point --imap= to? apache 1.2.14 php 4.0.4pl1 bsd 4.2 any tips would be great tks mitch

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

2001-02-23 Thread Andrei Zmievski
At 02:50 AM 2/24/01 +, Rasmus Lerdorf wrote: >rasmus Fri Feb 23 18:50:13 2001 EDT > > Modified files: > /CVSROOTavail gen_acl_file.m4 > Log: > More karma for Jesus I am sorry, but I did a double take when I read that... :) -Andrei -- PHP CVS Mailing List (http://ww

[PHP] special characters with perl,mysql,php

2001-02-23 Thread Mitchell Hagerty
Hey All, What would be a good method for inserting data into a blob field that contained special characters using perl then retrieving that data with php? URI::Escape has worked well with perl but now that php has gotten into the picture I need a new method. any suggestions? tks mitch -- P

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

2001-02-23 Thread Rasmus Lerdorf
rasmus Fri Feb 23 18:50:13 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: More karma for Jesus Index: CVSROOT/avail diff -u CVSROOT/avail:1.98 CVSROOT/avail:1.99 --- CVSROOT/avail:1.98 Thu Feb 22 11:18:10 2001 +++ CVSROOT/avail Fri F

Re: [PHP] Help INSERTing to MySQL

2001-02-23 Thread Philip Olson
> If I knew I could get answers that easy here, I woudn't have worked on this > for 20 hours :-) > > THANKS > > btw, field one is an ID field set to auto increment, how can I insert that > if I don't know what it is? In this case use NULL as the value for id and it'll auto increment nicely

Re: [PHP] Help INSERTing to MySQL

2001-02-23 Thread php3
Addressed to: Clayton Dukes <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from Philip Olson <[EMAIL PROTECTED]> Sat, 24 Feb 2001 01:31:30 + (GMT) > > > > Hello, This is my first attempt, so I'm prolly doing something stupid, > > but can someone tell me why this doesn't

Re: [PHP] Help INSERTing to MySQL

2001-02-23 Thread Clayton Dukes
Thanks! :-) Man, what a great list! You guys kick a$$ - Original Message - From: "Kyndig" <[EMAIL PROTECTED]> To: "Clayton Dukes" <[EMAIL PROTECTED]>; "Philip Olson" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, February 23, 2001 8:50 PM Subject: Re: [PHP] Help INSERTing to

Re: [PHP] Help INSERTing to MySQL

2001-02-23 Thread Kyndig
On Fri, 23 Feb 2001, Clayton Dukes wrote: > Well sheesh, > If I knew I could get answers that easy here, I woudn't have worked on this > for 20 hours :-) > > THANKS > > btw, field one is an ID field set to auto increment, how can I insert that > if I don't know what it is? > You don't need t

Re: [PHP] Help INSERTing to MySQL

2001-02-23 Thread Clayton Dukes
Well sheesh, If I knew I could get answers that easy here, I woudn't have worked on this for 20 hours :-) THANKS btw, field one is an ID field set to auto increment, how can I insert that if I don't know what it is? Here are the fields: CREATE TABLE documents ( id bigint(20) DEFAULT '0'

Re: [PHP] chunk_split() doesnt seem to be working

2001-02-23 Thread Richard Lynch
> Im running php 4.0.4pl1 > > Fatal error: Call to undefined function: chunk_split() in > /home/httpd/vhosts/myhearingstore/mail.egn on line 33 > > is there a configure option im supposed to compile in ? What version of PHP does claim you are running?... -- Visit the Zend Store at http

Re: [PHP] file test

2001-02-23 Thread Richard Lynch
> I am opening the top level of a a directory structure with dir. I want make > a list of the subdirectories, but not the files. Is there a file test > operator like perl's -d in php? I will then have to go into the sub > directories to perform actions on non directory files http://php.net/is_dir

Re: [PHP] Submitting Form Information

2001-02-23 Thread Richard Lynch
Search the net for Rasmus Lerdorf's "posttohost" function from long, long ago. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - Fro

Re: [PHP] php (cgi version) with Apache and suexec - help

2001-02-23 Thread Richard Lynch
Don't use safe-mode in your suExec PHP CGI configure. suExec pretty much does everything safe mode does anyway, and more. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/vo

Re: [PHP] Header Location Frame Question

2001-02-23 Thread Richard Lynch
> Is it possible to target a frame in the Location: of > a header? Sorry if this has been brought up a > million times before. No. You *can* pass enough information to the FRAMESET page that it will load the right content for each sub-FRAME. http://yoursite.com/main.php?nav=a.php&top=b.php&cont

Re: [PHP] encrypt and decrypt in standard PHP

2001-02-23 Thread Richard Lynch
You could use popen() to execute http://gnupg.org or PGP... It would be easier to recompile PHP, though, and performance on popen() is going to suck. You *might* be able to compile just the encryption module, and use dl("mcrypt.so") in your PHP script to load it up rather than recompile all of P

Re: [PHP] Need socket help!!!

2001-02-23 Thread Richard Lynch
> Now I cannot go any further. > I need to go to a page, password.php!! > All efforts give an error message. What error message? Would it perchance, be the one about "headers already sent"? You need to *NOT* have *ANY* output to the browser before you attempt to do: header("Location: password.p

Re: [PHP] session question

2001-02-23 Thread Richard Lynch
> index.php where they log in from > session_start(); file://first line of file Okay. > ?> > > > Username   ? You been typing too much XML?... :-) Shouldn't hurt. > Password   /> >     > > code from main.php > session_register(); Register what? You're supposed to register a variable

Re: [PHP] mysql.sock

2001-02-23 Thread Richard Lynch
>can someone please send me mysql.sock >( unix redhat 6.2 ) > >i had a crash - reinstalled the rpm 3.22.32 but this file is missing Unless I'm grossly mistaken, that file should only exist while MySQL is actually running, and should contain the socket number that MySQL happens to be using at t

Re: [PHP] php_self

2001-02-23 Thread Richard Lynch
> Why does php self always show php4/php.exe? how do i take it off? This is a known bug under *some* Win32 installations. Use to figure out which variable has what you need in it, and use that variable. If you need to deploy on multiple platforms, you'll have to compare/contrast the two serve

Re: [PHP] is there a way to set apache's auth_user from php?

2001-02-23 Thread Richard Lynch
> I would like to have the authenticated user name > appear in my apache access web logs but I am not using > HTTP authentication. I am using phplib to have better > control over the authentication process. > Is there a way to set this apache api variable > from php code so that apache will log t

Re: [PHP] security and php

2001-02-23 Thread Richard Lynch
> I am a system administrator and currently we are playing to migrate all > our CGI (written in C) to php! But playing a little with php i got > worried about how services that need to keep username/password are > handled by php, for instance: For starters, you *could* have PHP running as a CGI w

Re: [PHP] I have a great problem with sessions, can anybody help me!!!

2001-02-23 Thread Richard Lynch
> session_start(); > > if( !isset( $c)) { > session_register("c"); > $c = 1; > } > > echo $c . ""; > > ?> > reload > > In the new machine this code every show 1, don't save session data. > I see in /tmp and all the sess_* files are empty. > I check configuration, etc, and don't found

Re: [PHP] cached fasttemplates permissions prob

2001-02-23 Thread Richard Lynch
You may need chmod 666 instead, for the cache directory... ./menu.cache needs to be *WRITABLE*, not *exectuable*. Seems pretty scary to me to have world-writable files in your web-site though... -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http:

Re: [PHP] Alternate 2 schedules...

2001-02-23 Thread Richard Lynch
>I' m searching a way to programmatically alternate 2 schedules each sunday at 00:00. >Schedule1 start on first sunday and seven days later, schedule2 replace schedule1,and seven >days later, schedule1 replace schedule2 etc... The *easiest* thing to do would be to run a cron job every Sunday at

Re: [PHP] Cookie stored but cannot trigger the function...

2001-02-23 Thread Richard Lynch
> Before redirecting it will also store a cookie in the > browser named camefrom. > > SO then On the login.php page a user enters username > and pasword and Submits.. if user is found then It has > to get the Cookie value like this: > > $goto = $HTTP_COOKIE_VARS['camefrom']; > > header ("Location:

Re: [PHP] file upload error w/internet exploder!

2001-02-23 Thread Richard Lynch
> I've created a simple form that uploads file to my server. I noticed that > I'm having problems when I use Internet Explorer 4.5 and 5.0 on the Mac (I > haven't checked it yet on the pc). It may have something to do with the path > to the file. When I use Netscape, the entire path is displayed i

Re: [PHP] Problems with posix_getpwnam

2001-02-23 Thread Richard Lynch
> What does it mean when I get the line 'posix_getpwnam(username) failed with > "Error number not set" in /xx.php3 on line ##' printed? It doesn't return > anything anymore. Whomever contributed the posix_getpwnam() function probably encountered an error of some kind, but has not specified what e

Re: [PHP] Trans sid and form posts

2001-02-23 Thread Richard Lynch
> Can anyone tell me if trans sid is supposed to work through form posts, It is supposed to work. > and > if so how to make it work right? It is working fine through normal links, > but we have quite a few posts, and they lose the session. :( Use "View Source" in your browser on one of your FO

Re: [PHP] Saving changes to a file

2001-02-23 Thread Richard Lynch
> I am trying to make am admin page for a few other pages in PHP but I dont > know how to save the changes made. > > ie. The page has a few checkboxes & select boxes that when changed, change > some variables that are then used in other pages. > > However I want the changes in the admin page to be

Re: [PHP] fread over ftp

2001-02-23 Thread Richard Lynch
> if( !($fd = @fopen($ftp_url, "r")) ){ > $error = true; > $error_msg = "Unable to connect to server."; > } > else { > $file_contents = fread($fd, 10); > fclose($fd); > } > > if( empty($file_contents) ){ > $error = true; > $error_msg = "Did not read file."; > } > > > The problem is

Re: [PHP] Encryption

2001-02-23 Thread Richard Lynch
>I am trying to do a simple encryption on a credit card number to store in a mysql text field. >I also have to de-crypt the number after exporting to an access db. >I tried to use xor encryption, but it seems to only work half the time, the other half, I >can't seem to de-crypt the # properly, som

Re: [PHP] fopen

2001-02-23 Thread Richard Lynch
> I'm trying to fopen a URL that I have no problems getting to > if I just past it into the address field of my browser. However, > when I use it in my fopen() function call, I'm getting an "Error > 0" (zero) message. > I've looked all over the documentation and I could not find what > 'Error 0'

Re: [PHP] Apache & php as a DSO module woes!

2001-02-23 Thread Richard Lynch
> apxs:Break: Command failed with rc=65536 Search the mailing list archives for "rc=65536" -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- PHP General

Re: [PHP] Database Paging using MSSQL 2000

2001-02-23 Thread Richard Lynch
>I wanted to know if there is some syntax in the MSSQL Select statement which can allow me to >limit the no. of records being returned. I am lookin at functionality which is similar to >LIMIT in Mysql. Look up "cursor" in your MS SQL documentation. It's not as mind-numbingly simple as LIMIT, but

Re: [PHP] cURL library and auto-loggin to a site

2001-02-23 Thread Richard Lynch
> Does anyone know if it is possible to use PHP and cURL to auto-login into a > site (which sets a cookie) and then fill in a form to send an sms message? > I need to do this to test a site automatically and check response times for > sending the SMS. I have no idea what SMS is. You *can* probab

Re: [PHP] smtp protocol

2001-02-23 Thread Richard Lynch
> Hi...anybody can help me about sending email directly using local smtp port > (25). I've read some articles, still, i don't have a clear explanation. i.e > : some using \n to separate between each header, but others use \r\n. The ones using \n haven't read the spec very carefully, and are using

Re: [PHP] URGENT: IE pops-up an Error and File Download Fails. Needs to be fixed NOW. Please advise.

2001-02-23 Thread Richard Lynch
Read the http://php.net/FAQ about the NULL character problem. I'm betting you have some funky character that confuses that browser in the output that the other browsers just ignore. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/

Re: [PHP] Help INSERTing to MySQL

2001-02-23 Thread Philip Olson
> Hello, This is my first attempt, so I'm prolly doing something stupid, > but can someone tell me why this doesn't work? All it returns is > "Unable to INSERT to database" Change : or die("Unable to INSERT to database"); To : or die(mysql_error()); And see what it tells you. Odds are ther

Re: [PHP] Help INSERTing to MySQL

2001-02-23 Thread Joe Stump
Before your VALUES you need to have a list of the fields ie: insert into table (id,fname,lname) values ('$id','$fname','$lname') --joe On Fri, Feb 23, 2001 at 08:00:30PM -0500, Clayton Dukes wrote: > Hello, > This is my first attempt, so I'm prolly doing something stupid, but can someone tell

Re: [PHP] Order by Date (Newbie)

2001-02-23 Thread Kyndig
On Fri, 23 Feb 2001, Brian S. Drexler wrote: > Ok, I must be missing something, but does anyone have a script that will > order by the closest date in the future that hasn't been here yet. Did that > make sense? > > Brian > $plusten = mktime(0,0,0,date("m"),date("d")+10,date("Y") ); Will take

[PHP] Help INSERTing to MySQL

2001-02-23 Thread Clayton Dukes
Hello, This is my first attempt, so I'm prolly doing something stupid, but can someone tell me why this doesn't work? All it returns is "Unable to INSERT to database"       ---BEGIN---    $time = time();   $rand = Random_Password(5);   $docid = $time . $rand;       if (isset($email) && isset

Re: [PHP] Order by Date (Newbie)

2001-02-23 Thread Joe Stump
To order by dates use SQL select * from news order by PostDate DESC; and then make sure that PostDate is a date or datetime - hell even an int with a unix timestamp (aka time()) will work. --Joe On Fri, Feb 23, 2001 at 07:52:54PM -0500, Brian S. Drexler wrote: > Ok, I must be missing something

Re: [PHP] Ok, this might make more sense

2001-02-23 Thread YoBro
Thanks for your help. I do work with MySql and that was going to be my final option. But because I am still in the learning stages of PHP I was hoping for a simple save command. Not to worry. MySql it is. Thanks, Yobro ""Chris Lee"" <[EMAIL PROTECTED]> wrote in message 9748a0$5o2$[EMAIL PRO

[PHP] Order by Date (Newbie)

2001-02-23 Thread Brian S. Drexler
Ok, I must be missing something, but does anyone have a script that will order by the closest date in the future that hasn't been here yet. Did that make sense? Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

[PHP-CVS] cvs: php4 /ext/midgard mgd_preparser.h

2001-02-23 Thread David Guerizec
davidg Fri Feb 23 16:48:44 2001 EDT Modified files: /php4/ext/midgard mgd_preparser.h Log: Fixed some potential and real segfaults. Index: php4/ext/midgard/mgd_preparser.h diff -u php4/ext/midgard/mgd_preparser.h:1.4 php4/ext/midgard/mgd_preparser.h:1.5 -

[PHP] ANSI to HTML with socket handling

2001-02-23 Thread Kyndig
venin all, Appologies in advance for the lengthy email. I have been working on an ANSI to HTML converter for over 3 months now. I am trying to get a socket to open up, read in the buffer, and if any ANSI color codes are found, convert them to their proper FONT tags. The socket callin is workin

[PHP] problems with mail()

2001-02-23 Thread Chris Lee
mail seems to be just throwing the 'extra headers' in with the body... $email_text_body = "Hello {$people->people_name[$pos]} how are you today?"; $email_html_body = ""; $email_html_body .= ""; $email_html_body .= ""; $email_html_body .= ""; $email_html_body .= ""; $email_html_b

[PHP] PHP not proccessing input?

2001-02-23 Thread Chris
Help! I am trying to post some info to my php script using the microsoft internet control: strurl = http://www.myserver.com/test.asp strdata = "lah=sd&dta=test Inet1.Execute strurl, "POST", strdata PHP returns HTTP_POST_VARS as being empty. Yet, if I use PERL, I can read the posted i

Re: [PHP] chunk_split() doesnt seem to be working

2001-02-23 Thread Chris Lee
ok, works now, strange stuff, cut and paste from opera and you'll get problems like this, strange strange -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""Chris Lee"" <[EMAIL PROTECTED]> wrote in message 976kjm$8cl$[EMAIL PRO

[PHP-CVS] cvs: php4 /ext/midgard preparser-parser.y preparser-scanner.l

2001-02-23 Thread David Guerizec
davidg Fri Feb 23 16:01:00 2001 EDT Modified files: /php4/ext/midgard preparser-parser.y preparser-scanner.l Log: passing include()'ed files thru the preparser. Index: php4/ext/midgard/preparser-parser.y diff -u php4/ext/midgard/preparser-parser.y:1.4 php

[PHP] specifying alternate host with imap-mail

2001-02-23 Thread Mark Newnham
Is it possible to specify an alternate SMTP host for use with imap_mail? Is this what the rpath parameter is for? If so, what would the syntax be. Thanks Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

Re: [PHP] Parsing a string

2001-02-23 Thread Simon Garner
From: "Todd Cary" <[EMAIL PROTECTED]> > Thanks all!! > > split() works like a champ!! > > Todd > > -- > Todd Cary > Ariste Software > [EMAIL PROTECTED] > If you're just tokenising by a comma, don't use split(), use explode(). split() accepts a regular expression for the separator, whereas expl

[PHP-CVS] cvs: php4 /ext/midgard config.m4 preparser.c

2001-02-23 Thread David Guerizec
davidg Fri Feb 23 15:14:42 2001 EDT Modified files: /php4/ext/midgard preparser.c config.m4 Log: - workaround for the function mgd_eval() to return a value like the PHP eval(). - changed --with-mgd-experimental to --enable-mgd-experimental Index: php4/e

  1   2   3   >