[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 -- From: R'twick Niceorgaw [SMTP:[EMAIL PROTECTED]] Sent: 21 March 2002 17:06 To: [EMAIL PROTECTED] Subjec

[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 o

[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_]+)__", $E

[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 usage?

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 use

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 apac

[PHP] mail() error checking function

2002-03-22 Thread Marc Bleuler
Hello all, I have the bellow script which will be called from the following URL "http://172.24.110.113/sendmail.php?[EMAIL PROTECTED]&body=this is a test message". The "to" and "body" field in the URL are variable. The problem I have, there is no error checking in this script, it replays always w

[PHP] Forms

2002-03-22 Thread Ron
This is the first time that I have tried to conquer a form in PHP(which I obviously am not doing) so that I can have a total PHP script page and move away from HTML. Here is my code as followed by my book (PHP Black Book) some variables have been changed "radio", "question" => "What section i

[PHP] A Newbie needs help with his first Class

2002-03-22 Thread Don
Hi, I'm trying to write my first class. Here is the code contained in a file called "globals.php": $root_path = "/"; } else { $this->$root_path = $DOCUMENT_ROOT; } $this->$relative_path = $this->$root_path . $start_dir; } } $global = new Globals("/staging_area/phase-2/");

Re: [PHP] Database Development Price Inquiry?

2002-03-22 Thread Miles Thompson
It depends on the project. I generally charge $50/hr and bill on a two week cycle. Customers invariably want estimates, and I provide them, then warn when the requests for "extra functionality" start eating up the estimate. Generally they spring for the extra $$. Worst customers? The ones who

[PHP] Re: Seek server hardware recommendation

2002-03-22 Thread Ron
All you really need is something quite basic A Pentium II 450 would work with about 256mb RAM recommend 384 or 512. The Hard drive size is really up to you and the amount of info you are going to store on your site. You sound like you could easily get away with a 10GB HD. Is this going to be for

[PHP] comparisons

2002-03-22 Thread Warwick Berg
Hi Just learning php from the bottom. Can someone help with syntax please? Want to know about using ifs : If the string value "john" is present in the variable "jeff" then do, etc, etc. How do we see if a value is present in a string? Thanks Warwick -- PHP General Mailing List (http://www

[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: h

RE: [PHP] Forms

2002-03-22 Thread Rick Emery
First: I've not seen a print statement in that format before. Second: the following line has parameters misspelled twice. Your function is called with "parameters", not "paramaters" if(isset($paramater["default"]) and $v == $paramater["default"]) -Original Message- From: Ron [mailto:

RE: [PHP] Forms

2002-03-22 Thread Rick Emery
One more suggestion: prior to exiting the form_radio() function, print $output to determine if it's the contents you expect -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 7:16 AM To: 'Ron'; [EMAIL PROTECTED] Subject: RE: [PHP] Forms First:

Re: [PHP] Forms

2002-03-22 Thread Dimitris Kossikidis
You 've missed this ")" . Change it to print( form("tt.php", form_radio("group","parameters") ) ); -- 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
if (ereg("john",$jeff) ) { } or: if( strstr( $jeff, "john") ) { } or: if( strpos( $jeff, "john") ) { } -Original Message- From: Warwick Berg [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 6:55 AM To: [EMAIL PROTECTED] Subject: [PHP] comparisons Hi Just learning php from t

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

2002-03-22 Thread Stampe, Lars
Hi, Try and rename the function in your class to something else that the class name, and let me know what happens! Lars -Original Message- From: Don [mailto:[EMAIL PROTECTED]] Sent: 22 March 2002 13:01 To: php Subject: [PHP] A Newbie needs help with his first Class Hi, I'm trying to

RE: [PHP] comparisons

2002-03-22 Thread Rick Emery
we aims to please... -Original Message- From: J W W L (Warwick) Berg [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 7:45 AM To: 'Rick Emery' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] comparisons Hey thanks Rick Appreciate it. Regards.. Warwick Berg -Original Message-

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

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

2002-03-22 Thread Stampe, Lars
And then replace $global = new Globals("/staging_area/phase-2/"); with $global = new Globals; $global->someting else("/staging_area/phase-2/"); Lars -Original Message- From: Stampe, Lars [mailto:[EMAIL PROTECTED]] Sent: 22 March 2002 13:46 To: 'Don'; php Subject: RE: [PHP] A Newbie ne

[PHP] RE: [PHP-DB] Forms

2002-03-22 Thread Rick Emery
First: cross-posting to multiple lists...not nice. Most PHP folks are on both lists. Second: your first sentence seems to indicate that unknowledgeable people inhabit the PHP list, vice the PHP-DB list. H Third: what error do you get when you get the parsing error? -Original Messa

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

2002-03-22 Thread Hunter, Ray
Don't declare the new object in the file. I would declare the new object in the script that you are running in the browser. Example... root_path . ""; echo $global->relative_path . ""; ?> Thank you, Ray Hunter Firmware Engineer ENTERASYS NETWORKS > -Original Message- > From: S

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

2002-03-22 Thread Rick Emery
Don's original declaration is correct. It refers to a constructor. Without a parameter, the new() will fail. -Original Message- From: Stampe, Lars [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 7:53 AM To: 'Don'; php Subject: RE: [PHP] A Newbie needs help with his first Class

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 PR

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 addDays(

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 Fi

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... } //

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. If

[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 conte

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 code

[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

[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? http://www.submarino.com.br/wishlistclient.asp?wlid=6641767

[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 : "; echo $HTTP_GET_VARS["TESTV"].""; phpinfos(); ?> But in the script all variables are empty ($TESTV and $HTTP_GET_VARS["TES

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 prob

[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 / HTTP/1.1\

[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 cod

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 protec

[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 box,

[PHP] calculation based on checkbox

2002-03-22 Thread jas
10) { # if the users ad has more than 10 words in it than $quarters = the extra words times .20 $subtractor = $num - 10; $quarters = $subtractor * .20; } $subtotal = $price + $quarters; # price plus the number of words over 10 $total = $papers * $subtotal; # new price multiplied by number of pa

[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 PROTECTED

RE: [PHP] calculation based on checkbox

2002-03-22 Thread SHEETS,JASON (Non-HP-Boise,ex1)
If your checkbox name was cbox setup as you could check for it like this You could also just check to make sure that the box variable is set rather than comparing its value Jason -Original Message- From: jas [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 10:23 PM To: [EM

[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 intend

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 clic

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]] Sent

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() objec

[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] (Offi

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

[PHP] Re: how to get server os?

2002-03-22 Thread Philip Hallstrom
Create a script that looks like this: 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 server operating

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

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 cronta

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 ph

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 ad

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 mem

[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 roll

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 note

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 da

[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 with

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 sa

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 s

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 > c

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 To

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

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 fo

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 recompil

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 basis

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 em

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 answ

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 attri

[PHP] Hi!

2002-03-22 Thread savaidis
Hi all! I'm quite new to PHP so I have two questions: How is possible to 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: http://www.php.net/

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 PROTECTE

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; /usr/bin/

[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 t

RE: [PHP] Hi!

2002-03-22 Thread Rick Emery
> How is possible to on an image and run a php function? > 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 for the JavaScript source that PHP is creati

[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 fr

  1   2   >