[PHP] Include() problems

2003-02-13 Thread Leo Spalteholz
I just ran into a somewhat strange problem with an include failing. I have the following in my script: include(dirname(__FILE__)."/LNScreens/LNScrMain.php"); include(dirname(__FILE__)."/LNDataBase/LNDataBase.php"); The first file is included just fine, but the LNDataBase file fails (Failed openin

Re: [PHP] RE: PHP-based SMS solution

2003-02-13 Thread Mika Tuupola
On Wed, 12 Feb 2003, YC Nyon wrote: > I am developing a web-based GPS vehicle tracking solution using php. > I'm looking on how php can communicate with a SMSC using Smpp to issue AT > commands. I am not aware of any libraries which allow you to talk SMPP directly to SMSC. Youre p

[PHP] Re: crypt()

2003-02-13 Thread SLanger
Hello 'salt' basically is the initialization sequence for the encryption. This makes the function use more random numbers since the salt will be different on different calls. At least it should be So in order for your crypt() to work you have to pass the same salt to both functions. To de

Re: [PHP] image creation error

2003-02-13 Thread Michael P. Carel
i've recompile my php4.3 in redhat with ./configure --with-mysql --with-apache=../apache_1.3.x --with-gd --with-zlib and i receive this error upon make make: *** Warning: File `libphp4.la' has modification time in the future (2003-0 2-14 16:04:12 > 2003-02-14 15:47:10) make: Nothing to be done fo

Re: [PHP] image creation error

2003-02-13 Thread Kevin Waterson
This one time, at band camp, "Michael P. Carel" <[EMAIL PROTECTED]> wrote: > Hi to all, > > Im receiving a Fatal error: Call to undefined function: > imagecreatefromjpeg() . You need to install gd in your config line add --with-gd Kevin -- __ (_ \

[PHP] image creation error

2003-02-13 Thread Michael P. Carel
Hi to all, Im receiving a Fatal error: Call to undefined function: imagecreatefromjpeg() . Do i need to recompile PHP? mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Process array after form submission problem

2003-02-13 Thread Steve Jackson
Cheers, Solved the problem exactly how I wanted it. Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 > -Original Message- > From: Matt Schroebel [mailto:[EMAIL PROTECTED]] > Sent: 13. helmikuuta 2003 21:29 > To: Ph

[PHP] upgrading from 4.1.2 to 4.3.0 - can anyone point me to a list ofMUST DO'S

2003-02-13 Thread Brian Tully
I've heard that there are significant changes made between 4.1.2 and 4.3.0 so I need to know what the effects are going to be on our existing sites running old code. Is there a document that explains the effects of upgrading to 4.3.0 from 4.1.2 along with the steps I need to take to make my sites

[PHP] encrypt passwords on URL

2003-02-13 Thread Petre Agenbag
HI This is a sort-of continuation on my previous question regarding being able to "puch" a file to a client machine using PHP. I have created a login page that connects to the ftp server and then lists the contents of the folder. My original hope was that I could somehow have the user just click o

[PHP] Re: I need examples of WRITING to XML wth PHP

2003-02-13 Thread Manuel Lemos
Hello, On 02/13/2003 10:52 PM, Daevid Vincent wrote: I see tons of examples of how to read in an xml schema and use the variables and such, but how do I then change values and re-save the schema again? Can someone point me at a simple but function form that simply reads a .xml file, populates the

Re: [PHP] programming question

2003-02-13 Thread olinux
You could make $category_array2 global function getGrandParent($cat_id, $year_model_id, $x) { global $category_array2 ... olinux --- Thomas Moore <[EMAIL PROTECTED]> wrote: > I am trying to return a variable from a recursive > function. If the recursive > function gets called, the nothing i

Re: [PHP] RE: Login system using PHP/MySql

2003-02-13 Thread olinux
What is your question? What errors are you getting? Here's a couple articles that you should read. Both include code that accomplishes what you are after. A Complete, Secure User Login System http://phpbuilder.com/columns/tim2505.php3 Building a Members Area with PHP: Part 1/6 http://www.dev

Re: [PHP] crypt()

2003-02-13 Thread Jason Wong
On Friday 14 February 2003 03:20, Edward Peloke wrote: > Is there anyway to make crypt() behave like md5() and give the same results > for the same string? All of the passwords for the db I am using had > crpyt() applied to them before they were entered in the db. How do I then > verify that pass

Re: [PHP] GD and 4.3

2003-02-13 Thread Jason Wong
On Friday 14 February 2003 03:09, Joseph Bannon wrote: > > Do you have freetype2 installed? > > No, but I removed the --with-freetype-dir=/usr and it > installed ok. Does this mean I wont be able to create > text on images? Try it. You did configure with --enable-gd-native-ttf ? > Basiclly, I wan

Re: [PHP] Reading File Name

2003-02-13 Thread Jason Wong
On Friday 14 February 2003 08:40, PR wrote: > Hello all, > > I am fairly new to PHP and I am trying to read files in > the directory (gif files)and based on the names of > the files create links on the page. The words within the file will be > separated with underscores(02_13_2002_This_file_name.gi

Re: [PHP] Templates

2003-02-13 Thread php
On 13 Feb 2003 at 17:00, Darren Young wrote: > I'm looking around for some options on using templates with PHP. I've > used several Perl solutions in the past, but never tried it in PHP. > Digging on the web yields several options so I'd love some thoughts or > comments. The real driver is that th

[PHP] RE: Login system using PHP/MySql

2003-02-13 Thread YC Nyon
Hi, I have looked at many examples session-based of login/password system to protect webpages but can't get it to work. Seems simple but... I have php and mysql installed in my windows server. If any kind soul can point me to a working (easy) setup of this task, i would be most grateful. Nyon

[PHP] programming question

2003-02-13 Thread Thomas Moore
I am trying to return a variable from a recursive function. If the recursive function gets called, the nothing is returned. For example, below I am trying to get the category_array2 variable returned. It works if the recursive function within the IF statement does not get called, but if it does, it

[PHP] I need examples of WRITING to XML wth PHP

2003-02-13 Thread Daevid Vincent
I see tons of examples of how to read in an xml schema and use the variables and such, but how do I then change values and re-save the schema again? Can someone point me at a simple but function form that simply reads a .xml file, populates the form, and allows you to change values in the form and

[PHP] Reading File Name

2003-02-13 Thread PR
Hello all, I am fairly new to PHP and I am trying to read files in the directory (gif files)and based on the names of the files create links on the page. The words within the file will be separated with underscores(02_13_2002_This_file_name.gif but I do not have to use underscores if it is going t

Re: [PHP] Sorting multidimensional arrays

2003-02-13 Thread Chris Wesley
On Thu, 13 Feb 2003, Sean Brown wrote: > Let's say I've got an array like so: > > $myarray[0]["firstname"] = "Mickey"; > $myarray[0]["lastname"] = "Mouse"; > $myarray[0]["score"] = 20; > > $myarray[1]["firstname"] = "Donald"; > $myarray[1]["lastname"] = "Duck"; > $myarray[1]["score"] = 10; > > I'd

Re: [PHP] Templates

2003-02-13 Thread Justin French
on 14/02/03 10:20 AM, Darren Young ([EMAIL PROTECTED]) wrote: > That's pretty much what I'm doing today, header page, menu page, content > page and a footer. Each of which includes a shared functions file as > well via require_once(). Only real problem is keeping track of > tables/rows/columns acr

[PHP] Error compiling php

2003-02-13 Thread Adam Plocher
Hello - I am attempting to upgrade one of our older PHP servers (4.0.1pl2) to PHP 4.3.0. We are running a fairly old version of apache (1.3.12) and MySQL (3.22.32). My question is - does PHP 4.3.0 support older versions of MySQL? When I go to configure PHP 4.3.0 it works fine, but during compile

RE: [PHP] Templates

2003-02-13 Thread Darren Young
That's pretty much what I'm doing today, header page, menu page, content page and a footer. Each of which includes a shared functions file as well via require_once(). Only real problem is keeping track of tables/rows/columns across all the various files. The 'where was that supposed to be...' kind

[PHP] Calculating U.S. Taxes (regional)

2003-02-13 Thread [-^-!-%-
Hello everyone! I'm looking for some resources that helps you calculate regional taxes. If you have any leads,then please let me know. I'm writing an e-commerce application that will charge users different tax fees, based on where they are located. I hope to find a script that already does that

Re: [PHP] Templates

2003-02-13 Thread Justin French
> If you update any code in any of the 3 include files, you will update the > entire site's look, feel and actions. It still allows for you to execute > unique PHP code either before or after the HTML starts too. I forgot to mention that a whole heap of your formatting and visial design can be ac

Re: [PHP] Templates

2003-02-13 Thread Justin French
Go for a complex situation if that's what you want, or consider the basics: home.php tag // include('inc/header_html.php'); ?> Welcome to our website! contact.php tag // include('inc/header_html.php'); ?> Contact us: [EMAIL PROTECTED] If you update any code in any of the 3 include files, yo

[PHP] Templates

2003-02-13 Thread Darren Young
I'm looking around for some options on using templates with PHP. I've used several Perl solutions in the past, but never tried it in PHP. Digging on the web yields several options so I'd love some thoughts or comments. The real driver is that the basic site design could change over time and I'd li

[PHP] Sorting multidimensional arrays

2003-02-13 Thread Sean Brown
Let's say I've got an array like so: $myarray[0]["firstname"] = "Mickey"; $myarray[0]["lastname"] = "Mouse"; $myarray[0]["score"] = 20; $myarray[1]["firstname"] = "Donald"; $myarray[1]["lastname"] = "Duck"; $myarray[1]["score"] = 10; I'd like be able to sort the array using different dimensions

[PHP] Use GnuPG with PHP?

2003-02-13 Thread MIKE YRABEDRA
I want to be able to encrypt a block of text using a passphrase. Then when I get the email, I just need to unlock it using that passphrase (no keys...i think). Can anyone tell me how to do this in PHP code? TIA -- Mike Yrabedra President 323 Enterprises Home of The MacDock and The MacSur

RE: [PHP] Add a record and recover it's ID in one operation

2003-02-13 Thread Chris Shiflett
--- Chris Kay <[EMAIL PROTECTED]> wrote: > > Something like this perhaps untested > > function insert($query) { > // Connect info > mysql_connect("host","user","pass"); > > // Select DB > mysql_select_db("DBname"); > > // Perform insert > $ind

RE: [PHP] Add a record and recover it's ID in one operation

2003-02-13 Thread Chris Kay
Something like this perhaps untested function insert($query) { // Connect info mysql_connect("host","user","pass"); // Select DB mysql_select_db("DBname"); // Perform insert $indb=mysql_query($query); // Gets record ID

Re: [PHP] What's the scoop on PHP 5?

2003-02-13 Thread Danny Shepherd
The latest cvs snapshots for PHP4.3.x and PHP5.0.x can be found at http://snaps.php.net Danny. - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 8:50 PM Subject: [PHP] What's the scoop on PHP 5? > Anyone know what th

Re: [PHP] Simple PHP script

2003-02-13 Thread janet
In a message dated 2/13/2003 1:11:35 PM Pacific Standard Time, [EMAIL PROTECTED] writes: >I am new to PHP and had just written a simple php script to get things >started. I have the following code: > >if($submit1) { >echo "hello $vname"; >} else { >?> > > >Input yourname > > > > > >} >?> >So thi

RE: [PHP] Simple PHP script

2003-02-13 Thread Poon, Kelvin (Infomart)
Thanks everyone, It worked. Kelvin -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 4:13 PM To: Poon, Kelvin (Infomart) Cc: '[EMAIL PROTECTED]' Subject: Re: [PHP] Simple PHP script Sigh if ( $_POST['submit1'] ) { echo ( "Hell

Re: [PHP] Add a record and recover it's ID in one operation

2003-02-13 Thread Daniel Page
Thanks! I stand corrected. I'll check the PHP online manual more often, and for now, I'm off to optimise my database and rewrite a few queries :) Cheers, Daniel "Leif K-Brooks" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > www.php.net/mysql-insert-id > > Daniel Page wr

Re: [PHP] Simple PHP script

2003-02-13 Thread John Nichel
Sigh if ( $_POST['submit1'] ) { echo ( "Hello $_POST['vname']" ); } http://www.php.net/manual/en/language.variables.scope.php http://www.php.net/manual/en/language.variables.external.php Poon, Kelvin (Infomart) wrote: Hi, I am new to PHP and had just written a simple php script to get thi

Re: [PHP] By reference

2003-02-13 Thread Chris Wesley
On Thu, 13 Feb 2003, Chris Boget wrote: > $firstVar = "123ABC"; > > $secondVar &= $firstVar; &= is a bitwise AND, and an assignment. This didn't do what you expected it to do. > $thirdVar = &$firstVar; =& is a reference assignment. This did what you expected it to do. > Why? I thought that "&

[PHP] Simple PHP script

2003-02-13 Thread Poon, Kelvin (Infomart)
Hi, I am new to PHP and had just written a simple php script to get things started. I have the following code: Input yourname So this page is suppose to display a input box and a submit button and once you enter ur name and press the button, it should show Hello [ur name] and the in

Re: [PHP] Add a record and recover it's ID in one operation

2003-02-13 Thread Leif K-Brooks
www.php.net/mysql-insert-id Daniel Page wrote: Hi, Imagine a table with an auto-increment id number field and a text field for the username. User B (with user name 'johnny') could write to the database a millisecond after user A, with the same username. When user A looks for the last record wri

[PHP] Add a record and recover it's ID in one operation

2003-02-13 Thread Daniel Page
Hi, Imagine a table with an auto-increment id number field and a text field for the username. User B (with user name 'johnny') could write to the database a millisecond after user A, with the same username. When user A looks for the last record written by Johnny, A will find the record entered by

[PHP] Enable CLI on Mac OS X

2003-02-13 Thread Dan Tappin
Hello all, I am running a few Apache 1.3.x / PHP 4.2.3 systems and I would like to mess around with using PHP from the command line. I installed PHP from a nice .pkg installer from Tenon (www.tenon.com) and it runs fine. The problem is that there is no source code on my system to run a simple

Re: [PHP] GD and 4.3

2003-02-13 Thread Joseph Bannon
> Do you have freetype2 installed? No, but I removed the --with-freetype-dir=/usr and it installed ok. Does this mean I wont be able to create text on images? Here is basically what I want to do if that helps... I want to configure php so that I can create images with text on them, like a grap

[PHP] By reference

2003-02-13 Thread Chris Boget
I thought I understood this but evidently not... Consider the following: $firstVar = "123ABC"; $secondVar &= $firstVar; $thirdVar = &$firstVar; echo $secondVar; echo ''; echo $thirdVar; When I echo $secondVar, I get '0' but when I echo $thirdVar, I get the value of $firstVar. Why? I thought

Re: [PHP] sososoosos!!!!

2003-02-13 Thread Tim Thorburn
ROTFLMAO!! Strong Bad on PHP ... we totally need to make Strong Bad the PHP mascot ;) At 03:32 PM 2/13/2003 -0500, you wrote: Do you know how many internet etiquette rules you're breaking by typing in all caps like that? Well you're breaking one. Don't type in all caps. --Strong Bad Anyw

[PHP] What's the scoop on PHP 5?

2003-02-13 Thread Leif K-Brooks
Anyone know what the status of PHP 5 is? I can't find reference of it on php.net, and the only place I can find an alpha of it is at the PHP Museum. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the

RE: [PHP] problems with cookies and PHP

2003-02-13 Thread Bryan Lipscy
I have been playing with this at home. Perhaps this makes it a bit easier. boolean setcookie ( string name [, string value [, int expire [, string path [, string domain [, int secure]) boolean setcookie (name, value, expire, path, domain, secure) Fwiw, a solution from another project:

Re: [PHP] sososoosos!!!!

2003-02-13 Thread Leif K-Brooks
Do you know how many internet etiquette rules you're breaking by typing in all caps like that? Well you're breaking one. Don't type in all caps. --Strong Bad Anyway, download the .zip from http://www.php.net/downloads.php and read the installation instructions included with it. Luis A wrote:

[PHP] sososoosos!!!!

2003-02-13 Thread Luis A
HI EVERY BODY=20 I HAVE THE FOLLOWING TROUBLE INSTALING PHP GUYS I NEED THE INFO HOW CAN I INATALL PHP MODULE IN WINDOWS USING = APACHE VERSION apache_1.3.26-win32-x86-no_src.msi I BEEN TRIED THE VERSIONapache_1.3.26-win32-x86-no_src.exe BUT HE = SEND IT TO ME A ERROR ON THE SYSTEM AN

Re: [PHP] problems with cookies and PHP

2003-02-13 Thread Rick Emery
In your code, it appears you are attempting to determine the value of the cookie immediately upon setting. The value of the cookie is NOT available at this point; a new page must be opened. Why are you setting time to 0? If you want cookie to disappear at end of the session, use NULL. Are y

Re: [PHP] sorting multi-dimensional array

2003-02-13 Thread Jonathan Pitcher
Steve, Have you tired Usort ?? http://www.php.net/manual/en/function.usort.php On Thursday, February 13, 2003, at 01:08 PM, Steve Buehler wrote: PHP version 4.2.2 I sure hope that I can get somebody to help me figure this one out. I have a multi-dimensional array that I need to sort. Here

Re: [PHP] Exotic Assign operators what do they do.

2003-02-13 Thread Chris Hayes
At 20:38 13-2-2003, you wrote: The PHP manual neglects to tell us what these assignment operators are, can somebody point me to what they mean? http://nl.php.net/manual/en/language.operators.bitwise.php please also chek the user annotations for examples &= |= ^= ~= <<= >>= just curious

[PHP] Exotic Assign operators what do they do.

2003-02-13 Thread Jeff Bearer
The PHP manual neglects to tell us what these assignment operators are, can somebody point me to what they mean? &= |= ^= ~= <<= >>= just curious that's all -- Jeff Bearer, RHCE Webmaster, PittsburghLIVE.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

Re: [PHP] uploading files and MAX_FILE_SIZE and php.ini

2003-02-13 Thread Jason Wong
On Friday 14 February 2003 03:17, David T-G wrote: > Mike, et al -- > > ...and then Mike Kercher said... > % > % You might also check out your timeout value in php.ini This should not have an effect because PHP only starts executing *after* the file has been fully uploaded. > I'll definitely nee

RE: [PHP] Process array after form submission problem

2003-02-13 Thread Matt Schroebel
> -Original Message- > From: Steve Jackson [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 13, 2003 2:10 PM > To: Php-General > Subject: [PHP] Process array after form submission problem > > > Hi, > > My problem is that I have a dynamic form with vars which I > want to process.

[PHP] crypt()

2003-02-13 Thread Edward Peloke
Is there anyway to make crypt() behave like md5() and give the same results for the same string? All of the passwords for the db I am using had crpyt() applied to them before they were entered in the db. How do I then verify that passwords match? I just did this: $test=crypt('test'); print $test

Re: [PHP] uploading files and MAX_FILE_SIZE and php.ini

2003-02-13 Thread David T-G
Hi again -- ...and then David T-G said... % ... % Ahhh... After reading it *twice* I realized that I'm using method='post' % and so I need to set post_max_size as well. I've now confirmed that I % can upload multiple MAX_FILE_SIZE files up to post_max_size :-) Oh, yeah -- and now I need to see

Re: [PHP] uploading files and MAX_FILE_SIZE and php.ini

2003-02-13 Thread David T-G
Mike, et al -- ...and then Mike Kercher said... % % You might also check out your timeout value in php.ini I'll definitely need to tweak that for the real world, but this was locally on a laptop. It was fun to watch the two drive lights flash back and forth as I watched my free space go down by

Re: [PHP] uploading files and MAX_FILE_SIZE and php.ini

2003-02-13 Thread David T-G
Jason, et al -- ...and then Jason Wong said... % % On Friday 14 February 2003 02:44, David T-G wrote: % % > Yes, I'm back again with another upload question. I promise I've been % > paying attention in class, but I just can't get this to work! % % [snip] % % > Now I'm at a loss for where to t

[PHP] Process array after form submission problem

2003-02-13 Thread Steve Jackson
Hi, My problem is that I have a dynamic form with vars which I want to process. The variables are checkbox names with a variable number of checkboxes but all currently have the same variable name. ie. The array code works fine in that the values reflect what is in the DB. I understand tha

RE: [PHP] uploading files and MAX_FILE_SIZE and php.ini

2003-02-13 Thread Mike Kercher
You might also check out your timeout value in php.ini -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 12:57 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] uploading files and MAX_FILE_SIZE and php.ini On Friday 14 February 2003 02:44, David

Re: [PHP] GD and 4.3

2003-02-13 Thread Joseph Bannon
> Do you have freetype2 installed? No, but I removed the --with-freetype-dir=/usr and it installed ok. Does this mean I wont be able to create text on images? Basiclly, I want to configure php so that I can create images with text on them, like a graphic counter. I don't care what font is used,

[PHP] sorting multi-dimensional array

2003-02-13 Thread Steve Buehler
PHP version 4.2.2 I sure hope that I can get somebody to help me figure this one out. I have a multi-dimensional array that I need to sort. Here is the code that I have so far: function gettourndivs(){ GLOBAL $sea_id,$PHP_SELF; $result=get_mysql_query("SELECT * FROM `games` WHERE sea_id = '$se

Re: [PHP] GD and 4.3

2003-02-13 Thread Jason Wong
On Friday 14 February 2003 02:50, Joseph Bannon wrote: > Can someone tell me what is wrong? I get this error > message when I try to configure > > checking for jpeg_read_header in -ljpeg... yes > checking for png_write_image in -lpng... yes > If configure fails try --with-xpm-dir= > configure

[PHP] problems with cookies and PHP

2003-02-13 Thread Joshua Chapman
This is driving me nuts... it won't set or reset the cookie no errors no nothing... I've learned quite a bit about cookies and PHP thus far but something important must still be eluding me. I've read the manual entry on it, is there any other tutorial out there that's better? what am I doing wron

Re: [PHP] uploading files and MAX_FILE_SIZE and php.ini

2003-02-13 Thread Jason Wong
On Friday 14 February 2003 02:44, David T-G wrote: > Yes, I'm back again with another upload question. I promise I've been > paying attention in class, but I just can't get this to work! [snip] > Now I'm at a loss for where to turn to fix this. It would seem that > everything is in place! Is

Re: [PHP] GD and 4.3

2003-02-13 Thread Joseph Bannon
Can someone tell me what is wrong? I get this error message when I try to configure checking for jpeg_read_header in -ljpeg... yes checking for png_write_image in -lpng... yes If configure fails try --with-xpm-dir= configure: error: freetype2 not found! Here is my configure... ./configure

[PHP] uploading files and MAX_FILE_SIZE and php.ini

2003-02-13 Thread David T-G
Hi, all -- Yes, I'm back again with another upload question. I promise I've been paying attention in class, but I just can't get this to work! The default upload_max_filesize in my php.ini was 2M, but I changed it to 200M and restarted the server, and now phpinfo() reports 200M. I created a din

Re: [PHP] form within form

2003-02-13 Thread Rick Emery
Rather than form within a form, provide 3 fields: old password, new password, username Verify against old password. If that's valid, then change password. Or am I missing something here? - Original Message - From: "Edward Peloke" <[EMAIL PROTECTED]> To: "Php-General@Lists. Php. Net" <[EM

Re: [PHP] form within form

2003-02-13 Thread Marek Kilimajer
Forms cannot be nested, there can be no form within form. Simply use 4 fields - username, oldpassw, newpassw, newpassw2 (must be equal newpassw), when the form is submited, check if username and oldpassw are valid, newpassw = newpassw2, and if everything is right, you can update to the new pass

Re: [PHP] form within form

2003-02-13 Thread Jason Wong
On Friday 14 February 2003 02:22, Edward Peloke wrote: > I am creating a form to allow the user to change his/her password. After > the user enters their username and old password, I need to verify that info > before they can change their user name and password. So I tried using a > form within a

Re: [PHP] ftp file to client machine

2003-02-13 Thread Ernest E Vogelsinger
At 18:45 13.02.2003, Petre Agenbag spoke out and said: [snip] >But I am baffeled for the rest, ie, what to do on the download.ftp page. >First I tried the ftp_get() with the $file used as the local and remote >files, but it seems that that will not download t

RE: [PHP] form within form

2003-02-13 Thread Edward Peloke
I apologize I mean when they click the 'verify' button, I verify their username and password before I allow them to update it. Eddie -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 1:27 PM To: Edward Peloke; Php-General@Lists. Php. Net Subj

Re: [PHP] form within form

2003-02-13 Thread Cory Hicks
My bad...I see your code now. On Thu, 2003-02-13 at 12:22, [EMAIL PROTECTED] wrote: > I am creating a form to allow the user to change his/her password. After > the user enters their username and old password, I need to verify that info > before they can change their user name and password.

RE: [PHP] form within form

2003-02-13 Thread Cory Hicks
Can we see some code? Maybe we could help.. Cory On Thu, 2003-02-13 at 12:26, [EMAIL PROTECTED] wrote: > ALso, global variables are off... > > -Original Message- > From: Edward Peloke [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 13, 2003 1:22 PM > To: Php-General@Lists. Php

Re: [PHP] form within form

2003-02-13 Thread Rick Emery
What do you mean by "verify that info"? Do you mena verify for content, or form, or what... - Original Message - From: "Edward Peloke" <[EMAIL PROTECTED]> To: "Php-General@Lists. Php. Net" <[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 12:22 PM Subject: [PHP] form within form I

RE: [PHP] form within form

2003-02-13 Thread Edward Peloke
ALso, global variables are off... -Original Message- From: Edward Peloke [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 1:22 PM To: Php-General@Lists. Php. Net Subject: [PHP] form within form I am creating a form to allow the user to change his/her password. After the user

Re: [PHP] Re: URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Lucas Lain
you can breath now ... :) Vernon wrote: I finally got it! I had to downgrade to an older verison of the php-mysql for God know what reason. I am back up now. -- Lucas Lain [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP] Removing a comma from a form field

2003-02-13 Thread Rick Emery
$thestr = str_replace(",","",$thestring); - Original Message - From: "Ben C." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 12:13 PM Subject: [PHP] Removing a comma from a form field I'm trying to update a field which contains a $USD figure. But when I upd

Re: [PHP] Removing a comma from a form field

2003-02-13 Thread Leif K-Brooks
If the comma is all you have to worry about, you don't need regex. Use www.php.et/str-replace. Ben C. wrote: I'm trying to update a field which contains a $USD figure. But when I update it as 200,000 it become 200. I need to take out the comma. Is using ereg_replace function the best way of

[PHP] form within form

2003-02-13 Thread Edward Peloke
I am creating a form to allow the user to change his/her password. After the user enters their username and old password, I need to verify that info before they can change their user name and password. So I tried using a form within a form but am having some problems with passing the parameters b

[PHP] Removing a comma from a form field

2003-02-13 Thread Ben C .
I'm trying to update a field which contains a $USD figure. But when I update it as 200,000 it become 200. I need to take out the comma. Is using ereg_replace function the best way of doing so? What do you think. Thanks, Ben -- PHP General Mailing List (http://www.php.net/) To unsubscrib

[PHP] ftp file to client machine

2003-02-13 Thread Petre Agenbag
HI I am trying to do the following: I have an ftp server configured, but instead of the user having to use an ftp client, I'd like them to use the browser: So I'm trying to make a mini web-based ftp client. Idea is to get their username and password ( and maybe the ftp address as well?) and to the

Re: [PHP] problems with cookies and PHP

2003-02-13 Thread Leif K-Brooks
You have to set the cookie again. Fireborn Silvaranth wrote: ok now it will print it's value correctly but what about actually changing the cookie's value? this line: $_COOKIE['userInfo']="userID"; sets $_COOKIE['userInfo'] to "userID" but it does not change the cookie file itself. what must I d

Re: [PHP] problems with cookies and PHP

2003-02-13 Thread Rick Emery
setcookie("userinfo","userid",NULL,"/"); - Original Message - From: "Fireborn Silvaranth" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 11:58 AM Subject: [PHP] problems with cookies and PHP ok now it will print it's value correctly

Fw: [PHP] sending e-mail with 'Bcc:' and 'Cc:' not working....

2003-02-13 Thread Rick Emery
mail("[EMAIL PROTECTED]","This Is A Subject",$message,"From: [EMAIL PROTECTED]\r\nCc: [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]\r\nBcc: [EMAIL PROTECTED],[EMAIL PROTECTED]"); Separate addesses with commas. Separate CC and BCC with \r\n - Original Message - From: "Scott Fletch

[PHP] problems with cookies and PHP

2003-02-13 Thread Fireborn Silvaranth
ok now it will print it's value correctly but what about actually changing the cookie's value? this line: $_COOKIE['userInfo']="userID"; sets $_COOKIE['userInfo'] to "userID" but it does not change the cookie file itself. what must I do to accomplish that? - Original Message - From: "Leif

Re: [PHP] mail question

2003-02-13 Thread Leif K-Brooks
Try: mail('[EMAIL PROTECTED]','subject','hello '.($a ? 'andreas')); Jonas Geiregat wrote: is it possible to do something like mail("[EMAIL PROTECTED]","subject","hello if($a){ return andreas; }"); or what would be the best solution for this ? -- The above message is encrypted with double

[PHP] problems with cookies and PHP

2003-02-13 Thread Fireborn Silvaranth
I'm having problems with cookies and PHP and I'm not sure how to solve them. I've been working on a user tracking system for our site and I need to have the site remember them after they close their browser then come back. The only way I can think to do that is with cookies. I need to have PHP se

[PHP] Need help with PHP CLI

2003-02-13 Thread [-^-!-%-
Hello everyone! I'm having trouble accessing the argument list from a php script, from the command line. I'm calling the script as >>./myscript.php argument1 argument2 myscript.php contains #!/usr/local/php -q $argv and $argc both returns blank. I looked at the global variables ($GLOBALS a

[PHP] sending e-mail with 'Bcc:' and 'Cc:' not working....

2003-02-13 Thread Scott Fletcher
I'm a little puzzled on why does either of these two, 'Bcc' and 'Cc' not work when I had successfully send the e-mail. My best guess is that I need additional header, if so then what are the required header needed to make this 'Bcc' and 'Cc' work? Here's the Internet Header from the " To: " e-ma

[PHP] SNMPGET returns "Invalid object identifier: .1.3.6.1.2.1.1.1.0"

2003-02-13 Thread Mike Lindsay
Hey All, Ok I've been going nuts (as well as spending 6hours) trying to figure out what's going on with this. When I poll my switch from the commandline using net-snmp's snmpget tool I get the proper response: adxitutil1# ./snmpget -v 1 -c public xxx.xxx.xxx.xxx 1.3.6.1.2.1.1.1.0 SNMPv2-MIB::sy

Re: [PHP] Re: URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Marek Kilimajer
So the file is looked for in /usr/lib/php4, but resides in /usr/lib/php, you should move it Vernon wrote: OK, I looked up that file and found that I needed to install the MySQL-shared-3.23.51-1.i386.rpm which I did and realized that I already have the php-mysql installed. But am still getting th

[PHP] Re: Before you upgrade mod_php4 on FreeBSD!

2003-02-13 Thread Kirk Strauser
msg96819/pgp0.pgp Description: PGP signature

RE: [PHP] cookie problem....

2003-02-13 Thread Bryan Lipscy
>From your code snip it looks like you are missing ?> after the if contruct. Bryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GD and 4.3

2003-02-13 Thread Jason Wong
On Friday 14 February 2003 00:22, Joseph Bannon wrote: > Are there any special configuration commands I have to > include at install to use GD? Depending on what you mean by special the answer could be YES or NO. --with-gd --enable-gd-native-ttf --with-jpeg-dir=/usr --with-png-dir=/usr --with-

[PHP] Re: URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Vernon
I finally got it! I had to downgrade to an older verison of the php-mysql for God know what reason. I am back up now. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GD and 4.3

2003-02-13 Thread Joseph Bannon
Are there any special configuration commands I have to include at install to use GD? J. __ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: Before you upgrade mod_php4 on FreeBSD!

2003-02-13 Thread lists
I too have been very dismayed by their decision to remove the CyberCash module. I'm consequently forced to never upgrade my PHP again as I depend on that module. Verisign, as you mention, *DOES* support Cybercash still, and switching to payflow will cost us money - not only with Verisign, but wi

Re: [PHP] Re: URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

2003-02-13 Thread Vernon
OK, I looked up that file and found that I needed to install the MySQL-shared-3.23.51-1.i386.rpm which I did and realized that I already have the php-mysql installed. But am still getting the same erro message when restarting. However I did find the file you were asking about but in the /usr/lib/p

  1   2   >