[PHP] How to avoid submitting twice?

2001-01-17 Thread Chakravarthy K Sannedhi
hello all, I am having a form which contains a dropdown listbox and a submit button. The user will choose any number from 1 to 5 and hits the submit button. After this the data that he had selected (1,2,3,4 or 5) enters into a mysql database(this data enters into the row with the latest userid)

[PHP] phpwebhosting.com

2001-01-17 Thread Matt \TrollBoy\ Wiseman
ANyone heard anything about these guys? They seem like a godsend, but anyone had any experience with them? Matt "Trollboy" Wiseman www.shoggoth.net/trollboy/trollboy.jpg [EMAIL PROTECTED] "I wish the world had one throat!!" -Al Bundy -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] how reliable is Windows2000 / php ?

2001-01-17 Thread John Guynn
I run W2K with Apache as my webserver, MySQL as a service, and PHP as a CGI (I think...far from an expert in these matters) as a testing platform before I upload my code to a live Linux Apache webserver. The W2K box is my workstation and runs MS Office, Eudora Pro, PhotoShop, and other "normal"

[PHP] PHP not working on Win95/Apache

2001-01-17 Thread Phil Scopes
I am trying to run PHP in Windows '95 with Apache server. I followed all the instructions in the installation doc, including editting the Apache and PHP configuration files, and putting the PHP.INI file in my Windows directory, and when I try to run a PHP file, I just see everything from the

[PHP] Weird nested while loop problem

2001-01-17 Thread Maurice Rickard
In my attempt to simulate array_intersect in PHP3, I tried nesting while statements. While traversing one array to display checkboxes, I wanted to loop through another array, testing to see if any of the values in it match the current value in the outer while loop. What I'm getting is that

[PHP] Rounding a number up if the number is anything more than a whole number

2001-01-17 Thread Brandon Orther
Hello, I am doing a math function where I divide one number by another. I want it to give me a whole number though, and if it is anything above a number I want it to go to the next one up. Example: 4.0001 would equal 5 3.98 would equal 4 11.023 would equal 12 I hope you understand what

Re: [PHP] Weird nested while loop problem

2001-01-17 Thread Darryl Friesen
What I'm getting is that the inner while loop executes on the first execution of the outer while, and then not at all. How would I get it to execute each time? Coming from a perl background, I got stuck there too when I started using PHP. PHP has this odd notion of an array pointer. After

[PHP] Mailto: tag, how do I insert line breaks..?

2001-01-17 Thread David Bouw
Hi, I have a non PHP questions which probably doesn't fit in this mailling lists, but I have a feeling that someone can help me because it is very HTML related. I was busy making a small piece of PHP echo code which generates a link which enables you to click this and startup your email

Re: [PHP] Rounding a number up if the number is anything more thana whole number

2001-01-17 Thread Ignacio Vazquez-Abrams
On Mon, 17 Jan 2000, Brandon Orther wrote: Hello, I am doing a math function where I divide one number by another. I want it to give me a whole number though, and if it is anything above a number I want it to go to the next one up. Example: 4.0001 would equal 5 3.98 would equal 4

RE: [PHP] phpwebhosting.com

2001-01-17 Thread John Guynn
IF (notice the CAPITAL IF) they have fixed their system stability problems AND their customer service (or lack thereof) they would be a great service. At one time I was web master for two domains hosted by them (performanceamstyle.com and felineguide.com...performanceamstyle.com is still hosted

Re: [PHP] problem using flock()

2001-01-17 Thread 10,000 Screaming Monkeys
On 01/13, jeremy brand rearranged the electrons to read: Hello 10,000 Screaming Monkeys, (Sorry, I couldn't resist!) 's alright. That's what it's there for. ;) You should test the return value of flock(), not just run it. It is designed to tell you whether or not something is safe to do,

Re: [PHP] Mailto: tag, how do I insert line breaks..?

2001-01-17 Thread 10,000 Screaming Monkeys
On 01/17, David Bouw rearranged the electrons to read: Now here the non-PHP questions.. I searched everywhere, but how can I get line breaks inserted IN the email program..?? After the 'Dear $name,' part I would like to have 2 line breaks.. Then after the We would like to inform you...

Re: [PHP] Search Engine submittal and PHP

2001-01-17 Thread 10,000 Screaming Monkeys
On 01/17, Shane McBride rearranged the electrons to read: Does anyone know if this affects the way a search engine crawls a site? I have several sites that are very successful, but this site does not even show up on the search engines. It shouldn't. I have a few sites that use .php files

[PHP] Homepage

2001-01-17 Thread S Bey
Just a small (and hopefully easy) question. Is there a PHP equivalent of index.html? I want to be able to go straight to a PHP script without the user specifying the filename. Thanks, Steve. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] Homepage

2001-01-17 Thread Alexander Wagner
S Bey wrote: Just a small (and hopefully easy) question. Is there a PHP equivalent of index.html? I want to be able to go straight to a PHP script without the user specifying the filename. This is not a PHP-issue, its just a matter of how your webserver is configured. With apache, you just

Re: [PHP] Homepage

2001-01-17 Thread 10,000 Screaming Monkeys
On 01/17, S Bey rearranged the electrons to read: Just a small (and hopefully easy) question. Is there a PHP equivalent of index.html? I want to be able to go straight to a PHP script without the user specifying the filename. It's up to the server to decide what it will look for instead of

RE: [PHP] Homepage

2001-01-17 Thread jeremy
Actually, You need to set this up in your httpd.conf file (if you're using apache). look for this line in your httpd.conf -[cut]- DirectoryIndex index.html index.php --[/cut] and if index.php isn't listed there, then add it. --jeremy -- Jeremy Kelley [EMAIL

[PHP] Ver3.0 Includes

2001-01-17 Thread Karl J. Stubsjoen
Are includes supported in ver 3.0? I'm having troubles with my includes. Here is the include (after this evening we will ver 4.0): include ($DOCUMENT_ROOT . "/gophp/Main.php"); Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] Hyperlink?

2001-01-17 Thread Wee Chua
Hi all, Could anyone tell me how to show a hyperlink without underline, just regular text which contains link. Thanks. regards Calvin Chua Systems Analyst InterClean Equipment, Inc. 734-975-2967 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] Hyperlink?

2001-01-17 Thread Kurth Bemis
At 04:42 PM 1/17/2001, Wee Chua wrote: their defined in style sheets. Point your browser to www.w3c.org for more information ~kurth Hi all, Could anyone tell me how to show a hyperlink without underline, just regular text which contains link. Thanks. regards Calvin Chua Systems Analyst

Re: [PHP] Mailto: tag, how do I insert line breaks..?

2001-01-17 Thread Ignacio Vazquez-Abrams
On Wed, 17 Jan 2001, David Bouw wrote: Hi, I have a non PHP questions which probably doesn't fit in this mailling lists, but I have a feeling that someone can help me because it is very HTML related. I was busy making a small piece of PHP echo code which generates a link which enables

Re: [PHP] Homepage

2001-01-17 Thread Romulo Roberto Pereira
what you can do also is using a HTTP header to redirect the user automatically to the index.php: the head of index.html could look like this: html head titleUntitled Document/title meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" meta http-equiv="refresh"

RE: [PHP] Hyperlink?

2001-01-17 Thread Paquin, Dominique
Make yourself a style sheet file with something like this in the content: ""text-decoration: none "" will say to the html not to show the inderscore bellow the link. A.LinkMain { font-family: Arial, Helvetica, sans-serif; font-size: 9pt; font-style: normal; line-height: normal; font-weight:

Re: [PHP] Weird nested while loop problem

2001-01-17 Thread Rasmus Lerdorf
What I'm getting is that the inner while loop executes on the first execution of the outer while, and then not at all. How would I get it to execute each time? Coming from a perl background, I got stuck there too when I started using PHP. PHP has this odd notion of an array pointer.

[PHP] Strange pdf function error?

2001-01-17 Thread Leonard T. Harris
I get this error: br bFatal error/b: Internal pdflib error: Wrong order of function calls (PDF_open_mem) in b/home/httpd/html/test/test.pdftest2.php/b on line b5/bbr when I run this code ?php header ("Content-type: application/pdf"); $pdf = pdf_open(); pdf_set_info($pdf, "Subject",

Re: [PHP] Weird nested while loop problem

2001-01-17 Thread Maurice Rickard
Thanks! This is starting to make sense...although when I try to reset what I thought was my array, I get the "Variable passed to reset() is not an array or object" error message. Here's the relevant code: $relationsquery = "select * from relations where childtype='$childtype' and

Re: [PHP] Weird nested while loop problem

2001-01-17 Thread Darryl Friesen
$relationsresult = mysql_query($relationsquery) or die(mysql_error()); while ($relationsrow = mysql_fetch_array($relationsresult)) { $thischild = $relationsrow["childsku"]; if ($thevalue == $thischild) { echo " checked"; } } // end while for relations loop reset($relationsresult);

Re: [PHP] Weird nested while loop problem

2001-01-17 Thread Ignacio Vazquez-Abrams
On Wed, 17 Jan 2001, Maurice Rickard wrote: Thanks! This is starting to make sense...although when I try to reset what I thought was my array, I get the "Variable passed to reset() is not an array or object" error message. Here's the relevant code: $relationsquery = "select * from

Re: [PHP] Weird nested while loop problem

2001-01-17 Thread Maurice Rickard
At 4:22 PM -0600 1/17/01, Darryl Friesen wrote: $relationsresult = mysql_query($relationsquery) or die(mysql_error()); while ($relationsrow = mysql_fetch_array($relationsresult)) { $thischild = $relationsrow["childsku"]; if ($thevalue == $thischild) { echo " checked"; } } // end

[PHP] Register globals when option is turned on

2001-01-17 Thread Carsten Gehling
Is there a way to programatically enable the register_globals option for a php-script? For certain reasons I have the register_globals option set to "Off". However, phpMyAdmin will not work unless it is set to "On" therefore, I thought of making a check in the "config.inc.php" if the option is

Re: [PHP] Weird nested while loop problem

2001-01-17 Thread Darryl Friesen
Getting off topic maybe so I'll keep it short. The array pointer can be pretty useful. True, but unexpected for the perl programmer/novice PHP geek. ie. give me the second last element of an array: This can be done in perl ("standard" arrays) with $array[@array-2] Or have it tell you

Re: [PHP] Register globals when option is turned on

2001-01-17 Thread Ignacio Vazquez-Abrams
On Wed, 17 Jan 2001, Carsten Gehling wrote: Is there a way to programatically enable the register_globals option for a php-script? For certain reasons I have the register_globals option set to "Off". However, phpMyAdmin will not work unless it is set to "On" therefore, I thought of making

Re: [PHP] Strange pdf function error?

2001-01-17 Thread Jani Taskinen
On Wed, 17 Jan 2001, Leonard T. Harris wrote: I get this error: br bFatal error/b: Internal pdflib error: Wrong order of function calls (PDF_open_mem) in b/home/httpd/html/test/test.pdftest2.php/b on line b5/bbr There was a bug in PDFLIB 3.03. You can find the patch for this from

Re: [PHP] Weird nested while loop problem

2001-01-17 Thread Maurice Rickard
At 5:22 PM -0500 1/17/01, Ignacio Vazquez-Abrams wrote: Um, no. $relationsresult isn't an array, it's a MySQL result resource. Use mysql_data_seek() instead. Ah! I get it! mysql_data_seek($relationsresult,0); does what I need it to do. Thanks, everyone! -Maurice -- Maurice

[PHP] Levels of Access

2001-01-17 Thread Abe
Hey Guys, I wonder if anyone can shed light... I have a system that internal users access - I have separated access levels into 1, 2, 3 etc. So if you have access 1 you can view certain things - If you are 2 then you can view more or other things. However the problem arises when someone in

[PHP-CVS] cvs: functable /images flag_hk.gif

2001-01-17 Thread Hartmut Holzgraefe
hholzgraWed Jan 17 13:11:02 2001 EDT Added files: /functable/images flag_hk.gif Log: added flag for hk translation -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP] Levels of Access

2001-01-17 Thread Ignacio Vazquez-Abrams
On Wed, 17 Jan 2001, Abe wrote: Hey Guys, I wonder if anyone can shed light... I have a system that internal users access - I have separated access levels into 1, 2, 3 etc. So if you have access 1 you can view certain things - If you are 2 then you can view more or other things.

RE: [PHP] Levels of Access

2001-01-17 Thread Jason Murray
Is there a sensible standard that is used to have levels of access but special people can access certain higher level functions.? I've seen a (rather good, I might add) permissions structure that followed a pattern like a unix filesystem. /general /users /products /sales /marketing /admin

Re: [PHP] Levels of Access

2001-01-17 Thread Josh G
Sounds good, I for one would like to see it. Can it revoke permissions? Can I have access to all of /admin but no access to /admin/delete ?? Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to...

RE: [PHP] Levels of Access

2001-01-17 Thread Javier Muniz
Just a side note: A very nice way to do this is using bitwise operators to store all your access information into one int This is handy for saving space in databases, and bitwise operations should be incredibly fast compared to string comparisons. Cheers, Javier -Original Message-

Re: [PHP] LDAP access to MS Exchange server

2001-01-17 Thread Ignacio Vazquez-Abrams
On Wed, 17 Jan 2001, Jonathan Coker wrote: Hello, I am trying to get information from an exchange server and LDAP looks like my best choice. I have never used LDAP before but it appeared to be fairly straitforward. I installed the OpenLDAP software on a Linux system running PHP 4.0.4

[PHP] PHP locking up

2001-01-17 Thread Phil Scopes
I have installed PHP 4.0 with Apache 1.3 under Windows '95. When I run a PHP script, even the simplest script, the browser just sits there and never displays any data. Is there anything I might be doing wrong? I'm sure the scripts are valid, because I got them off sample code sites (although

RE: [PHP] PHP locking up

2001-01-17 Thread Cal Evans
try a blank page with ?PHP echo(phpinfo()); ? as the only line. Does that work? Cal http://www.calevans.com -Original Message- From: Phil Scopes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 5:01 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP locking up I have

Re: [PHP] phpwebhosting.com

2001-01-17 Thread Toby Butzon
125 users at $10 per month, is a maximum revenue of $1,250 per month per server. From that meager revenue, they are able to provide their customers with an OC-12. I would like to meet the genius who is able to pull that financial rabbit out of a hat! ...and one machine is chewing up a

Re: [PHP] Levels of Access

2001-01-17 Thread Chris Aitken
At 10:36 PM 17/01/2001, you wrote: Hey Guys, I wonder if anyone can shed light... I have a system that internal users access - I have separated access levels into 1, 2, 3 etc. So if you have access 1 you can view certain things - If you are 2 then you can view more or other things. However

[PHP] mysql_fetch_row() and mysql_fetch_array()?

2001-01-17 Thread Jimmy Bäckström
Yo! I am wondering what the difference is between mysql_fetch_array and mysql_fetch_row. I tried using this code: $result = query("SELECT * FROM index1"); while ($row = mysql_fetch_row($result)) {... but $row[] does not contain any data, but when I changed it to: $row =

Re: [PHP] phpwebhosting.com

2001-01-17 Thread Egan
On Wed, 17 Jan 2001 18:04:16 -0500, "Toby Butzon" [EMAIL PROTECTED] wrote: 125 users at $10 per month, is a maximum revenue of $1,250 per month per server. From that meager revenue, they are able to provide their customers with an OC-12. I would like to meet the genius who is able to pull

RE: [PHP] phpwebhosting.com

2001-01-17 Thread John Guynn
From my experience with them they only have one host serving their customers. John Guynn This email brought to you by RFCs 821 and 1225. -Original Message- From: Toby Butzon [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 5:04 PM To: Egan; [EMAIL PROTECTED] Subject: Re:

Re: [PHP] ? PHP vs. ?

2001-01-17 Thread Rasmus Lerdorf
You know, this means that ALL of my hundreds of pages over multiple sites would break. That's really sad. It won't happen. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

Re: [PHP] mysql_fetch_row() and mysql_fetch_array()?

2001-01-17 Thread Ignacio Vazquez-Abrams
On Thu, 18 Jan 2001, Jimmy Bckstrm wrote: Yo! I am wondering what the difference is between mysql_fetch_array and mysql_fetch_row. I tried using this code: $result = query("SELECT * FROM index1"); while ($row = mysql_fetch_row($result)) {... but $row[] does not contain any data, but when

Re: [PHP] phpwebhosting.com

2001-01-17 Thread Leonard T. Harris
But even if they had 100 servers, have you priced an OC-12 lately? No I haven't. Can you enlighten me? -- 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:

[PHP] Sub Newbie Question On Error Message

2001-01-17 Thread Dave Stewart
Hi, We have installed PHP pretty much to do one thing, which is to get data from our head office website and place it on our club site. We need to have a message saying something like "The Results are not available until after the event". I can supress the error messages by adding @ before the

Re: [PHP] phpwebhosting.com

2001-01-17 Thread Egan
On Wed, 17 Jan 2001 18:24:28 -0500, "Leonard T. Harris" [EMAIL PROTECTED] wrote: But even if they had 100 servers, have you priced an OC-12 lately? No I haven't. Can you enlighten me? We're on an OC-12 too. But we don't imply that we have it all to ourselves. Very few hosting providers, if

RE: [PHP] phpwebhosting.com

2001-01-17 Thread Jason Murray
But even if they had 100 servers, have you priced an OC-12 lately? Actually, isn't it possible / more likely that they're running one server cohosted at an ISP with an OC-12 link? Jason -- Jason Murray [EMAIL PROTECTED] Web Design Team, Melbourne IT Fetch the comfy chair! -- PHP General

Re: [PHP] phpwebhosting.com

2001-01-17 Thread Egan
On Thu, 18 Jan 2001 10:50:24 +1100, Jason Murray [EMAIL PROTECTED] wrote: But even if they had 100 servers, have you priced an OC-12 lately? Actually, isn't it possible / more likely that they're running one server cohosted at an ISP with an OC-12 link? Yes. But the few ISPs who actually

Re: [PHP] phpwebhosting.com

2001-01-17 Thread Ken
have you priced an OC-12 lately? No I haven't. Can you enlighten me? I was curious :) http://gometanet.com/connect/fiber.htm OC12 622 Mb Monthly Fee $550,000 Setup Fee call (prolly between 10k and 20k) I'll have to ask my wife first... _Ken At 06:24 PM 1/17/01 -0500, you wrote: But

[PHP] String to Variable converstion

2001-01-17 Thread Paul Cohen
Hello all, I am trying to build an IRR calculator using PHP. The number of cash flow streams I will have at any time will vary, so I am using a loop to build the formula. Then I am iterating to solve the equation and output the solution. As most of you know, I am solving the following for r:

Re: [PHP] phpwebhosting.com

2001-01-17 Thread Egan
On Wed, 17 Jan 2001 16:13:26 -0800, Ken [EMAIL PROTECTED] wrote: http://gometanet.com/connect/fiber.htm OC12 622 Mb Monthly Fee $550,000 Setup Fee call (prolly between 10k and 20k) And if you walk in off the street and place an order, expect a much larger deposit than 10k or 20k, to cover

Re: [PHP] Sub Newbie Question On Error Message

2001-01-17 Thread Dave Stewart
Yep, that worked a treat thanks. All those danged those brackets are what keep tripping me up. The fog is lifting :-) I'll now go back to lurking and see what else I can learn. Regards, Dave - Original Message - From: Toby Butzon [EMAIL PROTECTED] To: Dave Stewart [EMAIL PROTECTED];

[PHP] Extracting Data from a URL output

2001-01-17 Thread Chris Aitken
I have a bit of a question which ive tried to look into, but I cant seem to find the right commands to check into or what the best method of attack it. Basically, I want to grab a URLs data, make the data a string (which im doing with fopen and fread). But now I have the entire html as a

[PHP] Grabbing referring keywords.....

2001-01-17 Thread Dallas Kropka
Ok, I need either a tutorial or someone who has done so in the past to tell me how to do this I want to log and reference the key words used to find my site from referring search engines... like so: AltaVista: 211 3d studio max tutorials 81 body jewelry

Re: [PHP] How to escape from a function?

2001-01-17 Thread Zenith
Thanks very much.^^ ""Zenith"" [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó 942grb$ted$[EMAIL PROTECTED]">news:942grb$ted$[EMAIL PROTECTED]... ... may be I have use a wrong subject, but I can't think a more suitable one sorry first! say, I have a function like this function foo() { babababa... /*at

RE: [PHP] String to Variable converstion

2001-01-17 Thread Cal Evans
try: http://www.zend.com/manual/function.eval.php Cal http://www.calevans.com -Original Message- From: Paul Cohen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 6:14 PM To: [EMAIL PROTECTED] Subject: [PHP] String to Variable converstion Hello all, I am trying to build

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

2001-01-17 Thread Zeev Suraski
zeevWed Jan 17 16:43:25 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: Add Alex and Bill to the Java dirs PR: Submitted by: Reviewed by: Obtained from: Index: CVSROOT/avail diff -u CVSROOT/avail:1.44 CVSROOT/avail:1.45 ---

Re: [PHP] Session, register_globals, $HTTP_SESSION_VARS???

2001-01-17 Thread Teodor Cimpoesu
Hi Andrew! On Wed, 17 Jan 2001, Andrew Sitnikov wrote: Hello , sess.php ? $var_name = 'TEST_VAR'; session_register($var_name); if (isset($HTTP_SESSION_VARS[$var_name])){ $HTTP_SESSION_VARS[$var_name] ++; }else{ $HTTP_SESSION_VARS[$var_name] = 0; } echo

Re: [PHP] Ethics question...

2001-01-17 Thread Rasmus Lerdorf
There are no restrictions on that. In fact the license on PHP is explicitly not the GPL for this very purpose. As for restricting the demo. I would suggest restricting it via a license. Any serious customer is not going to violate a license in order to save a couple of hundred bucks. -Rasmus

RE: [PHP] Ethics question...

2001-01-17 Thread Maxim Maletsky
a customer like Microsoft, Morgan-Stanley, Amazon.com.. yes, but a new start-up that thinks: "when we'll grow we'll buy something cooler" will crack your soft down (or will ignore your license) ... I've seen it happening so many times... Cheers, Maxim Maletsky -Original Message- From:

Re: [PHP] Ethics question...

2001-01-17 Thread jeremy brand
Soo true. But why would Microsoft be using PHP? =D Why would Microsoft be using Solaris, or Linux even? (hint, the same reason -- their stuff works less good). :) Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]

RE: [PHP] Ethics question...

2001-01-17 Thread Rasmus Lerdorf
a customer like Microsoft, Morgan-Stanley, Amazon.com.. yes, but a new start-up that thinks: "when we'll grow we'll buy something cooler" will crack your soft down (or will ignore your license) ... I've seen it happening so many times... So what? They'll do that anyway unless you spend a

RE: [PHP] Ethics question...

2001-01-17 Thread Maxim Maletsky
Well, I can agree with that too.. but something you will always have to give them, something like support/update of the software, allow them to do something they wouldn't like to do without the license etc... It is a VERY HARD thing writing a RIGHT license... we (maybe except you, Rasmus)

[PHP] identifying clicked link?

2001-01-17 Thread andrew
How can I pass an anchor tag attribute to a page? e.g. If I want to echo "1" on page_two: page_one.php contains: a href="page_two.php" ? $id="1"?click/a page_two.php contains: ? echo($id); ? but page_two is coming up blank after a delay... what I am doing wrong? thanks, andrew -- PHP

Re: [PHP] Ethics question...

2001-01-17 Thread Egan
On Wed, 17 Jan 2001 20:59:41 -0600, "Scott Gerhardt" [EMAIL PROTECTED] wrote: If your client paid you to develop the E-Commerce system they would typically own all rights to it unless otherwise agreed upon. I don't know what country you are speaking of, but in the U.S., that view is a commonly

Re: [PHP] identifying clicked link?

2001-01-17 Thread Philip Olson
Andrew, Close :-) a href='page_two.php?id=1'click/a OR to complicate matters, add multiple names/values : a href='page_two.php?id=1foo=stuffblah=shoes'click/a Where on page_two.php if you had : echo "$id $foo $blah"; Will print the following : 1 stuff shoes Note the ?

Re: [PHP] Merging PHPLIB into PEAR

2001-01-17 Thread [EMAIL PROTECTED]
On Wed, 17 Jan 2001, Alex Black wrote: what are the plans in PEAR for dependencies on the pear components? Also what will be the implications for sites/developers already using PHPlib7.2c This move has really got me excited BUT also a bit aprehensive A clarification would be appreciated!

RE: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-17 Thread Gerald Buckmaster
James, I too have used various WYSIWYG html coders, and most of the time, I found my self hampered by application limitations. It is a fair way to study code generated...but that method of learning can be dangerous as well. I also find I have quicker response/fixes to bugs in handcode. Now I

Re: [PHP] Merging PHPLIB into PEAR

2001-01-17 Thread Philip Olson
A discussion can be seen here : http://marc.theaimsgroup.com/?l=php-pearm=97975277420628w=2 Where the pearPosse have been and are discussing the issue. Looks interesting. Philip On Thu, 18 Jan 2001, [EMAIL PROTECTED] wrote: On Wed, 17 Jan 2001, Alex Black wrote: what are the

[PHP] preg_replace pain!

2001-01-17 Thread Nicholas Pappas
I was hoping someone could help me with this regular expression... $pattern = "/\[b\](.*)\[\/b\]/Ui"; $message = preg_replace($pattern, "B\\1/B", $message); The above works for: [b]bold text[/b] But does not work for: [b]bold text

Re: [PHP] A little problem

2001-01-17 Thread Brian Clark
Hello Emiliano, (EM == "Emiliano Marmonti") [EMAIL PROTECTED] writes: EM I have a little problem: Sometimes when you invokes some .php EM page, appears "could not redefine function...". It looks like a Try: ?php if(! defined('__FOO__')): define('__FOO__', 1); /* functions */ endif;

Re: [PHP] Apache .htaccess Help (OT)

2001-01-17 Thread Brian Clark
Hello Website4S, (Wac == "[EMAIL PROTECTED]") [EMAIL PROTECTED] writes: Wac Sorry this is off topic but I just can`t find anywhere with Wac reliable information to help me get my .htaccess working on my Wac server. I have followed many tutorials and none of them give me a Wac working password

Re: [PHP] Cookies still store old value(Help!!)

2001-01-17 Thread Brian Clark
Hello Hendry, (HS == "Hendry Sumilo") [EMAIL PROTECTED] writes: HS When User "A" enter ,the cookies will store User "A" name,when he HS enters the lecturer page,he will be directed to login page HS again(because he is not allowed to enter lecturer page) and so do HS User "B". BUT THE PROBLEM

Re: [PHP] php 4.0.5.dev will not read php.ini on NT

2001-01-17 Thread Brian Clark
Hello Robert, (R == "Robert") [EMAIL PROTECTED] writes: R PHP 4.0.5.dev I installed it on my Windows 2000 Pro machine with R IIS and MySQL and it works like a champ I installed it on my R Windows NT Server with IIS and MSSQL and it will not read the R php.ini file I put it in the following

Re: [PHP] PHP not working on Win95/Apache

2001-01-17 Thread Brian Clark
Hello Phil, (PS == "Phil Scopes") [EMAIL PROTECTED] writes: PS I am trying to run PHP in Windows '95 with Apache server. I followed all PS the instructions in the installation doc, including editting the Apache and PS PHP configuration files, and putting the PHP.INI file in my Windows PS

Re: [PHP] Session and Cookies

2001-01-17 Thread Brian Clark
Hello Hendry, (HS == "Hendry Sumilo") [EMAIL PROTECTED] writes: HS Can someone tell me how to use Session Object because when the HS user login the page I want to store the login,pass,and type_login HS so that I can pass this throughout the process. I found that i can HS store that by using

php-general Digest 18 Jan 2001 03:58:48 -0000 Issue 461

2001-01-17 Thread php-general-digest-help
php-general Digest 18 Jan 2001 03:58:48 - Issue 461 Topics (messages 35050 through 35248): Re: XML, what is that supposed to do? 35050 by: Chris Lee Re: How can I get a random number 35051 by: Chris Lee Hello 35052 by: Karl J. Stubsjoen 35053 by: Augusto

[PHP] Something cool I found in Wired,

2001-01-17 Thread Dallas Kropka
Ok, I know that this is PHP, but I thought that allot of the freelancers out there could find it as appealing as I do. In the current issue of Wired... page 163, there is a new product featured called Groove found at www.groove.net and while only for windows at the moment it allows

Re: [PHP] APC version 1.0.4 released

2001-01-17 Thread The Doctor
On Wed, Jan 17, 2001 at 07:00:12PM -0500, Daniel Cowgill wrote: Fixes this time around: * class hierarchies more than two levels deep should work now :) * should compile cleanly under PHP 4.0.2 through 4.0.4pl1 Dan Where do we get this?? -- PHP General Mailing List

[PHP] archiving php lists ?

2001-01-17 Thread Mukul Sabharwal
hi, how do sites like http://marc.theaimsgroup.com, make mailing list indexes, like even phpbuilder and zend's site which archive the list. How do they index all the message ? thanks. = To Find Out More About Me : http://mukul.tsx.org/ __

Re: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-17 Thread Hrishi
If you're still interested, try cooledit for linux/unix http://cooledit.sourceforge.net/ --- Yeah, there are more important things in life than money, but they won't go out with you if you don't have any. -- PHP General Mailing List

RE: [PHP] preg_replace pain!

2001-01-17 Thread Maxim Maletsky
maybe : $pattern = "/\[b\]([.\n]*)\[\/b\]/Ui";. have you tried it succesfully? P.S: I am not sure that \n in preg is a newline, you could also try this: $pattern = "/\[b\]([.".chr(10).chr(13)."]*)\[\/b\]/Ui";. one of these ... Cheers, Maxim Maletsky -Original Message-

[PHP] popen in safe_mode with pipe

2001-01-17 Thread Lic. Rodolfo Gonzalez Gonzalez
Hello, I need to encode some text using GPG in a PHP program. I've a class wich uses popen like this: //--- start --- // parameters to gpg omited... $command = "echo '$text' | gpg snip"; $fd = popen("$command","r") if (!$fd) { return -2; } $enc = ""; while (!feof($fd)) { $enc .=

[PHP] fast question about session_start

2001-01-17 Thread Romulo Roberto Pereira
Hello! Two scripts: first.php and second.php I am a little bit confused... since I session_start() in first.php, I will need to session_start() in second.php also? first.php ? session_start(); session_register ("data01"); header("Location: second.php") ? thank you, Rom

Re: [PHP] identifying clicked link?

2001-01-17 Thread Angus Mann
At 23:10 17/01/01 -0500, andrew wrote: How can I pass an anchor tag attribute to a page? e.g. If I want to echo "1" on page_two: page_one.php contains: a href="page_two.php" ? $id="1"?click/a All you're doing there is setting the variable id to "1". You're not even printing it.

[PHP] HTTP_POST??

2001-01-17 Thread Wade Halsey
Hi I have a while loop which populates rows in a table, in each row is a checkbox which has a unique name: tdinput type="checkbox" name="?php print $SkyAccNo;?" value="ON"/td On another page I want to output all the details in a specific table row, how do I check which checkbox has been

Re: [PHP] Ethics question...

2001-01-17 Thread Les Neste
What Egan wrote is very true. I speak with some knowledge -- having weathered a copyright violation suit based on the action of one of my employees -- and if you write it (as anything other than an employee) then you own it, 'it' being the source code and the program compiled from that source

RE: [PHP] Ethics question...

2001-01-17 Thread Dallas Kropka
Ok, The ethical question has been pounded to death... So Ill address the issue of the demo if you want a true demo, place a public copy on your own site. Allow the potential users to come in and mess with it. If it is truly good, you'll generate sales just from that... and until the Zend

Re: [PHP] Forking email out

2001-01-17 Thread Richard Lynch
Due to the sheer size of my mailing list, it would seems sensible to try streamlining the send -mailing script I run. In PERL I think the command to split the sending proccess was "fork", where the script launches a new command allowing the script to continue on while each person is emailed. Do

Re: [PHP] How can I download information (file) without standard save as dialog ??

2001-01-17 Thread Richard Lynch
"save as" dialog that will come up in all cases (you may have a workaround this problem). If the dialog is not shown up the download destination (directory) need to be passed to the server when the session is initialized so that the web browser knows where to save the information. Is

Re: [PHP] mysql error

2001-01-17 Thread Richard Lynch
mysql_select_db("jamesmc",$db); $result = mysql_query("SELECT * FROM comment WHERE pid='$poid' ORDER by cid desc",$db); $comm = mysql_fetch_array($result); This is in the FAQ, I think... Better re-read that. Start using or die() a lot: mysql_select_db("jamesmc",

Re: [PHP] session_start() and cache problem ...

2001-01-17 Thread Richard Lynch
The other website does use session_start(). A "HEAD / HTTP/1.0" gives I have the extra lines : Expires, Cache-Control, Pragama. I would like to get rid of those 3 lines : is it possible and how could I achieve that ? Probably by sending your own (blank) headers with those names. ?php

Re: [PHP] Images ??? ok,but...

2001-01-17 Thread Richard Lynch
I can see... I mean, the images appears, now, is it possible when uploading images, do a copy to a small file, ie I will have 2 files for each image, but with different sizes, where the small one is a small size of the original image...confused. This is because You can create a thumbnail on the

<    1   2   3   >