[PHP] imap problems

2002-01-19 Thread Cary Mathews
I am trying to get twiggi-gw (http://sourceforge.net/projects/twiggi/) to run on an OpenBSD 2.9 system using Apache 1.3.22 with php 4.1.1 compiled as a static module. Is this even possible? I'm starting to think it is not! php is configured with the --with-imap, --with-mysql, and --with-apache o

[PHP] Upload & View Image

2002-01-19 Thread Thomas Edison Jr.
Hi, I have a penpal system running on a site. I want to add a feature wherein the person can upload his image and when somebody views the PenPal list, the uploaded image is shown next to his ad. Can we also control the Image Width & Height? I mean when the Image is displayed, it should be in a S

[PHP] Re: Variable referencing/substitution

2002-01-19 Thread Fred
See the manual on references: http://php.he.net/manual/en/language.references.php $vNames[1] = &$variable Fred Gaylen Fraley <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > How can this be done? > > If I have the name of a variable that is stored in an array,

[PHP] Variable referencing/substitution

2002-01-19 Thread Gaylen Fraley
How can this be done? If I have the name of a variable that is stored in an array, how do I use the stored value to represent the actual variable? Example: $variable = "old value"; $vNames[1] = '$variable'; //literal $variable I want to say $vNames[1] = "new value"; /and have $variable actua

Re: [PHP] RTFM

2002-01-19 Thread Miles Thompson
B. Yeah - play. It's the only way -- take a function, use it the right way and the wrong way. Can it be combined with other functions. What quirks of punctuation are there, etc etc. You know, I'd forgotten that too -- piddling about brings returns. Now excuse me, I have to go play with an ar

[PHP] Re: application variable

2002-01-19 Thread Joe Van Meer
Hi there, I usually test at the top of the page that does my 'logging-in' to see if the variable I set for each user once they actually login is set. So if I set a variable called '$isloggedin' upon a successful login, I would check at the top of that page to see if it is set or not, if it's alrea

Re: [PHP] RTFM

2002-01-19 Thread B. van Ouwerkerk
>Yeah, I've seen (and used) that. But it requires searching. My idea is to >put together a list of the simple questions in one place ... much like the >apache faq ... and also allowing "world input" like the php manual does. Sorry.. can't resist to reply :) From what I've seen it doesn't mat

Re: [PHP] Re: Does anyone have the 'edit_member.php' script ....

2002-01-19 Thread Mike C
Hi Janet, > >The problem is on this line. > >print ("\n"); > >There is a space between the \ and the " before Submit. Yes indeed :-(, how could I miss that Your wonderful :-) Thank you (and others) so much. Regards Mike C -- -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] open/read file/directory and file test

2002-01-19 Thread Miles Thompson
Juni, It's read the manual time http://www.php.net and use the function search box on the top right for "file" and then for "directory". They are separated, and there are a number of functions. As I don't know Perl I can't answer 3. (I must be morally deficient!) Miles At 04:39 AM 1/20/

Re: [PHP] open/read file/directory and file test

2002-01-19 Thread DL Neil
Juni, > On Sun, 20 Jan 2002, Juni Adi wrote: > > Hi folks, > After meessing up with installation stuffs, now > it's time for PHP code: > > 1. How to tell PHP to open a file like Perl do > through: > > open (FILE, $file); > > 2. Same question, this time to open/read a > directory: > > ope

Re: [PHP] password=password('$password') <----- ? help me... :P

2002-01-19 Thread Miles Thompson
I've got a typo near the bottom: left(password('$cPasswordf),10)"; should be left(password('$cPassword'),10)"; (Strange, the "f" is nowhere near " ' ") mt At 05:41 PM 1/19/2002 -0400, Miles Thompson wrote: >Hawk, > >Pardon me for not following this thread very closely, but I just played

Re: [PHP] password=password('$password') <----- ? help me... :P

2002-01-19 Thread Miles Thompson
Hawk, Pardon me for not following this thread very closely, but I just played around at the MySQL console. The fields I have are cName c(20) and cPassword(10) This executed OK insert admin (cName, cPassword) values ('Deb', password('peaches')); select cName, cPassword from admin; returned Deb

[PHP] open/read file/directory and file test

2002-01-19 Thread Juni Adi
On Sun, 20 Jan 2002, Juni Adi wrote: Hi folks, After meessing up with installation stuffs, now it's time for PHP code: 1. How to tell PHP to open a file like Perl do through: open (FILE, $file); 2. Same question, this time to open/read a directory: opendir (DIR, $dir); and readdir DI

Re: [PHP] Re: Does anyone have the 'edit_member.php' script ....

2002-01-19 Thread Miles Thompson
You keener!! Eagle eyes! At 11:00 AM 1/19/2002 -0800, you wrote: >The problem is on this line. > >print ("\n"); > >There is a space between the \ and the " before Submit. > >Janet > >- Original Message - >From: "Mike C" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Cc: <[EMAIL PROTECTED]

[PHP] Re: password=password('$password') <----- ? help me... :P

2002-01-19 Thread LaserJetter
Forget that last post - sorry!!! Instead of using password('$password') in the query string, I would insert a line before connecting to the DB: $newpass = password($password)<-- dont need quotes round here then $query = "SELECT username,password FROM users WHERE username=$username AND pass

Re: [PHP] help installing php

2002-01-19 Thread Juni Adi
Ok, I did it through ./configure --prefix=/usr/local/php3 --with-mysql --with-apx I didn't give the '--with' any directory argument (and for the prefix, I din't create the directory first). For the first try, it failed (said that apx is broken). But after a couple retry, it worked! Brb..I don'

[PHP] Re: password=password('$password') <----- ? help me... :P

2002-01-19 Thread LaserJetter
Try changing all the single quotes to double quotes (' to "). As far as I know, PHP only expands the contents of the variable if it inside double quotes, otherwise it reads it as $variable LJ "Hawk" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I've been tr

Re: [PHP] Re: Does anyone have the 'edit_member.php' script ....

2002-01-19 Thread Steven Maroney
Ahh so the \ is escaping the space and not the quote. Good one. On Sat, 19 Jan 2002, Janet Valade wrote: > The problem is on this line. > > print ("\n"); > > There is a space between the \ and the " before Submit. > > Janet > > - Original Message - > From: "Mike C" <[EMAIL PROTECTE

AW: [PHP] password=password('$password') <----- ? help me... :P

2002-01-19 Thread Wolf-Dietrich von Loeffelholz
Try this one .. :) .. mysql_connect($host, $user, $pswd); mysql_select_db($db); $query = "SELECT username,password FROM users WHERE username='$username' AND password='$password'"; $result = mysql_query($query); $num = mysql_num_rows($result); -Ursprüngliche Nachricht- Von: Hawk [mailt

[PHP] password=password('$password') <----- ? help me... :P

2002-01-19 Thread Hawk
I've been trying to get this to work for a while, and everyone says that I should use the same thing, but it doesn't work, can anyone tell me what I'm doing wrong? from the form on the previous page I have the $username and $password vars mysql_connect($host, $user, $pswd); mysql_select_db($db);

Re: [PHP] RTFM

2002-01-19 Thread Matt
Yeah, I've seen (and used) that. But it requires searching. My idea is to put together a list of the simple questions in one place ... much like the apache faq ... and also allowing "world input" like the php manual does. > You guys have seen this, right? > > > -- PHP

Re: [PHP] Re: Does anyone have the 'edit_member.php' script ....

2002-01-19 Thread Janet Valade
The problem is on this line. print ("\n"); There is a space between the \ and the " before Submit. Janet - Original Message - From: "Mike C" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, January 19, 2002 4:02 AM Subject: [PHP] Re: Does anyone have

Re: [PHP] RTFM

2002-01-19 Thread Miles Thompson
Yes, and keep forgetting about it. Now it's bookmarked again. Miles PS Brian - You can come out now. At 01:46 PM 1/19/2002 -0500, Brian Clark wrote: >* sundogcurt ([EMAIL PROTECTED]) [Jan 19. 2002 13:39]: > > > I would be more than happy to put some mini-tutorials together to send > > you, I'

Re: [PHP] RTFM

2002-01-19 Thread Brian Clark
* sundogcurt ([EMAIL PROTECTED]) [Jan 19. 2002 13:39]: > I would be more than happy to put some mini-tutorials together to send > you, I'm not sure of the relevance of them though. Maybe adding a > "suggest a tut" area where people that are having trouble can request > a tutorial and anybody inte

Re: [PHP] RTFM

2002-01-19 Thread sundogcurt
I would be more than happy to put some mini-tutorials together to send you, I'm not sure of the relevance of them though. Maybe adding a "suggest a tut" area where people that are having trouble can request a tutorial and anybody interested can fire one in? Just a thought ~Curt~ [EMAIL PROTEC

Re: [PHP] RTFM

2002-01-19 Thread sundogcurt
I've been (sorta) following this thread for the last little while and I have to say that I'm on the side of "one list for all!". The problem with splitting the list is the different levels of "newbie-ism" on different subjects, There are things that advanced users can learn from new comers to

Re: [PHP] RTFM

2002-01-19 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 19-01-02 at 18:46 * Brian Clark said > * Nick Wilson ([EMAIL PROTECTED]) [Jan 19. 2002 06:05]: > > [...] > > > Me too, many people who responded to my original post seem to think > > that *i think* all newbie questions that would not hav

Re: [PHP] RTFM

2002-01-19 Thread Brian Clark
* Nick Wilson ([EMAIL PROTECTED]) [Jan 19. 2002 06:05]: [...] > Me too, many people who responded to my original post seem to think > that *i think* all newbie questions that would not have been asked had > they bothered to look at the manual should be responded to unkindly. > Not true, we were

Re: [PHP] Re: I need help

2002-01-19 Thread Michael Sims
At 05:13 PM 1/19/2002 +, David wrote: > If i\'m not wrong, you did not specify the php extensions dir in php.ini > correctly, [...] >pls tell me if it works, i\'ve got some oracle questions to ask u if u >don\'t mind ;) LOL! Somebody needs to turn off magic_quotes_gpc on their PHP web-bas

[PHP] Re: I need help

2002-01-19 Thread David
If i\'m not wrong, you did not specify the php extensions dir in php.ini correctly, mine is: extension_dir = c:/php/extensions assumming c:\\php\\extensions is the php extensions are stored. pls tell me if it works, i\'ve got some oracle questions to ask u if u don\'t mind ;) >Dear Sir, >

Re: [PHP] bug in echo function?

2002-01-19 Thread Daniel Grace
"Billy Harvey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Fri, 2002-01-18 at 13:54, Darren Gamble wrote: > > Good day, > > > > The reason that the first statement doesn't work as intended is due to the > > order that the operands are processed. > > > >

Re: [PHP] how to send to URL on if statement?

2002-01-19 Thread Daniel Grace
There is one other option if you're willing to take a slight drop in performance. Take a quick look at: http://www.php.net/manual/en/ref.outcontrol.php -- Daniel Grace <[EMAIL PROTECTED]> "Richard Crawford" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > If yo

Re: [PHP] Computer Science and PHP

2002-01-19 Thread DL Neil
Hank, You youngster you! One other dimension, the institutions can only offer classes in the languages (and techniques/technologies) that the trainers know and than they have the resources (hardware, compilers/interpreters) to cover. Maybe therein lies an answer to the 'marketing' side too. Th

Re: [PHP] Computer Science and PHP

2002-01-19 Thread Hank Marquardt
Hmm, well I'm 20 years removed from college at this point, but I can relate somewhat to the issue ... the tail end of my college life was when the IBM PC was introduced and I can assure you there were no classes in 'small systems' of any kind despite the fact that many could see the future --- Ce

[PHP] Re: FIXED - PHP - browser - ERROR !

2002-01-19 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 19-01-02 at 13:37 * Dani said > Hi Again! > > I found the problem! > > It seems that netscape can't take an empty value for 'action' in the form > tag. here is the example: > > > > this will result ERROR because the value for the acti

[PHP] FIXED - PHP - browser - ERROR !

2002-01-19 Thread Dani
Hi Again! I found the problem! It seems that netscape can't take an empty value for 'action' in the form tag. here is the example: this will result ERROR because the value for the action is written. this one works: I hope this help for those who are trying to use Netscape. regards, Dani

Re: [PHP] Re: PHP 4 on OSX 10.1.2

2002-01-19 Thread Andrew White
On Saturday, January 19, 2002, at 03:58 am, Ben Richardson wrote: > this should give me "Friday in Danish is Fredag" but no matter > what I set the languagecode to it always returns "Friday" > > Why? Because locale support in libc on Mac OS X is broken. There isn't even a /usr/share/locale/da

Re: [PHP] I need help

2002-01-19 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 19-01-02 at 13:14 * Hassan Khan said > Dear Sir, > > I am facing the problem with the PHP configuration. Whenever I try to load > the php_oci8.dll. It gives me an error > > "Unable to load dynamic library 'C:\php\extensions\php_oci8.dll

[PHP] I need help

2002-01-19 Thread Hassan Khan
Dear Sir, I am facing the problem with the PHP configuration. Whenever I try to load the php_oci8.dll. It gives me an error "Unable to load dynamic library 'C:\php\extensions\php_oci8.dll' - The specified module could not be found" I have tried my best to resolve this problem but all in vain.

Re: [PHP] PHP - browser - ERROR !

2002-01-19 Thread Dani
Hi ! thanks for the info. when I tried to open some of include files directly from the browser, they work fine. So I guess it's just my authentician page which doesn't work. I'll keep trying. Thanks again! Nick Wilson wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > * On 19-01-0

[PHP] RE: Does anyone have the 'edit_member.php' script ....

2002-01-19 Thread James Cox
change printf ("\n", $PHP_SELF, DISPLAY_ENTRY); to printf ("\n", $PHP_SELF, $DISPLAY_ENTRY); > -Original Message- > From: Mike C [mailto:[EMAIL PROTECTED]] > Sent: Saturday, January 19, 2002 12:02 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: Does anyone have the 'e

Re: [PHP] PHP - browser - ERROR !

2002-01-19 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 19-01-02 at 13:02 * Marcel Besancon said > Hi, > > maybe it's a problem of netscape. In many cases netscape doesn't > work like the IE. Just remember CSS and other things !!! Yes, but this is *server side* code. I suspect you're r

[PHP] Re: Does anyone have the 'edit_member.php' script ....

2002-01-19 Thread Mike C
It was suggested I send this to the list. The 'samp_db.inc' file follows this. The parse error is: Parse error: parse error in /edit_member.php on line 11 #edit_member.php \n", $PHP_SELF, DISPLAY_ENTRY); print ("Enter your membership ID number and password,\n"); print ("then select submit.\n\n"

Re: [PHP] PHP - browser - ERROR !

2002-01-19 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 19-01-02 at 12:55 * Dani said > Hi again! > > I tried it and I still get the error. > > Do you think that this has somthing todo with my PWS server? or the installation > of PHP? > Could be althoug that doesn't really explain why it wor

AW: [PHP] PHP - browser - ERROR !

2002-01-19 Thread Marcel Besancon
Hi, maybe it's a problem of netscape. In many cases netscape doesn't work like the IE. Just remember CSS and other things !!! Marcel > -Ursprüngliche Nachricht- > Von: Dani [mailto:[EMAIL PROTECTED]] > Gesendet: Samstag, 19. Januar 2002 15:47 > An: Nick Wilson > Cc: [EMAIL PROT

Re: [PHP] PHP - browser - ERROR !

2002-01-19 Thread Dani
Hi again! I tried it and I still get the error. Do you think that this has somthing todo with my PWS server? or the installation of PHP? thanks! Nick Wilson wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > * On 19-01-02 at 12:35 > * Dani said > > > Hi Nick! > > Thanks for the

Re: [PHP] PHP - browser - ERROR !

2002-01-19 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 19-01-02 at 12:35 * Dani said > Hi Nick! > Thanks for the reply. > > here the code: This works on IE but not Netscape (strange!) > > session_start(); > if (!isset($lgname)&&!isset($passw)) > { > include("login_input.php"); > } > > el

RE: [PHP] Does anyone have the 'edit_member.php' script ....

2002-01-19 Thread James Cox
copy and paste your self typed script, plus the parse error and i am sure someone - or i will be able to help you out :) James -- James Cox :: [EMAIL PROTECTED] Please CC me when replying to my messages on lists. Was I helpful? http://www.amazon.co.uk/exec/obidos/wishlist/23IVGHQ61RJGO/ >

Re: [PHP] PHP - browser - ERROR !

2002-01-19 Thread Dani
Hi Nick! Thanks for the reply. here the code: This works on IE but not Netscape (strange!) session_start(); if (!isset($lgname)&&!isset($passw)) { include("login_input.php"); } else { if ($checkpsw) { session_register("session_login");

[PHP] Does anyone have the 'edit_member.php' script ....

2002-01-19 Thread Mike C
I have not been able to find an electronic copy of the above script that is in the book 'MySQL'. Is anyone prepared to help me out. My, self-typed version contains a parse error that I cannot find? Regards Mike C -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [E

Re: [PHP] PHP - browser - ERROR !

2002-01-19 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 19-01-02 at 12:24 * Dani said > Hi! > > I'm trying to make a user login page and it works fine with Internet > explorer. However when I try it using Netscape 4.5 I get this ERROR > message: > > "HTTP Error 405 > > 405 Method Not Allowed

[PHP] PHP - browser - ERROR !

2002-01-19 Thread Dani
Hi! I'm trying to make a user login page and it works fine with Internet explorer. However when I try it using Netscape 4.5 I get this ERROR message: "HTTP Error 405 405 Method Not Allowed The method specified in the Request Line is not allowed for the resource identified by the request. Pleas

Re: [PHP] RTFM

2002-01-19 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 19-01-02 at 00:04 * Darren Gamble said > Good day, Hi there! > > I would agree that there certainly are some questions that deserve a bit > more thought before they are posted to the list. Witness, for example, > posters who respond to

Re: [PHP] RTFM

2002-01-19 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 19-01-02 at 11:31 * Christopher William Wesley said > On Sat, 19 Jan 2002, Shane Wright wrote: > > > Maybe this list should be split - kindof into a php-newbies and a > > php-advanced ? > > So all the newbies can help all the newbies, an

Re: [PHP] RTFM

2002-01-19 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Crikey, you do go on don't you? My original point was not intended to flame newbies. Merely to point out that giving detailed explanations/answers to such questions as 'my .html file is showing my php code' repeatedly will not help newbies. Whereas a

Re: [PHP] Re: Redirection and Passing Data (arrays)

2002-01-19 Thread m. ali
how do you mean it echo in the login script here is what I mean do{ $product_type= $db->f("Product_Type"); $part_number = $db->f("Part_Search"); $make = $db->f("Make"); $model = $db->f("Model"); $model_year = $db->f("Model_Year"); $engine = $db->f

Re: [PHP] Re: Programming a state controller for page transitions

2002-01-19 Thread Geoff Caplan
Manuel >You may want to try this multi-page forms class Thanks for the tip. If I may make a comment about the way people present their open source contributions... As with most code I look at, it doesn't fully meet my needs ( I really do need a generic state engine). But is rather hard to learn

[PHP] phpPgAdmin 2.4 Release -- Enhances Security

2002-01-19 Thread Dan Wilson
phpPgAdmin 2.4 Release Enhances Security The phpPgAdmin Development team is pleased to announce the release of version 2.4. A major security issue was resolved with the implementation of a new authorization scheme that places all security in the hands of PostgreSQL itself. In addition to securit

RE: [PHP] Variable Problem

2002-01-19 Thread Philip Olson
Just to add a bit to this thread. The following can be bad: A potential gotcha. Be sure to either define an array key and/or a value. Because assuming all the above are checked, the following will result: $foo = array('on','on','on'); If two are checked, then we'll get: