Re: [PHP] PGP

2002-04-28 Thread Richard Lynch
>On Sun, 28 Apr 2002, Richard Lynch wrote: >>>On Sat, 27 Apr 2002, Richard Lynch wrote: $test = escapeshellarg($cleartext); exec("cat $test | /usr/bin/pgpe -a -t -f -r '[EMAIL PROTECTED]' . . . ^Kb^Estdin^H^@^@^@ >>> >>>$cleartext is the actual text? What if you used '

Re: [PHP] lookin for a Menuing System...

2002-04-28 Thread David Freeman
On 29 Apr 2002 at 0:46, michael kimsal wrote: > Can someone point me to hardware that is still in active use that can't > handle javascript? Hardware? No. > Similarly, can someone point me to a company that specifically disables > javascript as 'corporate policy'? Back in 96-97, the 'no java

Re: [PHP] append line to text file HELP !!!

2002-04-28 Thread Richard Archer
At 1:28 AM -0400 29/4/02, eat pasta type fasta wrote: >you might also want to use this format to open file >$fp = fopen("your/path/goes/here", "a"); >$string_to_write = "$newmail" . "\n"; >fwrite($fp, $string_to_write); >fclose($fp); No point ignoring errors returned by functions. Errors are

Re: [PHP] lookin for a Menuing System...

2002-04-28 Thread Richard Archer
At 12:46 AM -0400 29/4/02, michael kimsal wrote: >Similarly, can someone point me to a company that specifically disables >javascript as 'corporate policy'? My company does this. It's the only way to surf without being inundated with pop(up|over|under) windows. I've heard (unconfirmed) that a co

Re: [PHP] lookin for a Menuing System...

2002-04-28 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jason Wong) wrote: > Konqueror is the only browser (that I've used) which supports per-site > javascript policy (deny, allow, disable pop-ups). iCab too. It allows suppression of various intrusive JS features on a global and per-host basis.

Re: [PHP] Redirecting

2002-04-28 Thread eat pasta type fasta
>> Seriously, I've tried using >> header("Location: http://www.php.net/";); >> but it returns an error saying that the headers are already set. this function will not work inside an html file or of you ECHO anything to the screen prior to its execution. An effective way to use it is as a page wh

Re: [PHP] Redirecting

2002-04-28 Thread Marius Ursache
put before your html code ... this should work. Liam MacKenzie a écrit : > Hey all, > > Just curious as to what the best way is to move someone off your site, apart > from bringing up a picture of male pornography... > > Seriously, I've tried using > header("Location: http://www.php.net/";);

Re: [PHP] append line to text file HELP !!!

2002-04-28 Thread eat pasta type fasta
check the read/write permissions in the folder the file is located in, they should be set to read/write/execute or th file will not be created, you might also want to use this format to open file $fp = fopen("your/path/goes/here", "a"); your code would look like this: _

Re: [PHP] lookin for a Menuing System...

2002-04-28 Thread Jason Wong
On Monday 29 April 2002 13:05, Martin Towell wrote: > > Konqueror is the only browser (that I've used) which supports per-site > > javascript policy (deny, allow, disable pop-ups). > > Actually, Opera support this too - one reason why I do a lot of my browsing > in Opera or Lynx, no pop-ups :) Is

Re: [PHP] Unable to Install PHP 4.2 into RH7.0/Apache 1.3

2002-04-28 Thread Jason Wong
On Monday 29 April 2002 12:15, Richard Emery wrote: > This created a stand-alone PHP binary which executes correctly from the > command line (I first moved the binary PHP to /usr/sbin). However, when I > execute PHP scripts from within Apache, it uses the older 4.0.1p12 version > which came from

Re: [PHP] lookin for a Menuing System...

2002-04-28 Thread Miguel Cruz
On Mon, 29 Apr 2002, Michael Kimsal wrote: > Miguel Cruz wrote: >> On Mon, 29 Apr 2002, michael kimsal wrote: >>> Can someone point me to hardware that is still in active use that >>> can't handle javascript? >> >> Palm Pilot >> Cell phones > > Those don't generally support HTML either, but some

RE: [PHP] lookin for a Menuing System...

2002-04-28 Thread Martin Towell
> Konqueror is the only browser (that I've used) which supports per-site > javascript policy (deny, allow, disable pop-ups). Actually, Opera support this too - one reason why I do a lot of my browsing in Opera or Lynx, no pop-ups :) -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] lookin for a Menuing System...

2002-04-28 Thread Michael Kimsal
Mark Charette wrote: >-Original Message- >From: michael kimsal [mailto:[EMAIL PROTECTED]] > > >Similarly, can someone point me to a company that specifically disables >javascript as 'corporate policy'? >Ford, General Motors, and Chrysler specifically disallow running of >JavaScript, Java,

Re: [PHP] lookin for a Menuing System...

2002-04-28 Thread Jason Wong
On Monday 29 April 2002 12:46, michael kimsal wrote: > Miguel Cruz wrote: > >>Do it in JavaScript, it works and it's client side so it will be > >>faster. > > > > But take care - using JavaScript for site navigation is tricky business. > > Some people don't use it, some people can't use it (not su

Re: [PHP] lookin for a Menuing System...

2002-04-28 Thread Justin French
on 29/04/02 2:46 PM, michael kimsal ([EMAIL PROTECTED]) wrote: > Can someone point me to hardware that is still in active use that can't > handle javascript? what about a text-to-speech system?? I also know that older pentiums and macs REALLY chug to get through the 100's or 1000's of line

Re: [PHP] lookin for a Menuing System...

2002-04-28 Thread Michael Kimsal
Miguel Cruz wrote: >On Mon, 29 Apr 2002, michael kimsal wrote: > > >>Miguel Cruz wrote: >> >> >>>But take care - using JavaScript for site navigation is tricky business. >>>Some people don't use it, some people can't use it (not supported by their >>>browsers / hardware / corporate policy

RE: [PHP] keymappings - PHP or MySQL?

2002-04-28 Thread Miguel Cruz
Next thing, I guess, would be to check the character encoding in use to display the character. Your browser might have a menu somewhere that tells you what it's using. 95 is the underscore in standard ASCII, after all. miguel On Mon, 29 Apr 2002, baldey_uk wrote: > Thanks for the suggestion Migu

RE: [PHP] keymappings - PHP or MySQL?

2002-04-28 Thread baldey_uk
Thanks for the suggestion Miguel, i tried it and got a result of 95 on both tests which is the underscore character. bizare Cheers Baldey_uk -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: 29 April 2002 05:27 To: baldey_uk Cc: Php-General Subject: Re: [PHP] keymapp

Re: [PHP] lookin for a Menuing System...

2002-04-28 Thread Miguel Cruz
On Mon, 29 Apr 2002, michael kimsal wrote: > Miguel Cruz wrote: >> But take care - using JavaScript for site navigation is tricky business. >> Some people don't use it, some people can't use it (not supported by their >> browsers / hardware / corporate policy), and search engines certainly >> w

RE: [PHP] lookin for a Menuing System...

2002-04-28 Thread Martin Towell
We have 1 or 2 clients that have js disabled because of "security" Also, I very often use Lynx (the text browser, not the game :) ) to browse the web. -Original Message- From: michael kimsal [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 2:46 PM To: [EMAIL PROTECTED] Subject: Re:

Re: [PHP] lookin for a Menuing System...

2002-04-28 Thread michael kimsal
Miguel Cruz wrote: >> >>Do it in JavaScript, it works and it's client side so it will be >>faster. > > > But take care - using JavaScript for site navigation is tricky business. > Some people don't use it, some people can't use it (not supported by their > browsers / hardware / corporate pol

RE: [PHP] Last time Append line to text file

2002-04-28 Thread Martin Towell
or you could code it like this: $file_pointer = fopen('/public_html/emails.txt', "a") if (!$file_pointer) exit; -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 2:34 PM To: Richard Emery Cc: [EMAIL PROTECTED] Subject: Re: [PHP]

Re: [PHP] lookin for a Menuing System...

2002-04-28 Thread Jason Wong
On Monday 29 April 2002 11:11, Dan wrote: > I could do this myself but I don't want to waist time writing something > that I could have just asked for.. > > what I need is a menuing system.. > > When link is clicked the sub-topics appear under the topic you just clicked > on.. > > e.g. if you wher

Re: [PHP] Last time Append line to text file

2002-04-28 Thread Miguel Cruz
On Sun, 28 Apr 2002, Richard Emery wrote: > The answer is: > $file_pointer = fopen('/public_html/emails.txt', "a") or exit; > > The " || " is a binary operation. You want "or", the logical operation. Yeah, Perl habit. But || is logical too (it's | that's binary), it just seems to result in

Re: [PHP] lookin for a Menuing System...

2002-04-28 Thread David Freeman
On 28 Apr 2002 at 23:03, Miguel Cruz wrote: > > Do it in JavaScript, it works and it's client side so it will be > > faster. > > But take care - using JavaScript for site navigation is tricky business. > Some people don't use it, some people can't use it (not supported by their > browsers / h

RE: [PHP] lookin for a Menuing System...

2002-04-28 Thread David Freeman
On 29 Apr 2002 at 14:05, Martin Towell wrote: > javascript should be easy enough to convert to php - thier language > constructs are basically the same. Sure, but that doesn't mean it's appropriate. A menu system done in php will have the advantage of being, from the browsers point of view, p

Re: [PHP] keymappings - PHP or MySQL?

2002-04-28 Thread Miguel Cruz
On Mon, 29 Apr 2002, baldey_uk wrote: > At the moment im getting a difference in keymappings between what is typed > into a field and what is stored in the database. I have an html form that > gets a text string called $email and this is inserted into a VARCHAR > database feild via php, the proble

Re: [PHP] Last time Append line to text file

2002-04-28 Thread Richard Emery
The answer is: $file_pointer = fopen('/public_html/emails.txt', "a") or exit; The " || " is a binary operation. You want "or", the logical operation. - Original Message - From: Rodrigo <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; 'Miguel Cruz' <[EMAIL PROTECTED]>; 'John Holmes' <[EMA

[PHP] keymappings - PHP or MySQL?

2002-04-28 Thread baldey_uk
Hi, At the moment im getting a difference in keymappings between what is typed into a field and what is stored in the database. I have an html form that gets a text string called $email and this is inserted into a VARCHAR database feild via php, the problem is when special characters are included

Re: [PHP] lookin for a Menuing System...

2002-04-28 Thread Richard Archer
At 3:11 PM +1200 29/4/02, Dan wrote: >what I need is a menuing system.. > >When link is clicked the sub-topics appear under the topic you just clicked >on.. PHPLIB contains a class that can do this. It's not as robust as the rest of PHPLIB, but it should serve as a good starting point for your

[PHP] Unable to Install PHP 4.2 into RH7.0/Apache 1.3

2002-04-28 Thread Richard Emery
I am unable to install PHP 4.2 functionality into my RH 7.0/Apache 1.3 environment. I downloaded the 4.2 source. The INSTALL file provides 2 options: DSO and static. I was unable to create the DSO version because the file "apxs" is nowhere to be found on my system. I should mention that I inst

RE: [PHP] lookin for a Menuing System...

2002-04-28 Thread Martin Towell
javascript should be easy enough to convert to php - thier language constructs are basically the same. I even found out, by accident, that you can have dollar signs ($) in front of javascript variables (in ie5.5 at least, haven't tried it in other browsers) -Original Message- From: Migu

Re: [PHP] lookin for a Menuing System...

2002-04-28 Thread Miguel Cruz
On Mon, 29 Apr 2002, David Freeman wrote: > On 29 Apr 2002 at 15:11, Dan wrote: >> what I need is a menuing system.. > >> Much like this JavaScript one... except I need it in PHP... >> http://www.dynamicdrive.com/dynamicindex1/navigate1.htm > > Umm, you want to have to reload a whole page just t

[PHP] Re: your mail

2002-04-28 Thread Miguel Cruz
On Mon, 29 Apr 2002, Rodrigo wrote: > Ok, but I'm trying the following code wich is basicaly the same Miguel > sent me and I still get the same message. > Please excuseme for being so repetitive but Í don't seem to see where is > the mistake, Sorry guys for the trouble. > > > $file_pointer

[PHP] Last time Append line to text file

2002-04-28 Thread Rodrigo
Ok, but I'm trying the following code wich is basicaly the same Miguel sent me and I still get the same message. Please excuseme for being so repetitive but Í don't seem to see where is the mistake, Sorry guys for the trouble. Warning: Supplied argument is not a valid File-Handle resource

Re: [PHP] append line to text file HELP !!!

2002-04-28 Thread David Freeman
On 29 Apr 2002 at 0:26, Rodrigo wrote: > Ok guys, this is the code and under it you can see what I get when I try > to submit the form. > > > $file_pointer=file('emails.txt','a') || exit; > $string_to_write = ("$newmail")."\n"; > $s=fopen($file_pointer,$string_to_write); > $s=fclose($fp); >

Re: [PHP] lookin for a Menuing System...

2002-04-28 Thread David Freeman
On 29 Apr 2002 at 15:11, Dan wrote: > what I need is a menuing system.. > Much like this JavaScript one... except I need it in PHP... > http://www.dynamicdrive.com/dynamicindex1/navigate1.htm Umm, you want to have to reload a whole page just to expand a navigation menu? Not real good use of r

Re: [PHP] redirection

2002-04-28 Thread David Freeman
On 28 Apr 2002 at 19:11, Norman Zhang wrote: > I want to set up a check that the page cannot be exacted by calling from > another page. E.g., members.php can only be excited if it called by > login.php. If your login page does some sort of authentication and then either sets a cookie or a sessi

RE: [PHP] append line to text file HELP !!!

2002-04-28 Thread John Holmes
Do you read the replies that were sent to you. Where did you get file() from and why are you using fopen() to write to a file?? You're lucky Miguel is such a nice guy and helping you out. ---John Holmes... > -Original Message- > From: Rodrigo [mailto:[EMAIL PROTECTED]] > Sent: Sunday, A

[PHP] Re: lookin for a Menuing System...

2002-04-28 Thread Javier
There are many Javascript menu editors. I think that's what you need. Dan wrote: > I could do this myself but I don't want to waist time writing something that > I could have just asked for.. > > what I need is a menuing system.. > > When link is clicked the sub-topics appear under the topic yo

RE: [PHP] PayPal: Instant Payment Notification

2002-04-28 Thread Chris Montgomery
Lauri, There are a couple links here that might help: http://www.paypalipn.com/scripts.html Chris Montgomery[EMAIL PROTECTED] Airtight Web Services http://www.airtightweb.com Web Development, Web Project Management, Software Sales 210-490-3249/888-745-7603 > -Original Message---

Re: [PHP] append line to text file HELP !!!

2002-04-28 Thread Miguel Cruz
On Mon, 29 Apr 2002, Rodrigo wrote: > Ok guys, this is the code and under it you can see what I get when I try > to submit the form. > > $file_pointer=file('emails.txt','a') || exit; > $string_to_write = ("$newmail")."\n"; > $s=fopen($file_pointer,$string_to_write); > $s=fclose($fp); > ?> Whe

[PHP] keymappings - PHP or MySQL?

2002-04-28 Thread baldey_uk
Hi, At the moment im getting a difference in keymappings between what is typed into a field and what is stored in the database. I have an html form that gets a text string called $email and this is inserted into a VARCHAR database feild via php, the problem is when special characters are include

[PHP] lookin for a Menuing System...

2002-04-28 Thread Dan
I could do this myself but I don't want to waist time writing something that I could have just asked for.. what I need is a menuing system.. When link is clicked the sub-topics appear under the topic you just clicked on.. e.g. if you where to click on Contact. Contact --becomes: Contact En

[PHP] append line to text file HELP !!!

2002-04-28 Thread Rodrigo
Ok guys, this is the code and under it you can see what I get when I try to submit the form. Warning: Supplied argument is not a valid File-Handle resource in /home/restricted/home/h4ck3r/public_html/write.php on line 4 Warning: Supplied argument is not a valid File-Handle resource in /

RE: [PHP] Append a line to a Text File

2002-04-28 Thread John Holmes
How about you send us your code, because you're the one doing something wrong. "a" is what you want, if it's not working, then there is an error in your code or logic. ---John Holmes... > -Original Message- > From: Rodrigo [mailto:[EMAIL PROTECTED]] > Sent: Sunday, April 28, 2002 7:50 P

Re: [PHP] Append a line to a Text File

2002-04-28 Thread Miguel Cruz
On Sun, 28 Apr 2002, Rodrigo wrote: > I still need to know how to do it, since the "a+" or the "a" give me > problems... What kind of problems? Do you get an error message that you can paste into a message for us to see? Does the file get corrupted in some specific way that you can describe? Does

[PHP] Append a line to a Text File

2002-04-28 Thread Rodrigo
I still need to know how to do it, since the "a+" or the "a" give me problems... I need to be able to add a line at the end of a text file thru sending the information (and by this I mean the e-mail to be writen) thru a form, and this new information should be added to the file at the end of it wi

Re: [PHP] redirection

2002-04-28 Thread Jason Wong
On Monday 29 April 2002 10:11, Norman Zhang wrote: > Hi, > > I want to set up a check that the page cannot be exacted by calling from > another page. E.g., members.php can only be excited if it called by > login.php. > > So I set > > if (eregi("members.php", $_SERVER['PHP_SELF'])) Header("Location

Re: [PHP] register_globals=Off Question

2002-04-28 Thread Steve Buehler
Looks like you forgot your ticks ' around the PHP_SELF. If I am correct, it should be $_SERVER['PHP_SELF']. Either way, you might want to try this. Somebody else posted it before and I have been using it so that no matter what version of PHP my program runs on, it should work. if (isset($_SER

RE: [PHP] Date and Time

2002-04-28 Thread John Holmes
What version of PHP, OS, web server, etc are you running? Is that the exact code you used? Did you try it in a file all by itself and did it return the same result? ---John Holmes... > -Original Message- > From: baldey_uk [mailto:[EMAIL PROTECTED]] > Sent: Sunday, April 28, 2002 6:22 PM

[PHP] redirection

2002-04-28 Thread Norman Zhang
Hi, I want to set up a check that the page cannot be exacted by calling from another page. E.g., members.php can only be excited if it called by login.php. So I set if (eregi("members.php", $_SERVER['PHP_SELF'])) Header("Location, login.php"); at the very top of members.php. But I am being red

[PHP] Date and Time

2002-04-28 Thread baldey_uk
Hi all, Anyone know any reason that the date function would return 2am in the morning as 102 if i use it in the following manner? $time=date("H:i:s"); print $time; this outputs 102:14:51 instead of 02:14:51, anyone know where the 1 comes from? and why its there? Cheers From baldey_uk --

Re: Re[2]: [PHP] Re: Header question

2002-04-28 Thread Vins
in order to add a new line to a mail header you need not use '\n' you MUST use '\r\n' otherwise no headers will be sent. "Dean Ouellette" <[EMAIL PROTECTED]> wrote in message 001901c1ef06$697b3910$0200a8c0@yoda">news:001901c1ef06$697b3910$0200a8c0@yoda... > > Not sure what is happening. Still

Re: [PHP] Supplied argument is not a valid MySQL result resource

2002-04-28 Thread David Freeman
On 28 Apr 2002 at 15:14, Dan McCullough wrote: > What does that error mean? > > $result = mysql_query('select * from aannh_towns;'); > echo 'info stored'; > while ($query_data = mysql_fetch_array($result)) { > echo "", $query_data['town'], "", $query_data['town_id'], ""; } > ?> Means you

Re: [PHP] Append a line to a text file

2002-04-28 Thread Miguel Cruz
On Sun, 28 Apr 2002, Rodrigo wrote: > I need to add a email to the text file that is already written, but I > get the file writen over , so I always get only the last email send by > the form. > > What I need is a form that get the e-mail and it writes the email at the > end of a text file. www

[PHP] Re: Append a line to a text file

2002-04-28 Thread Vins
That is a dam good question LOL I would also love to know how2 append text to the END of a file. Vins "Rodrigo" <[EMAIL PROTECTED]> wrote in message 000f01c1ef08$debba1e0$6e48bbac@rodirgo">news:000f01c1ef08$debba1e0$6e48bbac@rodirgo... > I need to add a email to the text file that is already w

Re: [PHP] register_globals=Off Question

2002-04-28 Thread Miguel Cruz
On Sun, 28 Apr 2002, Kirk Babb wrote: > How do I use $PHP_SELF with register_globals off? I looked up the > documentation on php.net but haven't gotten this line of code to work: > > action='' miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

RE: [PHP] register_globals=Off Question

2002-04-28 Thread John Holmes
You are missing an ending quote to begin with. Either add it in and use braces, or remove the quotes. action = '' or... action = '' or... action = '' Adapt to your needs... ---John Holmes... > -Original Message- > From: Kirk Babb [mailto:[EMAIL PROTECTED]] > Sent: Sunday, April 28

[PHP] Re: Hey PHP PPL - Great Question !!!

2002-04-28 Thread Vins
For example: one form... - First name - last name - address - country - phone - email - mobile number After you click submit on the first page, it sends you to a preview data page where you can check all the data. instead of inserting tons of hidden input form fields and waist download ti

[PHP] Append a line to a text file

2002-04-28 Thread Rodrigo
I need to add a email to the text file that is already written, but I get the file writen over , so I always get only the last email send by the form. What I need is a form that get the e-mail and it writes the email at the end of a text file. Thanx, Rodrigo

[PHP] Re: Hey PHP PPL - Great Question !!!

2002-04-28 Thread Michael Kimsal
Vins wrote: > Session Data. > > What is the best. > to save in database, or to save as file ??? > > let me know. > > Cheerz > Vins > > Sorry Vins, It's not a great question. It's too dependant on what you need to do, what your development level is, and a host of other factors. Start with

RE: [PHP] Hey PHP PPL - Great Question !!!

2002-04-28 Thread John Holmes
Yes > -Original Message- > From: Vins [mailto:[EMAIL PROTECTED]] > Sent: Sunday, April 28, 2002 3:52 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Hey PHP PPL - Great Question !!! > > Session Data. > > What is the best. > to save in database, or to save as file ??? > > let me know. > >

[PHP] register_globals=Off Question

2002-04-28 Thread Kirk Babb
How do I use $PHP_SELF with register_globals off? I looked up the documentation on php.net but haven't gotten this line of code to work: I get this error instead: [28-Apr-2002 16:33:31] PHP Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in - on line 140 wha

[PHP] Hey PHP PPL - Great Question !!!

2002-04-28 Thread Vins
Session Data. What is the best. to save in database, or to save as file ??? let me know. Cheerz Vins -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: Re[2]: [PHP] Re: Header question

2002-04-28 Thread Miguel Cruz
You need a closing quote after $EmailSender... $EmailSender"); miguel On Sun, 28 Apr 2002, Dean Ouellette wrote: > Not sure what is happening. Still getting same error. As soon as I > remove > \nX-Mailer: PHP/".phpversion() > I get the error message > > > > __

Re: [PHP] Supplied argument is not a valid MySQL result resource

2002-04-28 Thread Miguel Cruz
On Sun, 28 Apr 2002, Dan McCullough wrote: > What does that error mean? > > $result = mysql_query('select * from aannh_towns;'); > echo 'info stored'; > while ($query_data = mysql_fetch_array($result)) { > echo "", $query_data['town'], "", $query_data['town_id'], ""; } > ?> You'd know if y

RE: Re[2]: [PHP] Re: Header question

2002-04-28 Thread Dean Ouellette
Not sure what is happening. Still getting same error. As soon as I remove \nX-Mailer: PHP/".phpversion() I get the error message ___- May be you just made incorrect modification... Correct php code: Best regards, Yuri. www.AceHoster.com <- your one

Re: [PHP] Supplied argument is not a valid MySQL result resource

2002-04-28 Thread Nathan
I am betting the problem is simply your semicolon... never use a semicolon in a php mysql query. It doesn't need one. In general, though, you should write your query such that it will tell you exactly what went wrong... Re-write this like so: $sql = 'select * from aannh_towns'; $result = mysql_

Re: [PHP] Autoload of cookies on Linux fails, Win32 works???

2002-04-28 Thread Joseph Smith
Actually.. I see now... Windows doesn't care about cookie case. Linux does. However, I still can't get the value from the $_COOKIES array. It tells me it's defined, but doesn't return the value of the cookie. Any thoughts? J - Original Message - From: "Miguel Cruz" <[EMAIL PROTECTED]>

Re: [PHP] Supplied argument is not a valid MySQL result resource

2002-04-28 Thread Evan Nemerson
Probably means your query failed. What line did the error occur on? You should be able to track down your problem with that. On Sunday 28 April 2002 15:14 pm, you wrote: > What does that error mean? > > $result = mysql_query('select * from aannh_towns;'); > echo 'info stored'; > while ($query_

Re: [PHP] Autoload of cookies on Linux fails, Win32 works???

2002-04-28 Thread Joseph Smith
Thanks, but when I tried this.. I consistently get "No Cookie!!" Yes, the cookie is set.. I can delete the cookies and a new one gets created. - Original Message - From: "Miguel Cruz" <[EMAIL PROTECTED]> To: "Joseph Smith" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, Ap

RE: [PHP] Supplied argument is not a valid MySQL result resource

2002-04-28 Thread John Holmes
It means your query failed. www.php.net/mysql_error ---John Holmes... > -Original Message- > From: Dan McCullough [mailto:[EMAIL PROTECTED]] > Sent: Sunday, April 28, 2002 3:15 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Supplied argument is not a valid MySQL result resource > > What

[PHP] Supplied argument is not a valid MySQL result resource

2002-04-28 Thread Dan McCullough
What does that error mean? $result = mysql_query('select * from aannh_towns;'); echo 'info stored'; while ($query_data = mysql_fetch_array($result)) { echo "", $query_data['town'], "", $query_data['town_id'], ""; } ?> = dan mccullough ---

Re: [PHP] GET question

2002-04-28 Thread Evan Nemerson
Thats because that query string is like saying: $ID = 5; $ID = 6; $ID = 23; If this is a form that you can't change the ID field names to ID1, ID2, ID3, etc. (which would probably be best) you could try something like: That will first unset all the variables that were defined automatically b

Re: [PHP] GET question

2002-04-28 Thread David Freeman
On 28 Apr 2002 at 23:30, Evan wrote: > I pass parameters via querystring in this way: > page.php?ID=5&ID=6&ID=23 > > In $_GET["ID"] I get only the value 23 Unless you set ID as an array, which you haven't, you'll only keep the last value. The simple answer is to have something like: pag

RE: [PHP] Re: NameVirtualHost breaks PHP

2002-04-28 Thread David Freeman
On 28 Apr 2002 at 16:11, Greg Blakely wrote: > > Can you indicate Apache settings regarding php and virtualhosts? > > In the "main" server configuration area, I have: [etc] > ### and then, under the "VirtualHost" area, I have: > > > Port 80 > AddType application/x-httpd-php .php4 .php3 .phtm

Re: [PHP] Auto refresh when data changed in Mysql

2002-04-28 Thread David Freeman
On 28 Apr 2002 at 20:32, Simonk wrote: > I have added the code, but it turn out : > > "Warning: Cannot add header information - headers already sent by (output > started at C:\Inetpub\php\hospital_equipment.php:5) in > C:\Inetpub\php\hospital_equipment.php on line 6 [etc] > Here is my full HTM

Re: [PHP] failed query results

2002-04-28 Thread David Freeman
On 28 Apr 2002 at 13:48, baldey_uk wrote: > $customer_id_check=("SELECT id FROM $customer_table WHERE firstname = > '$firstname' && lastname = '$lastname' && email = '$email'"); > $result1=mysql_query($customer_id_check); > if (!$result1

Re: [PHP] Weird/inconsistent behaviour when sending an empty file? (WAMP, Apache2, PHP 4.2.0)

2002-04-28 Thread David Freeman
On 28 Apr 2002 at 17:54, Moritz Schallaboeck wrote: > it might very well be an ignorant oversight, but I can't explain the following > behaviour. Consider a file containing -only- this code: > > -snip- > > ?> > -snip- [etc] Just a personal opinion here... if you're sending output to a brows

Re: [PHP] date problem

2002-04-28 Thread David Freeman
On 28 Apr 2002 at 14:48, Nick Wilson wrote: > I have a field in MySQL db like this: date TIMESTAMP, > and it looks pretty regular like this: 20020428011911 If you've got the data in your database then do the date/time conversions as part of your sql query - it's more efficient. Something like

Re: [PHP] Autoload of cookies on Linux fails, Win32 works???

2002-04-28 Thread Miguel Cruz
On Sun, 28 Apr 2002, Joseph Smith wrote: > Assuming I've got a cookie called "loggedin" defined as "12345" > > In 4.2.0 on Win32, my cookies are preloaded so when I do > > if (isset($loggedin)) >echo $loggedin > > It checks to see if there is a variable named $loggedin that was > created by

Re: [PHP] GET question

2002-04-28 Thread Miguel Cruz
On Sun, 28 Apr 2002, Evan wrote: > I pass parameters via querystring in this way: > page.php?ID=5&ID=6&ID=23 > > In $_GET["ID"] I get only the value 23 > I am surprised 'cause in ASP I get 5,6,23. > > Is there a way to make things working to have a sequence of values separated > by commas?

Re: [PHP] HTML in PHP

2002-04-28 Thread Miguel Cruz
On Sun, 28 Apr 2002, Christian Ista wrote: > for ($i = 0; $i { >echo mysql_result($result,$i, "NAME"); > } > ?> > > Could you tell me how I can do to have a after each row. Two options: { echo mysql_result($result,$i, "NAME") . ''; } or: { echo mysql_result($r

[PHP] GET question

2002-04-28 Thread Evan
Hi to all. I pass parameters via querystring in this way: page.php?ID=5&ID=6&ID=23 In $_GET["ID"] I get only the value 23 I am surprised 'cause in ASP I get 5,6,23. Is there a way to make things working to have a sequence of values separated by commas? Am I doing something wrong in PHP? T

Re: [PHP] Re: NameVirtualHost breaks PHP

2002-04-28 Thread Yuri Petro
You need to specify IP address in NameVirtualHost directive: NameVirtualHost 127.0.0.1 DocumentRoot /home/tcrc/www/forum ServerName forum.tcrconline.com ErrorLog /home/tcrc/logs/error_log CustomLog /home/tcrc/logs/access_log combined -- Kind regards, Yuri. www.AceHoster.com

[PHP] Re: Header question

2002-04-28 Thread Yuri Petro
Just replace the last line with: @mail ($To,$Subject,$Message,"From: $EmailSender\nReply-To: $EmailSender); -- Kind regards, Yuri. www.AceHoster.com Quality web hosting "Dean Ouellette" <[EMAIL PROTECTED]> ???/ ? ?: 000e01c1eef4$07cbeb40$0200a8c0@yoda">n

Re: [PHP] Question

2002-04-28 Thread Miguel Cruz
On Sat, 27 Apr 2002, Gerard Samuel wrote: > Is it possible to have PHP find out the ethernet's card MAC address?? > I know that one can parse the output of dmesg or equvalent to find it > out, but that would be OS platform > specific code. > I just want to know if php has a native way of finding

Re: [PHP] PGP

2002-04-28 Thread Miguel Cruz
On Sat, 27 Apr 2002, Richard Lynch wrote: > $test = escapeshellarg($cleartext); > exec("cat $test | /usr/bin/pgpe -a -t -f -r '[EMAIL PROTECTED]' > . . . > ^Kb^Estdin^H^@^@^@ $cleartext is the actual text? What if you used 'echo' instead of 'cat'? miguel -- PHP General Mailing List (http://

Re: [PHP] Producing images in different sizes

2002-04-28 Thread php3
Addressed to: Miguel Cruz <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from Miguel Cruz <[EMAIL PROTECTED]> Sat, 27 Apr 2002 19:11:46 -0500 (CDT) > > I'm guessing the issue is that it complicates the process of adding new > images, because someone has to create and upload

RE: [PHP] class PHP

2002-04-28 Thread Miguel Cruz
Best I can figure, it's a very verbose description of a process analogous to using mod_rewrite to parse requests ending in .class and pass them off to a wrapper that instantiates the eponymous class (i.e., about 2 minutes of programming). But it was a little hard to get through, so I may have m

RE: [PHP] Re: NameVirtualHost breaks PHP

2002-04-28 Thread Greg Blakely
Yuri Petro asked: > Can you indicate Apache settings regarding php and virtualhosts? In the "main" server configuration area, I have: # The following is for PHP4 (conficts with PHP/FI, below): AddType application/x-httpd-php .php4 .php3 .phtml .php AddType application/x-httpd-php-source

RE: [PHP] NameVirtualHost breaks PHP

2002-04-28 Thread Greg Blakely
Frenck advised: > add this to your virutalhost tag: > AddType application/x-httpd-php .php I did, and now browsers ask me if I want to download index.php... Do I need to activate the php module? I wonder why it worked before the NameVirtualHost, and now it doesn't... -- PHP General Maili

[PHP] (include_path='.;c:\php4\pear') in Unknown on line 0

2002-04-28 Thread Don Tait
Sorry Should do it all Using apache 1.3 for windoze and 4.2 php but can get it to fly best I can get even when I use Vins (fix it) is Warning: Failed opening '/inetpub/wwwroot/test.php' for inclusion (include_path='.;c:\php4\pear') in Unknown on line 0 -- PHP General Mailing List (http://w

[PHP] for inclusion (include_path='.;c:\php4\pear') in Unknown on line 0

2002-04-28 Thread Don Tait
This is all I can get even when I paly with PHP windows include= Warning: Failed opening '/inetpub/wwwroot/test.php' for inclusion (include_path='.;c:\php4\pear') in Unknown on line 0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Header question

2002-04-28 Thread Dean Ouellette
I have a tell a friend script and got the php script from a friend to make it work. I am a newbie so still do not fully udners stand it. Here is the problem, it puts the following at the top of each e-mail: X-Mailer: PHP/4.1.2 Here is the script:

[PHP] Autoload of cookies on Linux fails, Win32 works???

2002-04-28 Thread Joseph Smith
I'm confused.. Assuming I've got a cookie called "loggedin" defined as "12345" In 4.2.0 on Win32, my cookies are preloaded so when I do if (isset($loggedin)) echo $loggedin It checks to see if there is a variable named $loggedin that was created by autoloading of cookies, then it prints "12

[PHP] i18n translation of PHP based forum

2002-04-28 Thread Ilia A.
Hello, I am one of the core developers of FUDforum, which is PHP based forum released under the GPL licence. The upcomming release of FUDforum 2.0 will contain i18n support and I am looking for people who would be willing to help translate the forum to other languages. If you want to help wit

RE: [PHP] NameVirtualHost breaks PHP

2002-04-28 Thread Greg Blakely
Jason Wong asked: > Apache 1.0.38 How old is that? If you're really using such an old > version you should first upgrade to something modern (1.3.X or the 2.0.X > series). My bad. I queried the wrong httpd (/bin/httpd rather than /sbin/httpd). It's really 1.3.20 If I'd given it much th

[PHP] PHP4.2.0 + Apache2 prints code

2002-04-28 Thread James Stuart
I've installed Apache 2.0.35 with PHP 4.2.0 on both FreeBSD and Linux, and both yield the same result. When the test.php page is accessed it returns "" instead of actually processing it. I have the lines: LoadModule php4_modulemodules/libphp4.so AddType application/x-httpd-php .php in my

  1   2   >