[PHP] It;s good to be back

2001-01-24 Thread jason cox
I've been off the list for a couple of months after having been on for 2 years and I must say, it's good to be back. Unfortunately, my latest job advancement left me using jsp/servlets but there's always hope... jason __ Do You Yahoo!? Yahoo! Auct

Re: [PHP] PROBLEM TO CONNECT MYSQL...

2001-02-10 Thread jason cox
Felipe, You need to login with the root account to mysql and then issue the following commands where "user1" is the user that your modifying and "pass1" is the new password. after you've logged in successfully as root, issue the following commands: use mysql; update user set password=Password(

Re: [PHP] how to alter assoc_array?

2001-02-10 Thread jason cox
I would just loop through the array and grab the key/value pairs and then add them to a new array as you modify them. Jason --- Jaxon <[EMAIL PROTECTED]> wrote: > Hi folks! > > If $array contains the following: > > boy => hello > girl => hi > dog => bark > > How can I alter all the elements t

Re: [PHP] Cannot get PHP w/GD to compile with Apache on RH

2001-02-12 Thread jason cox
Greg, I've done this many a time and haven't ever been able to do it from rpms. I install the gd stuff including libjpeg and libpng into the same directory. In my case it's /usr/local/gd. Then you should specify the path like --with-gd=/usr/local/gd . This has always worked for me. Jason --

Re: [PHP] Capturing Emails

2001-02-12 Thread jason cox
Ade, If you're running Unix/Linux, I would recommend using Procmail. It does the local delivery for mail. You would setup processing rules and can work with copies of emails for processing without disturbing delivery. Useful Procmail links Top site: http://www.ii.com/internet/robots/procmail/

Re: [PHP] Upload form

2001-02-13 Thread jason cox
Brandon, You can set a default value for a form field by doing something like the following: Hope that helps, Jason --- Brandon Orther <[EMAIL PROTECTED]> wrote: > Hello, > > This is off topic, but I have been working on it all > day with php and can't > seem to figure it out. Does anyone

Re: [PHP] file upload temp file is and isn't there

2001-02-13 Thread jason cox
Aaron, Are you processing the file on the page you're "posting" to? Could you send your processing code so we can have a look? If you're still having problems, I can send you an example. Jason --- "Aaron D. Turner" <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 >

[PHP] File Upload equiv. with Java/JSP

2001-02-14 Thread jason cox
Does anyone know the difference between file upload handling in PHP and with Java/JSP? An example of the Java equiv. would be most appreciated. I already know how to do it with PHP and am trying to do a bit of conversion. I'm interested more in the backend processing. thx, jason ___

Re: [PHP] Will this work?

2001-02-19 Thread Jason Cox
Hi, > "> > First Name: > Last Name: > E-mail Address: > > The form should work. > if(!IsSet($FirstName, $LastName, $Email)) > { > header("Location: http://www.SITE.com/error.php"); > exit; > } > else > { > header("Location: > http://www.SITE.com/thanks.php"); > exit; > } > ?> Th

Re: [PHP] Help!! IP functions!!!

2001-02-19 Thread Jason Cox
Use the variable $REMOTE_ADDR. It contains the request ip address. Jason - Original Message - From: "Bruno Freire" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 19, 2001 12:34 PM Subject: [PHP] Help!! IP functions!!! > Hi!! > > My name is Bruno, From Brazil!!!

Re: [PHP] Is it possible to use CyberCash w/o MCK?

2001-02-20 Thread jason cox
Ben, In order to use the Cybercash functions in php, you must have php installed with cybercash support. You can't compile php with cybercash support without the MCK. If your provider won't do it, you could always compile a PHP cgi binary with the cybercash extensions(or find a different provid

Re: [PHP] Can someone tell me the command to enable ftp support on php4.03?

2001-02-21 Thread jason cox
I believe it's still --enable-ftp. Jason --- Brandon Orther <[EMAIL PROTECTED]> wrote: > Hello, > > I am trying to enable ftp can someone please remind > me what the command is? > > Thank you, > > > Brandon Orther > WebIntellects Design/Development

Re: [PHP] image orientation/resizing images

2001-02-21 Thread Jason Cox
> At 17:48 21/02/2001 -0500, Jaxon wrote: > >Is there any way to take an image from the filesystem, say a .jpg or .png, > >and display it in a different orientation? e.g. 20 degrees to the right? > > At 17:18 21/02/2001 -0500, Dale Frohman wrote: > >Does anyone know of a way to resize images as t

Re: [PHP] Why Arrays in Forms? ( Was "Accessing variables from a form" )

2001-02-21 Thread jason cox
You don't have to specify them as "PHP arrays". You can do something like: PHP will create the array for you. Jason --- Brian White <[EMAIL PROTECTED]> wrote: > Why do you have to specify multi-value fields in > HTML > forms specifically as PHP arrays? > > It seems incompatible with othe

Re: [PHP] No GIF support in this PHP build???

2001-02-22 Thread jason cox
Are you trying to create images or just display images? If you're trying to create images using GD, you'll need to check the version of GD you have installed. If you have a newer version or don't have it installed at all, you won't be able to use that functionality. If you're trying to display

Re: [PHP] Copying Files to the Web Directory

2001-02-26 Thread Jason Cox
PHP runs as the webserver user which in most cases is user nobody. For PHP to write to a directory, it has to be writable to this directory. A possible solution would be to compile a PHP executable and run a script from cron to copy the files periodically. By using cron and a cgi-version of PHP

Re: [PHP] try catch in php?

2001-02-26 Thread Jason Cox
No, PHP doesn't have the extensive error handling that Java does. It's a bit more like C. Jason - Original Message - From: "Jeff" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 26, 2001 6:30 PM Subject: [PHP] try catch in php? > Is there any equivalent java try cat

re: [PHP] Custom email after form submission

2002-01-29 Thread Jason Cox
Sorry. I forgot to reply to the list. - Original Message - From: "Jason Cox" <[EMAIL PROTECTED]> To: "Edward R. Bailey" <[EMAIL PROTECTED]> Sent: Tuesday, January 29, 2002 8:27 AM Subject: Re: [PHP] Custom email after form submission > Ed, > >

Re: [PHP] Need Urgent Help!!

2002-01-31 Thread Jason Cox
ke sure this page is on your server and point your form at it. Voila! Let me know if you have any problems. Regards, Jason Cox > Shannon, > I appreciate your help! > The following are the form fields I have created in Flash and their variable > names, I need to be able to rece

Re: [PHP] Parsing commands to a program

2002-02-02 Thread Jason Cox
How I've done it in the past is to dynamically build the command string and then pass it through the exec function like so: $cmdStr = "pure-pw useradd joeblow -u ftpuser -d /home/joeblow"; exec($cmdStr); The exec call won't display output but I believe if you use system($cmdStr) it will. I don'

Re: [PHP] What's wrong w/ this line?

2002-02-25 Thread Jason Cox
Nick, I believe you need a space between 'else' and 'if'. Should be two separate words. If that doesn't work, please send more of the code. Regards, Jason Cox - Original Message - From: "Nick Richardson" <[EMAIL PROTECTED]> To: "PHP Gener

Re: [PHP] switch & continue statements

2002-02-25 Thread Jason Cox
e a switch block but I doubt it will jump you to the default case. Hope that helps, Jason Cox - Original Message - From: "KAT 44" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, February 23, 2002 9:13 PM Subject: [PHP] switch & continue statements He

Re: [PHP] Probably basic but seems advanced to me, PHP/SQL generation.

2002-02-28 Thread Jason Cox
. Hope that clears things up a bit. Jason Cox - Original Message - From: "DARCY,MATTHEW (Non-HP-UnitedKingdom,ex2)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 28, 2002 6:55 AM Subject: RE: [PHP] Probably basic but seems advanced to me, PHP/

Re: [PHP] novice question

2002-02-28 Thread Jason Cox
7;s a great tool and contains user comments. Chances are that if you have a problem, someone else has already run into it and posted the solution in the manual. Here's a link: http://www.php.net/manual/en/functions.php Regards, Jason Cox - Original Message - From: "me us" &l