[PHP] RE: Browser Detection without use of browsecap.ini file

2002-03-22 Thread Tim Ward
$HTTP_ENV_VARS[HTTP_USER_AGENT] contains this info if it's been sent Tim Ward Internet Chess www.chessish.com http://www.chessish.com -- From: R'twick Niceorgaw [SMTP:[EMAIL PROTECTED]] Sent: 21 March 2002 17:06 To: [EMAIL PROTECTED] Subject:

[PHP] Net status and free memory on freebsd

2002-03-22 Thread Charles Williams
Hey all, I'm working on porting a php app to freebsd. However, there is a problem. ;) in linux you can parse /proc/net/dev for all network statistics and make a call to free for available memory. How could you do the same thing in freebsd? I have looked at netstat -b -p ip -I ed0 but that

[PHP] Regular Expression Problem

2002-03-22 Thread Sharat Hegde
Hello, In PHP3, I am using code which using the regular expression capability of PHP. The code matches all occurences of string prefixed by __ (2 underscores) and having alphanumeric characters as well as _ (1 underscore) within it. The code is as follows: while (eregi(__([a-z0-9_]+)__,

[PHP] PHP and xEmacs

2002-03-22 Thread Gunter Ohrner
Hi! Anyone in here who managed to get xEmacs working with psgml-html and php-mode combined? If yes, which php-mode did you use and what did you do? I use psgml-html and Turadg Aleahmad's php-mode 1.0.2 (I just tried it with Fred Yankowski, too, getting excactly the same results) and tried to

[PHP] Is the $this variable affectation authorized (clean enough)?

2002-03-22 Thread Jean-Pierre Arneodo
Hi, is the $this variable affectation authorized (clean enough)? It's works in 4.1.x, but next php versions... class X { function polymorph($class){ // Backup vars here $this=new $class(); // Restore vars here } } What is the

Re: [PHP] Append to the beginning of a file...

2002-03-22 Thread Chris Hewitt
Mauricio, If you are on a *nix computer, you could append to the end of the file, close it and then do a tail -n1 which will give you just the last line in the file. HTH. Regards Chris Mauricio Sthandier wrote: I guess I should do that. I need the plain file because is just a log of users

Re: [PHP] $HTTP_COOKIE_VARS

2002-03-22 Thread Jason Wong
On Friday 22 March 2002 05:27, Max Mouse wrote: I've tried using $HTTP_COOKIE_VARS to get information about the cookie has been passed to the current script but I always get a cookie size of 1 containing no information. I have also tried using $_COOKIE but with no success. I'm running

[PHP] OpenDir

2002-03-22 Thread José León Serna
Hello: I would like to use opendir to open a network resource \\myserver\myresource , I use IIS, I think I have to give the user of IIS permissions to log on that machine, but do you know how could I do it?. Regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] comparisons

2002-03-22 Thread Andrey Hristov
if (ereg(john,$jeff) ) { } ok or: if( strstr( $jeff, john) ) { } ok or: if( strpos( $jeff, john) ) { } error if (strpos($jeff, john) !== FALSE) Best regards, Andrey Hristov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] comparisons

2002-03-22 Thread Rick Emery
Andrey, you are incorrect. From the manual on strpos(): int strpos (string haystack, string needle [, int offset]) If needle is not found, returns FALSE. -Original Message- From: Andrey Hristov [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 7:47 AM To: Rick Emery Cc: [EMAIL

RE: [PHP] Problem with strtotime() and 2002-03-31

2002-03-22 Thread Ford, Mike [LSS]
-Original Message- From: John Clarke [mailto:[EMAIL PROTECTED]] Sent: 20 March 2002 00:40 I have used the following script successfully for a year now, but have just found a problem with the date 2002-03-31. Any ideas why this would be happening? function

RE: [PHP] A Newbie needs help with his first Class

2002-03-22 Thread Hunter, Ray
The way that Warwick has it set up is fine as long as you create the new in the script that is being called by the browsers so that you can access the class variables...I do not see the need to change the function name unless it conflicts with any predefined variables. Thank you, Ray Hunter

Re: [PHP] comparisons

2002-03-22 Thread Andrey Hristov
From the docs : Note: It is easy to mistake the return values for character found at position 0 and character not found. Here's how to detect the difference: // in PHP 4.0b3 and newer: $pos = strpos($mystring, b); if ($pos === false) { // note: three equal signs // not found... } // in

RE: [PHP] comparisons

2002-03-22 Thread Rick Emery
ahhhinteresting. thank you for the clarification I stand humbled, head bowed... rick -Original Message- From: Andrey Hristov [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 8:03 AM To: Rick Emery Cc: [EMAIL PROTECTED] Subject: Re: [PHP] comparisons From the docs : Note:

[PHP] Re: comparisons

2002-03-22 Thread Jason Sheets
Hi Warwick I'd suggest looking at the PHP manual, it is available at http://www.php.net. You can look for string functions in the manual. If you were looking for a case insensitive comparision you could use stristr, if you are looking for a case senstivie comparision you could use strstr.

[PHP] converting a password database from perl to php

2002-03-22 Thread R'twick Niceorgaw
Hi all, I'm converting a site written in perl to php. It has a member section which is password protected. All the meber passwords are stored in a flat file with Perl's MD5 encryption algorithm. I'm planning to use MYSQL database to store the member info on the new site. However, I have to import

[PHP] copying and pasting bullets from Word to php/mysql

2002-03-22 Thread Mallen Baker
Hi - this is my first shift from happy and constructive lurking to a question. I am putting together a php/mysql set-up for jobs pages for a not-for-profit organisation. To make it easy for the hr manager, I want the form that enters the job details into the database to be able to have

RE: [PHP] Regular Expression Problem

2002-03-22 Thread Rick Emery
__([a-z0-9][a-z0-9_]+)__ -Original Message- From: Sharat Hegde [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 4:22 AM To: [EMAIL PROTECTED] Subject: [PHP] Regular Expression Problem Hello, In PHP3, I am using code which using the regular expression capability of PHP. The

[PHP] Netware version/port

2002-03-22 Thread PVL
I have heard rumours that a NW port of PHP is coming. Anyone else heard this? Any time frame? tia -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: bigendian vs littleendian

2002-03-22 Thread Mika Tuupola
On Thu, 21 Mar 2002, Mika Tuupola wrote: How can I make $double = pack(d, $val); to produce same value when run on bigendian host as what it would result when running in a littleendian host? Answering to myself here, strrev() is your friend

[PHP] Re: A Newbie needs help with his first Class

2002-03-22 Thread Julio Nobrega Trabalhando
$DOCUMENT_ROOT inside a function, scope problems. Pass it as an argument or global, or use $_SERVER['DOCUMENT_ROOT']; -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho?

[PHP] Tool to remove comments??

2002-03-22 Thread Oliver Heinisch
Hi Folks, does anybody know a tool for removing comments out of PHP scripts? I mean // this is a comment and /* this is also a comment */ it should also handle something like echo'http://somewher.somecom/somepage'; // this goes to somewhere and multiline comment like /* ..blah */ maybe anybody

[PHP] Strange problem passing variables

2002-03-22 Thread Jean-Arthur Silve
Hi, A friend of me use PHP4.1.2 on Linux+Apache Here is the problem : He pass a parameter using GET method : http://www.domain.com/test.php?TESTV=1234 test.php is : ?php echo $TESTV.BR; echo $HTTP_GET_VARS[TESTV].BR; phpinfos(); ? But in the script all variables are empty ($TESTV and

RE: [PHP] Strange problem passing variables

2002-03-22 Thread Hunter, Ray
Try using $_GET['varnamehere'] Ray Hunter -Original Message- From: Jean-Arthur Silve [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 8:05 AM To: [EMAIL PROTECTED] Subject: [PHP] Strange problem passing variables Hi, A friend of me use PHP4.1.2 on Linux+Apache Here is the

[PHP] Displaying data from db

2002-03-22 Thread Vlad Kulchitski
Hi, I have several questions. First what would be the best solution to take the records from the database and display like 10 results per page? Another question, the same records from the database, but say I want to sort them by name. Like I have a menu: a,b,c,d,e,f,g,h.. etc. And if

RE: [PHP] Displaying data from db

2002-03-22 Thread Rick Emery
First what would be the best solution to take the records from the database and display like 10 results per page? Check the list archives and php.net. There are many examples of this functionality Another question, the same records from the database, but say I want to sort them by

Re: [PHP] Session Varaible Problem

2002-03-22 Thread Randy Phillips
Are you calling session_start() on the subsequent pages you want to be part of the session? No I was not. That was the problem. Thanks Rasmus. -- Rp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Weird fsockopen behavior

2002-03-22 Thread Boaz Yahav
Hi I'm using $fp=fsockopen($URL,80, $errno, $errstr,10); set_socket_blocking($fp,false); to get the HTML from a remote site and monitor how long it took me to DL the HTML. The next lines are like this : if ($fp) { $SendGetStart = getmicrotime(); fwrite($fp,GET /

[PHP] CICS call?

2002-03-22 Thread Batch
Hey all, I was just curious if anyone knows how or even if PHP4 can make a CICS call to a mainframe system. I need to grab some data from a mainframe realtime. Thanks in advance. Batch -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Weird fsockopen behavior - SOLUTION

2002-03-22 Thread Boaz Yahav
I feel pretty sheepish but it always happens to me. I found this note in the manual and it seems to solve the problem. So if anyone has this problem. berber User Contributed Notes fsockopen [EMAIL PROTECTED] 08-Jan-2002 06:30 This is a gotcha that got me and discusses the careful

Re: [PHP] Trap CR or Enter possible?

2002-03-22 Thread Erik Price
On Friday, March 22, 2002, at 12:11 AM, Jason Wong wrote: But, what are the undesirable effects of just pressing enter? I know that in IE pressing enter to submit a form is not the same as clicking on the submit button. If that is what you are referring to then it's very easy to code

Re: [PHP] converting a password database from perl to php

2002-03-22 Thread Rasmus Lerdorf
Show us an example Perl one. Chances are you can get the PHP crypt() function to do the right thing by feeding it the correct SALT. -Rasmus On Fri, 22 Mar 2002, R'twick Niceorgaw wrote: Hi all, I'm converting a site written in perl to php. It has a member section which is password

[PHP] Weird error...

2002-03-22 Thread Phil Schwarzmann
What does this error mean?? Fatal error: Allowed memory size of 8388608 bytes exhausted at zend_language_scanner.c:4248 (tried to allocate 9 bytes) in /blah/blah/afteradmin2.php on line 37 here is line #37... $usertemp = mysql_result($result_all, $i, username); THANKS!!!

Re: [PHP] converting a password database from perl to php

2002-03-22 Thread R'twick Niceorgaw
Hi Rasmus, Here's what used in the perl script. -- use Digest::MD5; use Digest::MD5 qw( md5_hex ); my $encrypt_password; my $digestObject = Digest::MD5-new(); $digestObject-add($password); $encrypt_password = $digestObject-digest();

Re: [PHP] converting a password database from perl to php

2002-03-22 Thread Rasmus Lerdorf
text password : f0rget123 encrypted password: òOú«#7Fá73¯ Uh, that's not md5 at all. By definition md5 is 32 characters. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Phptriad

2002-03-22 Thread Karina Trincado
Hi, I´m new to php. I have installed phptriad in Windows2000 using also IIS5 as an alternative web server. I have tried to test some http authentication scritps but they don´t seem to work. (Using apache I got an internal error and using IIS, i sucessfully show the authentication dialog

[PHP] calculation based on checkbox

2002-03-22 Thread jas
?php $ad = ereg_replace (\, q, $ad); # prevents an error when sending $ad through an HTML form $ad = ereg_replace (', a, $ad); # prevents a mysql error $ad = ereg_replace (%, p, $ad); #prevents a mysql error $ad = ereg_replace (, bs, $ad); #prevents a mysql error # splits the ad into an

[PHP] Re: RC4Crypt encryption opinions

2002-03-22 Thread Steve Clay
Maxwell, I tried it out. The sample test crashed the PHP 4.0.5 CGI binary everytime on my winNT system. No script has ever /crashed/ the executable before, just might be worth note. Steve Friday, March 22, 2002, 12:45:11 AM, . wrote: I'm looking for opinions on RC4Crypt -- [EMAIL

RE: [PHP] calculation based on checkbox

2002-03-22 Thread SHEETS,JASON (Non-HP-Boise,ex1)
If your checkbox name was cbox setup as input type=checkbox name=cbox value=true you could check for it like this ?php // if you have PHP 4.1+ use this code if ($_REQUEST['cbox'] == 'true') { // do code } ? You could also just check to make sure that the box variable is set rather than

[PHP] Maillist

2002-03-22 Thread Ashley M. Kirchner
I need to send out several hundred, to several thousand emails out of our database. Now, before everyone starts telling me to use an actual MLM for this, let me explain what I need to do. I need to send a unique ID with each message, in the form of a URL. We want to make unsubscribing

RE: [PHP] Weird error...

2002-03-22 Thread Kevin Stone
I notice you're incrementing the row offset. You shouldn't use mysql_result() to extract multiple fields like that. It will be much faster using mysql_fetch_array() once and then extracting any data you need from the resulting associative array as many times as you need. Mysql_result() is

Re: [PHP] Trap CR or Enter possible?

2002-03-22 Thread Erik Price
On Friday, March 22, 2002, at 12:29 PM, Jason Wong wrote: Side note to the original poster: in the script that is the target of the form you are writing, you may be able to test for the presence of the submit variable -- if this value is not present, then the user has not clicked the

RE: [PHP] Weird error...

2002-03-22 Thread Kevin Stone
DOH!!! I didn't mean to email the first part of my response below. I wrote it and then realized that I was mistaken. I thought I'd erased it. It is perfectly valid to do what you want with mysql_result(); :) -Kevin -Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED]]

Re: [PHP] converting a password database from perl to php

2002-03-22 Thread R'twick Niceorgaw
I'm sorry, I somehow missed few characters while copying form unix machine. The actual encrypted string is òOú«#µ7zFá73Y¯ (in hex it is 06 f2 4f fa ab 23 b5 7f 37 9e 46 e1 37 33 9f af) I have no idea about perl and so now I'm confused as in hte perl script I see it's using a digest::md5()

[PHP] Desperate!!!!!!! Resource id #24 - error???????????

2002-03-22 Thread brendan conroy
Hi guys, Thanks for reading this. I desperatley need help with this error. I just finished a huge project thats taken me months, my code works, but the code its attached to has an error. The project is due Monday and naturally enough the guy who wrote the code with the error is gone on

[PHP] how to get server os?

2002-03-22 Thread Prachait Saxena
Hello Friends Can any one tell me how can i get the server operating system, on which my php script is running ? and envermental variable or any other idea ... Bye, and Have a nice day. Prachait Saxena --- Phone :- +91 - 712 - 544476 Email :- [EMAIL PROTECTED]

Re: [PHP] Trap CR or Enter possible?

2002-03-22 Thread Don Read
On 22-Mar-2002 Erik Price wrote: On Friday, March 22, 2002, at 12:29 PM, Jason Wong wrote: Side note to the original poster: in the script that is the target of the form you are writing, you may be able to test for the presence of the submit variable -- if this value is not present,

[PHP] Re: how to get server os?

2002-03-22 Thread Philip Hallstrom
Create a script that looks like this: ?php phpinfo(); ? and then look at the output of that for your operating system... odds are you'll find a $_SERVER variable that gives you what you want. On Fri, 22 Mar 2002, Prachait Saxena wrote: Hello Friends Can any one tell me how can i get the

Re: [PHP] how to get server os?

2002-03-22 Thread Jason Wong
On Saturday 23 March 2002 02:22, Prachait Saxena wrote: Hello Friends Can any one tell me how can i get the server operating system, on which my php script is running ? and envermental variable or any other idea ... php_uname() -- Jason Wong - Gremlins Associates - www.gremlins.com.hk

Re: [PHP] Desperate!!!!!!! Resource id #24 - error???????????

2002-03-22 Thread Jason Wong
On Saturday 23 March 2002 01:53, brendan conroy wrote: Hi guys, Thanks for reading this. I desperatley need help with this error. I just finished a huge project thats taken me months, my code works, but the code its attached to has an error. The project is due Monday and naturally

[PHP] cron with php as apache module

2002-03-22 Thread Paul Roberts
I want to run a php script via a crontab, (i can set up the crontab etc). this is a Linux server and php is installed as an apache module, is there any way to run the php script via cron. the build details are Configure Command './configure' '--with-apxs=/usr/sbin/apxs' '--with-mysql'

RE: [PHP] cron with php as apache module

2002-03-22 Thread Rick Emery
yes, you can run PHP as a stand-alone interpreter -Original Message- From: Paul Roberts [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 1:00 PM To: [EMAIL PROTECTED] Subject: [PHP] cron with php as apache module I want to run a php script via a crontab, (i can set up the

RE: [PHP] cron with php as apache module

2002-03-22 Thread Darren Gamble
Good day, Most Linux packages also install the php binary as part of the distribution (I know Redhat does). Look in /usr/local/bin (or other common places) to see if the executable php has been installed. If it is, you're set. Just run the script as if it were a .cgi . Instructions are on

Re: [PHP] Desperate!!!!!!! Resource id #24 - error???????????

2002-03-22 Thread Jason Wong
Thank you for (mis)placing your faith in me. But if you want a better quality of help you should write to the list and not to any one individual. On Saturday 23 March 2002 02:44, brendan conroy wrote: OK here goes, Im pretty sure the error is in the monic function, thanks for your time on

RE: [PHP] cron with php as apache module

2002-03-22 Thread Hunter, Ray
Yeah, Compile php first as CLI, move the contents of the bin directory to where you want them, and then compile php again for the apache module. In the bin directory you will have a php executable file which you can use for your cli apps. In your php files that you want to run as crons then

RE: [PHP] Forcing little endian with pack(d);

2002-03-22 Thread Mike Eynon
I have looked through the pack code in php-4.1.2. There appear to be no other options other than what is documented on the php.net pack function page. There appears to be no way of specifying endian-ness for floats or doubles using pack. They are copied to the output stream using a simple

[PHP] Rollover not functioning

2002-03-22 Thread Joshua E Minnie
Does anyone have any idea why adding PHP into an HTML page would cause a rollover (not even within the PHP script) to not function? The thing is, I have done the same thing on various other pages, but this is the only page that does it. I tried removing the PHP script from the page, and the

Re: [PHP] cron with php as apache module

2002-03-22 Thread Analysis Solutions
Even if you can't get, or don't want to bother getting, PHP as a standalone CGI type program, you can still execute via crontab. Make a web page that you want to have run, then put something along the lines of: lynx http://localhost/scriptname.php as the command in the crontab file. Do

RE: [PHP] Forcing little endian with pack(d);

2002-03-22 Thread Mika Tuupola
On Fri, 22 Mar 2002, Mike Eynon wrote: I have looked through the pack code in php-4.1.2. There appear to be no other options other than what is documented on the php.net pack function page. There appears to be no way of specifying endian-ness for floats or doubles using pack. They are

[PHP] FAQ

2002-03-22 Thread James Taylor
Has anyone given any thought to possibly maintaining a FAQ containing the answers to the most commonly asked PHP questions on this list? I notice duplicates roll through every couple of days, and it would probably be a really nice PHP resource. Or, does one already exist? Ha. -- PHP General

Re: [PHP] FAQ

2002-03-22 Thread Rasmus Lerdorf
That's a FAQ (did you try the obvious? http://php.net/faq) On Fri, 22 Mar 2002, James Taylor wrote: Has anyone given any thought to possibly maintaining a FAQ containing the answers to the most commonly asked PHP questions on this list? I notice duplicates roll through every couple of

[PHP] store locator/zip code question...

2002-03-22 Thread Kelly Meeks
Hi folks, I've got a client that wants to show users dealers of their products based on mileage from their location. I've seen this done, and I assume it's based on either a database relating the zip info to miles, or to some kind of hash on the zipcode itself. Anyone have any experience

Re: [PHP] FAQ

2002-03-22 Thread James Taylor
You are correct sir. The purpose of the FAQ would be so that, like I said, similar questions that pop up say, once a week, could be answered in the FAQ instead of on the list - That way I won't get 300 messages a day :) On Friday 22 March 2002 11:36 am, you wrote: Despite what Rasmus just

RE: [PHP] Maillist

2002-03-22 Thread Rick Emery
I think PHP's uniqid() will suit your purposes. Look in the Miscellaneous Functions section of the manual. -Original Message- From: Ashley M. Kirchner [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 11:38 AM To: PHP-General List Subject: [PHP] Maillist I need to send out

RE: [PHP] FAQ

2002-03-22 Thread Matt Schroebel
I've been working on that at http://www.php-faq.com/ Want to help? -Original Message- From: James Taylor [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 2:30 PM To: [EMAIL PROTECTED] Subject: [PHP] FAQ Has anyone given any thought to possibly maintaining a FAQ

RE: [PHP] FAQ

2002-03-22 Thread Brian Drexler
Yes, an FAQ would be nice...so would a Manual...Oh wait, there is one, but people just happen to overlook it most of the time :-) I apologize for the sarcasm, but it is Friday! Brian -Original Message- From: James Taylor [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 2:50 PM

RE: [PHP] FAQ

2002-03-22 Thread Robert V. Zwink
This one has been around for awhile, though I don't think its official. php.faqts.com Robert Zwink http://www.zwink.net/daid.php -Original Message- From: James Taylor [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 2:30 PM To: [EMAIL PROTECTED] Subject: [PHP] FAQ Has anyone

Re: [PHP] FAQ

2002-03-22 Thread John Fishworld
Yep good idea ! Oh and by the books - a couple of opinions wouldn't be bad either ! regards john I've been working on that at http://www.php-faq.com/ Want to help? -Original Message- From: James Taylor [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 2:30 PM To: [EMAIL

Re: [PHP] FAQ

2002-03-22 Thread Rasmus Lerdorf
I just don't see what the difference is. This is a PHP mailing list which supposedly gets questions about PHP. Why would the PHP FAQ not be the right place for this? -Rasmus On Fri, 22 Mar 2002, James Taylor wrote: You are correct sir. The purpose of the FAQ would be so that, like I said,

Re: [PHP] cron with php as apache module

2002-03-22 Thread Paul Roberts
ok for lynx, at the command prompt i get bash: lynx: command not found I've also looked in all the obvious places for php but can't find it. the server is a cobalt raq 3 and i have a virtual host account so i can't recompile php. maybe I'll rewrite it in Perl. Paul Roberts [EMAIL PROTECTED]

Re: [PHP] IMAGE Manipulation

2002-03-22 Thread James Taylor
Hey, I'm not sure if anyone ever answered your question, but here's a little function I wrote for something similar to what you want to do and it doesn't require GD be installed. You need to modify the top portion, I just threw that in there to show you how it would work. $pic is the name of

[PHP] Sooo close - please help

2002-03-22 Thread brendan conroy
Hi guys, Thanks for reading this. I desperatley need help with this error. I just finished a huge project thats taken me months, my code works, but the code it uses has an error. The project is due Monday and naturally enough the guy who wrote the code with the error is gone on holiday

Re: [PHP] cron with php as apache module

2002-03-22 Thread Erik Price
On Friday, March 22, 2002, at 03:16 PM, Paul Roberts wrote: for lynx, at the command prompt i get bash: lynx: command not found I've also looked in all the obvious places for php but can't find it. the server is a cobalt raq 3 and i have a virtual host account so i can't recompile php.

Re: [PHP] FAQ

2002-03-22 Thread James Taylor
The PHP FAQ isn't really specific when it comes to most problems. The 'code' section has like 10 questions, the rest of the FAQ is mainly how to download/compile, what do these PHP errors mean, migration, etc. A FAQ that had answers to questions that people ask on this list on a frequent

RE: [PHP] Maillist

2002-03-22 Thread Robert V. Zwink
Both php and MySQL support MD5(). Consider this: // Define a secret key $secret_key = ThisIsASecretKey123; // Take the user's current email address $email_address = [EMAIL PROTECTED]; // And create a unique ID $unique_id = md5($email_address.$secret_key); Stick this unique id in the email

Re: [PHP] FAQ

2002-03-22 Thread Rasmus Lerdorf
So add it those. On Fri, 22 Mar 2002, James Taylor wrote: The PHP FAQ isn't really specific when it comes to most problems. The 'code' section has like 10 questions, the rest of the FAQ is mainly how to download/compile, what do these PHP errors mean, migration, etc. A FAQ that had answers

Re: [PHP] looking for tutorial on XML parsing of attributes...

2002-03-22 Thread Erik Price
I'm no expert on the XML functions, but post your code and maybe we can figure out what's wrong. Erik On Thursday, March 21, 2002, at 09:24 PM, Scott Brown wrote: Ok - first off, I've found a few... phpbuilder has a nice number of references. But every one I've tried has ignored

[PHP] Hi!

2002-03-22 Thread savaidis
Hi all! I'm quite new to PHP so I have two questions: How is possible to click on an image and run a php function? Also how is possible to pass some php vars to javascript vars? Makis Thessaloniki Greece -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Sooo close - please help

2002-03-22 Thread charlesk
It looks like gmp_divexact returns a resource which does not appear to be what you want. You may have to access the result somehow to see if it is giving you what you expect. Charles Killmer -- Original Message -- From: brendan conroy [EMAIL PROTECTED]

RE: [PHP] Re: Delete Confirmation

2002-03-22 Thread Boaz Yahav
Do that with JavaScript Using JavaScript to show an OK/Cancel confirmation window http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1364 Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -Original Message- From:

Re: [PHP] cron with php as apache module

2002-03-22 Thread Bruce S. Garlock
Are you specifying the full path in the crontab? If the raq 3 does not have lynx, you might be able to use wget. I'm not too familiar with wget, you may want to read the manpage. Here's how I run PHP scripts from cron, when PHP is compiled as a DSO: 0 8 * * * TERM=xterm; export TERM;

[PHP] included files not reread by php when i edit the files

2002-03-22 Thread Chris
While editing pages, for some reason (default setting? / configuration problem?) the changes i make in included files (with sometimes quite some nesting) are not recognized when reloading a page. So i see errors that belong to the previous version. What setting could do this? I'm quite sure

RE: [PHP] Hi!

2002-03-22 Thread Rick Emery
How is possible to click on an image and run a php function? A href=./thescript.phpIMG src=image.jpg/A Also how is possible to pass some php vars to javascript vars? Can't do it directly. JavaScript is client-side. PHP is server-side. As you execute a PHP script, it will create the values

[PHP] T1lib configure broken?

2002-03-22 Thread Michael A. Peters
Red Hat 7.2 t1lib installed in /usr/local I build --with-t1lib=/usr/local build fails saying it can't find /usr/lib/.libs/libt1.so Well, duh! It's in /usr/local/lib (as I specified in config w/ the =/usr/local flag) Anyway- that configure option worked perfect in php-4.0.5 What broke 4.1.2

Re: [PHP] cron with php as apache module

2002-03-22 Thread Paul Roberts
wget http://your.server.address/phpscript.php did the trick thanks Paul Roberts [EMAIL PROTECTED] - Original Message - From: Bruce S. Garlock [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 22, 2002 8:55 PM Subject: Re: [PHP] cron with php as

Re: [PHP] included files not reread by php when i edit the files

2002-03-22 Thread Jim Lucas [php]
how about giving an example of the error message(s)... - Original Message - From: Chris [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 22, 2002 12:59 PM Subject: [PHP] included files not reread by php when i edit the files While editing pages, for some reason (default

[PHP] Jazz problem

2002-03-22 Thread Sanj
template page at http://www.isbliss.co.nz/beta/mainpages/template.html disregard any linked pages. This will be the template for all the other pages. 1. Could you please tell me why when you hover off or anywhere on this page the hair salon button is highlighted. think I have done something to

[PHP] Automatic Language Detection

2002-03-22 Thread ....::: rObEr2 :::....
Hey! I want to have my website on English, Spanish and Norwegian so I want a PHP script that sends the user to the page on their language. I've seen some portals doing some PHP things, and sending the user to a 'fancy' URL with the Languange that their Borwser/OS is on. Can someone please tell

[PHP] A Language Script?

2002-03-22 Thread ....::: rObEr2 :::....
Hey! I want to have my website on English, Spanish and Norwegian so I want to have a PHP script that sends the user to the page on their language. I've seen some portals doing some PHP things, and sending the user to a 'fancy' URL with the Languange that their Borwser/OS is on. Can someone

RE: [PHP] A Language Script?

2002-03-22 Thread Demitrious S. Kelly
$HTTP_ACCEPT_LANGUAGE -Original Message- From: ::: rObEr2 ::: [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 1:59 PM To: [EMAIL PROTECTED] Subject: [PHP] A Language Script? Hey! I want to have my website on English, Spanish and Norwegian so I want to have a PHP script

[PHP] GOOD PRACTICE (was: RE: [PHP] A Language Script?)

2002-03-22 Thread Demitrious S. Kelly
I've been watching the lists from time to time and I see a lot of requests for information like this floating around. I wonder if people know of the phpinfo() command... in my experience it's been an invaluable tool to help with little issues that pop up with 'where do I find out XXX about XXX'

RE: [PHP] FAQ

2002-03-22 Thread Kevin Stone
Too often novices are expected to know how to find this information by mental telepathy because they either don't know the keywords to search for or don't realize that certain common resources exist. If the list administrators would simply compile a short email containing FAQ and RESOURCE links

RE: [PHP] FAQ

2002-03-22 Thread J. Scott Johnson
Hi, New poster, no need to flame unnecessarily... Following up on James' original posting, I took 2000 or so message headers from the archive and extracted (Perl, sorry) keywords for about 50% of the postings. This gave the following metrics on problems: 13 table 65 apache 70

[PHP] Drawing graphs - opinions

2002-03-22 Thread Lee P Reilly
Hi, I see there a number of PHP scripts/libraries out there for the purpose of graphing data. Which one is considered to be the best, most powerful / easiest to use? I need to plot X/Y graphs for some data sets with vertical error margin lines going along the y-axis. Any recommendations?

Re: [PHP] Database Development Price Inquiry?

2002-03-22 Thread [-^-!-%-
Yeah, I've ran into a few of those customers. It's even worst when you find one that doesn't know what they want, yet have many, sometimes conflicting, restrictions. Thanks, Miles! -john On Fri, 22 Mar 2002, Miles Thompson wrote: It depends on the project. I generally charge $50/hr

[PHP] Re: Drawing graphs - opinions

2002-03-22 Thread Lee P Reilly
Lee P Reilly wrote: with vertical error margin lines going along the y-axis. Any recommendations? Ahem, the X axis. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] A Language Script?

2002-03-22 Thread Demitrious S. Kelly
http://vancouver-webpages.com/multilingual/ccodes.txt http://vancouver-webpages.com/multilingual/iso639a.txt This seems like useful information for this purpose... and so I've decided to forward it to the list as well... if this is considered spamming please let me know so that I can avoid it in

Re: [PHP] Maillist

2002-03-22 Thread Ashley M. Kirchner
Robert V. Zwink wrote: Then when someone sends back the $unique_id by clicking on your link, you can instuct MySQL to disable the record: UPDATE users SET send_email = 'NO' WHERE MD5(email_address.'ThisIsASecretKey123')=$unique_id This works...with a small change (or is it a fix?):

[PHP] Variable problem

2002-03-22 Thread Leif K-Brooks
I have a variable name in a print END and then some text after it. The thing is, php thinks that the text is part of the variable name, which makes the variable, and the text after it, not show up. But, if I put a space, it makes my html not work right. Any ideas? -- PHP General Mailing

RE: [PHP] Variable problem

2002-03-22 Thread Rick Emery
show your code -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 5:18 PM To: [EMAIL PROTECTED] Subject: [PHP] Variable problem I have a variable name in a print END and then some text after it. The thing is, php thinks that the text is

  1   2   >