[PHP] PHP CGI-Binary

2001-02-25 Thread Julia A . Case
Ok, I give up... how do I build PHP as a CGI-Binary? I've spent two days searching the configure file for this. Julia -- [ Julia Anne Case ] [Ships are safe inside the harbor, ] [Programmer at large] [ but is that what ships are really for.] [ Admining

[PHP] sockets...

2001-02-25 Thread Julia A . Case
Ok, I'm trying to open a socket connection to port 23 (telnet)... the script just seems to hang on connect... though I can connect and talk with ports 25 (smtp), port 80 (http), port 110 (pop3) and port 443 (https) so the code isn't too bad... Is there something special about

Re: [PHP] a good hosting experience

2001-02-26 Thread Michael A. Peters
Wow. Julie is on this list! // send note to self to modify filter and sort for good tips... Hi Julie. LOVED your book. With regard to Hurricane Electronic- we (Abriasoft) use them for our colocating, and they have always been very proffesional and fair to deal with. They have a really nice

Re: [PHP] php4 as a module AND a cgi

2001-02-26 Thread Michael A. Peters
colin olkowski wrote: > > hi all, > > my question is this, how would one install PHP4 as a module and as a cgi? > > somewhere in the install notes for php4 (redhat) the docs clearly say do not > install both, yet my old hosting company was able to do it. > > btw,

php-general@lists.php.net

2001-02-26 Thread Michael A. Peters
Are you looking for a place to host your site- or a place for people to download apps you've written? Bruno Mário Amaral Almeida wrote: > > Hi everyone, > Can anyone tell me where can i find a place where to put my PHP/MySQL applications >for free? > Many

Re: [PHP] PostgreSQL vs InterBase

2001-02-27 Thread Martin A. Marques
Mensaje citado por: Ron Wills <[EMAIL PROTECTED]>: > I know this isn't one of the databases that you;re inquiring about, but > we've been using MySQL (www.mysql.com) and it has been working > beautifully. > We have an email server with a MySQL db that's about

Re: [PHP] re:mod_dav and dreamweaver 4.0

2001-02-28 Thread Michael A. Peters
Not DreamWeaver specifically- but to make sure the problem is DreamWeaver and not something else, try connecting with a different webDAV client. I can personally vouch for Goliath under Mac OS and DAVExplorer under x86 Linux (DAVExplorer requires you have the JRE installed- and that java is in

[PHP] variable scope -- unsetting vars inside functions

2001-03-01 Thread Michael A. Smith
When a function finishes execution does it automatically clean up its local variables or should I manually unset() them? For example: function do_something() { $local_var = 'something really big...'; return true; } Does $local_var immediately vanish from existence when do

Re: [PHP] Re: IE 5.5,authentication,PHP sessions: IE never stops

2001-03-04 Thread Michael A. Peters
On Sun, 04 Mar 2001 15:11:55 -0600 (CST) Don Read <[EMAIL PROTECTED]> wrote: > > On 04-Mar-01 Ken wrote: > > Thanks for the idea, John. > > > > I know about the auth logout. Unfortunately, that means that when a user > > clicks "logout", he

[PHP] Supress error message to apache log?

2001-03-05 Thread Michael A. Peters
return "$rpmname/$doc_file"; } else { return "failed"; } } later its used when creating a page of documentation links for the user, like this- $mysqldoc=doclink($docdir, "MySQL", "manual_toc.html"); if (strstr($mysqldoc,

Re: [PHP] Supress error message to apache log?

2001-03-05 Thread Michael A. Peters
I feel dumb... $string="rpm -qd $rpmname 2>/dev/null |head -1 |sed s?\"$documentdir\"?\"\"? |cut -d\"/\" -f2"; On Monday, March 5, 2001, at 09:33 AM, Michael A. Peters wrote: > I have the following php function- > > function doclink ($

[PHP] apache authentication

2001-03-14 Thread Michael A. Peters
This isn't a php problem as much as an apache problem, however, it is = webmasters of php sites that would have dealt with this. Here's the dilemna- If you use mod_dav to maintain a php application that uses = username/password authentication for the web app, it doesn't play

[PHP] FileUpload problematic

2001-03-16 Thread Thalis A. Kalfigopoulos
Helloppl, a problem with a file_upload form :-( Here is what I've done so far: File test.php which has the form is this: Here is the included php file (handle_upload.php): You have succesfully sen

Re: [PHP] Good Free PHP Editor?

2001-03-16 Thread Jeffrey A . Stuart
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > On 12 Mar 2001 03:51:13 -0800, [EMAIL PROTECTED] (Nick Davies) wrote: > > >How about linux ones? > > > >I just tend to use vim or emacs but i'm sure there are some out there. > > I've used

Re: [PHP] I can't do a connection to POSTGRES from PHP4 as NSAPI

2001-03-16 Thread Martin A. Marques
hy this is happening. > What can I do? I searched for this error and could not find any help. > > Thanks in advance -- System Administration: It's a dirty job, but someone told me I had to do it. - Martín Marqués

[PHP] Q - php-apache _ php-cgi

2001-03-18 Thread Bart A. Verbeek
Hello, I'm kind of new to serverside management and got a little question. PHP can run on a server in different ways; as an Apache-module and as a cgi-module. - What is the biggest diffence between these two ways of running? - When I write scripts for both do I have to pay attention to some

Re: [PHP] update two frames at once?

2001-03-20 Thread Kathleen A. Ferraro
Jeanne, Your script example looks very promising. I have spent two solid days trying to solve this problem. I think what you have provided will be a big help. I am having trouble getting the navigation frame to update, though. I'm not sure what I'm missing. Do you have a working exam

[PHP] Site Searchable function

2001-04-19 Thread Kevin A Williams
Hi, I was wondering whether anyone could direct me in the direction of creating a search function like the one on php.net? I have tried looking rather fruitlessly to implement a system, would one possible implementation be to use reference files for the information and then use string

Re: [PHP] Drag and drop

2001-04-21 Thread Kevin A Williams
late pretty much everything on the page as individual objects. There are a number of script repositories with appropriate scripts and tutorials, including http://webreference.com/dhtml/column7/crossCode.html One crude and early implementation (best bets in IE, but is possible to implement in Netscape)

Re: [PHP] Can Variables be in functions?

2001-04-21 Thread Kevin A Williams
Classic Global function definition problem inside the function, insert the line global $footercontent; Also technically, the exit command can be quite messy, a 'cleaner' method would be to use something like function generate_footer() { ?> Hope this helps Kevin Williams -

[PHP] ? interbase ?

2001-04-21 Thread Bart A. Verbeek
Hello, I'm internet-databasing for over a year now and only used MySQL up untill now. Last week I spoke with a guy that was interested in running Interbase on a Unix-webserver, so I've got a couple of questions... 1.> Can interbase be installed and run on every Unix-type (BSD)?

Re: [PHP] NEWBIE Mail()

2001-04-26 Thread Kevin A Williams
Message - From: "Tym Rehm" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 26, 2001 10:29 PM Subject: [PHP] NEWBIE Mail() > I'm a newbie and I'm trying to write a program to send an email. Here is > the kicker, I want to attach a Wor

[PHP] UUdecode

2001-04-22 Thread Paul A. Owen
Is there an UUdecode function in PHP? If not then how would I implement this under NT? Thanks, Paul. -- 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, e-mail: [EMAIL

Re: [PHP] alter table name with php and mysql

2001-04-26 Thread Kevin A Williams
Hi, check you've got a D/B connection, then use this, with the appropriate names in the variables, or use the explicit table names if you wish. If an error spews up, most likely the table name your trying to rename it to already exists. $sql = "RENAME TABLE $present_tab

[PHP] Mail a form to mailbox

2001-05-14 Thread ashok a dhar
Dear friends Please give a PHP site where i can do send a mail a form contents to my mailbox. i want to use the PHP function mail("recipient","subject","message"); Thank u very much bapi [EMAIL PROTECTED] Get 250 color business cards for FREE! http://busin

Re: [PHP] MySQL database

2001-05-16 Thread Julia A. Case
first off, is the MySQL database running? you can do a ps -xa | grep mysql to see... second you need to enter a username and password on the mysql_connect line.. Hope this helps, Julia Quoting [Inf] F!RE-WALL ([EMAIL PROTECTED]): > Yo, > > I'd like to use a MySQL database on

[PHP] PHP Pros/Cons, Case Examples, PHP vs Servlets

2001-05-17 Thread Scott A Winkle
Hi, Im currently running many scripts myself and other staff members wrote in PHP for the university. Certain others want to eliminate PHP and make everything Java based. It is now in the 'debate meeting' stage, so I need some help. I have done a handful of research already, but

Re: [PHP] crack lib

2001-12-27 Thread Michael A. Peters
ot need to give the > gates/microsoft/.net community any ammunition for bad publicity. Crackers won't be using php to crack passwords. What cracklib can do in php is allow web applications to be developed for ensuring the security of your password files. When you have a system with over

Re: [PHP] Licensing??

2002-01-02 Thread Michael A. Peters
I would like to note that you may need to purchase licensing for certain uses. For instance, I use ClibPDF on OS X. If I ever use it for commercial purposes (which I am planning to do, btw) I will need to purchase a license from FastIO for use of the ClibPDF library. On Wed, 2 Jan 2002 23:00:23

Re: [PHP] Licensing??

2002-01-04 Thread Michael A. Peters
On Thu, 3 Jan 2002 09:58:03 +0100 "TD - Sales International Holland B.V." <[EMAIL PROTECTED]> mentioned: > On Wednesday 02 January 2002 20:14, Michael A. Peters stuffed this into my > mailbox: > > Hmm but ClibPDF is an additional library package which is not par

[PHP] html table to sql

2002-01-10 Thread Michael A. Peters
I want to take data from a html table and store it in a mysql database for use with php scripts. Is there already an easy php function to do this? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] Re: Memory usage with Apache

2002-01-27 Thread Paul A. Procacci
PHP 4.0.4pl1 with Apache 1.3.14. > > I have a PHP script that accumulates data for insertion into a database. > This script runs in peices and unset()'s variables that contain the data > periodically in hopes of freeing memory for the next batch of records. > Apparently it's n

[PHP] Re: Write to file?

2002-01-27 Thread Paul A. Procacci
Try inserting a "\n" at the end of each string you write. This is a new- line character. Paul Mårten andersson wrote: > Hello folks… > > I want to write to a textfile, but I want a row for each string I write > to the file. > As it is now when I write to the file it

[PHP] Re: binary file + fread

2002-01-27 Thread Paul A. Procacci
Try notice the "b" in the fopen, it stand for binary. Paul Michael Agbaglo wrote: > Hi ! > > I've some trouble w/ the following peace of code... Althoug the file > doesn't contain zeros at the beginning the output is > a= 0 b=0 > > Is there a

Re: [PHP] a quick question..

2002-01-27 Thread Paul A. Procacci
He meant push Nick Wilson wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > * and then Tauntz blurted > > If I have n variables: > > $nr1 = "some text"; > > $nr2 = "some other text" > > $nr3 > > > > and I want to print the text "randomly" (like if I enter the page.. it di

Re: [PHP] new question

2002-01-31 Thread Michael A. Peters
man crontab essentially you just need to load it into your crontab. crontab /path/to/cron.txt should do it. -=- What I do is keep a file in my home directory called crontab.txt That's the file I edit. When I add something to my crontab- I add it to that file. Then I run cr

[PHP] mktime() Algorithm

2002-02-06 Thread David A Dickson
I need to create a function in another programming language that takes the same input as the php mktime() function and produces the exact same output as the php mktime() function. Does anybody out there know what the algorithm is? -- David A Dickson [EMAIL PROTECTED] -- PHP General Mailing

[PHP] DOMXML in 4.2.0 problems

2002-05-09 Thread Thalis A. Kalfigopoulos
I'm trying to get DOMXML to work with PHP4.2.0. I've compiled with --with-dom and phpinfo() says it's there: DOM/XML enabled libxml Version 2.4.18 HTML Support enabled XPath Support enabled XPointer Support enabled The following program though doesn't seem to work: $xm

Re: [PHP] DOMXML in 4.2.0 problems

2002-05-10 Thread Thalis A. Kalfigopoulos
On Fri, 10 May 2002, Meir Kriheli wrote: > On Friday 10 May 2002 03:05, Thalis A. Kalfigopoulos wrote: > > I'm trying to get DOMXML to work with PHP4.2.0. I've compiled with > > --with-dom and phpinfo() says it's there: DOM/XML enabled > > libxml Version 2.4.1

[PHP] DOMXML [revisited]

2002-05-10 Thread Thalis A. Kalfigopoulos
Hi again and sorry to pose same question, but I'm about to pull out my hair here. There were some DOMXML questions in the past 24h but none replied to. Two of us till now have had the same problem: compiled DOM just fine and see it is there with phpinfo(); but cannot use its functions[1]. Can an

Re: [PHP] Printing line "x" in a file

2002-05-12 Thread Thalis A. Kalfigopoulos
If the file is relatively small, then the easiest would be to use file() which reads a file into an array $file_array=file($filename); $text=$file_array[$line]; cheers, thalis On Sat, 11 May 2002, Andrew Conner wrote: > I have a script where I need to get the text from line number &qu

[PHP] Can't see namespace definition with DOMXML in 4.2.1?

2002-05-15 Thread Thalis A. Kalfigopoulos
ment(); echo("".htmlentities($domdoc->html_dump_mem()).""); just returns: instead of the full: http://www.ns.com/ns1/"; attr="value"> Even trying to get the attributes from with $elem->attributes() returns an array that only contains only "attr"

[PHP] Can't see namespace definition with DOMXML in 4.2.1

2002-05-15 Thread Thalis A. Kalfigopoulos
ment(); echo("".htmlentities($domdoc->html_dump_mem()).""); just returns: instead of the full: http://www.ns.com/ns1/"; attr="value"> Even trying to get the attributes from with $elem->attributes() returns an array that only contains only "att

Re: [PHP] I'm doing something wrong....

2002-05-15 Thread Thalis A. Kalfigopoulos
In an associative array, there is no notion of the 'n-th' element. So AFAIK you can't do that. cheers, thalis On Wed, 15 May 2002, Robert Rothe wrote: > I've created an array. A very simple array that uses strings as keys. > > aname['one']=s

Re: [PHP] DOMXML question

2002-05-17 Thread Thalis A. Kalfigopoulos
On Fri, 17 May 2002, peter tatischev wrote: > What is the type of array returned by child_nodes()? > I have an XML doc parsed into a DOM structure by > $docnode = domxml_open_file("blah") > > then I get root by > $root = $docnode->document_element(); > the

Re: [PHP] PHP & PDF

2002-05-17 Thread Thalis A. Kalfigopoulos
I'd suggest you go for FPDF, a free PHP class for generating PDF files fast & easy. It's pretty good for simple stuff (i.e. 99% of my work at least) and has a fast learning curve. www.fpdf.org cheers, thalis On Fri, 17 May 2002 [EMAIL PROTECTED] wrote: > Hi the ML > &g

[PHP] 4.3.0 coming out?

2002-05-17 Thread Thalis A. Kalfigopoulos
Any hint from the developers as to when to expect 4.3.0? cheers, thalis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Refresh doesn't work

2002-05-20 Thread Thalis A. Kalfigopoulos
: 3; url=newpage.php"); > > Netscape 4.79 works fine and goes to page.php after 3 seconds pass. > But IE 6 doesn't want to do that. Can anyone explain such a wonderful > behavior? > > -- > Best regards, > Olexandr mailto:[EMAIL P

Re: [PHP] Mcrypt: Blowfish or Twofish or no fish?

2002-05-21 Thread Thalis A. Kalfigopoulos
gt; So what do I need it for? I'm going to use it encrypting files, sizes > varies between some 100 k's and 4-5 mb's. > / Jim > > Paranoia + A system w/o users = Safe system :) I'd suggest you went for neither. Rijndael is the AES (http://csrc.nist.gov/encryption/

RE: [PHP] Re: Mcrypt: Blowfish or Twofish or no fish?

2002-05-21 Thread Thalis A. Kalfigopoulos
On Tue, 21 May 2002, Ray Hunter wrote: > MD5 is not that secure compared to blowfish or twofish or the other > types of encryption available with mcrypt... > > Thanks, > > Ray Hunter How does MD5 relate to encrypting the file? It's just used as a h

Re: [PHP] Mcrypt: Blowfish or Twofish or no fish? Part 2

2002-05-22 Thread Thalis A. Kalfigopoulos
On Wed, 22 May 2002, Jimmy Lantz wrote: > Thanx for the suggestions! > Someone mentioned that I could use MD5 and then encrypt the hash, > how would I ever decrypt that? Is'nt MD5 a 1-way thing only? > > Another question? > Should I go for bigger keylength or bigger

Re: [PHP] B R A I N F R E E Z E !

2002-05-22 Thread Thalis A. Kalfigopoulos
> > if($foo == "Panda" and $bar == "bear){ > doWhatever(); > } > > Thanks gang! > - Shane If I understood you correctly, there is a short hand syntax for "IF THEN ELSE" (not just "IF THEN") which is like: (expression)?(then_expression):(else_exp

[PHP] REG_ECTYPE Warning from ereg_replace

2002-05-23 Thread Thalis A. Kalfigopoulos
I get REG_ECTYPE from a call to ereg_replace. No mention in the docs. Minimal mention in the archives. What exactly is it supposed to mean? The call is: $definitions=ereg_replace("name=[^[:space]]*","",$definitions); TIA, thalis -- PHP General Mailing List (htt

Re: [PHP] Security problem, need help

2002-05-24 Thread Thalis A. Kalfigopoulos
Read 'Secure Programming in PHP': http://www.zend.com/zend/art/art-oertli.php cheers, thalis On Fri, 24 May 2002, Hawk wrote: > I was checking around on a page I made, and I just noticed the lack of > security, it is rather easy to gain admin status if you enter the right >

Re: [PHP] Logout

2002-05-27 Thread Thalis A. Kalfigopoulos
On Mon, 27 May 2002, Jonas Hörnblad wrote: > Hi there, > I've only been PHPing for some week and ofcours I've ran into my first two > problems. > > 1. I'm building this community thing and I have a text file with the users > that is currently logged in. Whe

[PHP] comment followed by ?> fails to parse

2002-05-28 Thread Thalis A. Kalfigopoulos
If I write a comment line with // and I include in it ?> then it fails to parse the rest of the page because (i'm guessing) the parser gets confused and goes off PHP mode. Is this normal? Shouldn't I be able to write literally ANYTHING on a comment line? Sample Code: $var=

Re: [PHP] Multiple variables

2002-05-28 Thread Thalis A. Kalfigopoulos
>From my understanding of what you wrote: foreach($textBoxArray as $tBox=>$tVal){ if(empty($tVal)){ echo("Found empty textBox: $tBox\n"); } } Read in manual about isset() and empty() cheers, thalis On Tue, 28 May 2002, Morten Nielsen wrote:

Re: [PHP] .php extension

2002-05-28 Thread Thalis A. Kalfigopoulos
On Tue, 28 May 2002, Luis Miguel N. Tavora wrote: > Hi there. > > I've started to code in PHP a couple of days ago, so > I'm really a newbie. > > As far as I understood it, for a server process the php > code, the file must have the extension .php Not re

RE: [PHP] comment followed by ?> fails to parse

2002-05-29 Thread Thalis A. Kalfigopoulos
On Wed, 29 May 2002, Ford, Mike [LSS] wrote: > > -Original Message- > > From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]] > > Sent: 28 May 2002 20:21 > > > > If I write a comment line with // and I include in it ?> then > >

Re: [PHP] comment followed by ?> fails to parse

2002-05-29 Thread Thalis A. Kalfigopoulos
On Wed, 29 May 2002, Jason Wong wrote: > On Wednesday 29 May 2002 21:27, Leotta, Natalie (NCI/IMS) wrote: > > I disagree. I use // because then when I need to take out a chunk of code > > (the requirements for the programs change faster than I can keep up with >

RE: [PHP] comment followed by ?> fails to parse

2002-05-29 Thread Thalis A. Kalfigopoulos
On Wed, 29 May 2002, Jonathan Rosenberg wrote: > -Original Message- > > From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, May 29, 2002 10:27 AM > > To: [EMAIL PROTECTED] > > Subject: Re: [PHP] comment followed by ?> fails to pa

Re: [PHP] Store in XML -> process w/ PHP -> Display in XHTML ?

2002-05-30 Thread Thalis A. Kalfigopoulos
On Thu, 30 May 2002, Timothy J. Luoma wrote: > > Summary: I've been looking for a resource (book, website, etc) that will > address how to write/store information in XML and deliver it as XHTML > (using PHP for the processing), but haven't had much luck. I'm not sur

Re: [PHP] 1 session, 2 subdomains

2002-06-03 Thread Thalis A. Kalfigopoulos
On Mon, 3 Jun 2002, Jason Dulberg wrote: > I am working on a sports website that will have a subdomain for each major > sport. There is a login panel on the main domain that routes users to the > appropriate subdomain depending on the sport that they are in. Everything > seems t

RE: [PHP] 1 session, 2 subdomains

2002-06-03 Thread Thalis A. Kalfigopoulos
On Mon, 3 Jun 2002, Jason Dulberg wrote: > The subdomain's are all on the same server and all have their docroot set to > the same directory. I'm mainly using subdomains as a way to keep the site > organized and to have different graphics based on their sport location. >

[PHP] PHP/Java/SOAP

2002-02-21 Thread Thalis A. Kalfigopoulos
Is there a webserver (Tomcat?) that supports both servlets/JSP and PHP? If so, is it possible to have PHP and servlet/JSP code collaborating? I'm looking into using SOAP (apache project's implementation) but I need some of PHP's functionality. thanks in advance, thalis

Re: [PHP] Click "class"

2002-02-22 Thread Thalis A. Kalfigopoulos
On Sat, 23 Feb 2002, Dani wrote: > Hi! > > I have just visited a webiste and I have notice that user can't really > see the .php extension at the end of the URL address. And when I look at > the link address it's got 'class="click"' . > &

Re: [PHP] Re: Newbie question...

2002-02-22 Thread Thalis A. Kalfigopoulos
On Fri, 22 Feb 2002, J Smith wrote: > > Try wget if it's installed. If not, lynx, a shell-based web browser, is > installed on quite a few machines. > > J > > > > > Ben Turner wrote: > > > This may be a bit off topic but I am trying to insta

[PHP] phpnuke site down?

2002-02-23 Thread Thalis A. Kalfigopoulos
Anyone have any idea what's wrong with www.phpnuke.org? No response neither yesterday, nor today :-( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Email Verification

2002-02-24 Thread Thalis A. Kalfigopoulos
What you could do additionally to syntax check, is to check if the domain they are giving is existant or not with checkdnsrr(). Still not 100% fullproof though :-( cheers, thalis On Sun, 24 Feb 2002, Steven Walker wrote: > Does anybody know any good ways (or available code) for verifying ema

Re: [PHP] How many files can be in one directory?

2002-02-25 Thread Thalis A. Kalfigopoulos
On Mon, 25 Feb 2002, Andy wrote: > Hi there, > > I am building a web application which is storing pictures. > > Is there a limit of files in one directory on LINUX systems? Perhaps it > might end in a problem after having 3 files in the same dir? Performance > issu

[PHP] regex

2002-02-27 Thread Paul A. Procacci
Hey all, I'm been programming in php for a while, but I'm stumpt with this one. You know the funny thing? It's probably really simple. Anyway here it is. Assume I have this query string: ticket_id=3&change_name=status&change_value=3&ticket_id=3&2=&1

[PHP] Re: Can I authenicate user with the accounts in passwd and shadow??

2002-03-04 Thread Paul A. Procacci
It's easiest to do this using apache, and not php. It's called mod_auth_pwcheck. You can find information from http://www.chel.com.ru/~anton/projects/mod_auth_pwcheck/.; Hope this helps. Paul Zenith wrote: >I know that, I can use HTTP, or just normal HTML to prompt for user id >and passwor

[PHP] Caching Problem

2002-03-06 Thread Paul A. Procacci
Hey all, I'm trying not to cache a page. I have the following code: $return = split(" ", exec("vmstat")); $cpu_top = 100; $return = $cpu_top - $return[count($return) -1]; which returns the amount of idle cpu time. The problem is this

[PHP] Re: Caching Problem

2002-03-06 Thread Paul A. Procacci
Hah, I found the problem. It's because vmstat when called always, initially has the cpu idle at 99. This explains it. So, how would I go abouts returning used cpu time on a system? Thanks, Paul Paul A. Procacci wrote: > Hey all, > I'm trying not to cache a p

[PHP] Re: header() and frames

2002-03-06 Thread Paul A. Procacci
Does that actually work? I'm using Mozilla, and it didn't work for me? :) Paul Jim Winstead wrote: >Alan McFarlane <[EMAIL PROTECTED]> wrote: > >>header("location: index.php; target: _top"); >> > >header("Location: index.php"); >header("Window-target: _top"); > >jim > -- PHP General Maili

[PHP] XML char data parsing

2002-03-14 Thread Thalis A. Kalfigopoulos
If I send just a line of simple text (like "The quick brown fox drowned") for XML parsing, why doesn't it call the function which I declare for character data handling? It doesn't even give me an error :-( Is it wrong to have plain text as input for XML parsing? che

Re: [PHP] XML char data parsing

2002-03-15 Thread Thalis A. Kalfigopoulos
> > If I send just a line of simple text (like "The quick brown fox > > drowned") for XML parsing, why doesn't it call the function which I > > declare for character data handling? It doesn't even give me an error > > :-( Is it wrong to have plain t

[PHP] XML parser questions

2002-03-15 Thread Thalis A. Kalfigopoulos
OK, I'm getting a bit confused about the well-formedness checking of expat. Doesn't expat do basic well-formedness checking? If I set empty start/endElement and charData handlers, and I parse: text I get an error as expected about mismatched tags. But if I give: text Or

Re: [PHP] Copy *.*

2002-03-17 Thread Thalis A. Kalfigopoulos
To traverse a directory tree check out PEAR's Filesystem related utilites File_Find and in particular File_Find::maptree http://pear.php.net/manual/en/packages.file.find.php cheers, --thalis On Sun, 17 Mar 2002, jtjohnston wrote: > Windows :) > John > > [EMAIL PROTECTED]

Re: [PHP] Brain Dead...

2002-03-17 Thread Thalis A. Kalfigopoulos
Dropdownmenu is a So the php variable that will hold the user's choice is stored in variable $ddmenu. Thus, no "input" needed. cheers, --thalis On Sun, 17 Mar 2002, Chuck "PUP" Payne wrote: > I am trying to get a form to work with pull down menu. But I am so

Re: [PHP] Brain Dead...

2002-03-17 Thread Thalis A. Kalfigopoulos
What does "I get that it can't do the query" mean? What error are you getting? On Sun, 17 Mar 2002, Chuck Payne wrote: > Ok, but I have this as an example > > > A > B > C > D &g

Re: [PHP] Brain Dead...

2002-03-17 Thread Thalis A. Kalfigopoulos
gt; how to pass the menu information to php so that it can do the SQL statement. > > I don't have $abc in the menu but I do have abc. So I am trying to find out > how to do that. Maybe I am going about it the wrong way. > > Chuck > - Original Message - > From: "Th

Re: [PHP] PHP CGI

2002-03-18 Thread Thalis A. Kalfigopoulos
> Who knows? It might. Its use is growing rapidly, and it's much easier to > learn. A few years ago the prospect would have been unthinkable, due to > the vastly greater supply of Perl CGI web apps and free libraries in > circulation. These days the advantage is not so stron

Re: [PHP] regular expression

2002-03-19 Thread Thalis A. Kalfigopoulos
I guess you can do it also as: ([1-9]{3})[1-9]{3}-[1-9]{4} cheers, --t. On Tue, 19 Mar 2002, Kris Vose wrote: > How would you write a regular expression that defines a phone number: ex. >(123)123-1234. > > In other words how would you check to see if there were three numeric

Re: [PHP] How do I make tab spaces in a mail?

2002-03-19 Thread Thalis A. Kalfigopoulos
On Tue, 19 Mar 2002, [iso-8859-1] Jan Grafström wrote: > Hi! > I have read several tricks of how to remove white spaces but how to create > them? > > I wan´t to build a normal textmail like this: > $message=" > productitemspriceamount > book2

RE: [PHP] building a control panel in php

2002-03-19 Thread Thalis A. Kalfigopoulos
> -Original Message- > From: Miguel Cruz [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 19, 2002 5:49 PM > To: Paul ... > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] building a control panel in php > > On Wed, 20 Mar 2002, Paul ... wrote: > > just thinkin

Re: [PHP] Phpfx, what is it?

2002-03-20 Thread Thalis A. Kalfigopoulos
On Wed, 20 Mar 2002, Ashley M. Kirchner wrote: > Chuck \"PUP\" Payne wrote: > > > Also I am looking for a php program that was written so that you can do a > > BBS, I wanted to use Ultimate Bulletin Board, but they no longer support the > > freeware verision,

Re: [PHP] $HTTP_COOKIE_VARS

2002-03-21 Thread Thalis A. Kalfigopoulos
I think you should have register_globals/track_vars set to TRUE in your php.ini cheers, thalis On Thu, 21 Mar 2002, 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 cooki

Re: [PHP] More newbie help - mixing 2 different things into onedatabase

2002-03-21 Thread Thalis A. Kalfigopoulos
If you don't give any code, I doubt anyone will be able to help. The error msgs to say the least. On Thu, 21 Mar 2002, Laurie Landry wrote: > Hi, > > In this example: I'm trying to introduce the selection data from another > table in the database into this form. The

Re: [PHP] Fetching 1 array from either one of 2 possible columns?

2002-03-21 Thread Thalis A. Kalfigopoulos
hat you didn't have parenthesis, it was interpreted as SUBEJCT1='$subejct' OR (SUBEJCT2='$subject' AND GEOGRAPHIC='$geographic') and I'd bet that in the example you ran $geographic was not equal to 'Brazil' otherwise you'd have gotten a hit on the se

[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

[PHP] ttf broken?

2002-03-22 Thread Michael A. Peters
Red Hat 7.2 OK- I'm going on ahead w/o T1lib for the moment. compiled and installed php-4.1.2 Now some font stuff is busted. Any image where I use ImageTTFText no longer works. I used these configure options for my php gd functions- --with-zlib=/usr \ --with-gd \ --e

[PHP] ttf broken?

2002-03-22 Thread Michael A. Peters
Red Hat 7.2 OK- I'm going on ahead w/o T1lib for the moment. compiled and installed php-4.1.2 Now some font stuff is busted. Any image where I use ImageTTFText no longer works. I used these configure options for my php gd functions- --with-zlib=/usr \ --with-gd \ --e

Re: [PHP] Re: Tool to remove comments??

2002-03-22 Thread Michael A. Peters
r changing something. Good Code == Commented Code Well, Good Code is at least a subset of commented code ;) If you don't want a customer to see them, use the Zend Encoder and hide all your source. On Sat, 23 Mar 2002 04:38:40 -0300 "Julio Nobrega" <[EMAIL PROTECTED]> mentioned: >

Re: [PHP] PHP Developer's Cookbook, Second Edition

2002-03-23 Thread Thalis A. Kalfigopoulos
Don't have 1st, but 2nd looks pretty good. It functions both as a manual and as a reference and most of the recipes have pieces that I'd say correspond to real life problems. not much help I guess :-) cheers, --t. On Sat, 23 Mar 2002, Craig Westerman wrote: > Is the second

Re: [PHP] Image Manipulation/GD support

2002-03-23 Thread Michael A. Peters
On the topic of gd support but a slightly different topic- I was using php 4.0.5 gd 1.8.3 patched for gif support (using libungif for libgif which I *think* is OK) FreeType 1.3.1 (compiled myself in /usr/local ) t1lib 1.3.1 (compiled myself in /usr/local ) I was using gd to draw pictures and

[PHP] Re: PHPTriad Error in Windows XP.

2002-03-24 Thread Avdija A . Ahmedhodzic
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi, > I installed PHPTriad under Windows XP and I keep gettting the > following error: > > Warning: MySQL Connection Failed: Can't connect to MySQL server on > 'localhost' (10061) in C:\apache\htdocs\phpmyadmin\lib.inc.php on line > 2

[PHP] Re: test...

2002-03-24 Thread Avdija A . Ahmedhodzic
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > 24/03/2002 8:34:40 PM > > Umm, is it just me or has there been no traffic on this list for the last 2 hours > > Weird > > > > people write less on weekdays. Poz! -- Prevencija putem edukacije http://www.narkomanija.com/

Re: [PHP] How to reduce an array to n values?

2002-03-24 Thread Thalis A. Kalfigopoulos
Use array_splice or better array_slice. array_slice($orig_array,0,n); cheers, --t. On Sun, 24 Mar 2002, [-^-!-%- wrote: > > > Use array_pop. > See the manual. > > -j > > __John Monfort_ > _+---+_ > P E P I E D E S I G N S >

Re: [PHP] Image manipulation with PHP on RHLinux 7.1

2002-03-24 Thread Thalis A. Kalfigopoulos
This isn't image manipulation. This is filesystem manipulation. As for the "resizing", check if you have mogrify with you Linux installation and do a system() on it. cheers, --t. On Sun, 24 Mar 2002, Dale & Lora Marshall wrote: > > Hello all. I have a PHP scrip

<    10   11   12   13   14   15   16   17   18   19   >