php-general Digest 31 Mar 2001 07:49:49 -0000 Issue 599

2001-03-30 Thread php-general-digest-help
php-general Digest 31 Mar 2001 07:49:49 - Issue 599 Topics (messages 46369 through 46437): Size Limit for PHP scripts 46369 by: Wally Hartshorn 46371 by: Cal Evans 46390 by: Wally Hartshorn 46392 by: Michael Kimsal 46393 by: Jon Rosenberg 4640

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Yasuo Ohgaki
I found interesting link http://www.deskcode.com/phpcompiler/ PHPCompiler v0.0.2 Beta PHPCompiler is an Overlay Manager i.e. A program that converts your PHP Scripts to Windows EXEcutable files that can be ran on any windows platform which has the necessary runtime DLL's. PHPCompiler works on th

Re: [PHP] Size Limit for PHP scripts

2001-03-30 Thread Yasuo Ohgaki
Typo in my post ""Yasuo Ohgaki"" <[EMAIL PROTECTED]> wrote in message 9a3hpe$n1m$[EMAIL PROTECTED]">news:9a3hpe$n1m$[EMAIL PROTECTED]... SNIP > > BTW, do you use multi-type char codeset? BTW, do you use multi-byte char codeset? > Regards, > > -- > Yasuo Ohgaki -- PHP General Mailing List (h

Re: [PHP] "Here Document" function AWOL

2001-03-30 Thread Kristofer Widholm
Here's what you wrote, 01.03.30: >http://www.php.net/manual/html/language.types.string.html#AEN2504 > >what you wrote looks correct...just make sure you have no trailing >whitespace on the >$body = < >best of luck >jack Silly me, I kept search

Re: [PHP] Catagory list

2001-03-30 Thread Mark Bayfield
Thanks man, this works great... "Basil Groman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > If I understand what you are looking for, this should work for you: > > $indent_str = '   '; > $qry = 'SELECT * FROM test ORDER BY category'; > $result = mysql_query

[PHP] renaming form posted variable names

2001-03-30 Thread David Minor
I've got a logic problem that I just can't think through. I'm hoping that you can help me find a better way to do this. I need a function that will iterate through $HTTP_POST_VARS looking for variable names with a predefined suffix ($example_post). Then I want to save the value of this var in a

Re: [PHP] "Here Document" function AWOL

2001-03-30 Thread Jack Dempsey
http://www.php.net/manual/html/language.types.string.html#AEN2504 what you wrote looks correct...just make sure you have no trailing whitespace on the $body = << > Dear PHPers. I have tried to get the "Here Document" functionality to > work, all to no avail. > > I am writing the following code

Re: [PHP] More questions about installing.....

2001-03-30 Thread Jon Jacob
Greg Donald wrote: > Got me... I can't think of much else. Sorry... > > > destiney - (des-ti-ny) - n. 1. deity of all things "html", 2. common > internet addict, 3. lover of late 80's heavy metal music, 4. Activist > for t

[PHP] "Here Document" function AWOL

2001-03-30 Thread Kristofer Widholm
Dear PHPers. I have tried to get the "Here Document" functionality to work, all to no avail. I am writing the following code: $body = <

Re: [PHP] More questions about installing.....

2001-03-30 Thread Jon Jacob
Greg Donald wrote: > > Ah, but there my friend is the rub. I did put that in. > > > > .And, all the conditions for the modules are there and > > specifically the > > module for php4 is present and the conditional is there. I tried > > putting the > > line above in the wide open (outside a c

RE: [PHP] More questions about installing.....

2001-03-30 Thread Greg Donald
> Ah, but there my friend is the rub. I did put that in. > > .And, all the conditions for the modules are there and > specifically the > module for php4 is present and the conditional is there. I tried > putting the > line above in the wide open (outside a conditional) but that made narr

Re: [PHP] Size Limit for PHP scripts

2001-03-30 Thread Yasuo Ohgaki
If you don't have errata in your script. I think you got similar experience as I did. I use PHP4.0.4pl1/Apache DSO/Linux I had a script that will not include files more than 20. PHP silently fails to include statement like and no output on browser what so ever. Note: PHP can include files more th

Re: [PHP] Catagory list

2001-03-30 Thread Basil Groman
If I understand what you are looking for, this should work for you: $indent_str = '   '; $qry = 'SELECT * FROM test ORDER BY category'; $result = mysql_query($qry); $current_category = ""; while ($r = mysql_fetch_array($result)){ if ($r['category'] <> $current_category){

Re: [PHP] More questions about installing.....

2001-03-30 Thread Jon Jacob
Greg Donald wrote: > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jon Jacob > > Sent: Friday, March 30, 2001 9:05 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] More questions about installing. > > > > > > Sorry for the newbie level question

Re: [PHP] Catagory list

2001-03-30 Thread Mark Bayfield
Thanks for the code... I got it to do what I wanted, by modifying it to this $result = mysql_query ("SELECT * from article ORDER BY catagory"); $temp = ""; while ($r = mysql_fetch_array($result)) { if (empty($temp)) // will be fired only once! { $temp = $r["catagory"]; // get category

Re: [PHP] duplicate tables

2001-03-30 Thread CC Zona
In article <9a3fme$4hg$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("McShen") wrote: > i have a table named "refer" > I wanna duplicate a table name "refer2" so that i can mess around with it. Have you checked the manual for your DBMS? Something like "create table refer2 select * from refer" should

RE: [PHP] More questions about installing.....

2001-03-30 Thread Greg Donald
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jon Jacob > Sent: Friday, March 30, 2001 9:05 PM > To: [EMAIL PROTECTED] > Subject: [PHP] More questions about installing. > > > Sorry for the newbie level questions, but I am having more weird inst

RE: [PHP] No-refresh

2001-03-30 Thread Greg Donald
> Does anyone know of a way to stop the user from refreshing a page several > times. > > i.e if I add a value to a database using a form and PHP, I don't want the > user to be able to simply press refresh and add the value to the database > again. > > Please help, > Dvaid. Many methods exist,

[PHP] More questions about installing.....

2001-03-30 Thread Jon Jacob
Sorry for the newbie level questions, but I am having more weird install problems. Its just been so long since I did all this installing crap I guess I forgot a couple of things.. I have recompiled Apache and PHP according to the instructions in the INSTALL doc, but when I run it now the doc

[PHP] duplicate tables

2001-03-30 Thread McShen
hi i have a table named "refer" I wanna duplicate a table name "refer2" so that i can mess around with it. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators

Re: [PHP] fscanf syntax

2001-03-30 Thread Patrick Brown
Thanks Chris, That worked great. I didn't know that a file could be read directly into an array. --Pat "Chris Fry" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Pat, > > You could read the file into an array; > > $aryNessus = file("/pathtofile/filename", "r

Re: [PHP] Passing by reference deprecated?

2001-03-30 Thread Yasuo Ohgaki
I benched function with and without reference for a relatively large data (512KB, I think). I iterated 10,000 or 100,000 times to see the difference. (I posted the result in this list) The result is almost the same and should not be worried much about performance, but function without reference w

Re: [PHP] fscanf syntax

2001-03-30 Thread Chris Fry
Pat, You could read the file into an array; $aryNessus = file("/pathtofile/filename", "r"); Each row of the array then has one line from the file; Get the record count; $intNumRecs = count($aryNessus); Now read through the array and extract the values; for($i=0;$i<=$intNumRecs;$i++) { $ar

Re: [PHP] fscanf syntax

2001-03-30 Thread Brian Clark
Hi Patrick, @ 9:04:59 PM on 3/30/2001, Patrick Brown wrote: ... > hostname|protocol|number|severity|description > Each record is on it's own line and have the fields delimited by the pipe > character |. The file may have thousands of records and I would like to > bring them into a database for

Re: [PHP] No-refresh

2001-03-30 Thread Jack Dempsey
check the archives...you can use javascript or perform a check off the data to be inserted to see if its already there... -jack David Hynes wrote: > > Does anyone know of a way to stop the user from refreshing a page several > times. > > i.e if I add a value to a database using a form and PHP,

[PHP] fscanf syntax

2001-03-30 Thread Patrick Brown
I want to parse a file with the following syntax. hostname|protocol|number|severity|description Each record is on it's own line and have the fields delimited by the pipe character |. The file may have thousands of records and I would like to bring them into a database for reporting. Some of you

Re: [PHP] Catagory list

2001-03-30 Thread Mark Bayfield
Thanks for the code. Its not doing exactly what I want, but with a little modification is is kind of working. The one problem is that it is putting the Title first and the catagory second. so it is coming up with: title1 title2 catagory title3 title4 catagory1 and the last catagory is droping of

[PHP] No-refresh

2001-03-30 Thread David Hynes
Does anyone know of a way to stop the user from refreshing a page several times. i.e if I add a value to a database using a form and PHP, I don't want the user to be able to simply press refresh and add the value to the database again. Please help, Dvaid. --- Fed202 Solution

Re: [PHP] Better way (if...elseif...else)

2001-03-30 Thread Stephan Ahonen
> $p_arr=array("000","050","100"); > $fc_arr=array("high","med","low"); > $ptext_arr("High","Medium","Low"); > for($x=0;$x { $pstr.=" if($priority==$p_arr[$x]) > { > $pstr.="selected"; > $fcol=$fc_arr[$x]; > } > $pstr.=">$ptext_arr[$x]\n"; > } Even better! This l

Re: [PHP] compiling PHP4

2001-03-30 Thread dempsejn
hey scott, i compiled php and gd on my redhat 6.2 box a couple weeks ago..took a little tweaking to make sure i had jpeg installed right, etc, but in the end its working well...what was your error? maybe that'll shed some light... -jack - Original Message - From: "..s.c.o.t.t.. [gts

[PHP] compiling PHP4

2001-03-30 Thread ..s.c.o.t.t.. [gts]
has anyone had trouble compiling PHP and GD on a linux/redhat machine?? (what baffles me the most is that it compiled flawlessly on another, almost identical, machine) could anyone offer suggestions or hints, or perhaps suggest a good website/discussion/archive that might address GD-PHP compilati

Re: [PHP] header() vs HTTP_REFERER (Netscape 6)

2001-03-30 Thread Yasuo Ohgaki
HTTP_REFERER is set by browser. I treat HTTP_REFERER header as user input, so I don't trust it. Using HTTP_REFERER can open security hole in your web site. I suggest to change your authentication code, so that you don't rely on HTTP_REFERER. Regards, -- Yasuo Ohgaki ""Scott Fletcher"" <[EMAIL P

Re: [PHP] Recompiling under RH7

2001-03-30 Thread Jon Jacob
Jon Jacob wrote: > Okay, frustration time under RH7... > > I am trying to recompile PHP for use with Oracle. (If you are saying to > yourself, "but Oracle does not work under RH7." then don't go > there. It does but it takes a significant amount of work.) > > I have done this before und

[PHP] Recompiling under RH7

2001-03-30 Thread Jon Jacob
Okay, frustration time under RH7... I am trying to recompile PHP for use with Oracle. (If you are saying to yourself, "but Oracle does not work under RH7." then don't go there. It does but it takes a significant amount of work.) I have done this before under RH6.2 and it did the same t

[PHP] Re: [PHP-DB] RE: [PHP] RE: what exactly are /path/to/blah lookingfor? .h? .so? .a? what?!

2001-03-30 Thread Andrew Hill
Daevid, just --with-iodbc or --with-openlink is fine. you should be using either: --with-iodbc=/usr/local/openlink/odbcsdk \ or --with-openlink=/usr/local/openlink/lib \ depending on which you use and where you installed the sdk. what error are you getting? Best regards, Andrew On 3/30/01 6

RE: [PHP] RE: what exactly are /path/to/blah looking for? .h? .so? .a? what?!

2001-03-30 Thread Daevid Vincent
thanks for replying Andrew, but that's not working for me either. Also, do I need both "--with-iodbc" and "--with-openlink" or do I just need one of them? These are the instructions I've been following: http://www.iodbc.org/odbc-phpHOWTO.html so now I've tried: #--with-iodbc=/

RE: [PHP] Size Limit for PHP scripts

2001-03-30 Thread Greg Donald
You might check to see if there is some kind of endless loop, it's not like PHP to just die without a reason. Looks like you got plenty of hardware there, so it must be your code... ;) > -Original Message- > From: Wally Hartshorn [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 30, 2001

RE: [PHP] sanity check please

2001-03-30 Thread ..s.c.o.t.t.. [gts]
well, besides the fact that your code is interpreted and the only data that makes it to the browser is what you decide to output (or error message, but they can be turned off/silenced) i dont see how a surfer could get your PHP source code via the webserver. > -Original Message- > From:

Re: [PHP] sanity check please

2001-03-30 Thread Michael Kimsal
Les Neste wrote: > Hi, > > I have a question about security with PHP. I'm building a site with PHP > and some of the scripts connect to MySQL. All someone needs to do to get > my MySQL passwords is view the PHP source, right? And the recommended > approach around this is to use Zend, right?

RE: [PHP] sanity check please

2001-03-30 Thread Jerry Lake
you can put you database connection in a file below the web root and include it into the script. that way it isn't visible in the source. Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Origi

[PHP] sanity check please

2001-03-30 Thread Les Neste
Hi, I have a question about security with PHP. I'm building a site with PHP and some of the scripts connect to MySQL. All someone needs to do to get my MySQL passwords is view the PHP source, right? And the recommended approach around this is to use Zend, right? Please correct me if I'm off b

[PHP] RE: what exactly are /path/to/blah looking for? .h? .so? .a? what?!

2001-03-30 Thread Andrew Hill
Daevid, It's the path/to/odbcsdk It's looking for libiodbc.so :) Best regards, Andrew -- Andrew Hill - OpenLink Software Director Technology Evangelism eBusiness Infrastructure Technology http://www.openlinksw.com > -Original Message- > From: Daevid

[PHP] How to eliminate bad fields from a mysql query?

2001-03-30 Thread Bob Stone
Dear PHP Helpers, Can you direct me to a solution for this problem: How can I eliminate bad (blank or incorrect) fields from a mysql query? In other words, if someone leaves a form field blank or enters a value that does not have a matching entry in the database, how can I eliminate that variabl

[PHP] what exactly are /path/to/blah looking for? .h? .so? .a? what?!

2001-03-30 Thread Daevid Vincent
> I'm having difficulties with that line: > > ./configure --with-openlink=/path/to/openlink/ > --with-iodbc=/path/to/iodbc/ so I've tried every combination I can think of related to "iodbc" and "openlink", and none of these are compiling. Every one results in "No such file or director

[PHP] php to process mail attachments.

2001-03-30 Thread Larry Hotchkiss
In an effort to automate things a bit I would like to allow users to mail a CSV file to a specific address for processing by a PHP script. I am running RH 7.0, sendmail 8.11 and I am thinking I could use procmail (im running ver 3.14) recipe to extract from/subject for use in the script as

Re: [PHP] Size Limit for PHP scripts

2001-03-30 Thread Jon Rosenberg
I have scripts over 150KB running just fine. Maybe it's your execution time that is too long, try raising it in php.ini and up it from 30 seconds. - Original Message - From: "Wally Hartshorn" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, March 30, 2001 4

Re: [PHP] Size Limit for PHP scripts

2001-03-30 Thread Michael Kimsal
To reiterate Cal's statement, we've not had issues with PHP size, other than speed. HUGE scripts take longer to compile and parse, but overall we've been fine. I've got scripts that are in excess of 1500 lines, which also include templates and other classes, which would often put the combined fil

[PHP] php3 & php4

2001-03-30 Thread Brooks, Ken
Is there any reason why I shouldn't run php3 and php4 on the same server? I have php3 using .php3 files and php4 using .php .phtml and .php4 files. Thanks, Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

RE: [PHP] Size Limit for PHP scripts

2001-03-30 Thread Wally Hartshorn
The script I'm calling (member.php) is 41K bytes (1,200 lines) It includes() global.php, which is 8K bytes (300 lines). That in turn requires() sessions.php, which is 13K bytes (370 lines). That makes a total code size at execution of about 62K bytes (1,870 lines). If I just remove some unused c

[PHP] Dynamic Modules

2001-03-30 Thread Dave
Hi All, Is loading a dynamic module (such as php_curl.dll) available only to PHP in the CGI flavour or can this be done with the apache php module? I dont seem to be able to make this work on my win32 setup although I will soon be migrating to a Red Hat linux. Thanks, Dave -- PHP General Mai

Re: [PHP] header() vs. no cache, it doesn't work.

2001-03-30 Thread Brian S. Dunworth
At 04:03 PM 3/30/01 -0500, Scott Fletcher wrote: >When I use this script > > header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); > header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); ### oops, don't forget to escape these! ^ ^ > header("Cache-Control: no-cach

RE: [PHP] How to send e-mail using PHP with the sender's address is my company's e-mail ??

2001-03-30 Thread John Huggins
You can always add a "From: [EMAIL PROTECTED]" to the fourth field which includes additional email headers. However, the real solution is for your provider to fix their setup to change the address to a proper one as the mail moves through and leaves their system. John > -Original Message---

[PHP] header() vs. no cache, it doesn't work.

2001-03-30 Thread Scott Fletcher
When I use this script header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); Next, I browse around and go back one page, the cache does n

[PHP] (8)Exec format error???

2001-03-30 Thread Brandon Orther
Hello, I am trying to get php to run on my Apache Redhat server.When I run it I just get internal server error. This is the error that I get in my error logs after running my script: (8)Exec format error??? thanks for any help, Brandon -- PHP General Mailing List (http://www.php.net/) T

[PHP] How to send e-mail using PHP with the sender's address is my company's e-mail ??

2001-03-30 Thread Bass¨Ð¦õªv
Hi , My copmany have a website and is hosted on a web server of some web hosting company . I want to use PHP to send e-mail on that server . I use $result = mail("[EMAIL PROTECTED]" , "E-mail Test" , "this e-mail is sent by php") ; to do it . But when I receive the e-mail , the SENDER 's addre

[PHP] daylight savings time

2001-03-30 Thread bill
How can I get my PHP/MySQL to recognize dates that are on daylight savings time? I have a mysql table with a date field (today would be 2001-03-30). I convert a date into a unix timetamp using $thisdaysec=mktime($somedate); Then, to find a particular date in the database I run a query: SELEC

Re: [PHP] Paying BIG e-dollars for older php source!!!

2001-03-30 Thread Philip Hallstrom
In article <[EMAIL PROTECTED]> you write: > I have no money, but is someone willing to provide >php-4.0.3pl1.tar.gz or just anything < 4.0.4pl1 and > 4.0.0. Please just >email if possible. http://www.adhesivemedia.com/~philip/php-4.0.2.tar.gz It will stay there for awhile (ie. until I cle

[PHP-CVS] cvs: php4 /ext/cpdf cpdf.c php_cpdf.h

2001-03-30 Thread Fredrik Öhrn
ohrnFri Mar 30 12:36:19 2001 EDT Modified files: /php4/ext/cpdf cpdf.c php_cpdf.h Log: Implemented cpdf_set_viewer_preferences (previously a stub). Added new functions: cpdf_set_font_directories and cpdf_set_font_map_file. Index: php4/ext/cpdf/cpd

RE: [PHP] BSD/GD/PHP/APACHE/SOS

2001-03-30 Thread ..s.c.o.t.t.. [gts]
did you compile apache yourself? try compiling apache yourself and then compiling PHP as a stanalone-CGI (as opposed to server module) and see if that helps any of your prob's. > -Original Message- > From: Louis Grenzebach [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 29, 2001 11:5

Re: [PHP] Tab Index Functionality

2001-03-30 Thread Data Driven Design
You can specify taborder by inserting a tabindex attribute into your input tags In this example tabing order would be 1, 3, 2 There's also an Internet Explorer only attribute called notab Data Driven Design P.O. Box 1084 Holly Hill, FL 32125-1084 http://www.datadrivendesign.com http://ww

RE: [PHP] BSD/GD/PHP/APACHE/SOS

2001-03-30 Thread ..s.c.o.t.t.. [gts]
i did it for linux. basically, what i did was to get GD and the other libraries, 'configure' and 'make' them all then, go into the PHP directory and tell PHP's configure script where GD and such reside: ex: ./configure --with-gd-dir=../gd-1.8.4/ --with-jpeg-dir=../jpeg-6b/ somthing similar to

Re: [PHP] PHP Editor for Linux

2001-03-30 Thread Adi Wibowo
On Fri, 30 Mar 2001, Martin Cabrera Diaubalick wrote: > Hi there! > > I use bluefish for HTML and PHP coding, but I'm not too happy with it. Do > you know a good PHP Editor for Linux, besides Emacs and xjed...? I use Quanta+. I was moving from Bluefish to this. And I like it. But it use KDE lib

[PHP] Paying BIG e-dollars for older php source!!!

2001-03-30 Thread Krznaric Michael
I have no money, but is someone willing to provide php-4.0.3pl1.tar.gz or just anything < 4.0.4pl1 and > 4.0.0. Please just email if possible. Mike -Original Message- From: Krznaric Michael [mailto:[EMAIL PROTECTED]] Sent: Friday, March 30, 2001 3:03 PM To: 'James Moore'; '[EMAI

RE: [PHP] constants and case sensitivity

2001-03-30 Thread Johnson, Kirk
I get the same results as you using PHP4. I can't explain this, since constants are supposed to be case sensitive by default. They sure don't act like they are. Looks like a bug to me. Kirk > -Original Message- > From: almir [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 30, 2001 12:44

[PHP] Help: PHP with DOMXML

2001-03-30 Thread Dominique Paquin
Greetings! I have been working on a project that will, in part, use XML to store the user list and personal info of the application's users. Here is the general look of a single user node (a single xml file contains n users)= site1.com John Doe [EMAIL PROTECTED] 100 When

[PHP] Tab Index Functionality

2001-03-30 Thread Wayne Joyner
I am interested in finding out how to use TAB INDEX. I have a form that I would like to order the sequence of field selection. The form consist of HTML with embedded PHP commands that retrieve data from a database to auto populate (or provide) drop down list boxes for the form. Is the

RE: [PHP] PHP SITE REDESIGN - What happened to older source files?

2001-03-30 Thread Krznaric Michael
I guess i have to do something along the lines of 1. cvs -d :pserver:[EMAIL PROTECTED]:/repository co php4/distributions or 2. cvs -d :pserver:[EMAIL PROTECTED]:/repository co distributions With Number 1 above i get an error saying cvs server: warning: new-born php4/distributions has disappear

RE: [PHP] PHP Editor for Linux

2001-03-30 Thread Eric Knudstrup
I'm looking for a PHP mode for XEmacs and really miss c-mode. Do you know of any packages for it? Eric > -Original Message- > From: Phillip Bow [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 30, 2001 7:18 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] PHP Editor for Linux > > > Read

RE: [PHP] Size Limit for PHP scripts

2001-03-30 Thread Cal Evans
If there is, I've not found it. I have many pages that include files that contain class definitions. My average page includes 8 classes and my average class is 250-400 lines of code. Have you debugged your individual scripts first before including them in other pages? Cal http://www.calevans.

[PHP] hash suggestions wanted

2001-03-30 Thread David P. Schwartz
the PHP crypt function uses DES and it only generates a hash based on the first 8 chars of a string, although it produces a 12-char hash. Md5 can hash a string of indefinite length, but it produces a much longer hash (34 chars or so). I need something that can provide me with a 12-16 char hash o

[PHP] Size Limit for PHP scripts

2001-03-30 Thread Wally Hartshorn
Is there a limit to the size of PHP scripts? I'm having a problem in which scriptA.php is including() scriptB.php, which then requires() scriptC.php. The result is that PHP itself dies. If I remove some code from scriptA.php to reduce the size of the script, it works fine. (The code that I'm re

php-general Digest 30 Mar 2001 19:37:41 -0000 Issue 598

2001-03-30 Thread php-general-digest-help
php-general Digest 30 Mar 2001 19:37:41 - Issue 598 Topics (messages 46238 through 46368): Re: regex help...again 46238 by: elias 46284 by: Christian Reiniger 46299 by: elias 46324 by: Christian Reiniger Array in Session-Vars? 46239 by: Thomas Häger

[PHP] constants and case sensitivity

2001-03-30 Thread almir
just when I thought , nice I didn't know how does it work i found out that it is not wroking anyhow if I put define ("rights", "RIGHTS", X); define ("Rights", "RIGHTS", X); echo rights . "->" .defined("rights") ." " .Rights ."->" .defined("Rights").""; regardless of X i always get RIGHTS->1 R

[PHP] Commercial PHP job contract or fulltime

2001-03-30 Thread Avron Anstey
Candidates should have experience in PERL, PHP3 and Mysql. Proficient in PHP programming, implementing relational databases and E-Commerce with a Linux-Apache platform. Strong problem resolution skills needed. Ability to prioritize workload and meet deadlines effectively. Availability: Immediate

Re: [PHP] constatnts and case sensitivity

2001-03-30 Thread almir
i had a old manual localy , but now i have found it on net with optional parametar , sorry ""almir"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 9a2ksp$kkm$[EMAIL PROTECTED]">news:9a2ksp$kkm$[EMAIL PROTECTED]... > hallo people > simply > i am using php 3.0.11 on IIS4 > here is a problem > if I use

[PHP] constatnts and case sensitivity

2001-03-30 Thread almir
hallo people simply i am using php 3.0.11 on IIS4 here is a problem if I use define ("Rights", "RIGHTS"); define ("rights", "RIGHTS"); end then echo Rights ."-" . rights / / output : RIGHTS - rights simply if i have constant Rights i cannot define a new one rights but if i meke echo of rights i

[PHP] Question using chop :-)

2001-03-30 Thread Marcus Ouimet
I have got chop to work for me to remove characters at the end of the string using something like: echo $listing_values1 = chop(substr($listing_values['name'],0,4); echo $listing_values1 ['name'] . '...' . ' ' . "\n"; Works great except for the fact after the name there appears to be a l

[PHP] BSD/GD/PHP/APACHE/SOS

2001-03-30 Thread Louis Grenzebach
Would anyone know of, or could possibly supply, a HOW-TO for installing GD, with Jpeg and freetype support for php, on a freebsd platform? I'm currently using apache 1.3.19 (just upgraded from 1.3.12), & php 4.0.4pl1 on FreeBSD Release 4.0. I've been trying for 4 days now to get it working, it'

Re: [PHP] Installation

2001-03-30 Thread Clayton Dukes
Actually, the "lite" only works with versions of Redhat lower than 7 (or something like that). The full version is only like 89 bux. But it is an awesome product, only takes about 5 minutes to install and works perfect. Clayton Dukes Download Free Essays, Term Papers and Cisco Training from htt

Re: [PHP] login without database

2001-03-30 Thread W.D.
You would probably check against an encrypted file though for more security. > you could use flat files, another words store the user information in a text > file like below: > username|pass|email > bob|fgffsdg|[EMAIL PROTECTED] > foo|bar|[EMAIL PROTECTED] > > > and then just read and write the

RE: [PHP] phpinfo unneeded

2001-03-30 Thread James Moore
> > HI all, > > how to compile php without function phpinfo enalbe. so if user call > > phpinfo() it would be false/error. i would like to build a free web > > server with php but i don't like if the user know what are the tools > > in my server 'couse it's a free server. > > > > is it possible

[PHP] php editors

2001-03-30 Thread James Crowley
You might also be interested in Developers Pad http://www.developerspad.com/ It's free and open source too ;-) Regards, - James Editor, VB Web == Web - http://www.vbweb.co.uk Email - [EMAIL PROTECTED] ICQ# - 60612011 == > -Original Message- > From: al

[PHP] Install

2001-03-30 Thread Chris
Hi, I am trying to find some info on upgrading from php3 to php4. I can't seem to find any docs about upgrading, just installing. Is this the same thing? Do I have to re-compile apache just to go from php3 to php4? Thanks, Chris.

[PHP-CVS] cvs: php4 /ext/zlib zlib.c

2001-03-30 Thread Anil Madhavapeddy
avsmFri Mar 30 09:44:09 2001 EDT Modified files: /php4/ext/zlib zlib.c Log: Send the correct Vary headers, if we negotiate a gzip/deflate session via Accept-Encoding. This obeys a SHOULD directive in RFC2616 PR: 10070 Index: php4/ext/zlib/zl

Re: [PHP] phpinfo unneeded

2001-03-30 Thread Matt McClanahan
On Fri, Mar 30, 2001 at 04:32:40PM +0700, juang wrote: > HI all, > how to compile php without function phpinfo enalbe. so if user call > phpinfo() it would be false/error. i would like to build a free web > server with php but i don't like if the user know what are the tools > in my server 'cous

[PHP] Session

2001-03-30 Thread David Tandberg-Johansen
Hey! I have just began to look at session, and I have some question. When I have used session_register('item') and the user navigates further in the site, how do I know what has been registered? David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

RE: [PHP] PHP SITE REDESIGN - What happened to older source files?

2001-03-30 Thread James Moore
> I need an older version of PHP because my pam_auth won't build with > php-4.0.4pl1? With the redesign of the php site, I think they > removed older > source files. Can anyone confirm this, or does anyone know where > I can get > php-4.0.0 - 4.0.4 source files? The files are no longer av

Re: [PHP] Delete Problem

2001-03-30 Thread KPortsmout
In a message dated 30/03/2001 17:59:52 GMT Daylight Time, [EMAIL PROTECTED] writes: << Correct me if I am wrong, but I thought that using IN needed to be followed by a comma separated list (with each value individually separated from the others) like this: $query="DELETE FROM EmailAddress W

Re: [PHP] word docs

2001-03-30 Thread Vinay
Hello there, There is a class at http://phpclasses.upperdesign.com/ Which can read an rtf file easily..i think this will help you cheers Viany christian <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > just wondering is their a way to create word docs from

RE: [PHP] Delete Problem

2001-03-30 Thread Sam Masiello
Correct me if I am wrong, but I thought that using IN needed to be followed by a comma separated list (with each value individually separated from the others) like this: $query="DELETE FROM EmailAddress WHERE Email NOT IN ('value1', 'value2', ., 'value_n')" ; if you want to use a comma sepa

Re: [PHP] login without database

2001-03-30 Thread Jan Grafström
Thank You Romeo! This may be something I can use. Regards Jan Romeo Manzur wrote: > You can do this: > require('acces.inc.php'); > if ( (!isset($PHP_AUTH_USER)) || ! (($PHP_AUTH_USER == $st_LOGIN) && ( > $PHP_AUTH_PW == "$st_PASSWORD" )) ) { > header("WWW-Authenticate: Basic entrer=\"Admin Bas

[PHP] header() vs HTTP_REFERER (Netscape 6)

2001-03-30 Thread Scott Fletcher
I had now found the problem. The website that have been in use for a while work pretty well with IE and Netscape Navigator. Until NS6 came, that's when the website start having some problem. The website use the login page and any web pages after logging are controlled by the security check.

Re: [PHP] Instalation

2001-03-30 Thread Romeo Manzur
www.abriasoft.com luck... Augusto Cesar Castoldi wrote: > I'm just installed php4 and apache 1.3 on my linux. > > Apache with html files is working fine, but php isn't. > > The browser are showing the code. > > what I do? > > thanks, > > Augusto > > -- > PHP General Mailing List (http://www.php.

Re: [PHP] Instalation

2001-03-30 Thread Romeo Manzur
try abrialite, is an application for install MySQL, Apache, PHP and Webmin on a Linux machine, it's free.. luck... Augusto Cesar Castoldi wrote: > I'm just installed php4 and apache 1.3 on my linux. > > Apache with html files is working fine, but php isn't. > > The browser are showing the code.

Re: [PHP] login without database

2001-03-30 Thread Godd
there is a header function that can set the document to no chache so that the browser will not cache it ""Jon Rosenberg"" <[EMAIL PROTECTED]> wrote in message 004301c0b934$d7ccb910$[EMAIL PROTECTED]">news:004301c0b934$d7ccb910$[EMAIL PROTECTED]... > you could use flat files, another words store

Re: [PHP] login without database

2001-03-30 Thread Romeo Manzur
You can do this: require('acces.inc.php'); if ( (!isset($PHP_AUTH_USER)) || ! (($PHP_AUTH_USER == $st_LOGIN) && ( $PHP_AUTH_PW == "$st_PASSWORD" )) ) { header("WWW-Authenticate: Basic entrer=\"Admin Basta\""); header("HTTP/1.0 401 Unauthorized"); echo "Access in-autorizado..."; exit; } wh

Re: [PHP] login without database

2001-03-30 Thread Jon Rosenberg
you could use flat files, another words store the user information in a text file like below: username|pass|email bob|fgffsdg|[EMAIL PROTECTED] foo|bar|[EMAIL PROTECTED] and then just read and write the file with PHP. Jon - Original Message - From: "Jan Grafström" <[EMAIL PROTECTED]>

[PHP] login without database

2001-03-30 Thread Jan Grafström
Hi! Can I use php to make a login system for users? I don´t have a databas on my server. I only want to have a few users. When I send variables to php the string is always cached by IE5.5 and it´s very easy to se the username and password if you look i cache. Is there a way to get this done only o

Re: [PHP] version????

2001-03-30 Thread Michael Kimsal
"Release Candidate" elias wrote: > as for the pl{x} notation, i ask what is the rc{x} notation ? > > ""Scott Fletcher"" <[EMAIL PROTECTED]> wrote in message > 9a04gk$116$[EMAIL PROTECTED]">news:9a04gk$116$[EMAIL PROTECTED]... > > Hi! > > > > Can anyone tell me what the difference with those

[PHP] pdf question?

2001-03-30 Thread Fai
Does any body has some code samples on how to use PHP to generate PDF document? also any examples on how to use PHP to convert the text of Chinese Traditional Big5 into Chinese Simplified GB? Thank You very much! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAI

  1   2   3   >