Re: [PHP] Change linux password using php

2001-10-04 Thread Evan Nemerson
First off, if you don't already know, the linux passwords are stored in the /etc/passwd file (unless you have a shadow suite installed, in which case /etc/shadow would be a good bet.) Basing this on a shadow file, the file is a text document with one user per line. The entries are stored in the

RE: [PHP] php in css not working with IF's

2001-10-04 Thread Jason Dulberg
I just want to thank everyone who helped me get the css stuff to work. All of the IF statements are now working properly --- I've certainly learned a lot from all the messages. thanks again... Maxim Maletsky Rasmus Lerdorf and all others who responded to my message! __ Jason Dul

Re: [PHP] popup window under php

2001-10-04 Thread Naintara Jain
You have the same requirement Put this wherever you want in your script. alert('Message!') "; } ?> - Original Message - From: "Eduardo Kokubo" <[EMAIL PROTECTED]> To: "Naintara Jain" <[EMAIL PROTECTED]> Sent: Thursday, October 04, 2001 4:56 PM Subject: Re: [PHP] something li

Re: [PHP] Namo Web Editor

2001-10-04 Thread Joel Ricker
> I always depreciated WYSIWYG software, especially when they mention > those things about HTML. HTML is the alphabet of the internet and as > such should be well known by any webmaster and whoever else is > interested in this kind of software. > > Still, it feels like it is better than Dreamveaw

Re: [PHP] Re: images no appearing

2001-10-04 Thread Joel Ricker
To see exactly what image functions that are or aren't available to you, try running this script. Have: --"; } } ?>Don't Have: "; } } ?> - Original Message - From: "Richard Lynch" <[EMAIL PROTECTED]> To: "Adrian D'Costa" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent:

[PHP] cgi bug workaround

2001-10-04 Thread James Peter Gregory
hi all, I've been asked to do some work on some servers where php can only run as cgi. Unfortunately it seems that php has a bug which means that #!/usr/local/bin/php gets printed out at the top of each page if I do this. Are there any workarounds for this? Is it fixed in the cvs versions?

[PHP] Re: help! linux 7 problems

2001-10-04 Thread Richard Lynch
Did you uncomment the LoadModule/AddModule for PHP? Or add an Action line?... AddType is only half the puzzle piece... It sets up a mime-type (application/x-httpd-php) for an extension (.php) but doesn't say what to *DO* with that mime-type. -- WARNING [EMAIL PROTECTED] address is an endangere

[PHP] Re: Really need HELP on PHP install > Error in "make"

2001-10-04 Thread Richard Lynch
I'm no expert install guy, but... I believe errno.h should be in one or more of these places where PHP can find it: /usr/include /usr/src/linux-blah-blah-blah Or, try this: updatedb < might take a while locate errno.h Figure out why errno.h isn't where PHP expects it to be, and make it

[PHP] Re: printf scientific notation?

2001-10-04 Thread Richard Lynch
You could roll your own... % and (int) / and round() are all you need. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] 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] Re: How can I simulate the login process?

2001-10-04 Thread Richard Lynch
You have to http://php.net/fopen (or http://php.net/curl for SSL page) the login page, get the headers, snarf out the cookies or whatever, generate the appropriate cookie headers to send back on the next page (and every page thereafter). Your goal is to "fake out" the web server into thinking you

[PHP] Re: Session ID

2001-10-04 Thread Richard Lynch
Read php.ini Not sure you can set it on a site-by-site basis or within Directory in httpd.conf or not though. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: ht

[PHP] Re: installation prob.

2001-10-04 Thread Richard Lynch
Did you spell apx like that or apxs like you should?... You should have ended up with a libphp.so to throw into Apache's modules directory, not a binary for /usr/local/bin... You needed that binary for cron scripts anyway, though :-) -- WARNING [EMAIL PROTECTED] address is an endangered species

[PHP] Re: Apache + PHP + libswf problems

2001-10-04 Thread Richard Lynch
Try following the instructions for core dumps at http://bugs.php.net -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] 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 - Ori

[PHP] Re: Problem with sem_get and semaphores

2001-10-04 Thread Richard Lynch
It *should* be able to... That's the whole point of the darn things. :-) Is 0x576a the correct key?... Sure PHP isn't treating that as a string or something? -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://

[PHP] Re: PHP Warning: Unable to load dynamic library

2001-10-04 Thread Richard Lynch
Your php_ming.so has to go in the directory specified in php.ini as "extension_dir" It ain't gonna get found anywhere else. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a

[PHP] Re: read file twice or read into array once?

2001-10-04 Thread Richard Lynch
100 lines of 200 chars each is 2 which is 20K which is chump change for RAM... Unless you are on a super busy page on a super high-volume server, just file() it. If you're on a super busy page on a super high-volume server, file() it anyway, and then ap benchmark it to see if it's "slim enou

[PHP] Re: Upgrade Issue

2001-10-04 Thread Richard Lynch
Require is not a function. It's a language construct. As such, it has never had a defined return value. You can try include instead, just for fun, but you'd be better off to code it cleaner and check something that virt_cust.inc does or sets and erroring out if that didn't happen. require 'tem

[PHP] Re: php, files, ownership....(was file manipulation)

2001-10-04 Thread Richard Lynch
You *CAN* do that with PHP as CGI wrapped with suexec... But you lose performance, and you'll have to convince the ISP to install that as a second mime-type with a different extension... They'll need to read the suexec docs at http://apache.org first and foremost. (Doing suexec incorrectly is q

[PHP] Re: stupid newbie question

2001-10-04 Thread Richard Lynch
http://php.net/exec You'll need to use & in the command to be executed. That command may or may not need to be wrapped up in a shell script to muck with stdin/stderr/stdout so that PHP isn't waiting for those to be freed up... Or something like that. I don't really understand it, I just know t

Re: [PHP] Change linux password using php

2001-10-04 Thread Evan Nemerson
Hmmm mandrake 8 uses a different algorithm... not md5... outputs 34 characters, $ and / included (i think DES outputs alpha-numeric only. not sure though). I sent an e-mail to a mandrake mailing list, until then here's what I wrote before I actually looked at my /etc/shadow file. Should work fo

[PHP] Re: php, files, ownership....(was file manipulation)

2001-10-04 Thread Gerard Samuel
I just sent an email just before reading this, to the developers I report to. I suggested that we take out the nice little feature I worked so hard on. I dont think it would be benificial to people Im writing it for, if it doesn't work for a great number of people who have their websites on

Re: [PHP] ereg checking if its only numbers

2001-10-04 Thread Rasmus Lerdorf
http://php.net/is_numeric On Fri, 5 Oct 2001, Chris Aitken wrote: > > Ive been playing around with ereg for about half an hour and having no joy > because I dont really understand the medhod behind it and how it all works. > But what im trying to do is check to see if a 9 digit string is all num

[PHP] Re: How can I simulate the login process?

2001-10-04 Thread _lallous
what if they were session variables...how can i fake that out? can you plz give me an example on how to make a header with cookies before requesting a page? "Richard Lynch" <[EMAIL PROTECTED]> wrote in message 046401c14d62$917ce620$c801a8c0@Lynchux100">news:046401c14d62$917ce620$c801a8c0@Lynchux

Re: [PHP] Downloading Images

2001-10-04 Thread _lallous
I suggest you call: readfile() instead of include() at the end of your script! "David Otton" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thu, 4 Oct 2001 07:32:17 -0700 (PDT), you wrote: > > >I have added a download button to a web-site that > >enables us

Re: [PHP] ereg checking if its only numbers

2001-10-04 Thread _lallous
That's not regexps Rasmus! :) I always see you referring us the the manual! sometimes you refer to a function i never say in my life! ;) "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > http://php.net/is_numeric > > On Fri, 5 Oct 2001, Chris Ait

[PHP] Re: Session ID

2001-10-04 Thread Rosen
Sorry, I can't access php.ini. It's on server, outside !!! Thanks, Rosen "Richard Lynch" <[EMAIL PROTECTED]> wrote in message 046301c14d62$865a8ea0$c801a8c0@Lynchux100">news:046301c14d62$865a8ea0$c801a8c0@Lynchux100... > Read php.ini > > Not sure you can set it on a site-by-site basis or within

<    1   2