Re: [PHP] Changing perl to PHP

2001-09-12 Thread Jason Brooke
# read the post from PayPal system and add 'cmd' read (STDIN, $query, $ENV{'CONTENT_LENGTH'}); $query .= 'cmd=_notify-validate'; # post back to PayPal system to validate use LWP::UserAgent; $ua = new LWP::UserAgent; $req = new HTTP::Request 'POST','https://www.paypal.com/cgi-bin/webscr';

Re: [PHP] Changing perl to PHP

2001-09-12 Thread ReDucTor
?php $fp = fsockopen(www.paypal.com, 443, $errono, $errstr, 30); if (!$fp) { echo $errstr ($errno)br\n; } else { fputs ($fp, GET https://www.paypal.com/cgi-bin/webscr HTTP/1.1\015\012); fputs ($fp, HOST www.paypal.com\015\012); fputs ($fp, Content-type:

Re: [PHP] Re: Mailing list

2001-09-12 Thread B. van Ouwerkerk
At 23:50 11-9-01 -0500, Richard Lynch wrote: You could examine the web-server logs... But you either have to assume people only read it once, or count IPs and ignore AOL/DHCP/Hotmail etc users whose IPs will change more or less at random. The problem is that you may not be able to count IP's. I

[PHP] problem with form values

2001-09-12 Thread Niklas Lampén
If a user enters a quota ( ) to a form field and sends it, the page trying to process values gets only a backslash ( \ ). No matter if I use GET or POST. How to get the right kind of a value? Niklas

Re: [PHP] Changing perl to PHP

2001-09-12 Thread Jason Brooke
?php $fp = fsockopen(www.paypal.com, 443, $errono, $errstr, 30); if (!$fp) { echo $errstr ($errno)br\n; } else { fputs ($fp, GET https://www.paypal.com/cgi-bin/webscr HTTP/1.1\015\012); fputs ($fp, HOST www.paypal.com\015\012); fputs ($fp, Content-type:

[PHP] CheckBoxes and Arrays

2001-09-12 Thread nicolas costes
have you tried : Input Type=\CheckBox\ Name=\ChkBox[]\ Value=\$row-ID\ -- (°-Nayco, //\[EMAIL PROTECTED] v_/_ http://nayco.free.fr Ryan Stephens [EMAIL PROTECTED] a écrit dans le message : [EMAIL PROTECTED] Im trying to output a list of options, each with

Re: [PHP] word wrap

2001-09-12 Thread nayco
http://php.net/manual/en/function.wordwrap.php (°-Nayco, //\[EMAIL PROTECTED] v_/_ http://nayco.free.fr - Original Message - From: Justin French [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Wednesday, September 12, 2001 3:39 AM Subject: [PHP] word

[PHP] $HTTP_POST_VARS

2001-09-12 Thread Jochen Kaechelin
Is this a secure way to check if some data comes from a form-field of the previous page, or ist it possible to fill it without submitting a form? -- Jochen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: [PHP] Re: Mailing list

2001-09-12 Thread Lawrence . Sheed
Should be relatively easy. Its going to take 2 steps. Send out one of the images with a unique id per mailout, this could be the users email address if you wanted to tie in the data per user (may be illegal in some countries without users permission). eg first mail html bla blah img

[PHP] limiting rows and pages like google

2001-09-12 Thread Adrian D'Costa
Hi, I am trying to find out the the best way to do the following: I have a script that select records from a table. The problem is that I need to limit the rows to 20. I know that I can use limit 20. But what I want to do is give the view a link to the next 20 till all the records are shown.

[PHP] Re: PERL TO PHP

2001-09-12 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Programmer) wrote: Can anybody help me convert this perl code to PHP This line in particular while( /hidden name=(.*?)/gs ) while(preg_match_all(/hidden name=(.*?)/s,$teststring,$matches) Note that /g is covered by the function itself

[PHP] Re: problem with form values

2001-09-12 Thread Adam
show us a snippet so we can evaluate the cause -A -- 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] Re: the proverbial mail() is not supported in this PHP build

2001-09-12 Thread Badger
Hello Richard, Tuesday, September 11, 2001, 9:53:30 PM, you wrote: RL It's entirely possible your ISP turned it off on purpose to foil spammers... RL You *may* be able to http://php.net/exec sendmail and do an end-run around RL that, if they were not smart enough to close off that access...

[PHP] Re: $HTTP_POST_VARS

2001-09-12 Thread CC Zona
In article NFBBJAAIJKFHONHEEJJDAEEBCFAA.jk@intern, [EMAIL PROTECTED] (Jochen Kaechelin) wrote: Is this a secure way to check if some data comes from a form-field of the previous page, No. But as long as the user submits all of the necessary data, and the data passes your validation

[PHP] limiting rows and pages like google

2001-09-12 Thread Aniceto Lopez
paging results: this is tha idea page 1 - SELECT * FROM yourtable ORDER BY id DESC LIMIT 0, 20 page 2 - SELECT * FROM yourtable ORDER BY id DESC LIMIT 21, 20 page 3 - SELECT * FROM yourtable ORDER BY id DESC LIMIT 41, 20 ... so $next = 0 //starting SELECT * FROM yourtable ORDER BY id DESC LIMIT

Re: [PHP] Re: Ramesus HELP ! Fwd: [PHP] mail() ERROR - WHY, WHY, WHY

2001-09-12 Thread Badger
Hello Richard, Tuesday, September 11, 2001, 10:07:53 PM, you wrote: RL Did anybody disable the mail() function in PHP? RL What did you put in php.ini to call sendmail? RL Are there any error messages in your Apache logs? RL Re-posting with Rasmus' name is probably not particularly useful...

[PHP] Re: Regular Expression ? from newbie

2001-09-12 Thread _lallous
here's your PHP code, ? $mem = ' table cellspacing=2 cellpadding=2 border=1 tr td align=centerbanana/td td align=left.46/td td align=right.55/td /tr tr td align=centerpear/td td align=left.38/td td align=right.51/td /tr tr td align=centerapple/td td

[PHP] Security

2001-09-12 Thread Mat Marlow
Hi Folks, Does anyone know of a good place I can go to find information about PHP/MySQL/Apache security issues and vulnerabilities? I know a couple of security sites but are there any specific ones for this purpose? We're currently weighing up pros and cons of using them for our site. I want to

RE: [PHP] Re: problem with form values

2001-09-12 Thread Niklas Lampén
This is what my form returns with search 'great port': http://domain/file.php4?Parent=1Keyword=\ and this with search 'great port' (no quotas): http://domain/file.php4?Parent=1Keyword=great portName=Province=---Submit=SearchType=text I need to get quotas to the keyword-field, so I can create

[PHP] RE: problem with form values

2001-09-12 Thread Niklas Lampén
How to do anything to the strings in php BEFORE the form is sent? Niklas -Original Message- From: James Holloway [mailto:[EMAIL PROTECTED]] Sent: 12. syyskuuta 2001 11:28 To: Niklas lampén Subject: Re: problem with form values Hi Niklas, use htmlentities() or htmlspecialchars() on

[PHP] Re: problem with form values

2001-09-12 Thread James Holloway
Sorry, I didn't mean it quite like that. After the user presses submit $string = htmlentities($string); // now, do whatever with the string J - Original Message - From: Niklas Lampén To: James Holloway ; Php-General Sent: Wednesday, September 12, 2001 9:52 AM Subject:

Re: [PHP] Security

2001-09-12 Thread B. van Ouwerkerk
www.securityfocus.com www.securityportal.com (might be down while they reconstruct their website) And many others.. use your favorite search engine. Bye, B. At 09:50 12-9-01 +0100, Mat Marlow wrote: Hi Folks, Does anyone know of a good place I can go to find information about

[PHP] Re: Security

2001-09-12 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Mat Marlow) wrote: Does anyone know of a good place I can go to find information about PHP/MySQL/Apache security issues and vulnerabilities? I know a couple of security sites but are there any specific ones for this purpose? IIRC, php.net,

Re: [PHP] Re: Can' connect to ldap server

2001-09-12 Thread Andre Konopka
Hi all together, I modified my 'two lines of code': $andre1; $ds = ldap_connect (localhost); print connect result is ... $andre2; Here are the snipped from the error_log: [12-Sep-2001 11:24:16] PHP Warning: Use of undefined constant andre1 - assumed 'andre1' in

Re: [PHP] Re: problem with form values

2001-09-12 Thread Adam
i would say do this urlencode the string (it should use %22 or something for the quote marks) then un encode on the recieving page -- one thing you might try is this $sql = 'SELECT * FROM whatever WHERE'; while ( $quotes = explode('', $Keywords) ) { $q = 0; $s = 0;

RE: [PHP] Re: Mailing list

2001-09-12 Thread B. van Ouwerkerk
Send out one of the images with a unique id per mailout, this could be the users email address if you wanted to tie in the data per user (may be illegal in some countries without users permission). I don't know if it's illegal, but if I would be a subscriber I wouldn't like it if someone is

[PHP] news display

2001-09-12 Thread nate
Hey all! I have a slight problem I was hoping you could help me with. I'm writing a little news script for my site, and well here is the scenario: I have 2 tables in a mysql database, one holds author information (name, email, password, etc.) The other table holds the news that they submit

[PHP] Accessing pdf file thru php

2001-09-12 Thread George Pitcher
Hi all, I'm trying to build php into an existing solution which uses Lasso. I have tested the passing of data from Lasso to php and that works fine. I want Lasso to pass the filename over to a php page and for that page to grab the file from a folder outside of the webroot and push it out to

RE: [PHP] Re: problem with form values

2001-09-12 Thread Niklas Lampén
Heh, we seem to have a bit of a problem with communicating with each other.. :) What I ment with the question is that how can I do something to the string before the form sends information to the next page? So can I somehow modify strings after pressing submit but before next page? Something

Re: [PHP] Re: Uploading Photos to MySQL

2001-09-12 Thread Sean C. McCarthy
Hi all, If you mean http://www.webtechniques.com/archives/1998/02/lerdorf/ what inserts in the DB is just the image's name, but not the file itself. What is exactly the problem you are having with the class? Just a couple days ago I had a problem uploading files into a MySQL DB because the

[PHP] imap_header broken ??

2001-09-12 Thread Harald Petrovitsch
Hi ! I have php 4.0.6 and get Mail from a IMAP Server. I've do this on a linux box and it works fine. On another server (a Faxserver with imap support) I get empty fromaddress, empty subject, empt toddress. But imap_headers returns the right values. Any ideas how to fix this ?? BYe Harald

[PHP] Storing Images in a Database

2001-09-12 Thread MindHunter
Hi, Any good tutorials or references on how to select and display these images from a database (MySQL, Access, SQLServer) with PHP? I know how to get it in, thats the easy partbut getting it out I'm listening! Tx BK -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] htmlspecialchars() and MySQL

2001-09-12 Thread Augusto Cesar Castoldi
Hi. can someone explain this to me? How can I INSERT with mysql_query this string: Tsete aspas simpes '' aspas enter e maior e menor, but I can't do a SELECT after?, I receive error because the mysql can't understend the (). i'm using htmlspecialchars()... thanks. Augusto

Re[2]: [PHP] How to list 2-6 in while script?

2001-09-12 Thread Andrew Perevodchik
Hello! You wrote: Hi! I have this script and wonder how to change it to get it list only number 2 to number 6 and not each? while (list ($key,$val) = each ($headers)) { print pb.$val./b/p; } while (list ($key,$val) = each ($headers) and $key = 6 and $key = 2) { print

[PHP] How do I inserting the content of a TEXT file into a PHP document?

2001-09-12 Thread Cato Larsen
Hi! I would like to insert the HTML code in a TXT document. How do I do this? On a normal website I'd make an SHTML site with the !--#include virtual=news.txt -- but since the PHP engine (as far as I know) doesn't initiate SSL on the server. If anyone could be so kind to give me the code to make

Re: [PHP] Storing Images in a Database

2001-09-12 Thread David Otton
On Wed, 12 Sep 2001 13:45:06 +0200, you wrote: Any good tutorials or references on how to select and display these images from a database (MySQL, Access, SQLServer) with PHP? I know how to get it in, thats the easy partbut getting it out I'm listening! You need to output the correct

Re: [PHP] How to list 2-6 in while script?

2001-09-12 Thread Alexander Skwar
So sprach »Andrew Perevodchik« am 2001-09-12 um 14:45:25 +0300 : Hello! You wrote: Hi! I have this script and wonder how to change it to get it list only number 2 to number 6 and not each? while (list ($key,$val) = each ($headers)) { print pb.$val./b/p; } while (list

Re: [PHP] htmlspecialchars() and MySQL

2001-09-12 Thread Alexander Skwar
So sprach »Augusto Cesar Castoldi« am 2001-09-12 um 08:52:29 -0300 : i'm using htmlspecialchars()... Switch to addslashes() to insert the data and stripslashes() when fetching the data from the DB + htmlentities/htmlspecialchars to display the values. Alexander Skwar -- How to quote:

Re: [PHP] How do I inserting the content of a TEXT file into a PHP document?

2001-09-12 Thread David Otton
On Wed, 12 Sep 2001 14:37:59 +0200, you wrote: I would like to insert the HTML code in a TXT document. How do I do this? On a normal website I'd make an SHTML site with the !--#include virtual=news.txt -- Can't you still do this? but since the PHP engine (as far as I know) doesn't initiate SSL

Re: [PHP] How do I inserting the content of a TEXT file into a PHP document?

2001-09-12 Thread Cato Larsen
Woah! It worked!!! Thanks djo! Best regards Cato Larsen Webmaster of http://www.oia.f2s.com -- 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

Re: [PHP] Accessing pdf file thru php

2001-09-12 Thread George Pitcher
Brad, Thanks for that pointer. However, with that implemented, all I get is the PDF coding dumped onto the screen - no pdf file downloaded! Any further suggestions. I feel as though I'm getting there . . . slowly. George - Original Message - From: Brad S. Jackson [EMAIL PROTECTED]

Re: [PHP] Re: problem with form values

2001-09-12 Thread Jason Bell
PHP Is server side. The form data, until it is submitted is client side. If you need to manipulate the form data before processing it (i.e for validation, etc) you can either build that logic into your processing code, or have the form call an intermediate set of code that does what you need to

[PHP] Question about how to handle something....

2001-09-12 Thread Jeff Lewis
We have categories set up and I was using PHP to make searches on this. It was working nicely and the categories were auto incremented as new ones were added. Now we're adding sub categories and the categories are all labelled the same way When I load one page I use PHP to generate a drop

Re: [PHP] Re: Hierarchic menus using Javascript and PHP?

2001-09-12 Thread Jason Bell
I believe I do what you are attempting to do, in pure PHP using a switch statement and variables. It works, (check www.northpointless.org to see it in action) but keep in mind my site is in early developement, so the menu options aren't quite fleshed out at this time.: function menu ($pos, $sub

[PHP] Is it a mysql AND/OR php BUG???

2001-09-12 Thread Augusto Cesar Castoldi
Please, look this little script, and what he prints. Am I doing something wrong or I found a bug?? thanks a lot. ? function encode($encode_str, $pass_str) { $encode_str = addslashes($encode_str); $sql = select encode(\$encode_str\, \$pass_str\); echo htmlspecialchars($sql).br; $data =

[PHP] error about sk_new_null with apache/php lib

2001-09-12 Thread Tom Eicher
Hi, in our case the error message Syntax error on line 239 of /home/mmulsy/apache/etc/httpd.conf: Cannot load /home/mmulsy/apache/libexec/libphp4.so into server: ld.so.1: /home/mmulsy/apache/bin/httpd: fatal: relocation error: file /home/mmulsy/apache/libexec/libphp4.so: symbol

Re: [PHP] Is it a mysql AND/OR php BUG???

2001-09-12 Thread Augusto Cesar Castoldi
the function isn't decoding right. regards, Augusto --- Schill, Johannes [EMAIL PROTECTED] escreveu: Please include your error message. /Johannes - Original Message - From: Augusto Cesar Castoldi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 12, 2001

[PHP] looking for web designer

2001-09-12 Thread Mark Lo
Dear Sir, I am looking for PHP Programmer and Web Designer to work on a proget basis. If interesting, please send your reply back to [EMAIL PROTECTED] Best Regards, Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: [PHP] Is it a mysql AND/OR php BUG???

2001-09-12 Thread Mark Roedel
-Original Message- From: Augusto Cesar Castoldi [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 12, 2001 9:46 AM To: Schill, Johannes Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Is it a mysql AND/OR php BUG??? the function isn't decoding right. function

Re: [PHP] Re: Uploading Photos to MySQL

2001-09-12 Thread Mike Gifford
Hi Sean, Sean C. McCarthy wrote: If you mean http://www.webtechniques.com/archives/1998/02/lerdorf/ what inserts in the DB is just the image's name, but not the file itself. I had trouble opening up the upload.php3 file in list six, so I couldn't verify by looking at the code. Not sure if

[PHP] how to set session expiration

2001-09-12 Thread power jessie
hello everyone, how can i set the expiration of my sessions with or without the cookies enabled? say if a user idles for some time, the session will now expire. TIA! jessie void signature () { cout Jessie Natividad-- [EMAIL PROTECTED] endl ; cout Cell: +63 919 272

RE: [PHP] how to set session expiration

2001-09-12 Thread Martin Lindhe
hello everyone, how can i set the expiration of my sessions with or without the cookies enabled? say if a user idles for some time, the session will now expire. TIA! jessie I'm using a solition that's something like this: first, each time a user logs in to the site, a

RE: [PHP] how to set session expiration

2001-09-12 Thread Martin Lindhe
oh, i forgot to mention, i create new session id on each login, and pass it on in the url, something like /page.php?sess=$sess_id If you want, you could also assign the user's ip with the current session for a little higher security, i havent bothered as i feel this is safe enough. /Martin

[PHP] displaing news

2001-09-12 Thread nate
Hey all! I have a slight problem I was hoping you could help me with. I wrote earlier but no response (so one last try). I'm writing a little news script for my site, and well here is the scenario: The SHORT: I have news,headline,author,date,time,etc. all in a table in a mysql db, that I use

Re: [PHP] displaing news

2001-09-12 Thread Tom Carter
rough outline of what you would need to do. this is pseudocode.. I'm too tired to write correct php :) $is_first=true; whlie(get next result entry) { if($is_first) { $last-date=date of this entry; $this-date=date of this entry; $is_first=false; }

[PHP] cleaning up word html

2001-09-12 Thread Peter
Hi, I am looking to clean up the HTML generated by some of the in-browser WYSIWYG editors, especially if you paste in content from Word. Can I install HTMLTidy on my server easily, and call it from PHP easily? Are there other good classes available that clean up HTML? And how would I make a

[PHP] How to output/ generate doc/xls/ or access file?

2001-09-12 Thread Zenith
Right, there is a COM module in the PHP. But it must be used with win32 platform. Is there any alternatives for linux platform? -- 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] Re: Uploading Photos to MySQL

2001-09-12 Thread Sean C. McCarthy
Mike Gifford wrote: Hi Sean, Sean C. McCarthy wrote: If you mean http://www.webtechniques.com/archives/1998/02/lerdorf/ what inserts in the DB is just the image's name, but not the file itself. I had trouble opening up the upload.php3 file in list six, so I couldn't verify by

Re: [PHP] Call to undefined function problem

2001-09-12 Thread Doug Farmer
Typo in my explanation. I had defined in my code. Nice catch though. However, I'm running into more define issues. When I get to a file through a redirect via header(Location: /newfile.php), my defines are existing as tested by defined but the values are all corrupt. However, if I then

Re: [PHP] displaing news

2001-09-12 Thread nate
Thanks Tom, I'm still a newbie at this stuff though, so can you (or anyone) look this over and tell me what I did wrong... ?php //Connect to db $db = mysql_pconnect(localhost); mysql_select_db(news,$db); $result1 = mysql_query(SELECT * FROM news,authors ORDER BY `id` DESC,$db);

[PHP] Dc/Ac Motor sale

2001-09-12 Thread [EMAIL PROTECTED]
Hing Lung Motor Mfy, New Offer Aug-2001 http://www.hinglungmotor.com.hk [EMAIL PROTECTED] [EMAIL PROTECTED] Fax: 852-24817148 NO: HL101-D-D8xH6 VIBRATER MOTOR SIZE: 20 x 15.5 x H25 MM PRICE: US$ 0.13/PCNO: HL307 MOTOR SIZE: D12 x 19.5 MM PRICE: US$ 0.38/PC NO: HL1011-DC

Re: [PHP] displaing news

2001-09-12 Thread Tom Carter
first (quick) glance looks fine... what error are you getting? you didn't specify username/password for your mysql connection. you may be required to do that.. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 12, 2001 6:12 PM Subject:

[PHP] dumping a session

2001-09-12 Thread Jason Dulberg
If an admin deletes a user's session while they are online, is it possible to show that user a message saying that their session has been revoked? I can seem to think of a way to determine if the user logged out or if the agent kicked them out. Thanks in advance and please excuse my newbieness.

[PHP] Mail function....

2001-09-12 Thread Kyle Smith
Can someone please just run me through the different sections of the mail function please cause i understand you can change the from address etc aswell -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666

[PHP] libphp4.so...

2001-09-12 Thread Fernando M Hildebrand
Once I´ve installed php (DSO), and try to restart apache I´ve get: libexec/libphp4.so : unresolved symbol :uncompress apache could not be started (something like this) Does anyone can help? Thanks Fernando [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

[PHP] Verify E-Mail Address

2001-09-12 Thread Jeff Grossman
Hello, I have a page which is a form for people to fill in. There is one input line where the user enters in an e-mail address. Currently the page is using java to verify that e-mail address. It looks like the java code is only checking for an @ side, but I want it to also check for a .

RE: [PHP] Accessing pdf file thru php

2001-09-12 Thread Matthew Loff
Are you using Internet Explorer? I've found that broken installations of Acrobat will cause that... Try reinstalling acrobat on your computer, and also try using Netscape... See if they work. --Matt -Original Message- From: George Pitcher [mailto:[EMAIL PROTECTED]] Sent: Wednesday,

Re: [PHP] Accessing pdf file thru php

2001-09-12 Thread Sean C. McCarthy
Hi, I have the same problem going on. I have tried IE on Windows 98, 2000 and Netscape on Linux, 98 without any difference. I can't check it because using https and sessions, but can anyone try to use wget with the -s option to see what is going on the headers? Also might be useful to see what

[PHP] database

2001-09-12 Thread andreas \(@work\)
hi, where can i get a database with the postal codes from germany ? i need to doublecheck the entries posted on our website andre

[PHP] Problem with Uploading Many Files (22)

2001-09-12 Thread Jani Rautiainen
I have been fighting with an annoying problem for couple days.. If I try to upload more than 22 files (no matter what size), the last file doesn't upload correctly.. I don't know PHP very well, so I don't know whether there is a way to configure the server to get around the problem... In the

[PHP] I am making a mailing list but....

2001-09-12 Thread Kyle Smith
. how do i make php add something to a text document on the smae line cause i need the text document to look like this [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]; so well, how do i get it to add on to line 1 and would i need it to make the ; go on the last line cause php cat

Re: [PHP] Verify E-Mail Address

2001-09-12 Thread Alexander Skwar
So sprach »Jeff Grossman« am 2001-09-12 um 12:16:29 -0700 : Hello, I have a page which is a form for people to fill in. There is one input line where the user enters in an e-mail address. Currently the page is using java to verify that e-mail address. It looks like the java code is

Re: [PHP] How do I inserting the content of a TEXT file into a PHP document?

2001-09-12 Thread Alexander Skwar
So sprach »David Otton« am 2001-09-12 um 13:47:53 +0100 : On Wed, 12 Sep 2001 14:37:59 +0200, you wrote: I would like to insert the HTML code in a TXT document. How do I do this? On a normal website I'd make an SHTML site with the !--#include virtual=news.txt -- Can't you still do this?

RE: [PHP] Problem with Uploading Many Files (22)

2001-09-12 Thread Matthew Loff
What version of PHP are you running? There were a few bugs in the file upload code that have been fixed in recent relases of PHP... --Matt -Original Message- From: Jani Rautiainen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 12, 2001 3:51 PM To: [EMAIL PROTECTED] Subject:

RE: [PHP] I am making a mailing list but....

2001-09-12 Thread Jack Dempsey
You should really think about storing things in a db...mysql's free and easy to use and install, and will save you lots of time (especially with this kind of question) If you're only trying to add something to line one, you could open a file, read it, open a new one, print whatever you need to

[PHP] combining variables

2001-09-12 Thread Tyler Longren
Hello, I have this: for ($i=1; $i=$num_answers; $i++) { print bAnswer $i:/b input type=text name='answer$i'br; } The user will enter the possible answers up there. When that form is submitted, I want to take the value from answer$i ($answer$i). I can't do this though.

[PHP] Nesting / Associating Multiple Classes

2001-09-12 Thread Roy Wilson, Jr.
Ok, So I have one particular class, that should be usable by other classes in an application. For example: class db_class { var name var name_2 function() { } function_2() { } } The class above is a general database class that's functions are needed by the other API

[PHP] Ip Address to binary

2001-09-12 Thread Jason Bell
does anyone know of a way to convert an IP address to Binary using PHP? My plan is to store the IP address in MySQL so that I can manage a mass amount of IP subnets, and easily make sure I'm not assigning duplicate subnets. the best way I can think of is to use binary. any other ideas,

[PHP] Extracting hidden Fields

2001-09-12 Thread programmer
I use curl to do a form submit and then the data is submitted back to me. I now need to know how to extract the hidden variables from the webpage and put one the name of the hidden field in one field and the value of the hidden field in another. there is 5 hidden fields that i need to

[PHP] corrupted definitions

2001-09-12 Thread Doug Farmer
I have definitions (i.e. define (a, b);) that are being corrupted in php-4.0.6 in apache 1.3.20 on Redhat linux from Jan. 11. Anyone seen this? Any solutions? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP] Ip Address to binary

2001-09-12 Thread Jason Bell
I want to add I have seen bindec() , and I think it's a cruel cruel joke for it to only work with 31 bits, given that ip4 addresses are 32 bits. :} - Original Message - From: Jason Bell [EMAIL PROTECTED] To: PHP Users [EMAIL PROTECTED] Sent: Wednesday, September 12, 2001 2:29 PM

RE: [PHP] Ip Address to binary

2001-09-12 Thread Robert Covell
You could use MySql's built in functions: INET_NTOA() INET_ATON() Sincerely, Robert T. Covell President / Owner Rolet Internet Services, LLC Web: www.rolet.com Email: [EMAIL PROTECTED] Phone: 816.210.7145 Fax: 816.753.1952 -Original Message- From: Jason Bell [mailto:[EMAIL PROTECTED]]

[PHP] double values in array

2001-09-12 Thread Tom Beidler
I have a form that I would like to send an email once it's validated. I'm using the following code that builds the body of the email. $y = mysql_fetch_array ($getrec_result); while (list($key,$value) = each($y)) { $body .= $key: $value\n; } My body looks like this 0: 3 id: 3 1: 2001-09-12

[PHP] Verify email client can read html email?

2001-09-12 Thread Bob
When sending out email is it possible to know if their email client program will be able to read a html email? If it can't read a html email then it would show a text email. I know it's conventional wisdom that this isn't possible but has anyone even heard of someone figuring this out?

RE: [PHP] Verify email client can read html email?

2001-09-12 Thread Jeff Pearson
Yes. It is possible. Jeff Pearson -Original Message- From: Bob [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 12, 2001 2:57 PM To: [EMAIL PROTECTED] Subject: [PHP] Verify email client can read html email? When sending out email is it possible to know if their email

Re: [PHP] Verify email client can read html email?

2001-09-12 Thread Jason Brooke
When sending out email is it possible to know if their email client program will be able to read a html email? If it can't read a html email then it would show a text email. I know it's conventional wisdom that this isn't possible but has anyone even heard of someone figuring this out? If

[PHP] Dynamic Form

2001-09-12 Thread Jared Mashburn
Hell0, I have a MySql database with 3 columns. The first column is id second is name and third is value, I have two drop-down lists, with the first filled with an array from the column name. I would like for the second drop-down list be changed according to the value of what has been selected

[PHP] FW: Bug #13273 Updated: session_register naming bug

2001-09-12 Thread kasper
I orignally sent this in as a bug report and received this response -- anyone seen anything like this before? ~[EMAIL PROTECTED] PS-Please CC: me on replies, as I'm not subscribed to the list. Thanks -Original Message- From: Bug Database [mailto:[EMAIL PROTECTED]] Sent: Wednesday,

Re: [PHP] Dynamic Form

2001-09-12 Thread Jason Bell
PHP does not know what the user has selected in the first drop down. You can either reload the page with the new value once the user has selected the value for the first drop down list, and go from there, or use Javascript. - Original Message - From: Jared Mashburn [EMAIL PROTECTED]

RE: [PHP] Dynamic Form

2001-09-12 Thread Matthew Loff
echo SELECT NAME=\whatever\\n; while($row = mysql_fetch_assoc($yourquery) echo OPTION . ($whatever == $row['value']? SELECTED :) .VALUE=\{$row['value']}\{$row['name']}/OPTION\n; echo /SELECT\n; Just insert a ternary operator in there, and check if the submitted value is equal to the

RE: [PHP] Dynamic Form

2001-09-12 Thread Matthew Loff
Oops... My bad. I misread the question... Ignore my previous reply. -Original Message- From: Jason Bell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 12, 2001 6:47 PM To: Jared Mashburn; PHP Users Subject: Re: [PHP] Dynamic Form PHP does not know what the user has selected

RE: [PHP] Dynamic Form

2001-09-12 Thread Jared Mashburn
I have tried using onChange in my script but have faild to load the values of the first drop-down list. Can I place an array inside an array. Or is there a better way of doing this? -Original Message- From: Jason Bell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 12, 2001 4:47

Re: [PHP] Dynamic Form

2001-09-12 Thread Jason Brooke
Hell0, I have a MySql database with 3 columns. The first column is id second is name and third is value, I have two drop-down lists, with the first filled with an array from the column name. I would like for the second drop-down list be changed according to the value of what has been

[PHP] ecTemplate !!!

2001-09-12 Thread Jeroen Olthof
try it out and let me know what u think of it please ?! http://www.millipede.nl/ectemplate kind regards Jeroen Olthof -- 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] Dynamic Form

2001-09-12 Thread Andrew Hill
Here is my take on it, cobbled together with the help of a js wizard friend of mine: ?php include(config.inc.php); //config contains database connection params ? html head titleDynamic Dropdown Menus/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 script

[PHP] Re: double values in array

2001-09-12 Thread Charlie Killian
Hi Tom. First check to see what $y looks like: print pre; print_r($y); print /pre; Then you'll see the whole array. I'm guessing your mysql_fetch_array() is returning the id twice. What does your query look like. Also, you can use the foreach but I don't think the while is the problem: $y =

Re: [PHP] I am making a mailing list but....

2001-09-12 Thread Adam
amen. a database solved my data storage for good and i could never get along without it now. also scripst like these can currupt files that it writes to if a person does certains things while browsing. (ex. refreshing realy fast) get a DB it's way easier to manage. -Adam -- PHP General

[PHP] How to Retrieve All Selected Values of CheckBox Group in Form?

2001-09-12 Thread Hon-Chi Ng
Hi How I read the all values selected for checkboxes of same name that are submitted to HTML form? I tried to translate the example on CGI.pm homepage to PHP below. FORM METHOD=POST What's your name? INPUT TYPE=TEXT NAME=name VALUE=?= $name ? P What's the combination? P

Re: [PHP] news display

2001-09-12 Thread nayco
- $result1 = mysql_query(SELECT * FROM news,authors ORDER BY `id` DESC,$db); I think something like WHERE news.id=author.id is missing . And I made a few scripts like this one, and i think you should ORDER BY date . (°-Nayco, //\[EMAIL PROTECTED] v_/_

[PHP] FTP Chron Mysql and PHP

2001-09-12 Thread Wade Berlin
I'm looking for a way to automatically ftp a tab-delimited text file from a private ftp location and update my Mysql table every 24 hours. I don't have root access to the php/mysql server. Anyone have an idea? Thanks, Wade Berlin, Backstreet Production Group Inc.

  1   2   >