RE: [PHP] What is the PHP version of Grep?

2002-03-22 Thread Demitrious S. Kelly
Stristr() -Original Message- From: David Duong [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 4:43 PM To: [EMAIL PROTECTED] Subject: [PHP] What is the PHP version of Grep? I was wondering what is the equvilent of the perl coommand: grep. Can you list all the files in a

RE: [PHP] FAQ

2002-03-22 Thread Demitrious S. Kelly
I'm willing to help host the project... I'd be on a slack 8 box with a cable connection... only one IP address. It's my home connection so we'd have to share bandwidth... but I think it could be a valuable resource... -Original Message- From: J. Scott Johnson [mailto:[EMAIL PROTECTED]]

RE: [PHP] Creating table in mySQL db

2002-03-24 Thread Demitrious S. Kelly
http://www.apokalyptik.com/ftp/src/bin/ftp_indexer.phps look at the Create table sql queries I used... -Original Message- From: Piotr Skorupski [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 24, 2002 11:59 AM To: [EMAIL PROTECTED] Subject: [PHP] Creating table in mySQL db Hello Is

RE: [PHP] mail() function returns TRUE but no email is sent

2002-03-25 Thread Demitrious S. Kelly
I would check the mail logs on the smtp server ?(if you have access) or... try this and see if ANY mail is bveing sent to you (assumes a unix server with sendmail (or compatible) binary installed) $fp=fopen('./tmp', 'w'); fputs($fp, 'Subject: '.$reportsubject.chr(10)); fputs($fp,

RE: [PHP] Database connection problem

2002-03-25 Thread Demitrious S. Kelly
I have no idea what you meant to ask... but instead of an ip address I would use the hostname 'localhost' which most servers are setup by default to understand as 127.0.0.1 (loopback). And you can add an entry to /etc/hosts or C:\windows\hosts or c:\winnt\(?system(?32?)\?)hosts But that's just

RE: [PHP] ID NUMBER HELP

2002-03-26 Thread Demitrious S. Kelly
($row = mysql_fetch_array($result)) { printf(a href=\%s?id=%s\%s/abr\n, $PHP_SELF, $row[ID], $row[Name], $row[Name]); } If I change the first $row[ID] to $row[Name] then ?id=Name here but then when I try to extract the information from the database using: $result

RE: [PHP] Does this seem odd? File Upload Permissions

2002-03-26 Thread Demitrious S. Kelly
The default file permission for new files on the *nix system may be set to something like 755... that could be the problem... -Original Message- From: David McInnis [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 26, 2002 11:03 PM To: [EMAIL PROTECTED] Subject: [PHP] Does this seem odd?

RE: [PHP] Does this seem odd? File Upload Permissions

2002-03-26 Thread Demitrious S. Kelly
That's not entirely true... if php is running as cgi it would need the execution bit set. Or if someone wanted to write a shell script in php to be used to help compromise a server it would need to be executable as well... -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL

RE: [PHP] Does this seem odd? File Upload Permissions

2002-03-26 Thread Demitrious S. Kelly
Either severely mis-configure, or make a mistake (damn us humans and our mistakes :) -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 26, 2002 11:15 PM To: Demitrious S. Kelly Cc: 'David McInnis'; [EMAIL PROTECTED] Subject: RE: [PHP] Does this seem

RE: [PHP] Require variable declaration?

2002-03-27 Thread Demitrious S. Kelly
You don't need to do this with PHP... a variable is created when you assign a value to it. It is also unnecessary to assign a type. PHP will typecast automatically as necessary -Original Message- From: Kjell Hansen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 12:47 PM To:

RE: [PHP] Regex Form Filter Help

2002-03-27 Thread Demitrious S. Kelly
Why not just limit it to one br? ?php $string=blahbrbrbrbrbrbrbrbrbrstuff; while ( stristr($string, 'brbr') ) { $string=str_replace('brbr', 'br', $string); } echo $string; ? something like that would wok well enough... -Original Message-

RE: [PHP] Program Looping ?

2002-03-28 Thread Demitrious S. Kelly
Well you'd have to work with inputs, etc... for the key... but the look isn't hard $loop=1; $sleep=300; while ( $loop == 1 ) { code(); sleep($sleep); if ( %%keypresscode%% ) { $loop = 0; } } I'd probably just touch a file somewhere when I want it

Re: [PHP] Checking url validation

2002-03-29 Thread Billy S Halsey
] -- /-=[ BILLY S HALSEY ]=--\ | Member of Technical Staff, Sun Microsystems, Inc. ESP Solaris SW | | All opinions and technical advice offered in this message are my | | own and not necessarily endorsed by my employer. | \--=[ [EMAIL PROTECTED

Re: [PHP] Checking url validation

2002-03-29 Thread Billy S Halsey
Oops ... That's not balanced. Add another ) at the end of the if. /bsh/ Billy S Halsey wrote: Try an extra layer of parens: if (($fp = fopen(http://www.anyurl.com;, r) == NULL) { echo not valid; } else { echo this is a valid url; } Roberts, Mark wrote: I am using

RE: [PHP] Pulling data into an array and sorting

2002-03-30 Thread Demitrious S. Kelly
Run a while loop on your data and pull it into an array Heres an example (though this pulls from a text file the idea is the same...) Hope this helps... ?php // READING THE DATA function read_data($datafile) { $data=file($datafile); foreach ( $data as $line ) {

RE: [PHP] Disabling the Back Button?

2002-03-30 Thread Demitrious S. Kelly
You could use sessions for the script... store a variable in the session when the page has been completed and make sure the script does not execute if the current session has the appropriate variable... -Original Message- From: David Johansen [mailto:[EMAIL PROTECTED]] Sent: Saturday,

RE: [PHP] For Loop going too long

2002-03-30 Thread Demitrious S. Kelly
Try a foreach... it works well... -Original Message- From: Lars Torben Wilson [mailto:[EMAIL PROTECTED]] On Behalf Of Lars Torben Wilson Sent: Saturday, March 30, 2002 4:38 PM To: David Johansen Cc: [EMAIL PROTECTED] Subject: Re: [PHP] For Loop going too long On Sat, 2002-03-30 at

RE: Re[2]: [PHP] Pulling data into an array and sorting

2002-03-30 Thread Demitrious S. Kelly
Take a look at this: ?php $result = mysql_query(); while ( $data = mysql_fetch_array($result) ) { $pnumber=$data[Pnumber]; $ourdata[$pnumber][]=$data; } echo pre; foreach ( $ourdata as $data ) { foreach (

RE: [PHP] fetching a parameter from url like on php.net A mirarcle?

2002-03-31 Thread Demitrious S. Kelly
I believe this is done with mod_rewrite -Original Message- From: Andy [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 31, 2002 12:54 AM To: [EMAIL PROTECTED] Subject: [PHP] fetching a parameter from url like on php.net A mirarcle? Hi there, I am wondering how to get a parameter from

RE: [PHP] tired by linux - recompiling.._PHP SERVER

2002-04-01 Thread Demitrious S. Kelly
I don't know any offhand... but taking the easy road never produced anything more secure then a bad IIS server... Try my walkthrough... (ok... not walkthrough, but example) http://www.apokalyptik.com/lsftgu/Apache-Frontpage-Mod_ASP-Mod_SSL-Mod_P erl-Php/index.htm -Original Message-

Re: [PHP] WWW-Authenticate problem in Apache

2002-04-02 Thread Billy S Halsey
to the login box, the failed, retry message comes out and it becomes a dead loop - login - retry - login .. Can anyone help me ?? Ken -- /-=[ BILLY S HALSEY ]=--\ | Member of Technical Staff, Sun Microsystems, Inc. ESP Solaris SW | | All

RE: [PHP] Re: Any ideas on combining arrays????

2002-04-03 Thread Demitrious S. Kelly
Use a multi-dimensional array... try this as a kind of 'proof of concept' ?php $array[tu4r][]=0 $array[tu4r][]=10 $array[tu4r][]=100 $array[tu4r][]=1000 $array[ph10][]=0; $array[ph10][]=1; $array[ph10][]=2; $array[ph10][]=126; echo 'pre'; foreach ( $array[ph10] as $value ) { echo '

Re: [PHP] cvs tags (version?)

2002-04-04 Thread John S. Huggins
print(p$Revision: $/p); The next time you commit a file with this in it, the $Revision:$ will be replaced by $Revision: 1.38$ if you version is in fact 1.38. On Thu, 4 Apr 2002, Jeff D. Hamann wrote: -I'm trying to find a way to insert the cvs version into a footer of my php -files so I can

[PHP] Multiple Selection Menu Dilemma

2002-04-06 Thread Phillip S. Baker
\toption value=\%s_%s\%s%s/option\n, $pos_id, $rec[0], $selected, $rec[1]); } echo TTT . '/select' . B; echo TTT . '/td' . B; trc(); Now my problem is with the multiple feature of the drop down menu. The first query to the db resulting in the $query variable may

Re: [PHP] Adding a in try.jpg!

2002-04-08 Thread Billy S Halsey
. Thanks, T. Edison Jr. __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ -- /-=[ BILLY S HALSEY ]=--\ | Member of Technical Staff, Sun Microsystems, Inc. ESP

Re: [PHP] the document contained no data

2002-04-11 Thread Phillip S. Baker
At 10:33 PM 4/11/2002 Thursday, Phieu Huynh wrote: I also try the following code and still have the same problem. I am runing php4.0.?, solaris(linux) $dir_name = /export/home/phuynh/php/main/student/upload/; $dir = opendir($dir_name); while (false !== ($file_names = readdir($dir))) {

[PHP] Output to system printer

2002-04-12 Thread Bruce S. Garlock
I have a script which, when modified or added, automatically prints out to a system printer that I define. Here is some sample code: $job_desc=urldecode($job_desc); define(PRINT_CMD, lpr -Pis ); $prt = -\n; $prt .= | $type DRAWDOWN REQUEST |\n; $prt .=

[PHP] ForceType hack with Apache 2?

2002-06-10 Thread a . h . s . boy
I've built an application framework in PHP that makes heavy use of the smart URL technique for passing variables, which works great with Apache 1.3.22. I have reports, however, that it breaks under Apache 2.x, and would like to verify whether or not anyone can confirm this. I'm using URLs to

[PHP] internationalization and gettext

2002-06-13 Thread a . h . s . boy
I developed a rather large and extensive PHP application for maintaining a news publishing site. All static text was, when I created it, written in English. Form field labels, long explanatory texts, navigational links, everything. The popularity of the application, however, has drifted

[PHP] Beginning / and end of word / in eregi_replace

2002-06-14 Thread John S. Huggins
Can it be true that PHP does not implement the beginning and end of word syntax of regular expressions? In builing a bad word filter, I find this... $outstring = eregi_replace(badword$,goodword,$stringtocheck); will find an occurance of the 'badword' at the end of the string and replace it.

Re: [PHP] Beginning / and end of word / in eregi_replace

2002-06-14 Thread John S. Huggins
... - John Holmes... - -- Original Message - -From: John S. Huggins [EMAIL PROTECTED] -To: [EMAIL PROTECTED] -Sent: Friday, June 14, 2002 11:37 AM -Subject: [PHP] Beginning / and end of word / in eregi_replace - - - - Can it be true that PHP does not implement the beginning and end of word - syntax

Re: [PHP] md5 php vs. md5 perl

2002-06-16 Thread John S. Huggins
On Sun, 16 Jun 2002, Danny Kruitbosch wrote: -Hi, - -I'm trying to rewrite a perl finction to php. The function uses Digest::MD5. - -PHP md5() returns a 32 char hex number. The perl Digest::MD5 function -returns a 16 char (ascii??) string. Can I also get this from PHP? If so -how do I do that?

[PHP] Hex operations

2002-06-20 Thread Frank S. Kicenko
U... Does anybody know why this doesn't work... Example: $cap = 16383; $cap1 = dechex($cap); // cap1 is now equal to 3FFF; $bit = ($cap1 | 0x01); //bit should equal 3FFF, but it doesn't.. it is always = 3 !! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Hex operations

2002-06-20 Thread Frank S. Kicenko
I think the goofy variable is getting truncated (3FFF | 4) is returning 7 (4FFF | 4) is returning 8 -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 6:37 PM To: Frank S. Kicenko; [EMAIL PROTECTED] Subject: RE: [PHP] Hex operations

RE: [PHP] Hex operations

2002-06-20 Thread Frank S. Kicenko
sorry... (4FFF | 4) is returning 4 -Original Message- From: Frank S. Kicenko Sent: Thursday, June 20, 2002 7:34 PM To: Martin Towell; [EMAIL PROTECTED] Subject: RE: [PHP] Hex operations I think the goofy variable is getting truncated (3FFF | 4) is returning 7 (4FFF | 4

Re: [PHP] Upgraded and now apache just dies

2002-06-21 Thread Billy S Halsey
Patrick, Try running it thus: truss -f apachectl start That should tell you where it's dying. [billy] -- /-=[ BILLY S HALSEY ]=--\ | Member of Technical Staff, Sun Microsystems, Inc. ESP Solaris SW | | All opinions and technical advice offered

Re: [PHP] Upgraded and now apache just dies

2002-06-21 Thread Billy S Halsey
that it is able to open the file, but not close it. Without seeing more, that's all I can really say. [billy] -- /-=[ BILLY S HALSEY ]=--\ | Member of Technical Staff, Sun Microsystems, Inc. ESP Solaris SW | | All opinions and technical advice offered

Re: [PHP] Upgraded and now apache just dies

2002-06-21 Thread Billy S Halsey
Oops, I spoke too quickly. The problem isn't with the close, it's with the door_info() syscall. Perhaps file descriptor 8 isn't a door ... [billy] -- /-=[ BILLY S HALSEY ]=--\ | Member of Technical Staff, Sun Microsystems, Inc. ESP Solaris SW

[PHP] Menu Selections Dynamic from a Database

2002-06-25 Thread Phillip S. Baker
Greetings All, Here is the problem I am trying to solve, I know it can be done but I am not clear on how to do it. I am generating an appointment application. And I want to dynamically populate pulldown menus from values in a DB. So if a person picks a day for an appointment in a pulldown

RE: [PHP] Menu Selections Dynamic from a Database

2002-06-25 Thread Phillip S. Baker
is client-side. If you need any code let me know. Good luck! -Natalie Yes I knew it was Javascript code, but I also thought PHP was needed to get the values from the DB. Either case I do need help with what the code might look like. Phillip -Original Message- From: Phillip S. Baker

RE: [PHP] Re: PHP and OOP

2002-06-27 Thread Demitrious S. Kelly
Comparison (do not compare the speeds between the versions of php as they are on different servers under different loads.) The only conclusion that I can draw from this so far is that different versions of php handle these situations differently, newer versions may handle OOP code better that

RE: [PHP] grabbing content of a web page...

2002-06-27 Thread Demitrious S. Kelly
File() or fgets() -Original Message- From: Kelly Meeks [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 12:54 PM To: [EMAIL PROTECTED] Subject: [PHP] grabbing content of a web page... Howdy, I know there has to be a way to grab output of an url on another site? Let's say you

RE: [PHP] PHP Session Idle Time

2002-06-27 Thread Demitrious S. Kelly
Save time as a session variable... and if current time minute time is greater than x seconds, then destroy the session and start over. -Original Message- From: Jefferson Cowart [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 2:13 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP

RE: [PHP] ok what kind of crack is my computer smoking?

2002-06-27 Thread Demitrious S. Kelly
You check and make sure the date was set right on the box? You could try make clean for everything before configuring... -Original Message- From: Rick Kukiela [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 2:10 PM To: [EMAIL PROTECTED] Subject: [PHP] ok what kind of crack is

RE: [PHP] ok what kind of crack is my computer smoking?

2002-06-27 Thread Demitrious S. Kelly
Whoa! Good idea! -Original Message- From: Kurth Bemis (List Monkey) [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 2:35 PM To: Demitrious S. Kelly Cc: 'Rick Kukiela'; [EMAIL PROTECTED] Subject: RE: [PHP] ok what kind of crack is my computer smoking? At 02:19 PM 6/27/2002

RE: [PHP] Re: PHP and OOP

2002-06-27 Thread Demitrious S. Kelly
greatly... its all situational. -Original Message- From: Demitrious S. Kelly [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 1:04 PM To: 'SP'; 'Remy Dufour'; 'Kondwani Spike Mkandawire'; [EMAIL PROTECTED] Subject: RE: [PHP] Re: PHP and OOP Comparison (do not compare the speeds

RE: [PHP] Re: PHP and OOP

2002-06-27 Thread Demitrious S. Kelly
I agree... its trivial when presented as is. But what would be the difference when you're doing quite a lot more with only 10 iterations? 100? That's something to think about... -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 5:21 PM To:

Re: [PHP] Incrementing a table cell

2002-06-28 Thread John S. Huggins
Table fubar ID, SomeNumber 1 456 2 123 3 3 4 4589 $query = UPDATE fubar SET SomeNumber = SomeNumber+1 WHERE ID = 2; Result Table fubar ID, SomeNumber 1 456 2 124 3 3 4 4589 On Fri, 28 Jun 2002, JJ Harrison wrote: -what is the best way to increment a mySQL

[PHP] Scheduling tasks

2002-07-05 Thread Frank S. Kicenko
Hi, I couldn't find anything in the help files or the faq... but. Are there any scheduling fuctions with PHP? What I'm looking for is something functionally close to a crontab. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Generate a file

2002-07-10 Thread Phillip S. Baker
Okay here is what I want to do. Select the field of a database that I want. Hit submit. Execute a query of a database based on the said form. Gather all the data and rows and plug them into an excel generated file. Display a dialogue box asking the user the save the file. The saved file being an

Re: [PHP] Development Tools

2002-07-10 Thread John S. Huggins
Dreamweaver has come along nicely. I have only dabbled at the MX version. Ultraedit, http://www.ultraedit.com/, has proven to be very nice at handling editing tasks of PHP, HTML, SQL, and hundreds of other languages. It can edit files via FTP which was useful to me years ago and continues to

Re: [PHP] rebooting linux using php

2002-07-18 Thread John S. Huggins
On Thu, 18 Jul 2002, Harpreet Kaur wrote: - -Can we reboot a linux server using a php page? Yes. -And is it recommended? No. - -Regards, -Harpreet Kaur - - -_ -Join the world’s largest e-mail service with MSN Hotmail. -http

Re: [PHP] is php.net down ?

2002-07-22 Thread John S. Huggins
They seem to be working on it. It comes up every few minutes so keep trying. I managed to sneak it just long enough to snag 4.2.2. On Mon, 22 Jul 2002, R'twick Niceorgaw wrote: -Hi guys, -any one else able to get into www.php.net ? - -I'm getting this - -Warning: main(geoip.inc) - No such

RE: [PHP] Windows NT Server, FORK, SOCKETS, and seperate processes

2002-07-22 Thread Demitrious S. Kelly
Yes. Write a daemon which listens on a socket and manages the communications it gets from the satellite scripts and works the database for them... The scripts send off data, and process replies. They don't do the heavy work... -Original Message- From: David Buerer [mailto:[EMAIL

RE: [PHP] Comma question

2002-07-22 Thread Demitrious S. Kelly
I think someone working on learning php after learning C was a little too printf() happy :) -Original Message- From: B i g D o g [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 3:34 PM To: PHP GEN Subject: [PHP] Comma question Tried to check the archive, but it is offline...

RE: [PHP] Formating datevariables...

2002-07-22 Thread Demitrious S. Kelly
Why not let mysql do it? It has a function do to exactly that, I think... But php's date() is the function you're looking for... -Original Message- From: Ragnar [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 4:42 PM To: [EMAIL PROTECTED] Subject: [PHP] Formating

[PHP] Cookies

2002-07-24 Thread John S. Huggins
Say it is not so. I hear the PHP 4.2.2 will only set the last cookie delivered by a browser to a variable in the PHP environment. Is this true? ** John Huggins VANet [EMAIL PROTECTED] http://www.va.net/ ** -- PHP

Re: [PHP] Help with msql_fetch_array()

2002-07-24 Thread Phillip S. Baker
At 11:26 AM 7/24/2002 Wednesday, Martin Clifford wrote: Shouldn't it be: $result = mysql_query($sql, $link_id); Actually mysql_query should default to the last database connection opened if no link identifier has been specified. So the link identifier to not absolutely required. Phillip --

Re: [PHP] Nasty DoS in PHP | Windows only?

2002-04-18 Thread Billy S Halsey
the mailing list archive to find it) and at the time got more of a congratulatory salute from the list members than any real responses :) Maybe this is more of a PHP-on-IIS issue than an actual security issue in PHP. Jason -- /-=[ BILLY S

RE: [PHP] Forms in PHP

2002-04-18 Thread Demitrious S. Kelly
Use an array input type=hidden name=itemid[] value=11/input input type=hidden name=itemid[] value=22/input input type=hidden name=itemid[] value=33/input $numberofitemids=count($itemid); echo $itemid[0]; // == 1 echo $itemid[1]; // == 2 echo $itemid[2]; // == 3 cheers -Original

RE: [PHP] Directory

2002-04-18 Thread Demitrious S. Kelly
Use the dir class -Original Message- From: Jeroen Timmers [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 16, 2002 4:57 AM To: [General] Subject: [PHP] Directory Hello, can i read a directory for files and other directory's with a php function for exameple d:\localhost\ had the

RE: [PHP] Within the date format

2002-04-19 Thread Demitrious S. Kelly
Wouldn't it be easier to convert each date into a unix timestamp, then subtract... the resulting number is the difference in seconds. Then devide by 60 for minutes, again for hours 24 for days, etc, etc -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Friday,

RE: [PHP] Within the date format

2002-04-19 Thread Demitrious S. Kelly
++; $refy++; $refy++; $refy++; } return($leap); } -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 8:52 AM To: Demitrious S. Kelly Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Within the date format

RE: [PHP] Within the date format

2002-04-19 Thread Demitrious S. Kelly
Whatever works And the function works fine for any year after 2000 Besides... it was just a quick and dirty example -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 9:14 AM To: Demitrious S. Kelly Cc: [EMAIL PROTECTED] Subject: RE: [PHP

[PHP] List, Key, Value oh my.

2002-04-23 Thread John S. Huggins
I have a problem. I am fetching rows from a MySQL table called temp. Each row has four fields: Name, 1, 2 and 3 Then I do this function which will eventually generate records for a lookup table for any skills in the 1, 2 or 3 fields that equal the string YES associated with the Name (right

Re: [PHP] List, Key, Value oh my.

2002-04-23 Thread John S. Huggins
not Name. On Tue, 23 Apr 2002, John S. Huggins wrote: - -I have a problem. - -I am fetching rows from a MySQL table called temp. Each row has four -fields: Name, 1, 2 and 3 - -Then I do this function which will eventually generate records for a -lookup table for any skills in the 1, 2 or 3 fields

Re: [PHP] List, Key, Value oh my.

2002-04-23 Thread John S. Huggins
value of Name is zero. Try using === to compare type as well -as value. - -miguel - -On Tue, 23 Apr 2002, John S. Huggins wrote: - I forgot to show you some output from this thing... - - ---{0,BLOW, JOE}---Name is BLOW, JOE, Key = 0 | - ---{Name,BLOW, JOE}---Name is BLOW, JOE, Key = Name | - ---{1

[PHP] searching terms non adjacent

2002-04-24 Thread Jenice S. Tate
What's the best programming method to use to search terms that are non adjacent? -- Jenice S. Tate, Systems Administrator MS Dept. of Archives History Archives Library Division - Computer Support Phone: (601) 359-6900 Fax: (601) 359-6964 -- PHP General Mailing List (http://www.php.net

Re: [PHP] bulletin board algorithm in php - how to write one?

2002-04-24 Thread John S. Huggins
Recursion is the way I manage this in my forum script. The database table for a particular forum topic does not have any concept of threads in the field data. Each message only knows who its parent is. If the parent ID = 0, then I know this is the first message of a virtual thread. Have a

Re: [PHP] newbie problem under Solaris

2002-04-30 Thread Billy S Halsey
- Emiliano H.Marmonti Informático Módulo de Bibliotecas Programa SIU Ministerio de Educación de la Nación -- /-=[ BILLY S HALSEY ]=--\ | Member of Technical Staff, Sun Microsystems

Re: [PHP] Include Files self aware?

2002-04-30 Thread Billy S Halsey
-- /-=[ BILLY S HALSEY ]=--\ | Member of Technical Staff, Sun Microsystems, Inc. ESP Solaris SW | | All opinions and technical advice offered in this message are my | | own and not necessarily endorsed by my employer. | \--=[ [EMAIL PROTECTED

Re: [PHP] date wierdness

2002-05-03 Thread John S. Huggins
Long ago I saw this same thing and never did resolve it since the easier solution is to let MySQL format the date for you using DATE_FORMAT. Formatting the date using PHP tools from data derived from a query will just drive you nuts. There is some kind of thing that MySQL and PHP don't agree on

Re: [PHP] Create Picture Thumbnails On the gly with PHP

2002-05-03 Thread John S. Huggins
ImageMagic works pretty well. You invoke their command line programs using the shell capabilities of PHP. convert is the particular command you want. On Fri, 3 May 2002, simos wrote: -Hi - -My Hosting Provider has'nt the GD lib in PHP enabled. Are threre any alternative to create jpg

Re: [PHP] Another doubt in Solaris-PHP install

2002-05-03 Thread Billy S Halsey
Emiliano, Make sure that /usr/ccs/bin is in your path. That's where ar(1) lives. /bsh/ Emiliano Marmonti wrote: Hi people, I've downloaded gcc package, make package and libtool package for proper compiling. I have finished the config process. When I try to make appears: libtool: ar not found

Re: [PHP] adding 60 to a date

2002-05-07 Thread John S. Huggins
On Tue, 7 May 2002, Scott St. John wrote: -Morning - -I am working on a password aging system that will force a user to change -their password every 60 days. Can anyone recommend the best method for -taking the current date and adding 60 days to that number? Should I do a -unix

[PHP] fsockopen, and remaining data in buffer

2002-05-09 Thread Demitrious S. Kelly
for the help! - -- Demitrious S. Kelly -- Eagle Networks

Re: [PHP] How to stop site flipping?

2002-05-13 Thread John S. Huggins
If they reveal themselves in the AGENT info of each web request, you could act on that accordingly in your PHP code by looking at the REQUEST_AGENT variable. I use this tactic to prevent web sucking programs from access my site all at once. On Mon, 13 May 2002, David McInnis wrote: -I have

Re: [PHP] Compiling PHP on Solaris 7

2002-05-15 Thread Billy S Halsey
] -- /-=[ BILLY S HALSEY ]=--\ | Member of Technical Staff, Sun Microsystems, Inc. ESP Solaris SW | | All opinions and technical advice offered in this message are my | | own and not necessarily endorsed by my employer. | \--=[ [EMAIL

[PHP] dtcm interface?

2002-05-20 Thread Billy S Halsey
that to interface with it. (If I'm wrong, please let me know!) Thanks in advance for your help. /bsh/ -- /-=[ BILLY S HALSEY ]=--\ | Member of Technical Staff, Sun Microsystems, Inc. ESP Solaris SW | | All opinions and technical advice offered in this message

Re: [PHP] How to simultaneously send HTML *and* start download?

2002-05-21 Thread Billy S Halsey
/ -- /-=[ BILLY S HALSEY ]=--\ | Member of Technical Staff, Sun Microsystems, Inc. ESP Solaris SW | | All opinions and technical advice offered in this message are my | | own and not necessarily endorsed by my employer. | \--=[ [EMAIL PROTECTED

Re: [PHP] simple array question

2002-05-27 Thread Billy S Halsey
Jose, Try this: for ($i = 0; $i $whatever; $i++) { $myArray[] = // ... } /bsh/ Jose Jeria wrote: in javascript i can build an array doing like this: for(i=0; i whatEver.length; i++){ myArray[myArray.length] = // } What is the equivalent to this in PHP? Is this the only

Re: [PHP] PhP, mysql and pictures

2002-05-27 Thread John S. Huggins
On Mon, 27 May 2002, Ragnar wrote: -Is it possible to display images in a browser that are stored as a blob -column in a mysql table? Or is it better to store images in a direcotory and -display them from there? IMHO it is better to let a file system store the image files and let MySQL

RE: [PHP] POST Format

2002-05-29 Thread Demitrious S. Kelly
No you can do Index.php?name=apokalyptik[EMAIL PROTECTED]subscribe=n o ?php echo 'pre'; echo 'NAME: '.$name.chr(10); echo 'EMAIL:'.$email.chr(10); echo 'SUBSCRIBE:'.$subscribe; echo '/pre'; ? -Original Message- From: Jonathan Rosenberg [mailto:[EMAIL

RE: [PHP] Mail Archives

2002-05-29 Thread Demitrious S. Kelly
Archives of the mailing list are available here: http://news.php.net/ Tutorials (good as books) check www.zend.com, www.hotscripts.com and www.phpbuilder.net (com?org?) -Original Message- From: Natarajan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 6:40 PM To: PHP Subject:

Re: [PHP] .php3 extension?

2002-05-30 Thread John S. Huggins
Somewhere in the apache configuration file you will find something like this... IfModule mod_php4.c AddType application/x-httpd-php .php AddType application/x-httpd-php .php4 AddType application/x-httpd-php-source .phps /IfModule To include the old .php3 extension make it

RE: [PHP] PHP / Apache 2.0.39 issues

2002-07-26 Thread Frank S. Kicenko
Yes I found it... thank you! -Original Message- From: Aaron Gould [mailto:[EMAIL PROTECTED]] Sent: Friday, July 26, 2002 9:56 AM To: Frank S. Kicenko; [EMAIL PROTECTED] Subject: Re: [PHP] PHP / Apache 2.0.39 issues Searching the list archives will reveal the answer. I've answered

[PHP] PHP / Apache 2.0.39 issues

2002-07-26 Thread Frank S. Kicenko
Hello again.. I have another compile problem, I'm wondering if someone can help me. I've built and installed Apache 2.0.39 and am recompiling PHP4.2.2. Below are the details.. ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib=/usr --with-oci8=`dbhome` Compiling... Entering

[PHP] Oracle 8i SQL Problem..

2002-07-28 Thread Frank S. Kicenko
Hi, This really isn't a PHP issue..sorry. I'm having a nightmare with Oracle 8i (pos!). I'm writing common SQL which works for MSSQL 2K and seems correct for Oracle... but keeps giving me a Error.. ORA-00933 SQL command not properly ended on the following query... SELECT grp.grpdescrip,

[PHP] MD5 and Password Security?

2002-08-13 Thread John S. Huggins
On Wed, 14 Aug 2002, Robert Parker wrote: -On Tuesday 13 August 2002 10:57 am, you wrote: - MD5 encryption of passwords is secure since you do not need to decrypt the - password ever (in fact you can't). You just encrypt the password that the - user entered and check if the MD5 of each password

Re: Re[2]: [PHP] Credit Card suggestions

2002-08-13 Thread John S. Huggins
On Wed, 14 Aug 2002, Robert Parker wrote: -On Tuesday 13 August 2002 12:20 pm, you wrote: - Makes sense, except if you use upper and lowercase characters, - numbers, and symbols (as you should for secure passwords). I - would think that with these kind of passwords, storing the sheer - number of

Re: Re[2]: [PHP] Credit Card suggestions

2002-08-13 Thread John S. Huggins
On Wed, 14 Aug 2002, Robert Parker wrote: -On Tuesday 13 August 2002 12:20 pm, you wrote: - Makes sense, except if you use upper and lowercase characters, - numbers, and symbols (as you should for secure passwords). I - would think that with these kind of passwords, storing the sheer - number of

Re: [PHP] MySQL vs. basic text file

2002-09-23 Thread John S. Huggins
I was doing this too with good old AWK CGI scripts and text data files. Once I imported the data into MySQL I said, Well this is not much benefit. Then I started sorting. Then I accessed the information from a different application. Then I wrote a maintenance application so my customer could

Re: [PHP] Adding to a MySql Database

2002-09-24 Thread John S. Huggins
On Tue, 24 Sep 2002, The New Source wrote: -I have a field on a MySql database that is started with a 0, and I want -to add 1 to this field every time a button is pressed on a form. So it -should add one every time, like if there is 5 and you press it one time -it would have 6. - UPDATE table

[PHP] LocalHost won't show PHP files

2002-09-26 Thread Serbinski, Theodore S
Hi. I've scoured the net, posted tons of forum threads, tried everything. I simply cannot get this to work, yet it should be so simple. I recently had our Admin guy install PHP as a CGI-binary on a Unix system. Apache 1.3.2 is also installed. He didn't install PHP as a Apache module because the

Re: [PHP] Disable Back Button

2001-10-19 Thread Richard S. Crawford
Can you imagine the trouble you'd get into if you could? At 09:47 PM 10/19/2001, Chip Landwehr wrote: Is there any way to do this in PHP4? Sliante, Richard S. Crawford http://www.mossroot.com mailto:[EMAIL PROTECTED] AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford It is only with the heart

Re: [PHP] INPUT tag with default value

2001-10-23 Thread Richard S. Crawford
RFC : http://www.faqs.org/rfcs/rfc1867.html regards, Philip Ollson Sliante, Richard S. Crawford http://www.mossroot.com mailto:[EMAIL PROTECTED] AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford It is only with the heart that we see rightly; what is essential is invisible to the eye. --Antoine

Re: [PHP] aaaaaaaaaaaaaaa

2001-10-23 Thread Richard S. Crawford
] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] Sliante, Richard S. Crawford http://www.mossroot.com mailto:[EMAIL PROTECTED] AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford It is only with the heart that we see rightly; what is essential

Re: [PHP] Opening a new page when done

2001-10-24 Thread Richard S. Crawford
Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] Sliante, Richard S. Crawford http://www.mossroot.com mailto:[EMAIL PROTECTED] AIM: Buffalo2K ICQ: 11646404 Y

Re: [PHP] I NEED HELP WITH PWS AND W98

2001-10-24 Thread Richard S. Crawford
a search on a search engine. There are also instruction pages on how to make php work on apache (you need to change two or three lines in a configuration file). good luck. Chris Sliante, Richard S. Crawford http://www.mossroot.com mailto:[EMAIL PROTECTED] AIM: Buffalo2K ICQ: 11646404 Y

Re: [PHP] how do i give optional arguments to functions??

2001-10-24 Thread Richard S. Crawford
: [EMAIL PROTECTED] Sliante, Richard S. Crawford http://www.mossroot.com mailto:[EMAIL PROTECTED] AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford It is only with the heart that we see rightly; what is essential is invisible to the eye. --Antoine de Saint Exupéry Push the button, Max! -- PHP

<    1   2   3   4   5   6   7   8   9   10   >