Re: [PHP] Mail classes

2001-02-12 Thread Ankur Verma
try using the class that I adopted for my intranet email solution from the avialable classes on the net aqnd added some functions especially suited for a webmail application. I also developed a webmail solution called Kazam Intranet Email Solution usign this class. you can download the complete p

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

2001-02-12 Thread Ankur Verma
you have an extra semicolon in the for statement it should be for (0 < $i > $count; $currrent_row = mysql_fetch_row($result); ++$i) $path=$current_row[2]"; file://database field position matched index number print "$count"; // } hope that helps Ankur Verma HCL Technologies A1CD, S

Re: [PHP] help with classes

2001-02-12 Thread Ankur Verma
you do this in the class constructor class foo { var $bar; function foo($fooval) { $this->bar=$fooval; } } hope that helps Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Joseph H Blythe" <[EMAIL PROTECTED]> To: "php-general" <[EMAIL

Re: [PHP] serialize/deserialize data

2001-02-12 Thread Ankur Verma
what serialize does is that it allows you to store or pass data types such as arrays, objects etc without losing their structure. for ex, let's say you have an array $foo=array("abc","def") now you need to pass this array to the next page without losing the structure. that is on the next page,

Re: [PHP] create filesystem folder?

2001-02-12 Thread Ankur Verma
check out the file system function at http://www.php.net/manual/en/ref.filesystem.php you might also find some good classes to do the same at phpclasses.upperdesign.com. check it up regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "andrew" <[

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

2001-02-12 Thread Ankur Verma
use phpinfo(); Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Jeff Oien" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 6:00 AM Subject: [PHP] How To Tell Which v. PHP? > Is there a script I can run to tell wh

Re: [PHP] security question

2001-02-12 Thread Ankur Verma
if you are using these values to check for user login across multpile pages on your site (i.e you want the user to login at one place and you are passing the login info to all the other pages on the site using the hidden fields ) you should take a look at the concept of user sessions take a look

Re: [PHP] Nothing Showling up in Netscape

2001-02-12 Thread Ankur Verma
check for your closing table tags Netscape is not at all forgiving for tables which are not closed. hope that helps Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: Peter Houchin To: [EMAIL PROTECTED] Sent: Tuesday, February 13, 2001 4:5

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

2001-02-12 Thread Ankur Verma
try using isset() or empty() see the php manual for more details Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "SED" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 4:51 AM Subject: [PHP] How to check if vaiable is de

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

2001-02-12 Thread Ankur Verma
let's see some code Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Curtis, Lorenzo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "PHP List" <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 3:30 AM Subject: RE: [PHP] Problems with ! in mail();

Re: [PHP] Using PHP to process forms

2001-02-12 Thread Ankur Verma
you can get a very good tutorials to start up with php at www.devshed.com and http://www.webmonkey.com take a look at them to start up with php. you can embed the php code in your HTML file and need not write a cgi script to do so. I am sure these tutorials will get you up and running and clear

Re: [PHP] Broken icon?

2001-02-12 Thread Ankur Verma
try this printf("%s\n",$row["indice_url"],$row["indice_url"]); regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Malouin Design Graphique" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 3:05 AM Subject: [PHP] Br

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

2001-02-12 Thread Ankur Verma
there are two ways of achieving this 1. Pass the arguments by reference and you will have their latest values after the function call. look up the manual http://www.php.net/manual/en/language.references.php 2. Create an array in the function with the various values to be returned stored as its

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

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] 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] 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] 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 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] 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 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

[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] 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] 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] 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] 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

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] 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

[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 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

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(){ >

[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] 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

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
> 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

[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] 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] 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] 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] 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 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

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] 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 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] 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] 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

[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 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] 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] 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

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] 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] 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] 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] 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] 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

[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: -

[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

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] 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] 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:

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

[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] 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

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] (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] 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] 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

[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

[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.

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

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

[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:

[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] 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] 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

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 --

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

[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] 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] 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] 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] 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] 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

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] 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] 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] 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 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 -

[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 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] 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... +-

[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

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

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

[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 ..

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?

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

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] 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

  1   2   3   >