[PHP] Sessions and img src=...

2001-04-04 Thread Lic. Rodolfo Gonzalez Gonzalez
Hi there, I have a problem. I am trying to use a simple php script to display a JPEG from a "protected" catalog (the image files are out of the web tree). It's called from an IMG tag, like this: --- main file --- ?php session_start(); ? html ... ?php session_register("imgname");

[PHP] previous and next actions

2001-04-04 Thread Angie Bauer
I really hope someone can help me. I select mulitiple values from a dropdown list and then display them 3 at a time on a next page. They're displayed as hyperlinks so the on I click on get displayed on the next page with it's details. Then I need to be able to move forward and backward

[PHP] can't connect to mysql

2001-04-04 Thread Paul Juliano
Hello, I have a simple question when connecting through mysql. It seems that php is trying to connect to /tmp/mysql.sock, but it's not in the /tmp directory. It's in /var/lib/mysql/mysql.sock. I can connect throught mysql through the command line just fine, but php functions cannot. It gives

Fw: [PHP] previous and next actions

2001-04-04 Thread Angie Bauer
I really hope someone can help me. I select mulitiple values from a dropdown list and then display them 3 at a time on a next page. They're displayed as hyperlinks so the one I click on gets displayed on the next page with it's details. Then I need to be able to move forward and backward

[PHP] Emails from database...

2001-04-04 Thread Dhaval Desai
Hi! This is my code for sending email to all the emails in my database: $connect = mysql_connecT(); $query = "select email from table"; $execute = mysql_db_query("database", $query); while($r=mysql_fetch_array($execute)) { $email .= $r('email') mail("$email", "My Subject", "Line 1\nLine

Re: Re: [PHP] can't connect to mysql

2001-04-04 Thread Paul Juliano
$link = mysql_connect ("localhost","root","mypassword") or die ("Could not connect"); I'm pretty sure that the username/password is correct. I can connect from the linux shell using mysql -u root -p Dan Cleveland wrote: What does your mysql_connect statement look like? Dan

Re: [PHP] can't connect to mysql

2001-04-04 Thread B. van Ouwerkerk
Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) Did you read the FAQ Did you check the archive?? Edit your php.ini to match the location of the mysql.sock Bye, B. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Validation Email in PHP programs

2001-04-04 Thread Renze Munnik
[EMAIL PROTECTED] wrote: Addressed to: "Steve Werby" [EMAIL PROTECTED] [EMAIL PROTECTED] ** Reply to note from "Steve Werby" [EMAIL PROTECTED] Tue, 3 Apr 2001 15:24:29 -0400 I should have said there's no *reliable* way to check whether an email address on an external

[PHP] read headers.

2001-04-04 Thread Geir Eivind Mork
Is there any 'easy' way I can get the html headers receved when making a http connect? -- php developer / CoreTrek AS| Moody bitch with attitude, seeks nice, Sandnes / Rogaland / Norway| good-looking guy to dump on. web: http://www.moijk.net/ | -- PHP General

Re: [PHP] a PHP fucntion like window.confirm(Click OK to continue. Click Cancel to stop.);

2001-04-04 Thread Renze Munnik
Javier Morquecho Morquecho wrote: Is there an PHP equivalent to the javascript: $x= window.confirm("Click OK to continue. Click Cancel to stop."); if ($x) Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] read headers.

2001-04-04 Thread Plutarck
As in when you pull up a site in your browser, or when you use a script to make an http connection to another site? If you are using your browser on a windows box you can use a program called Proxomitron. Just use it's log window to see all the HTTP connection fun. It's available at:

Re: [PHP] read headers.

2001-04-04 Thread Geir Eivind Mork
On 04 Apr 2001 03:15:25 -0500, Plutarck wrote: As in when you pull up a site in your browser, or when you use a script to make an http connection to another site? I want to make a connection to a foreign webserver and fetch the headers as well as the content. I was wondering of a 'painless'

[PHP] Session variables and register_global

2001-04-04 Thread Niklas Neumann
Hello, is it meant that session_register("test"); $GLOBALS['HTTP_SESSION_VARS']['test'] = 'Hello World!'; does not work properly (session variable test is not initialized with the value 'Hello World!') if register_globals is turned on, but when it is turned off? Best regards Niklas --

[PHP] regexp question - extracting wanted ascii characters only?

2001-04-04 Thread Erick Papadakis
Hi, I need to do a simple thing. I want to read a binary file (e.g., microsoft word, excel etc) and then extract only the text from it. I am using simple fopen() and fread() and when I print out the contents of the file, it returns me the text but apart from the text, there is some junk which is

RE: [PHP] read headers.

2001-04-04 Thread Andrew Braund
wget -s apache.org works on *nix or windows, puts all headers and content to a file eg saves to index.html which contains; ==8 HTTP/1.1 200 OK Date: Wed, 04 Apr 2001 09:13:58 GMT Server: Apache/2.0.16 (Unix) Cache-Control: max-age=0 ===8=== etc then content PS Apache

Re: [PHP] problems with session_register()...

2001-04-04 Thread Yasuo Ohgaki
Try to use $HTTP_SESSION_VARS, it may work for you. There are many number of notes in Annotated PHP Manual. Some of them may help. By the way, you don't need to serialize Array/Object for PHP4 session. Regards, -- Yasuo Ohgaki "Christian Dechery" [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] Monthly Drawing Winner!

2001-04-04 Thread news
Dear PHP Group [EMAIL PROTECTED], Congratulations! You just won US$10.00!! We just gave away US$25,000.00!! And you PHP Group [EMAIL PROTECTED] are among the lucky 2500 people randomly selected to receive a FREE US$10.00 Trial Account at TheCasino.com - the Internet's Premier Online Casino!

Re: [PHP] help with parse

2001-04-04 Thread Harshdeep S Jawanda
Hi, Renze Munnik wrote: Have you ever checked the $HTTP_USER_AGENT value from IE? IE says: "Mozilla/4.0 (compatible; MSIE 5.01; Windows 95)" (for example) So, you shouldn't be checking for Mozilla. IE says that to. You should first check for the existence of "IE" in $HTTP_USER_AGENT.

php-general Digest 4 Apr 2001 10:18:41 -0000 Issue 607

2001-04-04 Thread php-general-digest-help
php-general Digest 4 Apr 2001 10:18:41 - Issue 607 Topics (messages 46901 through 47007): Referencing *only* programmer-created session vars 46901 by: Johnson, Kirk Cookies and flash 46902 by: abraxas.zaratustra.ulatina.ac.cr Re: query 2 databases from one script

[PHP-I18N] FREE LEADS FOR OUR GROUP!!

2001-04-04 Thread wealthclub2738933
ATTENTION: ANY SERIOUS NETWORK MARKETER TAKE A LOOK AT THE FOLLOWING OPPORTUNITY I CAME ACROSS!! IF YOU PLUG INTO THEIR PROVEN SYSTEM, THEY GUARANTEE YOU SUCCESS, AND PROVIDE YOU WITH FREE LEADS TO BUILD YOUR GROUP!! DO NOT LET THIS SLIP AWAY!! CLICK BELOW AND FIND OUT AS I DID, WHY THESE

Re: [PHP] File create permissions

2001-04-04 Thread Christian Reiniger
On Tuesday 03 April 2001 23:06, you wrote: I am trying to create and open a file in php4 using $fp = fopen($filename,r) php4 is compiled as an apache module. I keep gettting errors, and cannot create the file. The directory is chmod 777, apache is running as user apache. Any ideas why I

[PHP] problem with php-ftp ftpbuf?

2001-04-04 Thread Jan Grafström
Hi! I tryed the ftp script found in php manual. I got this errormessage: --- Warning: Unable to find ftpbuf 0 in /home/myName/public_html/sess/ftpfile.php3 on line 6 --- What does ftpbuf mean? Thanks for any help. Regards Jan -- PHP General Mailing List (http://www.php.net/) To

[PHP] unset()

2001-04-04 Thread Patrick Dunford
. -- === Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/ Rejoice in the Lord always. I will say it again: Rejoice! -- Philippians 4:4 http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010404

Re: [PHP] measuring cpu time

2001-04-04 Thread Christian Reiniger
On Wednesday 04 April 2001 04:43, you wrote: Im trying to optimize some php/mysql code. Does anyone know a way to measure the amount cpu time a php script consumes? Use "ab" (ApacheBench - comes with apache) if possible. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) The

[PHP] RE: Seeking PHP case studies

2001-04-04 Thread Nettie Feldman
Hello, Michael. We have many case studies on PHP Please go to http://www.zend.com/zend/cs/ Please let me know if you need any other assistance. Nettie Feldman, marketing product manager, Zend Technologies Ltd. email: [EMAIL PROTECTED] -Original Message- From: Michael Kimsal

Re: [PHP] regexp question - extracting wanted ascii characters only?

2001-04-04 Thread Christian Reiniger
On Wednesday 04 April 2001 11:23, you wrote: Is it possible through the regexp to specify that I only want some of the ASCII characters from the binary stream? Here is the perl equivalent: /([\040-\176\s]{3,})/g I want only those words that are minimum 3 characters and I want the

[PHP] Reading from a webpage

2001-04-04 Thread James Kneebone
Hello List, I have a small problem reading information from a webpage. I have a list of about 40 pages that I need to read (doing it in a loop as the layout is the same on each page). What I would like to know is whether the information read from a webpage is actually the information that we

Re: [PHP] Reading from a webpage

2001-04-04 Thread Plutarck
You get the source code itself. Also if the webpage in question examines the browser of the requestor your webserver may get different code than you would if you pulled it up in your browser yourself. -- Plutarck Should be working on something... ...but forgot what it was. "James Kneebone"

RE: [PHP] Reading from a webpage

2001-04-04 Thread Jason Lotito
Hello List, I have a small problem reading information from a webpage. I have a list of about 40 pages that I need to read (doing it in a loop as the layout is the same on each page). What I would like to know is whether the information read from a webpage is actually the information

Re: [PHP] Reading from a webpage

2001-04-04 Thread Plutarck
When I said source code, btw, I meant the "html source code", not the programming source code, lol. Unless you can access the page through FTP, that is. In which case it wouldn't be gained through apache, so it wouldn't be parsed. -- Plutarck Should be working on something... ...but forgot

[PHP] safe_mode and file-uploads

2001-04-04 Thread B. Tenhumberg
Hello! Where can I find a nice and COMPLETE safe_mode-description? At php.net I haven't found the demanded information. What kind of restrictions do I have relating file-system, /tmpdir, file-uploads and last not least file-permissions of files who are written by apache who is running at

Re: [PHP] Reading from a webpage

2001-04-04 Thread Steve Werby
"James Kneebone" [EMAIL PROTECTED] wrote: I have a small problem reading information from a webpage. I have a list of about 40 pages that I need to read (doing it in a loop as the layout is the same on each page). What I would like to know is whether the information read from a webpage is

[PHP] SID ????? environment variable???

2001-04-04 Thread Scott Fletcher
In the script, I have here . header("Location: https://testsecure.e-cbi.org/user_index.php?".SID); I have been wondering what is "SID"? I ask someone who wrote the script and he said that it is an environment variable. Does this have to do with the database session ID? SSL? Anyone

[PHP] equivalent of asp's %= strTest %

2001-04-04 Thread Costas
Is there an equivalent in PHP of the following code: equivalent of asp's %= strTest % But not echo "" Thanks -- 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,

[PHP] XML

2001-04-04 Thread Andreas Sisask
Hello, Does php have some feature of using .dtd or .xsd in parsing an .xml file? I mean for example if I parse some .xml (which refers to some .dtd) it checks that the .xml is correct or if not then gives quite exact error about it. Andreas -- PHP General Mailing List (http://www.php.net/)

[PHP] TheCasino.com: You have been removed!

2001-04-04 Thread support
http://www.TheCasino.com: Better Than Life! (tm) Since 1999 - Now With 100% "Buffer Bonuses" On All Deposits!! Dear [EMAIL PROTECTED], This email is to confirm that we have "removed" you from our mailing list - per your request! You will no longer be considered for TheCasino.com Monhtly

[PHP] echo (test);

2001-04-04 Thread phpa
Hey there, sorry if this has been covered before. I am not sure if this makes a difference but I see in some books echo written as: echo ("Hello"); and in others just: echo "Hello"; Do the brackets make a difference. Thanks

Re: [PHP] SID ????? environment variable???

2001-04-04 Thread Felix Kronlage
On Wed, Apr 04, 2001 at 08:59:00AM -0400, Scott Fletcher wrote: I have been wondering what is "SID"? SID stands for Session ID. (which identifies/maps a running session to user) http://www.php.net/manual/en/ref.session.php will explain sessions in general. -fkr -- gpg-fingerprint: 076E

SV: [PHP] echo (test);

2001-04-04 Thread Johan Holst Nielsen
sorry if this has been covered before. I am not sure if this makes a difference but I see in some books echo written as: echo ("Hello"); and in others just: echo "Hello"; Do the brackets make a difference. Hmmm, nope. You can also write print "Hello"; or print("Hello"); /Johan -- PHP

RE: [PHP] Sneaky solution

2001-04-04 Thread Boget, Chris
If you want to check where your submit is comming from, then you need to check the REFERER url. do so by useing the globa $HTTP_REFERER variable. Except that, as I point out in the message that the person you responded to replied to, $HTTP_REFERER by no means is guaranteed to have a

RE: [PHP] Sneaky solution

2001-04-04 Thread Boget, Chris
This may not matter for your application -- are you writing a financial app or a personal portfolio? -- but if you really need to authenticate the source of data that comes from some other IP address (as is the case with a web browser) then you're into PGP keys and signed certificates.

[PHP] TheCasino.com: You have been removed!

2001-04-04 Thread support
http://www.TheCasino.com: Better Than Life! (tm) Since 1999 - Now With 100% "Buffer Bonuses" On All Deposits!! Dear [EMAIL PROTECTED], This email is to confirm that we have "removed" you from our mailing list - per your request! You will no longer be considered for TheCasino.com Monhtly

Re: [PHP] SID ????? environment variable???

2001-04-04 Thread Scott Fletcher
Thanks, Scott "Felix Kronlage" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Wed, Apr 04, 2001 at 08:59:00AM -0400, Scott Fletcher wrote: I have been wondering what is "SID"? SID stands for Session ID. (which identifies/maps a running session to user)

Re: [PHP] equivalent of asp's %= strTest %

2001-04-04 Thread elias
Yes, i tried: ?=$str? and it worked fine! ""Costas"" [EMAIL PROTECTED] wrote in message 9af60k$dof$[EMAIL PROTECTED]">news:9af60k$dof$[EMAIL PROTECTED]... Is there an equivalent in PHP of the following code: equivalent of asp's %= strTest % But not echo "" Thanks -- PHP General

Re: [PHP] XML

2001-04-04 Thread Sebastien Roy
Hi Andreas, Please let me know if you find something about that, it would be really nice! Regards, Sebastien Roy [EMAIL PROTECTED] Andreas Sisask wrote: Hello, Does php have some feature of using .dtd or .xsd in parsing an .xml file? I mean for example if I parse some .xml (which refers

[PHP] Mime type

2001-04-04 Thread phpa
Hey there, anybody know where a list of mime type names can be found? I can generate and Excel doc - but I dont know the mime names of others such as Word etc etc. example code: Thanks ?php header( "Content-type: application/vnd.ms-excel" ); ? 123 123 123 10 10 10

[PHP] TheCasino.com: You have been removed!

2001-04-04 Thread support
http://www.TheCasino.com: Better Than Life! (tm) Since 1999 - Now With 100% "Buffer Bonuses" On All Deposits!! Dear [EMAIL PROTECTED], This email is to confirm that we have "removed" you from our mailing list - per your request! You will no longer be considered for TheCasino.com Monhtly

Re: [PHP] enclosing files into mail

2001-04-04 Thread elias
If you scroll and search this news group you will find an answer already posted. ""Vlad"" [EMAIL PROTECTED] wrote in message 9ae9ia$vuf$[EMAIL PROTECTED]">news:9ae9ia$vuf$[EMAIL PROTECTED]... Hi all How can I enclose files into my letter send it from the php script (using for example mail()

RE: [PHP] regexp question - extracting wanted ascii characters only?

2001-04-04 Thread Jorg Krause
From: Erick Papadakis [mailto:[EMAIL PROTECTED]] Hi, I need to do a simple thing. I want to read a binary file (e.g., microsoft word, excel etc) and then extract only the text from it. I am using simple fopen() and fread() and when I print out the contents of the file, it returns me

[PHP] PHP code to verify existing URL???

2001-04-04 Thread Mark Eckeard
Hi, Does anyone know of any PHP code that will take a URL from a form and go to the web verify if it exists? What about search the META tags as well?? Thanks, Mark __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail.

RE: [PHP] equivalent of asp's %= strTest %

2001-04-04 Thread Mark Roedel
-Original Message- From: Costas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 04, 2001 8:08 AM To: [EMAIL PROTECTED] Subject: [PHP] equivalent of asp's %= strTest % Is there an equivalent in PHP of the following code: equivalent of asp's %= strTest % But not echo ""

Re: [PHP] PHP code to verify existing URL???

2001-04-04 Thread Steve Werby
"Mark Eckeard" [EMAIL PROTECTED] wrote: Does anyone know of any PHP code that will take a URL from a form and go to the web verify if it exists? fopen() will do it. You can use the socket functions. curl can be used if it was configured into your PHP install. You could also use an

[PHP] Include files

2001-04-04 Thread Mike
I'm trying to use html "include" syntax in a php page.If I use .shtml the php gets ignored .If I use php the !--#include virtual="Nav.htm" -- the php gets ignored.Is there a way of doing this without using the php include function? Thanks Mike P [EMAIL PROTECTED] -- PHP General Mailing List

[PHP] stop these solfix.net messages

2001-04-04 Thread B. van Ouwerkerk
Hi, How about these messages from solfix.net What have I done to deserve these.. Every message I send to this list is followed by one from solfix.. with a list of message commands.. Already send a message to their postmaster still getting them. If someone out there knows more about

[PHP] reusing MySQL results

2001-04-04 Thread George Wright
Hi All, I have a page with two forms. Both forms have drop-down option lists that are populated by a the same query. The query and db connection are all done before either form is introduced (this is the select statement, mysql_pconnect(), mysql_select_db(), and mysql_query()). I am using

RE: [PHP] reusing MySQL results

2001-04-04 Thread Altunergil, Oktay
use mysql_data_seek() just like you'd use reset() on an array. from php.net : "mysql_data_seek() moves the internal row pointer of the MySQL result associated with the specified result identifier to point to the specified row number. The next call to mysql_fetch_row() would return that row. "

[PHP] Include Files

2001-04-04 Thread Mike
I'm trying to use html "include" syntax in a php page.If I use .shtml the php gets ignored .If I use php the !--#include virtual="Nav.htm" -- the php gets ignored.Is there a way of doing this without using the php include function? Thanks Mike P [EMAIL PROTECTED] -- PHP General Mailing

Re: [PHP] XML

2001-04-04 Thread Andreas Sisask
I have a docdef.dtd file which defines a document. Now, if I parse some doc1.xml file which refers to this docdef.dtd, that is it contains the line !DOCTYPE whateva SYSTEM "docdef.dtd" I want to chek if the doc1.xml really is correct as defined - has the syntax (elements, nesting and whatever I

[PHP] Include Files

2001-04-04 Thread Mike
I'm trying to use html "include" syntax in a php page.If I use .shtml the php gets ignored .If I use php the !--#include virtual="Nav.htm" -- the php gets ignored.Is there a way of doing this without using the php include function? Thanks Mike P [EMAIL PROTECTED] -- PHP General Mailing

RE: [PHP] FLASH AND PHP

2001-04-04 Thread Richard Kirk
If you put this code behind a button in Flash 5 (for example): on (release) { //Construct and XML object to hold request type requestXml = new XML(); requestElement = requestXml.createElement("REQUEST"); requestElement.attributes.request = "MyRequest/";

Re: [PHP] Include Files

2001-04-04 Thread bizzk
html head title/title /head body ...your HTML page... br ? include("footer.html"); ? /body /html I got this from www.devshed.com (http://www.devshed.com/Server_Side/PHP/PHP101_1/page5.html). Check it out! See You, Bizzk ""Mike"" [EMAIL PROTECTED] schreef in bericht 9afcj1$o9l$[EMAIL

[PHP] Include Files

2001-04-04 Thread Mike
I'm trying to use html "include" syntax in a php page.If I use .shtml the php gets ignored .If I use php the !--#include virtual="Nav.htm" -- the php gets ignored.Is there a way of doing this without using the php include function? Thanks Mike P [EMAIL PROTECTED] -- PHP General Mailing

RE: [PHP] reusing MySQL results - SOLVED

2001-04-04 Thread George Wright
Excellent. Thanks for everyone's response. I put: mysql_data_seek($result_Section, 0); just ahead of the second while loop and it works perfectly. Thanks again, George -Original Message- From: Mark Roedel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 04,

Re: [PHP] XML

2001-04-04 Thread Sebastien Roy
Sorry, but i'm not sure to understand your response... (maybe it's the question that I don't understand) I thought that the question was ansking for a simple way to validate a xml document with his associated dtd by a php script. It would be very useful for me to validate the xml document once

RE: [PHP] Include Files

2001-04-04 Thread Boget, Chris
I'm trying to use html "include" syntax in a php page.If I use .shtml the php gets ignored .If I use php the !--#include virtual="Nav.htm" -- the php gets ignored.Is there a way of doing this without using the php include function? Set up the .shtml extension so that it is parsed as PHP.

[PHP] PHP and MD5 passwords?

2001-04-04 Thread Chris Hutton [RaptorNet]
Greetings, How would I go about using PHP to take an entered password, and check it against an encyrpted MD5 password in a database or flat-file? -/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/- Chris Hutton - KF4YDF [EMAIL PROTECTED] Senior Administrator

Re: [PHP] stop these solfix.net messages

2001-04-04 Thread Renze Munnik
"B. van Ouwerkerk" wrote: Hi, How about these messages from solfix.net What have I done to deserve these.. Every message I send to this list is followed by one from solfix.. with a list of message commands.. Already send a message to their postmaster still getting them. If

Re: [PHP] HOWTO: Dynamically Create A Form

2001-04-04 Thread Renze Munnik
Scott Walter wrote: I know this sounds very simple, but I only want certain fields on my form to be displayed depending on the selected item in a drop-down menu, that is part of the form. I cannot figure out how to get it to work, and I don't want to resubmit the form... *** I need it to

RE: [PHP] Session variables and register_global

2001-04-04 Thread Johnson, Kirk
-Original Message- From: Niklas Neumann [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 04, 2001 3:20 AM To: [EMAIL PROTECTED] Subject: [PHP] Session variables and register_global session_register("test"); $GLOBALS['HTTP_SESSION_VARS']['test'] = 'Hello World!'; does not work

[PHP] Item in two db tables

2001-04-04 Thread bill
If I want to find a list of items in one table whose id does not appear in another table, can that be done in one query? I can only figure it out if I use two queries. $result=mysql_query("SELECT id,item FROM table1"); while ($row=mysql_fetch_array($result)) { $thisid=$row["id"];

[PHP] help - parsing text file

2001-04-04 Thread Kurth Bemis
arg - i' at wits end. i need to parse a text file into a mysql insert statement. the statement isn't the problem its parsing the text file. heres a sample of the file West Chesterfield (603) 256-8278 V.90 (603) 307-2100 V.90 K56flex (603) 307-2200 ISDN / DOV Hinsdale336 West

Re: [PHP] mysql_result()

2001-04-04 Thread matt
extract(mysql_fetch_array($result)); sets all the variables at once. much neater :) Maatt "Jordan Elver" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, If I knnow that a query will only retrun one row, can I do thiss (below) rather than using a while

[PHP] TEST

2001-04-04 Thread Mike
My posts seem to joined to a thread all of a sudden although I'm starting a new post each time Mike P [EMAIL PROTECTED] -- 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

Re: [PHP] Item in two db tables

2001-04-04 Thread Joe Sheble (Wizaerd)
I'm not 100% certain about this, but I believe you want to look at using a LEFT OUTER JOIN At 11:37 AM 4/4/01 -0400, bill wrote: If I want to find a list of items in one table whose id does not appear in another table, can that be done in one query? I can only figure it out if I use two

[PHP] Building an array from a URL

2001-04-04 Thread Mike Gifford
Hello, I'm trying to build an array out of data submitted from a URL. Essentially, I want to pull certain records out of a database which have been selected on another form. The URL presently looks like this: superRSS.phtml?150=1150superRSS166=1166superRSS168=1168superRSS175=1188

Re: [PHP] PHP and MD5 passwords?

2001-04-04 Thread Pierre-Yves Lemaire
hum, that would do it? function encrypt_pwd( $pwd ){ if ( function_exists( md5 )){ $password = md5( $pwd ); }else{ $password = $pwd; } return $password; } py At 11:12 AM 4/4/01 -0400, you wrote: Greetings, How would I go about using PHP to take an entered password, and check it

Re: [PHP] PHP and MD5 passwords?

2001-04-04 Thread Chris Adams
On 4 Apr 2001 08:06:06 -0700, Chris Hutton [RaptorNet] [EMAIL PROTECTED] wrote: How would I go about using PHP to take an entered password, and check it against an encyrpted MD5 password in a database or flat-file? retrieve the record you'd like to check and compare it to

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-04-04 Thread Rasmus Lerdorf
rasmus Wed Apr 4 08:25:44 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: CVS Account for David Benson (Thies-approved) Index: CVSROOT/avail diff -u CVSROOT/avail:1.131 CVSROOT/avail:1.132 --- CVSROOT/avail:1.131 Tue Apr 3

Re: [PHP] Item in two db tables

2001-04-04 Thread Steve Werby
"bill" [EMAIL PROTECTED] wrote: If I want to find a list of items in one table whose id does not appear in another table, can that be done in one query? Absolutely. SELECT * FROM table_1 LEFT JOIN table_2 on table_2.id = table_1.id WHERE table_2.id IS NULL Read about LEFT JOINs in the

Re: [PHP] Building an array from a URL

2001-04-04 Thread Joe Stump
FYI you can send data like this on the url: http://www.foo.com/script.php?test[joe]=stumptest[harry]=bartest[jane]=scott Then $test will be an array that translates to this in PHP: ? $test = array( joe = 'stump', harry = 'bar',

Re: [PHP] help with parse

2001-04-04 Thread Lindsay Adams
The reason it worked, is that you were setting the value of $HTTP_USER_AGENT to "Mozilla" by using a single = That operation was succesful, so the result was true. Therefore the if() clause was being executed. On 4/3/01 6:15 PM, "Wade DeWerff" [EMAIL PROTECTED] wrote: ugh, ok, I was without

Re: [PHP] Building an array from a URL

2001-04-04 Thread Knut H. Hassel Nielsen
Did you try to see if $HTTP_GET_VARS can help you ? Its an array of every variable posted by GET (the way you described) Else : Split the different key/values with the delimiter '' and thereafter split the elements in the array by '=' But first split the string into page and variables :

Re: [PHP] stop these solfix.net messages

2001-04-04 Thread B. van Ouwerkerk
I tried about everything to get off those stupid msgs. Try going to their STMP server, you'll find out that your email-address is a valid user on their system. How funny is that? NOT FUNNY!!! I still haven't found anything to make 'm stop. They use Xtramail.. it's a mailclient.. I know how to

[PHP] MIT for free

2001-04-04 Thread Boget, Chris
I humbly and sincerely apologize for this off topic post. But I just came across a page that I thought that many of you would find very interesting: http://web.mit.edu/newsoffice/nr/2001/ocw.html http://web.mit.edu/newsoffice/nr/2001/ocw-facts.html MIT is going to start offering their

Re: [PHP] Building an array from a URL

2001-04-04 Thread Delbono
I think the function parse_str does exactly what you want. http://www.php.net/manual/en/function.parse-str.php - Original Message - From: "Knut H. Hassel Nielsen" [EMAIL PROTECTED] To: "Mike Gifford" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, April 04, 2001 6:12 PM

[PHP] any other way ?

2001-04-04 Thread TV Karthick Kumar
Hi Following is the piece of code, which I am struggling with, now the problem is: I just want to display 4 email address in a textarea and mail them. The case here is, the available email address has to displayed and as I have maximum 4 email addresses coming up dynamically, I might

[PHP] Monthly Drawing Winner!

2001-04-04 Thread news
Dear PhpList wives (E-mail), Congratulations! You just won US$10.00!! We just gave away US$25,000.00!! And you PhpList wives (E-mail) are among the lucky 2500 people randomly selected to receive a FREE US$10.00 Trial Account at TheCasino.com - the Internet's Premier Online Casino! Account

Re: [PHP] Monthly Drawing Winner!

2001-04-04 Thread TV Karthick Kumar
Can't we just get rid of this spam: [EMAIL PROTECTED] and not allow to continue. I am sure the list master (in php.net) can do it, for the sake of the list. Hope he's hearing !. It's a requisition. Thanks in adv. ~ Karthick - Original Message - From: [EMAIL PROTECTED] To: [EMAIL

[PHP] insert into multiple tables

2001-04-04 Thread Toni Barskile
Can someone please help me w/the following code? I'm trying to insert data collected on a form into two tables into my database. I know the SQL statements work because I tested them individually, but I keep getting the error "Couldn't execute query 2". Does anyone have any

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-04-04 Thread Rasmus Lerdorf
rasmus Wed Apr 4 09:01:32 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: GTK CVS account for Joe Stump Index: CVSROOT/avail diff -u CVSROOT/avail:1.132 CVSROOT/avail:1.133 --- CVSROOT/avail:1.132 Wed Apr 4 08:25:44 2001 +++

[PHP] PAIR NUMBER

2001-04-04 Thread Jon
Hi, I am searching for a POP function that let me calculate for example the MOD of dividing a number between 2 so as to know whether this number is pair o unpair. I have been looking throguh the section of mathematical functions but I have found nothing and I do not know where else could I

Re: [PHP] Monthly Drawing Winner!

2001-04-04 Thread Rasmus Lerdorf
Done. Anything from mail.thecasino.com and thecasino.com is now blocked. -Rasmus On Wed, 4 Apr 2001, TV Karthick Kumar wrote: Can't we just get rid of this spam: [EMAIL PROTECTED] and not allow to continue. I am sure the list master (in php.net) can do it, for the sake of the list. Hope

Re: [PHP] Monthly Drawing Winner!

2001-04-04 Thread Joe Stump
You have to give the spammers credit - why compile huge lists of people when you can just spam precompiled lists (ie the php-general list) and let them do all the work of distributing the spam. This is a tricky loophole as well - I know using relays to distribute spam isn't legal, but what

Re: [PHP] Monthly Drawing Winner!

2001-04-04 Thread Phillip Bow
Aww shoot. How am I supposed to win now? :) -- phill "Rasmus Lerdorf" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Done. Anything from mail.thecasino.com and thecasino.com is now blocked. -Rasmus -- PHP General Mailing List (http://www.php.net/) To

[PHP] getting IMAP part ID´s

2001-04-04 Thread joel
Hi. Is there a PHP function to get a message part ID through IMAP? I´ve been looking for one but did not find it. Becaues the function imap_fetchbody requires a message part but I can´t figure out how to get its ID. anyone? thanks in adv. Joel.

Re: [PHP] Monthly Drawing Winner!

2001-04-04 Thread Michael Kimsal
cheesemode="ON" If you're using PHP, you're already a winner (in my book anyway!) /cheesemode :) Phillip Bow wrote: Aww shoot. How am I supposed to win now? :) -- phill "Rasmus Lerdorf" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Done. Anything

Re: [PHP] Include Files

2001-04-04 Thread Christian Reiniger
On Wednesday 04 April 2001 17:08, you wrote: I'm trying to use html "include" syntax in a php page.If I use .shtml the php gets ignored .If I use php the !--#include virtual="Nav.htm" -- the php gets ignored.Is there a way of doing this without using the php include function? Thanks Stop

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-04-04 Thread Rasmus Lerdorf
rasmus Wed Apr 4 09:08:41 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Dev account for Brendan W. McAdams to work on CCVS Index: CVSROOT/avail diff -u CVSROOT/avail:1.133 CVSROOT/avail:1.134 --- CVSROOT/avail:1.133 Wed Apr 4

Re: [PHP] HOWTO: Dynamically Create A Form

2001-04-04 Thread Reuben D Budiardja
At 03:19 PM 4/4/01 +, you wrote: Scott Walter wrote: Well; PHP is server-side, so without resubmitting the form you won't be able to do this using PHP. That's why JavaScript is available. At this time I don't have enough time to explain exactly how to do this, but JS is the way for this. If

Re: [PHP] Monthly Drawing Winner!

2001-04-04 Thread Thomas Deliduka
On 4/4/2001 1:32 PM this was written: cheesemode="ON" If you're using PHP, you're already a winner (in my book anyway!) /cheesemode LOL -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.com/ -- PHP General

  1   2   >