[PHP] returning multiple variables from a function?

2001-02-12 Thread James, Yz
Hrms. Got a small problem. I'm now using functions on a regular basis, but I've come to another sticking point with them: returning multiple variables from the function... Here's a really quick example (nothing to do with what I intend to use the functions for): function CUP ($connection,$use

[PHP] (g)Zip archiving of local files?

2001-02-12 Thread Michael Geary
Hi All, I've seen a couple of references to archiving files using exec() and tar or zip. I am wondering, however, if this is the best/only way to do this. Is this an inherently threaded process, so multiple simultaneous requests won't seriously compromise server performance? What other gotchas sh

Re: [PHP] returning multiple variables from a function?

2001-02-12 Thread Matt McClanahan
On Mon, Feb 12, 2001 at 09:13:09PM -, James, Yz wrote: > What if I wanted to "return" more than one variable from the function? And > how would I assign it a name? Like the actual variable, or is that just not > possible? > > I've tried > return $var1,$var2; You're on the right track. re

Re: [PHP] money maths

2001-02-12 Thread Christian Reiniger
On Monday 12 February 2001 11:34, Michael Hall wrote: > this works fine except that 14.95 * 2 comes out as 29.9 not 29.90. In > other words, how to add a zero so that there are always two decimal > places. Any solution to this, including regex? I can't find anything look for number_format() and s

Re: [PHP] mysql +php+ array

2001-02-12 Thread Web master
Hi Ramiro, Your code looks ok, why don't you try the following and tell me is working or not $arr_aantal = explode (",", $aantal); $arr_str_men = explode (",", $str_men); $arr_recht = explode (",", $recht); $arr_rechtverstek = explode (",", $rechtverstek); $arr_verstekgelijk = explode (",", $ve

Re: [PHP] returning multiple variables from a function?

2001-02-12 Thread John Donagher
An approach that many people take is to simply have a function return success or failure, and have any data that needs to be propogated upwards assigned to pass-by-reference parameters. I like this approach because it removes any question as to what a function returns. One drawback is that it bec

[PHP] Problems with ! in mail();

2001-02-12 Thread Curtis, Lorenzo
I am trying to process a form using text/html and mail(). The resulting email continues to have an ! inserted randomly into the email. Does anyone know how to avoid this?? __ Lorenzo Curtis Website/Database Developer prexar - internet and beyond [EMAIL PROTECTED]

Re: [PHP] Regex help needed...

2001-02-12 Thread Christian Reiniger
On Monday 12 February 2001 21:08, Jesse Swensen wrote: > >> This should be a quick one, but I can't seem to wrap my brain around > >> it. All I need to do is replace leading or trailing spaces with > >> underscores. If there is spaces in between words, leave them alone. > but I wanted to convert

[PHP] Broken icon?

2001-02-12 Thread Malouin Design Graphique
Hello, My problem is that I have in the table below an URL (see $indice_url) that points to the graphic (.gif) that has to be use by the the "$indice" variable. The graphics ( five different ones) located in the same folder as the script " data_out.php3" Any Guru out here could shred me the "Blu

Re: [PHP] comparisons

2001-02-12 Thread Christian Reiniger
On Monday 12 February 2001 10:41, PHPBeginner.com wrote: > I'm having a rather strange problem. I'm trying to compare two > values. "01" and "1". The variables names that they are submitted > under are pick1 and pick2. i use the following code [...] > I still get the error. Anyone have a

Re: [PHP] Broken icon?

2001-02-12 Thread Web master
I am doing the same with the following code $rec1=@mysql_fetch_object($result); $image=$rec1->iurl; $alt=$rec->mnam; $array=GetImageSize("image/$image"); echo ""; and it works a charm. Malouin Design Graphique wrote: > Hello, > > My problem is that I have in the table below an URL (see $in

Re: [PHP] Problems with ! in mail();

2001-02-12 Thread Christian Reiniger
On Monday 12 February 2001 22:27, Curtis, Lorenzo wrote: > I am trying to process a form using text/html and mail(). > > The resulting email continues to have an ! inserted randomly > into the email. Does anyone know how to avoid this?? Yes. Look through your code and find out where you're inser

[PHP] Using PHP to process forms

2001-02-12 Thread Don
Does anyone have examples of using PHP to process forms? I'd also like to know if I can embed the code in my html file or do I have to write a CGI server side script to do it? Thanks, Don -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Re: [PHP] Using PHP to process forms

2001-02-12 Thread Joe Stump
These are really basic functions of PHP and you should probably start out with some of the beginner tutorials found on php.net --Joe On Mon, Feb 12, 2001 at 04:54:30PM -0500, Don wrote: > Does anyone have examples of using PHP to process forms? I'd also like > to know if I can embed the code in

RE: [PHP] Problems with ! in mail();

2001-02-12 Thread Curtis, Lorenzo
I don't think it's a bug in my code... I have gone through it dozens of times and there are NO exclamation points... __ Lorenzo Curtis Website/Database Developer prexar - internet and beyond [EMAIL PROTECTED] (207) 974-4334 -Original Message- From: Ch

Re: [PHP] Problems with ! in mail();

2001-02-12 Thread Christian Reiniger
On Monday 12 February 2001 23:00, Curtis, Lorenzo wrote: > I don't think it's a bug in my code... I have gone through it > dozens of times and there are NO exclamation points... Well, somewhere it has to come from, and PHP doesn't have an "insert stuff into mails randomly" festure... > On Monda

FW: [PHP] XML Parsing The Sequel II

2001-02-12 Thread Steve Haemelinck
-Original Message- From: Steve Haemelinck [mailto:[EMAIL PROTECTED]] Sent: maandag 12 februari 2001 21:52 To: 'Steve Haemelinck' Subject:RE: [PHP] XML Parsing The Sequel II Ok, I solved the problems with my proxy, I can get the xml but I can not get it completely. Why?

[PHP] input type equals image

2001-02-12 Thread matthewt tozer
When a form is submitted from an image (e.g. ) this will be passed in the URL as paging.x=SOME_NUMBER. If I try and access this variable as ${paging.x} in the subsequent PHP script I get nothing. How can I access this variable? all I want to do is test for it's existance ? Simple as it seems ..

RE: [PHP] input type equals image

2001-02-12 Thread Jason Murray
> When a form is submitted from an image (e.g. ) this > will be passed in the URL as paging.x=SOME_NUMBER. If I try and > access this variable as ${paging.x} in the subsequent PHP script > I get nothing. How can I access this variable? all I want to do > is test for it's existance ? Simple as

Re: [PHP] Regex help needed...

2001-02-12 Thread Jesse Swensen
on 2/12/01 4:30 PM, Christian Reiniger at [EMAIL PROTECTED] wrote: > On Monday 12 February 2001 21:08, Jesse Swensen wrote: This should be a quick one, but I can't seem to wrap my brain around it. All I need to do is replace leading or trailing spaces with underscores. If there is

[PHP] How to check if vaiable is defined or not?

2001-02-12 Thread SED
Hi, I'm sending a form, with check-boxes, via post to PHP-script and if the boxes are not checked they don't post value for its variable - Can I check with a function if the variable is defined? (or should I focus on another solution?) Regards, Sumarlidi Einar Dadason SED - Graphic Design

[PHP] PHP/Oracle mod

2001-02-12 Thread rbradley
I'm really struggling configuring the php mod with oracle 8i support on Solaris 8. ./configure --enable-track-vars --with-o8ci=/export/home/oracle --with-oracle --enable-sigchild --with-apxs The ORACLE_HOME is set to /export/home/oracle. I am getting an error: checking Oracle Install-Dir... +-

Re: [PHP] How to check if vaiable is defined or not?

2001-02-12 Thread eschmid+sic
On Mon, Feb 12, 2001 at 11:21:45PM -, SED wrote: > I'm sending a form, with check-boxes, via post to PHP-script and if the > boxes are not checked they don't post value for its variable - Can I check > with a function if the variable is defined? (or should I focus on another > solution?) php

[PHP] Nothing Showling up in Netscape

2001-02-12 Thread Peter Houchin
Hi all,   I've created a page (see attached file) everything works fine in IE but once i check it in NN i get nothing showing up, when i view the source code of the page i can see the full code can any one offer me any suggestions as to why this is so...( I have check all HTML and its all c

Re: [PHP] How to check if vaiable is defined or not?

2001-02-12 Thread Reuben D Budiardja
try: isset($var); return true is variable is set, false otherwise. Check www.php.net for more info. Reuben D. B At 11:21 PM 2/12/01 +, SED wrote: >Hi, > >I'm sending a form, with check-boxes, via post to PHP-script and if the >boxes are not checked they don't post value for its variable -

Re: [PHP] Problems with ! in mail();

2001-02-12 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Curtis, Lorenzo") wrote: > I don't think it's a bug in my code... I have gone through it > dozens of times and there are NO exclamation points... It may be in a variable or constant. Try doing a var_dump() or echo() on each. If you're sti

RE: [PHP] How to check if vaiable is defined or not?

2001-02-12 Thread Brian V Bonini
if (isset($var)) > -Original Message- > From: SED [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 12, 2001 6:22 PM > To: [EMAIL PROTECTED] > Subject: [PHP] How to check if vaiable is defined or not? > > > Hi, > > I'm sending a form, with check-boxes, via post to PHP-script and if the

RE: [PHP] Nothing Showling up in Netscape

2001-02-12 Thread Jason Murray
> I've created a page (see attached file) everything works fine > in IE but once i check it in NN i get nothing showing up, when > i view the source code of the page i can see the full code can > any one offer me any suggestions as to why this is so...( I have > check all HTML and its all corr

Re: [PHP] PHP/Oracle mod

2001-02-12 Thread Joe Conway
> I'm really struggling configuring the php mod with oracle 8i support on > Solaris 8. > > ./configure --enable-track-vars --with-o8ci=/export/home/oracle > --with-oracle --enable-sigchild --with-apxs > > The ORACLE_HOME is set to /export/home/oracle. > > I am getting an error: > > checking Oracle

Re: [PHP] Preserve variables between page loads?

2001-02-12 Thread Chuck Mayo
Sounds like just what I need. Thanks, Ankur & Maxim. Ankur Verma wrote: > try using session variables. > > take a look at phplib if you are using PHP3 or > > http://www.php.net/manual/en/ref.session.php > > if you are using PHP4 > > hope that helps > > Ankur Verma > HCL Technologies > A1CD, Sec

[PHP] serialize/deserialize data

2001-02-12 Thread Brian V Bonini
What exactly does serialize/deserialize data mean? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] To The Hacker: CodeBoy

2001-02-12 Thread Jonathan Sharp
rswfire, This thread does not pertain to the php-general list anymore, nor was your origional post. I personally emailed you OFF list and your reply was ON list which didn't have any business with this anymore. This situation is between you and me and i am happy to discuss anything which you would

[PHP] security question

2001-02-12 Thread Marc Aragnou
Hello there, I'm posting a username and a password with: When I check $HTTP_POST_VARS I can see the values as they're plain text. Is this still safe to do or should I encrypt the strings before posting them between pages? Thanks for your help. -Original Message- From: Brian V Bonini

Re: [PHP] security question

2001-02-12 Thread Augusto Cesar Castoldi
I think you should encrypt (crypt). On Tue, 13 Feb 2001, Marc Aragnou wrote: > Hello there, > > I'm posting a username and a password with: > > > > > When I check $HTTP_POST_VARS I can see the values as they're plain text. Is > this still safe to do or should I encrypt the strings before po

[PHP] How To Tell Which v. PHP?

2001-02-12 Thread Jeff Oien
Is there a script I can run to tell which version of PHP the server is using to run it? Details: Two reasons I ask. One is if I have a client on an unfamiliar server with bad or no documentation. Or to test when using .htaccess to use the .phtml extension for php3 when the server would normally

RE: [PHP] How To Tell Which v. PHP?

2001-02-12 Thread Jason Murray
> Is there a script I can run to tell which version of PHP the > server is using to run it? http://uptime.netcraft.com/up/graph/ Enter the URL under "what's that site running?", and assuming PHP has not been instructed to keep itself quiet on that box you'll see the version. Jason -- Jason Mu

RE: [PHP] How To Tell Which v. PHP?

2001-02-12 Thread Brandon Orther
Make a file call it what ever you want (example: phpinfo.php) and write: then run that script Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com --

[PHP] re:[PHP]Using PHP to process forms

2001-02-12 Thread Sean Kennedy
Does anyone have examples of using PHP to process forms? I'd also like to know if I can embed the code in my html file or do I have to write a CGI server side script to do it? Thanks, Don -- What's your name When the submit button is pressed, the value of the some_name input field is

[PHP] checkboxes and arrays

2001-02-12 Thread Christian Dechery
How can I associate a list of checkboxes to a list of texfields? if I had only several checkboxes I'd have: Cb1 Cb2 ... etc... but what if have: Cb1 Cb2 http://www.tanamesa.com.br . Gaita-L Owner / Web Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] LOCK TABLES x COMMIT/ROLLBACK

2001-02-12 Thread Christian Dechery
can someone explain me how to use LOCK TABLES to subtitute transactions? I don't seem to get how this is possible... and I really need this... I have a script that updates 4 tables at a time, and I have to be sure all of them are updated, or NONE... I can only see this possible using commit/ro

[PHP] Pay for help

2001-02-12 Thread rbradley
My company is willing to pay for some assistance in helping us install: PHP apache mod with oracle 8i functions on a Solaris 8 box. Are there any takers? -- Richard Bradley CTO YourLink, inc. (321) 452-6699 IM lagoonr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] re:[PHP]Using PHP to process forms

2001-02-12 Thread Philip Olson
> Does anyone have examples of using PHP to process forms? I'd also like > to know if I can embed the code in my html file or do I have to write a > CGI server side script to do it? > > Thanks, > Don Here's a form processor : foreach ($HTTP_POST_VARS as $key => $value) { print "$k

RE: [PHP] re:[PHP]Using PHP to process forms

2001-02-12 Thread Jeff Oien
http://www.thickbook.com/extra/index.phtml Jeff Oien > Does anyone have examples of using PHP to process forms? I'd also like > to know if I can embed the code in my html file or do I have to write a > CGI server side script to do it? > > Thanks, > Don > -- PHP General Mailing List (http://w

[PHP] Reg. Exp. Help

2001-02-12 Thread Scott Mebberson
I have written a regular expression that searches for any occurance of src="*" in a html page and rewrites it so that it is equal to src="http://www.whereever.com/images/filename.jpg" - If there are five occurances of this match then it replaces them all. Is there anyway to make it only run once.

[PHP] Parse HTML Block

2001-02-12 Thread Mark Green
Hi Guys, Im looking for a way to parse a value from between two tags This is what i want to return Basically its simply a block of HTML from within a large HTML file. Speed is definately a consideration in any solution. Any ideas? Cheers, Mark -- << If I was a signature file, where would I

RE: [PHP] echo vs print

2001-02-12 Thread Maxim Maletsky
Right, this is also true Cheers, Maxim Maletsky -Original Message- From: Ben Peter [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 10, 2001 2:10 AM To: Maxim Maletsky Cc: 'Todd Cary'; [EMAIL PROTECTED] Subject: Re: [PHP] echo vs print Maxim Maletsky wrote: > Anyway, " " compa

RE: [PHP] How to send email

2001-02-12 Thread Maxim Maletsky
If you look closer, in PHP.INI you can find an alternative of your server. In fact you can specify a completely different server to use in order to send emails. Cheers, Maxim Maletsky -Original Message- From: Emmanuel Halphen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 4:

RE: [PHP] (g)Zip archiving of local files?

2001-02-12 Thread Maxim Maletsky
I've never done what you are saaying, but if I would have to, I would then create a file with an exec() (in case there's nothing like that within PHP build-in functions) and would run it from cron automatically. Cheers, Maxim Maletsky -Original Message- From: Michael Geary [mailto:[EM

RE: [PHP] Using PHP to process forms

2001-02-12 Thread Maxim Maletsky
hm... dunno how to answer .. Yes you can process forms, and you don't necessarily need any CGI to do that... you know what?... Search on Goolge how to do it, or download and install some relatively light PHP software and try to see it "deep inside" Cheers, Maxim Maletsky -Original M

RE: [PHP] How To Tell Which v. PHP?

2001-02-12 Thread Maxim Maletsky
phpversion() Cheers, Maxim Maletsky and, there's a very nice tip here: www.php.net/phpversion Cheers, Maxim Maletsky -Original Message- From: Jeff Oien [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 9:31 AM To: PHP Subject: [PHP] How To Tell Which v. PHP? Is there a sc

[PHP] create filesystem folder?

2001-02-12 Thread andrew
subject says it all - any way to create a new folder in the filesystem? regards, andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] Parse HTML Block

2001-02-12 Thread Thor M. Steindorsson
This should do the trick. (.*)", $readfile, $output); fclose($file); echo $output[1]; ?> cheers, Thor. -Original Message- From: Mark Green [mailto:[EMAIL PROTECTED]] Sent: Monday, February 12, 2001 6:06 PM To: PHP General Mailing List Subject: [PHP] Parse HTML Block Hi Guys, Im look

Re: [PHP] create filesystem folder?

2001-02-12 Thread Philip Olson
See : http://www.php.net/manual/en/function.mkdir.php Regards, Philip On Mon, 12 Feb 2001, andrew wrote: > subject says it all - any way to create a new folder in the filesystem? > > regards, > andrew > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail:

[PHP] session_register()

2001-02-12 Thread Peter Houchin
Hiya Could some one please give me a step in the right direction, I've created a simple login script that checks the data base against the user name and password that the user has inputted in aform, i want to have stored in the session their user name and password, as well as their email. I can

Re: [PHP] serialize/deserialize data

2001-02-12 Thread Steve Werby
"Brian V Bonini" <[EMAIL PROTECTED]> wrote: > What exactly does > serialize/deserialize data > mean? See the manual at http://www.php.net/manual/en/function.serialize.php. Serializing is a way of storing values so that they retain their type and structure. Session variables are stored in this wa

[PHP] Using php as a shell scripting language

2001-02-12 Thread Tony Bibbs
I have a need to use php similar to how I would bash when creating shell scripts. I have two RH6.2 machines that have the same version of php (slightly different compile-options). One machine in particular lacks the php binary in /usr/local/bin and that's what I need to use php in a shell script

[PHP] Newbie: Images refs not loading (Broken Icons) How to?

2001-02-12 Thread Malouin Design Graphique
Hi, Is there anything wrong with this code below? Any help or fix to this code would be very much appreciated. The file to get the data out (gif file): "); printf("%s\n", $row["indice_url"]); } ?> Here's the "tiny" table that feeds it: -

Re: [PHP] checkboxes and arrays

2001-02-12 Thread Steve Werby
"Christian Dechery" <[EMAIL PROTECTED]> wrote: > How can I associate a list of checkboxes to a list of texfields? > but what if have: > Cb1 Cb2 > how would I associate each textfield to its checkbox? In the same array? in > a different one? How?? I would recommend generating these checkbox / te

Re: [PHP] Newbie: Images refs not loading (Broken Icons) How to?

2001-02-12 Thread Steve Werby
"Malouin Design Graphique" <[EMAIL PROTECTED]> wrote: > Is there anything wrong with this code below? > Any help or fix to this code would be very much appreciated. Let's take a look. > $db = mysql_connect("www.server.com", "root", "password"); > mysql_select_db("db_name", $db); > $sql = "select

Re: [PHP] Newbie: Images refs not loading (Broken Icons) How to?

2001-02-12 Thread David Robley
On Tue, 13 Feb 2001 13:55, Malouin Design Graphique wrote: > Hi, > > Is there anything wrong with this code below? > Any help or fix to this code would be very much appreciated. > > > > The file to get the data out (gif file): > > > /* data_out.php3 */ > > $db = m

Re: [PHP] Nothing Showling up in Netscape

2001-02-12 Thread Steve Werby
"Peter Houchin" <[EMAIL PROTECTED]> wrote: > I've created a page (see attached file) Oops! I believe attachments are blocked from this list. Send inline or post a URL where we can look. > everything works fine in IE but once > i check it in NN i get nothing showing up, when i view the source c

Re: [PHP] Using php as a shell scripting language

2001-02-12 Thread Jason Brooke
Hi Tony Did you happen to check the manual? :) This will get you started: ./configure --with-your-required-options --enable-discard-path - Original Message - From: "Tony Bibbs" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 1:18 PM Subject: [PHP] Using php

Re: [PHP] Using php as a shell scripting language

2001-02-12 Thread David Robley
On Tue, 13 Feb 2001 13:48, Tony Bibbs wrote: > I have a need to use php similar to how I would bash when creating > shell scripts. I have two RH6.2 machines that have the same version of > php (slightly different compile-options). One machine in particular > lacks the php binary in /usr/local/bi

Re: [PHP] Reg. Exp. Help

2001-02-12 Thread Scott Mebberson
I really need help with this. I have written a regular expression that searches for any occurance of src="*" in a html page and rewrites it so that it is equal to src="http://www.whereever.com/images/filename.jpg" - If there are five occurances of this match then it replaces them all. Is th

[PHP] help with classes

2001-02-12 Thread Joseph H Blythe
hey all, Was just wondering how to do the following: So how does one correctly assign a variable to a variable inside a class withot doing something like: var $bar = ''; $this->bar = $foo; Any insight would be much appreciated. Regards Joseph -- PHP General Mailing List (http://www.php.

Re: [PHP] Newbie: Images refs not loading (Broken Icons) How to?

2001-02-12 Thread Malouin Design Graphique
Yes SIR! Steve! THIS IS WORKING NOW! MANY... MANY... MANY... THANKS FOR YOUR CODE! As a newbie... I have been working so hard on this one... You noticed that I have a lot of reading to do... Best regards, Merci encore, (Thanks again,) Yves At 22:41 -0500 12/02/2001, Steve Werby wrote: >"Ma

[PHP] mysql_fetch_array and row referencing under 4.0.4pl1

2001-02-12 Thread Scott Brown
Have I lost something somewhere? I have code which runs under PHP3.0.15, and PHP4.0.2 which references the result of a $row = mysql_fetch_array($result_of_query); by doing things like: $row["this_is_a_field_name"] Seems simple, right? Well - I compiled a new copy of Apache 1.

Re: [PHP] Newbie: Images refs not loading (Broken Icons) How to?

2001-02-12 Thread Steve Werby
"Malouin Design Graphique" <[EMAIL PROTECTED]> wrote: > THIS IS WORKING NOW! > MANY... MANY... MANY... THANKS FOR YOUR CODE! Glad to help! > As a newbie... I have been working so hard on this one... > You noticed that I have a lot of reading to do... Everyone has to start somewhere. printf() i

Re: [PHP] help with classes

2001-02-12 Thread Joe Conway
> Was just wondering how to do the following: > > class Foo { > > var $bar = $foo; // causes parse error > var $bar = "$foo"; // causes parse error > var $bar = '$foo'; // works but $foo is not evaluated > > } > ?> > > So how does one correctly assign a variable to a variable inside a class witho

Re: [PHP] mysql_fetch_array and row referencing under 4.0.4pl1

2001-02-12 Thread Thomas Deliduka
I'd be curious to see others' answers on this because I upgraded everything the other day (been at php4 for a while though) and I don't have a problem with the quotes. On 2/12/01 11:11 PM this was written: > Have I lost something somewhere? > > I have code which runs under PHP3.0.15, and PHP4.0

Re: [PHP] mysql_fetch_array and row referencing under 4.0.4pl1

2001-02-12 Thread Steve Werby
"Scott Brown" <[EMAIL PROTECTED]> wrote: > I have code which runs under PHP3.0.15, and PHP4.0.2 which references the > result of a > $row["this_is_a_field_name"] > > Well - I compiled a new copy of Apache 1.3.17, pushed PHP up to 4.0.4pl1, > and upgraded mysql to the new stable version at the same

Re: [PHP] mysql_fetch_array and row referencing under 4.0.4pl1

2001-02-12 Thread Steve Werby
"Scott Brown" <[EMAIL PROTECTED]> wrote: > $row["this_is_a_field_name"] > > Seems simple, right? > > Well - I compiled a new copy of Apache 1.3.17, pushed PHP up to 4.0.4pl1, > and upgraded mysql to the new stable version at the same time... > > Now the above code doesnt work. But if I do a: For

Re: [PHP] help with classes

2001-02-12 Thread Joseph H Blythe
On Mon, 12 Feb 2001 20:11:14 -0800 Joe wrote: JC> JC> I was curious too, so I looked it up. Seems you can't. From JC> http://www.php.net/manual/en/language.oop.php JC> JC> "Note: In PHP 4, only constant initializers for var variables are JC> allowed. Use constructors for non-constant initia

[PHP] Re: new release : phpdoc v2.0

2001-02-12 Thread Christian Calloway
Great program man! Carlos "Christian Calloway" <[EMAIL PROTECTED]> wrote in message news:... > Hey everyone, > > I just released phpdoc v2.0, which is a program used to document PHP class > definitions. > This version is a complete rewrite of v1.0, and takes a different approach > to creating

Re: [PHP] help with classes

2001-02-12 Thread Sean Cazzell
> So how does one correctly assign a variable to a variable inside a class withot >doing something like: > > var $bar = ''; > $this->bar = $foo; > That's how you have to do it. class MyClass { var $bar; // This is the class's constructor sub MyClass () {

[PHP] Build HREF list from database???

2001-02-12 Thread andrew
Hi - I want to print a list of numbers linked to URLs I create on the fly - something like this: table: --- pathpid -|- foo.jpg 1 bar.jpg 1 $count; $currrent_row = mysql_fetch_row($result); ++$i;) { $path=$current_row[2]"; //database fiel

Re: [PHP] Re: new release : phpdoc v2.0

2001-02-12 Thread Christian Calloway
Sorry, I got this from a user. Didnt mean to send to newsgroup > Great program man! > > Carlos > > > "Christian Calloway" <[EMAIL PROTECTED]> wrote in message news:... > > Hey everyone, > > > > I just released phpdoc v2.0, which is a program used to document PHP > class > > definitions. > > This

[PHP] Mail classes

2001-02-12 Thread Josh G
Hi, I'm wondering what're the best classes available for reading/ sending emails? I want to do a webmail solution (for myself at first), and don't want to use IMP. I'd need to be able to handle attachments as well. Any pointers? Cheers, Gfunk - http://www.gfunk007.com/ I

RE: [PHP] mysql_fetch_array and row referencing under 4.0.4pl1

2001-02-12 Thread Scott Brown
> Forgot to ask - does referencing an array with double quotes > around the key work for arrays not associated with a MySQL > result? I doubt it's specific to MySQL result arrays, but > it doesn't hurt to check. Make a small array and test. I grabbed an example of of php.net dealing with just

Re: [PHP] help with classes

2001-02-12 Thread Joseph H Blythe
On Mon, 12 Feb 2001 23:44:08 -0500 (EST) Sean wrote: SC> SC> That's how you have to do it. SC> SC> SC> class MyClass { SC> var $bar; SC> SC> // This is the class's constructor SC> sub MyClass () { SC> $this->bar = $foo; SC> } SC> } I didn't think php had sub routi

RE: [PHP] mysql_fetch_array and row referencing under 4.0.4pl1

2001-02-12 Thread Scott Brown
> > I'd be curious to see others' answers on this because I > upgraded everything > the other day (been at php4 for a while though) and I don't > have a problem > with the quotes. > I've probably just putzed something somewhere during the build it's been one of those days. But the thing i

[PHP] mktime + 4 days

2001-02-12 Thread Christopher Allen
Hi! How to get this to work for every month: $tomorrow = date ("d", mktime(0,0,0,0,date("d") +4 ) ); echo "Today + 4 days is $tomorrow "; screws up Feb et al Thanks, Christopher C. M. Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMA

Re: [PHP] help with classes

2001-02-12 Thread Joe Conway
> SC> > SC> That's how you have to do it. > SC> > SC> > SC> class MyClass { > SC> var $bar; > SC> > SC> // This is the class's constructor > SC> sub MyClass () { > SC> $this->bar = $foo; > SC> } > SC> } > > I didn't think php had sub routines like perl? shouldn't that be: > > function MyClass(){ >

Re: [PHP] Build HREF list from database???

2001-02-12 Thread David Robley
On Tue, 13 Feb 2001 15:24, andrew wrote: > Hi - I want to print a list of numbers linked to URLs I create on the > fly - something like this: > > table: > --- > pathpid > -|- > > foo.jpg 1 > bar.jpg 1 > > > include("db_connection_params.inc"); //al

[PHP] Netscape6 with HTML Form using POST method

2001-02-12 Thread Yasuo Ohgaki
I'm having problem with Netscape6 does not resend valid POST data to PHP. Netscape is waiting until connection timeout. If I hit stop button, it logs warning message attached to this mail. (These forms work fine with IE5.x, NN4.5) To find out what's wrong, I made a very simple form. With this simp

Re: [PHP] Build HREF list from database???

2001-02-12 Thread andrew
David, Theo, Got it working - much thanks for your help!! regards, andrew On 2/13/01 12:05 AM, "David Robley" <[EMAIL PROTECTED]> wrote: > On Tue, 13 Feb 2001 15:24, andrew wrote: >> Hi - I want to print a list of numbers linked to URLs I create on the >> fly - something like this: >> >> tab

Re: [PHP] help with classes

2001-02-12 Thread Joseph H Blythe
On Mon, 12 Feb 2001 21:04:30 -0800 Joe wrote: JC> Is this closer to what you were looking for? JC> - Joe JC> JC> JC> class Foo { JC> JC> var $bar; JC> JC> function mymethod(){ JC> JC> global $foo; JC> $this->bar = $foo; JC> JC> } JC> JC> } JC> JC> $foo = "hello world"; JC> JC> e

Re: [PHP] mysql_fetch_array and row referencing under 4.0.4pl1

2001-02-12 Thread Steve Werby
"Scott Brown" <[EMAIL PROTECTED]> wrote: > I grabbed an example of of php.net dealing with just arrays and it works ... > > Here's what I'm seeing - THIS WORKS: > while ( $row = mysql_fetch_array($rslt) ) > { > echo "\n"; > echo "$row[ID]"; > But

[PHP] SELECT statement

2001-02-12 Thread Peter Houchin
Hi, Can you have a SELECT statement (using mysql) that goes something like $sql="SELECT id && email FROM table WHERE user='$user' and pass='$pass'"; and if you can't is there a away around this? Thanks Peter

Re: [PHP] SELECT statement

2001-02-12 Thread Philip Olson
Assuming you want to select both id and email from table, use commas : SELECT id,email FROM ... Also, check out this basic SQL tutorial : http://www.sqlcourse.com/ It's fairly useful. regards, Philip On Tue, 13 Feb 2001, Peter Houchin wrote: > Hi, > > Can you have a SELECT stateme

[PHP] Mathematical prob

2001-02-12 Thread Chris Aitken
Okay, im a little stumped. I have been asked to use a formula which calculates Monthly Repayments on a mortgage loan. The formula I have been given is M = P * ( J / (1 - (1 + J) ** -N)) My problem is, the last part. It explains it in english as "then take that to the -N (minus N) power" My p

Re: [PHP] SELECT statement

2001-02-12 Thread David Robley
On Tue, 13 Feb 2001 16:00, Peter Houchin wrote: > > Hi, > > Can you have a SELECT statement (using mysql) that goes something like > > $sql="SELECT id && email FROM table WHERE user='$user' and > pass='$pass'"; > > and if you can't is there a away around this? > > Thanks > > Peter In SQL queries

Re: [PHP] Run a script for 20minutes

2001-02-12 Thread Ankur Verma
you can set the maximum execution timeu using either the max_execution_time = 30 ; Maximum execution time of each script, in seconds setting in php.ini or can set it at runtime for a script using the set_time_limit() function check the php manual for more details. hope that helps Ankur

Re: [PHP] character problem

2001-02-12 Thread Ankur Verma
use stripslashes on the data being posted. for ex if the text field name is varText use $varText=stripslashes($varText) That should take care of it regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "John P. Donaldson" <[EMAIL PROTECTED]> T

RE: [PHP] SELECT statement

2001-02-12 Thread Peter Houchin
ok I've changed my code to $sql = "SELECT id, email FROM users WHERE user='$user' and pass='$pass'"; but still no joy can any one suggest why? (& Yes email is a field in the table) Peter > Hi, > > Can you have a SELECT statement (using mysql) that goes something like > > $sql="SELECT

Re: [PHP] Mathematical prob

2001-02-12 Thread Joe Conway
> Okay, im a little stumped. I have been asked to use a formula which > calculates Monthly Repayments on a mortgage loan. The formula I have been > given is > > M = P * ( J / (1 - (1 + J) ** -N)) > > My problem is, the last part. It explains it in english as "then take that > to the -N (minus N) p

RE: [PHP] SELECT statement

2001-02-12 Thread Philip Olson
A possible way to find out : $result = mysql_query($sql) or die(mysql_error()); Does it say anything? mysql_error() is your friend, it can be printed anywhere within the script and will print the last mysql error. So perhaps : print mysql_error(); Right before the query or ... Regar

Re: [PHP] How to send email

2001-02-12 Thread Ankur Verma
try using the SMTP class from the Kazzam Intranet Email system which I have attached with the email. Also, you can download the complete intranet web email application from http://myprojects.cjb.net/ and take a look at the code for sending mail that uses this class instead of sending the email h

Re: [PHP] Mathematical prob

2001-02-12 Thread David Robley
On Tue, 13 Feb 2001 16:09, Chris Aitken wrote: > Okay, im a little stumped. I have been asked to use a formula which > calculates Monthly Repayments on a mortgage loan. The formula I have > been given is > > M = P * ( J / (1 - (1 + J) ** -N)) > > My problem is, the last part. It explains it in eng

Re: [PHP] SELECT statement

2001-02-12 Thread David Robley
On Tue, 13 Feb 2001 16:20, Peter Houchin wrote: > ok I've changed my code to > > $sql = "SELECT id, email FROM users WHERE user='$user' and > pass='$pass'"; but still no joy can any one suggest why? > > (& Yes email is a field in the table) > > Peter > > > Hi, > > > > Can you have a SELECT stateme

<    1   2   3   >