[PHP] Re: Evaluation. Easy Question but I need some help

2002-06-14 Thread Jason Morehouse
> -J On Sat, 15 Jun 2002 04:53:11 +1200, Dan McCullough wrote: > I'm trying to evaluate form submissions. When I return a form > submission cause of a missing field I want the radio and checkboxes to > reflect what the client submitted. So if somone forgets to fill in > their address, but has

[PHP] Re: search parse?

2002-06-14 Thread Jason Morehouse
If you use fulltext search (assuming you are using MySQL), it deals with stop words on its own as well as some additional search logic. http://www.mysql.com/doc/F/u/Fulltext_Search.html -J On Sat, 15 Jun 2002 10:19:04 +1200, Ed Lazor wrote: > Does anyone have a good function for parsing a sear

Re: [PHP] Best way to store login data?

2002-06-14 Thread Pradeep Dsouza
Hi I would suggest you use a DB for the logins and use the id Avoid using cookies use sessions that way u have nothing on the client end Pradeep - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, June 15, 2002 10:39 AM Subjec

Re: [PHP] Best way to store login data?

2002-06-14 Thread SenthilVelavan
Hello Leif, My opinion is 1.First do md5 encoding for passwords. 2.Store the username and encoded passwords in database as well as in two cookies. Note:But storing the passwords in a cookie is a security issue. regards, SenthilVelavan.P, KovaiTeam Softwares. - Origin

[PHP] Best way to store login data?

2002-06-14 Thread Leif K-Brooks
I have a site with logins. I am planning to recode logins soon (right now the username and password are stored in cookies with no encoding). In your opinion, which of these is a better idea: 1. Storing in two cookies with md5 encoding for the password 2. Use sessions 3. Store logins in a datab

Re: [PHP] Checking referrer?

2002-06-14 Thread Chris Shiflett
This depends on what you mean by "right," of course, but remember that the referer (sic) is just a string. You can use any string manupulation functions to help you test your string, such as searching for substrings, matching patterns with regular expressions, etc. If you need more specific ad

Re: [PHP] session problems....

2002-06-14 Thread Chris Shiflett
I'm not sure what sysadmins you are talking about, but /tmp is typically a world-writable directory. Also, there is no such "strict" Unix naming convention. The directory /tmp is always /tmp, so matter how "lenient" you want to be. There is simply a difference between relative paths and absolu

Re: [PHP] PHP Chat Program?

2002-06-14 Thread SenthilVelavan
Hello Devin, Please download chat application from http://sourceforge.net/projects/phpmychat I have tried this it's so simple and easy.Let me know if you have any problem. regards, SenthilVellan.P, KovaiTeam Softwares. - Original Message - From: "Devin Atencio" <[EMAIL PR

RE: Re[2]: [PHP] session problems....

2002-06-14 Thread Bruce Karstedt
I was referring to strict Unix directory naming conventions. /tmp is the equivalent of root/tmp and no sysadmin wants you writing to his /tmp directory. In fact you should not be allowed to write to /tmp. While I have not checked this, I have the feeling that PHP takes care of this for you. If you

Re: [PHP] Shut down server

2002-06-14 Thread SenthilVelavan
Hello Rosen, You can try with visudo command in linux. For example if you want to give permission to user1 then give shutdown permission to that user using visudo command. you have to edit something like username ALL=(ALL) ALL Here the above user is assigned with all righ

Re: [PHP] Quick question

2002-06-14 Thread SenthilVelavan
Hello Dan, Please try this.Let me know if you have any problem. function setChecked() { document.forms[0].r1value.value='on'; } function checkr1() { if(document.forms[0].r1value.value=='on') { alert("One of your radio button is selected"); return false; } else {

Re: [PHP] Problem with MySQL

2002-06-14 Thread Chuck \"PUP\" Payne
Ok. Go to this link... http://www.magidesign.com/movielist.php and select "12 Monkeys" You will see that only picked one actor... It should have pick four mysql> SELECT concat_ws(" ", fname, lname) as actor FROM actormovie WHERE title = "12 Monkeys" ORDER BY lname; +-+ | act

Re: [PHP] Problem with MySQL

2002-06-14 Thread Tyler Longren
you need to put your $myrow in a while loop: while ($myrow = mysql_fetch_array($result)) { $title = $myrow[title]; $videoid = $myrow[videoid]; $catergory = $myrow[catergory]; $appraisal = $myrow[appraisal]; // blah blah blah everything else } Tyler Longren Captain Jack Communications www.capta

[PHP] Checking referrer?

2002-06-14 Thread Leif K-Brooks
I'm trying to make sure the referer is right on certain pages. I know the variable and everything, but it gets annoying to have to check wth www., without www., with urlencode(), and with rawurlencode(). If there an easier way? -- PHP General Mailing List (http://www.php.net/) To unsubscri

[PHP] Problem with MySQL

2002-06-14 Thread Chuck Payne
Hi, I am working on a movie database I have two database that I am calling from but the problem I am having when I ask it to go and fetch all the movies with the same title, it stops and only shows one. Here is a basic layout... if($videoid) { $result = mysql_query("SELECT * FROM library WHER

[PHP] unset key/element in array

2002-06-14 Thread Aljosa Mohorovic
i need to remove elements in array which are empty. this code works but is it ok to do it like this? code: if(in_array("", $people)) unset($people[array_search("", $people)]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] bulk mail()

2002-06-14 Thread Justin French
on 15/06/02 5:32 AM, Pawel ([EMAIL PROTECTED]) wrote: > You're using something like mysql_fetch_array and not querying the db 120 > times I hope. of course! :) > The time your MTA takes to process the emails has nothing to do with this. > 120 calls to mail() should not time out, maybe you have

Re[2]: [PHP] session problems....

2002-06-14 Thread Julie Meloni
BK> You should not be writing to /tmp that is a system directory. php.ini is a BK> file. If you need a "temporary" directory, use ./tmp that will be directory BK> in your web root directory. With all due respect, I think there's a reason that /tmp is the default session.save_path value in php.in

Re: [PHP] getting help on php

2002-06-14 Thread Justin French
No, everything in PHP happen on the server, BEFORE it gets to the browser. The browser only sees plain HTML code. So, page refreshing can be done client-side with JavaScript or META refresh. Opening a new window can be done in HTML with click, or with a javascript pop-up. You can redirect the b

RE: [PHP] session problems....

2002-06-14 Thread Bruce Karstedt
You should not be writing to /tmp that is a system directory. php.ini is a file. If you need a "temporary" directory, use ./tmp that will be directory in your web root directory. Bruce Karstedt President Technology Consulting Associates, Ltd. Tel: 847-735-9488 Fax: 847-735-9474 -Original Me

RE: Re[2]: [PHP] Re: php server on Windows

2002-06-14 Thread Bruce Karstedt
An opinion was requested, and I gave it. I will make a few pointed comments and then I will stop wasting my time and the time of the others on this list. 1) If you do not know why Unix and its various derivatives are a better, meaning more flexible, more secure, faster, and more stable, then y

Re: [PHP] Confusion with the $_name $_type $_size Variable Extensions

2002-06-14 Thread SenthilVelavan
-Lakario, Please have a look on http://www.php.net/manual/en/features.file-upload.php for more information on fileuploads in php.Also check with the size of the files you have transferred.When file size is large, then your files won't get uploaded.This is due to the low execution

Re: [PHP] session problems....

2002-06-14 Thread SenthilVelavan
-Rick Change the owner and group of the directory to nobody.nobody to your /tmp directory.Iam not sure here. regards, SenthilVelavan.P - Original Message - From: "php" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, June 15, 2002 7:42 AM Subject: [PHP] session problems >

[PHP] session problems....

2002-06-14 Thread php
Anyone know why php would complain about not having permission to write the session file in /tmp (and to check the session.save_path var in my php.ini file. when it does specify /tmp in the php.ini and /tmp has drwxrwxrwt for permissions? I need a resolution... even if we have to pay for it...

Re[6]: [PHP] PLEASE HELP! session variable fails to persist!!

2002-06-14 Thread Stuart Dallas
On Saturday, June 15, 2002 at 2:05:50 AM, Zlutarch G. wrote: > Thanks. I added error_reporting (E_ALL); and it gave me the following error > msg: "Warning: Undefined index: var in c:\program files\apache > group\apache\htdocs\php\superstock\ssi\valuecalc\valuescreen\testsess.php on > line 6" >

[PHP] Confusion with the $_name $_type $_size Variable Extensions

2002-06-14 Thread Nathan Taylor
I am having a lot of trouble with the $_name, $_size, and $_type variable extensions. I have a basic file upload system however it is within a function. Sometimes when I declare the aforementioned variables in a global statement such as global $file_name I can get a value for _name, other times,

Re: Re[4]: [PHP] PLEASE HELP! session variable fails to persist!!

2002-06-14 Thread Zlutarch G.
Hi Stuart, Thanks. I added error_reporting (E_ALL); and it gave me the following error msg: "Warning: Undefined index: var in c:\program files\apache group\apache\htdocs\php\superstock\ssi\valuecalc\valuescreen\testsess.php on line 6" Here is line 6: echo "session var: ".$_SESSION["var"]."";

Re[4]: [PHP] PLEASE HELP! session variable fails to persist!!

2002-06-14 Thread Stuart Dallas
On Saturday, June 15, 2002 at 1:42:45 AM, Zlutarch G. wrote: > I tried your script, but I couldn't get it to work. I guess it has to be > something wrong with my server configuration? I am using Apache 1.3.14. I am > new to Apache, so I don't know what could possibly be the configuration > probl

Re: Re[2]: [PHP] PLEASE HELP! session variable fails to persist!!

2002-06-14 Thread Zlutarch G.
Hi Stuart, I tried your script, but I couldn't get it to work. I guess it has to be something wrong with my server configuration? I am using Apache 1.3.14. I am new to Apache, so I don't know what could possibly be the configuration problem. Do you have any ideas? Thanks a lot. Zlutarch >Fro

Re[2]: [PHP] PLEASE HELP! session variable fails to persist!!

2002-06-14 Thread Stuart Dallas
On Saturday, June 15, 2002 at 1:27:58 AM, Zlutarch G. wrote: > I tried your idea but it didn't work. When I used session_encode(), I got > nothing! It seems that it's not being registered as a session variable. Any > idea why that is the case? I hope this will help clear up any confusion. Go he

Re: [PHP] PLEASE HELP! session variable fails to persist!!

2002-06-14 Thread Zlutarch G.
Hi Stuart, I tried your idea but it didn't work. When I used session_encode(), I got nothing! It seems that it's not being registered as a session variable. Any idea why that is the case? Thanks, Zlutarch >From: Stuart Dallas <[EMAIL PROTECTED]> >Reply-To: Stuart Dallas <[EMAIL PROTECTED]> >

Re: [PHP] PLEASE HELP! session variable fails to persist!!

2002-06-14 Thread Stuart Dallas
On Saturday, June 15, 2002 at 12:53:47 AM, Zlutarch G. wrote: > The session ID is the same for a given session, that means the server knows > its the same session. And since I get the value "1" each time, I can see > that the $_SESSION["var"] is a global variable with a value of "1". But it > se

[PHP] PLEASE HELP! session variable fails to persist!!

2002-06-14 Thread Zlutarch G.
Hi, My session variables won't persist, could someone help me with this problem? I spent all day trying to figure out what is wrong, and I still don't know why I couldn't get it to work. Here is an example script: "; echo "session var: ".$_SESSION["var"].""; fnB(); function fnA(){ $_SE

Re[2]: [PHP] Re: php server on Windows

2002-06-14 Thread Stuart Dallas
On Friday, June 14, 2002 at 11:30:07 PM, Bruce Karstedt wrote: > Put your site on a *nix box with apache its a heck of a lot faster > and a heck of a lot more stable and a heck of a lot easier to configure and > upgrade. It's all very well saying that, but have you got any evidence to back those

RE: [PHP] Re: php server on Windows

2002-06-14 Thread Bruce Karstedt
The last test I did was to put a custom built (by me) box dual 1.2G P4's 36G Raid 5 all on 7200RPM spindles and 2GB ram running WIN 2000 Server with all the back office toys vs. an old 133M Pentium, 1.2G 256Meg garbage box I had in the basement running BSDi Unix with squid caching. The garbage bo

[PHP] pfsockopen

2002-06-14 Thread Dan Goodliffe
Anywone, I've been working on an interface to IRC services for a webpage. Ideally I'd like the webpage to stay connected to the network when it's in use. pfsockopen(...) seemed to do just the thing I needed. Open a connection, and don't close it when finished great... but it seems you can't

RE: [PHP] Re: php server on Windows

2002-06-14 Thread Lazor, Ed
Do you have any benchmarks? > -Original Message- > fans). Put your site on a *nix box with apache its a heck of > a lot faster This message is intended for the sole use of the individual and entity to whom i

RE: [PHP] integer to string

2002-06-14 Thread Lazor, Ed
Try: $n = $soils[$i]; $soils[$i] = sprintf("%d", $n); and if that doesn't work, print out $soils[$i] to see what it is. > -Original Message- > $soils[$i] = sprintf("%d", $soils[$i]); > > But doesn't seem to work, my program returned an error. > P.S. : I'm using 4.0.6 otherwise wouldn't

RE: [PHP] Re: php server on Windows

2002-06-14 Thread Bruce Karstedt
Windows / PHP is fine for development work but I would never put a production site on a Windows box (With all due apologies to you Windows fans). Put your site on a *nix box with apache its a heck of a lot faster and a heck of a lot more stable and a heck of a lot easier to configure and upgrade.

[PHP] integer to string

2002-06-14 Thread Pushkar Pradhan
I generate nos. using range function, e.g. I get 0 to 40. I want to convert these nos. to string, I tried sprintf() syntax: $soils[$i] = sprintf("%d", $soils[$i]); But doesn't seem to work, my program returned an error. P.S. : I'm using 4.0.6 otherwise wouldn't have this problem. -Pushkar S. Pra

[PHP] search parse?

2002-06-14 Thread Lazor, Ed
Does anyone have a good function for parsing a search string into SQL? I know it will depend on the name of the field and table I'm searching through. Anything close will be helpful. An example search string would be: beer AND pizza NOT anchovies and the resulting search string would be sele

Re: [PHP] row pointer

2002-06-14 Thread 1LT John W. Holmes
So you just want to insert a bunch of words into the table if they aren't there already? Why not make the column unique and just insert them. Ignore the warnings about duplicates... ---John Holmes... - Original Message - From: "Zac Hillier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "A

Re: [PHP] row pointer

2002-06-14 Thread Zac Hillier
John, Dan & All, Thanks for your response, perhaps if I tell you more of the story then it'll make more sense. I'm afraid I seem to have an ability for asking cryptic questions. Below is the code I'm using, it is meant to check for a list of between 10 and 50 words in a table then return the key

Re: [PHP] Editor

2002-06-14 Thread Chris Bunting
PHP Editors List... http://www.itworks.demon.co.uk/phpeditors.htm Check out http://www.php.net The links section is handy at times... Chris _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- PHP Genera

Re: [PHP] Sessions... wtf is wrong?!

2002-06-14 Thread Rick Kukiela
This is an ls -la from /tmp [rick@wacky /tmp]$ ls -la total 58 drwxrwxrwt3 root wheel 512 Jun 14 14:20 . drwxr-xr-x 22 root wheel1024 Jun 13 16:39 .. drwxr-xr-x2 root wheel 512 Apr 29 14:43 .webmin -rw-rw-rw-1 root wheel 46193 Jun 11 14:

[PHP] Sessions... wtf is wrong?!

2002-06-14 Thread Rick Kukiela
Okay, I was running php 4.1.2 on freebsd 4.5 with the build args --with-mysql --enable-track-vars and --with-apxs... I started implimenting session code. When my code wouldnt work I looked on the boards and found that there was a bug with that version, so i wiped out php and upgraded to php 4.2.1.

Re: [PHP] 'CC' and 'BCC' in mail function

2002-06-14 Thread Richard Baskett
Take a look at http://www.php.net/manual/en/function.mail.php#AEN39855 for ways of doing complex mails.. You can indeed do CC's and BCC's you just add them in the header area. Study the example, it works beautifully and will do everything you stated. Plus there are classes out there that will al

Re: [PHP] ucwords() usage QUICKIE

2002-06-14 Thread 1LT John W. Holmes
You pass a string to the function and it returns a string with each word starting with an uppercase. $string = "hello world"; $new_string = ucwords($string); echo $new_string; // Displays 'Hello World' ---John Holmes... - Original Message - From: "Daniel Negron/KBE" <[EMAIL PROTECTED]

Re: [PHP] ucwords() usage QUICKIE

2002-06-14 Thread Julie Meloni
DNK> I am trying to figure out how to use ucwords here : DNK> if (submit) DNK> $db = mysql_connect($dbhost,$dbuname,$dbpass); DNK> mysql_select_db($dbname,$db); DNK> ucwords($sql) < Is this correct ? DNK> $sql = "INSERT INTO $prefix"; DNK> $sql .=

RE: [PHP] ucwords() usage QUICKIE

2002-06-14 Thread Lazor, Ed
Looks like it, but you're missing the semi-colon at the end of the line. > -Original Message- > From: Daniel Negron/KBE [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 14, 2002 2:06 PM > To: [EMAIL PROTECTED] > Subject: [PHP] ucwords() usage QUICKIE > > > Hi All, > > I am trying t

Re: [PHP] 'CC' and 'BCC' in mail function

2002-06-14 Thread Stuart Dallas
On Friday, June 14, 2002 at 10:01:24 PM, Sridhar Moparthy wrote: > Does any one know how to make mail() function to send mail to 'CC' and 'BCC' > address. I have tried to keep 'CC' and BCC' in header, but it is not > working. Mail function is sending the message to 'To' address but not to > 'CC' a

[PHP] ucwords() usage QUICKIE

2002-06-14 Thread Daniel Negron/KBE
Hi All, I am trying to figure out how to use ucwords here : if (submit) $db = mysql_connect($dbhost,$dbuname,$dbpass); mysql_select_db($dbname,$db); ucwords($sql) < Is this correct ? $sql = "INSERT INTO $prefix"; $sql .= "(first, last, email, com

RE: [PHP] PHP Installation Win98/Apache error....

2002-06-14 Thread Lazor, Ed
You missed a step in copying DLLs. I don't remember which one, but it's the dll files found in c:\php > -Original Message- > From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 14, 2002 2:01 PM > To: [EMAIL PROTECTED] > Subject: [PHP] PHP Installation Win98/Apache e

[PHP] PHP Installation Win98/Apache error....

2002-06-14 Thread Phil Schwarzmann
So I'm trying to install PHP on win98 with Apache2. I got these nice instructions from... http://www.webmasterbase.com/article.php?pid=30&aid=525 After I make the following addition to my httpd.conf file, I get an error when I try to start Apache again... ADDITION TO HTTPD.CONF: LoadModule

[PHP] 'CC' and 'BCC' in mail function

2002-06-14 Thread Sridhar Moparthy
Hi All, Does any one know how to make mail() function to send mail to 'CC' and 'BCC' address. I have tried to keep 'CC' and BCC' in header, but it is not working. Mail function is sending the message to 'To' address but not to 'CC' and 'BCC'. I am using WinNT, IIS and PHP 4.0.6. Here is the par

[PHP] PHP Chat Program?

2002-06-14 Thread Devin Atencio
Dear PHP Users, I have a client who currently has a website setup with iChat which is several years old and we are currently having problems with it. I need to find a PHP Chat program that will be very easy and simple. I just wanted to see if anyone here has used a program and really likes it an

[PHP] Re: php server on Windows

2002-06-14 Thread Peter
You can run PHP as a module / extension for apache or let Apache load and run the php.exe program for each php file. Loading and running the program in quick succession strains the system somewht but the extension is always loaded and is just used when needed - much faster and efficient. "Phil S

Re: [PHP] Question about global variables

2002-06-14 Thread remery
Cookies Session variables - Original Message - From: "Don" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Friday, June 14, 2002 2:08 PM Subject: [PHP] Question about global variables Hi, Don't know if this is possible but is there a way to create a single varia

RE: [PHP] bulk mail()

2002-06-14 Thread Pawel
> > -Original Message- > > From: Justin French [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, June 12, 2002 6:45 AM > > To: php > > Subject: [PHP] bulk mail() > > > > > > Hi all, > > > > I've got a mailing on a website, with email address' / names / etc in a > > MySQL table. > > > > I th

Re: [PHP] Question about global variables

2002-06-14 Thread Kevin Stone
I don't think this is possible to setup a global way you're thinking, but I do believe that you can still accomplish the effect you're looking for. First of all, exactly what kind of information will you be storing in the array? You say it needs to be empty the 'first time in'. Does that mean pe

RE: [PHP] bulk mail()

2002-06-14 Thread Jeff Field
I've been doing the following sending personalized mail to 600+ recipients, so far without any signs of discomfort anywhere: set_time_limit($total_rows * 1); // up the script timeout 1 second per email BTW, I use qmail; not sendmail. As I've never used sendmail, I don't know if this is part of

[PHP] Question about global variables

2002-06-14 Thread Don
Hi, Don't know if this is possible but is there a way to create a single variable (in my case, a two dimensional array) that is global to my site? This is regardless of which page is initially loaded BUT I need to have it empty first time in. I am trying to implement a 'stack' feature where I

Re: [PHP] Re: Variable Result is not displayed

2002-06-14 Thread J0s
Thanks a lot! Ok this programm began to be interesting. I will try to stop to be a Newbie. : )) "Ed Lazor" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > make sure global variables are enabled in your php.ini > > > -Original Message- > > From: J0s [ma

[PHP] XML and parameter entities

2002-06-14 Thread Pawel
Hello, I'm having a hard time getting expat to parse parameter entities and I'm wondering if any one tried this before (general entities work fine) sample xml: %common_entities; ]> . - as the name su

RE: [PHP] Re: Variable Result is not displayed

2002-06-14 Thread Lazor, Ed
make sure global variables are enabled in your php.ini > -Original Message- > From: J0s [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 14, 2002 11:52 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: Variable Result is not displayed > > > Here is an example of the test script. > > samp

[PHP] Re: Variable Result is not displayed

2002-06-14 Thread J0s
Here is an example of the test script. sample.php Nota : The variable are passed throught a Flash form. In this case, if the script is uploaded on my web site the result is : Name Test works as a Web developper in Montreal. He/She can be contacted at : My Web Site. But on my own machine the

RE: [PHP] beginner in PHP

2002-06-14 Thread Phillip Perry
So how do I affect the local copies of the variables. The global() doesn't seem to work. Should I take everything out of the function and just use if statements? -Original Message- From: Tim Ward [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 3:46 AM To: [EMAIL PROTECTED]; Tim War

RE: [PHP] Dreamweaver MX?

2002-06-14 Thread Lazor, Ed
Thanks everyone. I'll check it out. > > > much. > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.

RE: [PHP] Variable Result is not displayed

2002-06-14 Thread Lazor, Ed
Could you include some of your code? > -Original Message- > When I try to run my scripts they works fine exept for the > variables results > that are not displayed. This message is intended for the sole use of

Re: [PHP] Dreamweaver MX?

2002-06-14 Thread Jas
It also has support for snippits, or a code library that you can add, edit or delete. Saves alot of time in re-using code. I definately recommend it, not only for that reason for but for the code debugging options available. HTH Jas "John Holmes" <[EMAIL PROTECTED]> wrote in message 002101c213c

[PHP] Variable Result is not displayed

2002-06-14 Thread J0s
Hi there, To work on some scripts, I have install PHP 4.02 on a IIS 5.1 server. (on my own XP machine) I have setuped PHP following install.txt procedure. When I try to run my scripts they works fine exept for the variables results that are not displayed. I have upload this script on my web site

RE: [PHP] Header URL question

2002-06-14 Thread Jay Blanchard
oops, never mind, I think I see the problem...a missing "btn=" -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 12:59 PM To: [EMAIL PROTECTED] Subject: [PHP] Header URL question I wanted to return to a specific page in a small web app I am wr

[PHP] Header URL question

2002-06-14 Thread Jay Blanchard
I wanted to return to a specific page in a small web app I am writing, which is based on a variable for each individual record. I just tried header("Location: customer.php?" . $btn . ""); exit; and although syntactically correct it did not work. I am going to try a couple of other things but I w

RE: [PHP] row pointer

2002-06-14 Thread John Holmes
Keep track of it yourself as you loop through the data. Maybe if you explained what you need "overall" then we could suggest a method... ---John Holmes... > -Original Message- > From: Zac Hillier [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 14, 2002 3:59 AM > To: [EMAIL PROTECTED] > S

[PHP] Re: Dreamweaver MX?

2002-06-14 Thread Alexandru COSTIN
Hello > Does Dreamweaver MX have good PHP support? Their initial support (PHP_MySQL as known as a server model) is quite nice. However, we have released PHAkt 2 MX (still free and GPL and kicking) , with a lot of goodies included: PHAkt 2 beta improvements over the PHP_MySQL Serv

RE: [PHP] closing mysql connections

2002-06-14 Thread John Holmes
Use it in your code; it'd be a good programming habit to get into. --John Holmes... > -Original Message- > From: David McInnis [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 14, 2002 12:57 PM > To: [EMAIL PROTECTED] > Subject: [PHP] closing mysql connections > > How necessary is this?

RE: [PHP] Dreamweaver MX?

2002-06-14 Thread John Holmes
Yes, download it and see. Gives you a GUI to program recordsets from the database, and drag and drop for results. Other PHP stuff along with highlighting built in. If it didn't cost so much, I'd recommend it. ---John Holmes... > -Original Message- > From: Lazor, Ed [mailto:[EMAIL PROTECT

Re: [PHP] Regular expression newbie question, convert this: [::word1 \" word2 \" word3::] to : ".word1 " word2 " word3."

2002-06-14 Thread Analysis & Solutions
Lance: On Fri, Jun 14, 2002 at 11:41:34PM +0800, Lance wrote: > > [::word1 \" word2 \" word3::] > to: > ".word1 " word2 " word3." While I don't know if this is really what you need, it does do exactly what you want to do in your example: $Replace['\\'] = ''; $Replace['::'] = '.';

Re: [PHP] get_object_vars()

2002-06-14 Thread Analysis & Solutions
Hi Nick: On Fri, Jun 14, 2002 at 12:02:45PM +0200, Nick Wilson wrote: > > function destroy_properties($obj) { > if($properties=get_object_vars($obj)) { > foreach($properties as $key => $val) { > unset($key); Try this: unset($obj->$key); > pro

Re: [PHP] row pointer

2002-06-14 Thread Analysis & Solutions
Hey Zac: On Fri, Jun 14, 2002 at 08:59:02AM +0100, Zac Hillier wrote: > > I'm looking for a php function that will return the position of the pointer > in a mysql recordset. I don't think there is one. You could use a counter variable as you're looping through each row to keep track of where

RE: [PHP] closing mysql connections

2002-06-14 Thread Lazor, Ed
> How necessary is this? Very. > Don't connections close automatically after the page finishes executing? Correct. All variables are released and all connections are closed automatically by PHP upon script completion. > What are the general rules for closing connections and freeing query >

Re: [PHP] Anyone have any experience with the EXEC function?

2002-06-14 Thread Jason Wong
On Saturday 15 June 2002 00:57, Batch wrote: > I am trying to exec a perl script from my php code. > > Here is what I have: > > exec("perlpath/perlscript.pl $var", $array) Using exec() like this would put the exit code of your perl script into $array -- which isn't what you want. Use shell_exec(

[PHP] closing mysql connections

2002-06-14 Thread David McInnis
How necessary is this? Don't connections close automatically after the page finishes executing? What are the general rules for closing connections and freeing query results? David McInnis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Beginning /< and end of word /> in eregi_replace

2002-06-14 Thread John S. Huggins
On Fri, 14 Jun 2002, 1LT John W. Holmes wrote: >-You have your answer, just use this: >- >-$outstring = eregi_replace("badword","goodword",$stringtocheck); >- >-It'll replace it whether it's at the beginning or end of a string, embedded >-in a word, or by itself. Isn't that what you want? >- Not

[PHP] Anyone have any experience with the EXEC function?

2002-06-14 Thread Batch
I am trying to exec a perl script from my php code. Here is what I have: exec("perlpath/perlscript.pl $var", $array) The perl script runs fine as I am piping the results to a txt file also...so I know that the script is running fine. I am printing the result of the perl script to STDOUT which

RE: [PHP] Evaluation. Easy Question but I need some help

2002-06-14 Thread Lazor, Ed
> So how would I in PHP say if $var == "value1" then this radio > button is checked? And how do I do > it and keeping the code compact? > This message is intended for the sole use of the individual and entity to w

Re: [PHP] Shut down server

2002-06-14 Thread Rosen
Hi, I want to make server on Linux Red Hat 7.2 to shutdown from WEB interface. A'll not have any access to this server. Server will not be connected to Internet - it's local for organization. I want one men from them only to turn on computer and to shutdown server via WEB interface without any adm

[PHP] Evaluation. Easy Question but I need some help

2002-06-14 Thread Dan McCullough
I'm trying to evaluate form submissions. When I return a form submission cause of a missing field I want the radio and checkboxes to reflect what the client submitted. So if somone forgets to fill in their address, but has done everything else fine, I dont want them to have to refill out the

RE: [PHP] Shut down server

2002-06-14 Thread Lazor, Ed
Could you restate this question? Sorry, I don't understand what you're asking. > -Original Message- > but the idea is another user only to start and shutdown the server. This message is intended for the sole u

[PHP] Dreamweaver MX?

2002-06-14 Thread Lazor, Ed
Does Dreamweaver MX have good PHP support? Thanks, -Ed This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and e

[PHP] Fast Templates to embed data into Flash files ?

2002-06-14 Thread Girish Nath
Hi I'm about to start a project which involves building a 'website on a CD'. There will be similar areas and layouts, just containing different data, within the site pages. The pages will be a HTML framework containing Flash and QuickTime files etc. I've worked with Fast Templates and liked the

Re: [PHP] XML Feed

2002-06-14 Thread Analysis & Solutions
On Fri, Jun 14, 2002 at 11:35:04PM +1000, Necro wrote: > I am currently trying to implement XML Parsing on a site using the XML News > Feed of another site. The site puts two versions of the news in its file > though: > > - > Tsunami 2265 Date, Demo > http://www.shacknews.com/onearticle.x/20

Re: [PHP] Passing variables from one page to another

2002-06-14 Thread 1LT John W. Holmes
Plain and simple...you have four options: COOKIE, GET, POST, SESSION. So, load all of your data into a cookie or load it into hidden elements in a form and submit it somewhere... Okay? ---John Holmes... - Original Message - From: "Don" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECT

Re: [PHP] protect code or something like..

2002-06-14 Thread 1LT John W. Holmes
Kind of. You can have it include() or fopen() something from another server and do whatever. But you have to realize that the code is still open on their page, so they can bypass or just comment out whatever you are trying to do. Search the archives, too. Wasn't there a huge discussion on this a

Re: [PHP] Beginning /< and end of word /> in eregi_replace

2002-06-14 Thread 1LT John W. Holmes
You have your answer, just use this: $outstring = eregi_replace("badword","goodword",$stringtocheck); It'll replace it whether it's at the beginning or end of a string, embedded in a word, or by itself. Isn't that what you want? Actually, it'd be better and faster to just use str_replace() inst

Re: [PHP] Editor

2002-06-14 Thread 1LT John W. Holmes
Google?? http://www.google.com/search?hl=en&ie=UTF8&oe=UTF8&q=HTML-Kit ---John Holmes... - Original Message - From: <[EMAIL PROTECTED]> To: "Adrian Greeman" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, June 14, 2002 11:38 AM Subject: Re: [PHP] Editor > URL?? > :) > *

Re: [PHP] session variables in OOP....

2002-06-14 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then W. Enserink declared > Nick: thx for the tip, it removed the error, and might further be a good > idea: except: > do you know if I can declare session variables and use them in between the > output buffer statements > like this: (i tri

[PHP] Regular expression newbie question, convert this: [::word1 \" word2\" word3::] to : ".word1 " word2 " word3."

2002-06-14 Thread Lance
hi, i have been banging my head against the wall for hours trying to figure the expression out to perform the following: covert this: [::word1 \" word2 \" word3::] to: ".word1 " word2 " word3." i would definitely appreciate any help given on this. thanks beforehand. lance -- PHP General Ma

Re: [PHP] Editor

2002-06-14 Thread cal
URL?? :) * * Cal Evans * Techno-Mage * http://www.calevans.com * - Original Message - From: "Adrian Greeman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 14, 2002 8:18 AM Subject: [PHP] Editor > I am just surprised that noone mentioned HTML-Kit among all the editor

[PHP] Beginning /< and end of word /> in eregi_replace

2002-06-14 Thread John S. Huggins
Can it be true that PHP does not implement the beginning and end of word syntax of regular expressions? In builing a bad word filter, I find this... $outstring = eregi_replace("badword$","goodword",$stringtocheck); will find an occurance of the 'badword' at the end of the string and replace

  1   2   >