Re: [PHP] stripping white space?

2001-07-10 Thread Bart Veldhuizen
Hi Brian, * Persuade someone at Zend to modify PHP so that a filter function can be specified which all output text is passed through - would have the same restrictions as the header function You can already achieve this by using the built-in output buffering function. Read

Re: [PHP] PDF Problems

2001-07-10 Thread ReDucTor
Fatal error: PDFlib error: Beta expired - retrieve new version from www.pdflib.com in c:\phpdev3\www\pdf\test.php on line 2 hahahahha - Original Message - From: ReDucTor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 10, 2001 4:22 PM Subject: Re: [PHP] PDF Problems Shit i

[PHP] something like get_html_translation_table

2001-07-10 Thread Jack Dempsey
Hi all, I hope I haven't missed it if it exists...i've looked through the docs...i'm trying to find something that does the same trick shown at php.net for getting the table, array_flip()'ing it, then using strtr to translate things like nbsp; What about others like 146; etc...it'd be really

RE: [PHP] stripping white space?

2001-07-10 Thread Navid A. Yar
I guess this is just one of those things where everyone's opinions runs in different directions, yet everyone is entitled to their own. I myself try to respect the standard because of the browser war years which made everyone uncomfortable. Now most browsers are trying to merge into a single

Re: [PHP] how to hide dbconnect file if its in publisheddirectory?

2001-07-10 Thread John Weaver
On Tuesday 10 July 1979 12:55 am, [EMAIL PROTECTED] wrote: on 7/10/01 1:01 AM, Navid A. Yar at [EMAIL PROTECTED] wrote: Hmmm, I was wondering about security of PHP also. Does anyone know the general issues of security within PHP documents? My thought is that PHP cannot be seen when you

Re: [PHP] how to hide dbconnect file if its in published directory?

2001-07-10 Thread John Weaver
On Tuesday 10 July 1979 12:39 am, [EMAIL PROTECTED] wrote: on 7/10/01 12:30 AM, John Weaver at [EMAIL PROTECTED] wrote: Sorry, I should have been more clear. If you write modular code, your included file will be nothing but a group of functions. Call a file with nothing but functions in

[PHP] Re: form action problem

2001-07-10 Thread elias
hmmdo again as: ? function functionA() { // your function goes here } if (isset($usefunctiona)) { functionA(); } ? html body form name=form1 method=post action=?=$PHP_SELF? input type=submit name=usefunctiona value=Use functionA /form /body /html //elias!

RE: [PHP] Re: Running PHP as a cron job....

2001-07-10 Thread Manohar.K (GM Systems)
Hi Can I have this cron scripts please? Thanks Manohar -Original Message- From: Ben Bleything [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 4:20 AM To: Chadwick, Russell Cc: '[EMAIL PROTECTED]' Subject: RE: [PHP] Re: Running PHP as a cron job Someone yesterday also

[PHP] Re: Code Examples for Job Interview

2001-07-10 Thread elias
I invite you to the OzoneAsylum (Forum) where you can have tens of comments and really helpfull ideas http://www.ozoneasylum.com Jcampbell [EMAIL PROTECTED] wrote in message 001e01c108c2$9da68c60$779fadac@dhcpserver">news:001e01c108c2$9da68c60$779fadac@dhcpserver... Hey Everyone. This

Re: [PHP] Hiding password in a class file (object-oriented programming)?

2001-07-10 Thread scorpio1
Putting in php tags does not necessarily mean that it will be parsed as php. If you are using Apache web server, the file type ( php htm etc) needs to be identified as a php file. This is done in the httpd.conf configuration file. Just putting php tags in a htm file usually does not work by

Re: [PHP] Re: Running PHP as a cron job....

2001-07-10 Thread Henrik Hansen
[EMAIL PROTECTED] (Manohar.K) wrote: Hi Can I have this cron scripts please? Thanks Manohar just do something like: 59 23 * * * wget --quiet http://www.fsck.dk/script.php /dev/null or 0 10 * * * lynx -dump http://www.fsck.dk/script.php /dev/null -Original Message-

Re: RE: [PHP] webmail

2001-07-10 Thread Adrian D'Costa
Hi, On Mon, 9 Jul 2001 [EMAIL PROTECTED] wrote: In addition, here's a POP3 class from the PHP Classes Repository... Where :) I did not get anything. Adrian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] Re: webmail

2001-07-10 Thread Adrian D'Costa
Hi, Thanks. I found it and installed it. Maybe I need to hack around it to add more functions such as address book and attachement like squirrelmail. Adrian On Mon, 9 Jul 2001, Bleue wrote: There is a really good simple pop email client called rymo. Im not sure where I found it, but it

Re: [PHP] webmail

2001-07-10 Thread Adrian D'Costa
On Mon, 9 Jul 2001, Max Pyziur wrote: Thanks, but my specs are PHP4 and POP3 Adrian The one which I use which matches your requirements (non-PHP, perl-module driven) is NS WebMail, one which I use and gives basic webmail capablities, though missing some desired functionality (sort on

[PHP] capturing email adresses

2001-07-10 Thread scorpio1
Hi I am creating a guestbook for an intranet. In case I get people sending inappropriate messages to the guestbook I want to keep a log of visitor's emaill addresses. Is there a way in PHP of getting the web browsers email address? cheers dave -- PHP General Mailing List

[PHP] Re: capturing email adresses

2001-07-10 Thread mojo jojo
As far as I am aware, none of the major web browsers will reveal the email address of the user to any website or web application. This is for privacy reasons. You will need to get your guests to enter their email address in a text field to capture it for your records. Pete Scorpio1 [EMAIL

Re: [PHP] stripping white space?

2001-07-10 Thread Bart Veldhuizen
Hi Maxim, 1. HTTP compression, which is not 100% compatible, but catches most of the browsers anyway. Yes. The standard PHP implementation actually inspects the HTTP headers to determine if the browser supports gzip encoding. If not, it will send the files uncompressed. Looking at our website

[PHP] Re: Any banner system?

2001-07-10 Thread Sara Young
There are some ad banner systems at the Zend.com's Applications section: http://www.zend.com/apps.php?CID=35 Sara On 9 Jul 2001, at 13:49, José León Serna wrote: Hello: I would like to know if there's a PHP Banner system with the following features: -Allow insert the banners anywhere

[PHP] Re: php chat

2001-07-10 Thread Sara Young
There are some Chat Programs at Zend.com's Applications Section: http://www.zend.com/apps.php?CID=240 Try also: http://www.zend.com/codex.php?CID=272 Sara On 9 Jul 2001, at 14:24, Jack wrote: Hi all is there anyone know where can I get a good php chat programme? Jack [EMAIL PROTECTED]

[PHP] Oracle 8i + non perstistant database connections remaining open.

2001-07-10 Thread Taylor, Stewart
Hello, I'm using OCI8 Revision 1.96 Oracle Version 8.1 Apache Apache/1.3.11 Redhat Linux 6.2 php 4.0.2 I am connecting to my database using a non-persistant connection (ocilogin). My applications run with no problems during the day.However, at the end of the day there is about 20

AW: [PHP] Oracle question

2001-07-10 Thread Sebastian Stadtlich
oracle does not have an autoincrement. it has the more powerfull concept of TRIGGERS unfortunatelly you have to write them in pl/sql or java... have a look on the net for oracle trigger tutorial or you can find a super oracle-feature-documentation here : http://conf.php.net/oci2

[PHP] how to use/compile ssl with apache and php?

2001-07-10 Thread Sebastian Stadtlich
I had to recompile apache on my redhat 7.1, because the default compilation missed some 'features'. I acomplished that since it was well documented in the php readme/install. But now i need ssl in that apache too. is there a EASY way to do that? a small tutorial? all i found with google were big

Re: [PHP] Oracle 8i + non perstistant database connections remaining open.

2001-07-10 Thread Thies C. Arntzen
On Tue, Jul 10, 2001 at 09:32:32AM +0100, Taylor, Stewart wrote: Hello, I'm using OCI8 Revision 1.96 Oracle Version 8.1 Apache Apache/1.3.11 Redhat Linux 6.2 php 4.0.2 I am connecting to my database using a non-persistant connection (ocilogin). My applications run with no

Re: [PHP] stripping white space?

2001-07-10 Thread Bart Veldhuizen
Hi Maxim, I wrote a mini-manual about the module. You can get it with the code from: http://helium.homeip.net/stuff/cache.tar.gz I hope it helps you and I look forward to suggestions and contributions! Bart Maxim Maletsky [EMAIL PROTECTED] wrote in message

RE: [PHP] Oracle 8i + non perstistant database connections remaining open.

2001-07-10 Thread Steve Brett
you could move to a database that supports hot backups. postgresql perhaps ? -Original Message- From: Thies C. Arntzen [mailto:[EMAIL PROTECTED]] Sent: 10 July 2001 10:40 To: Taylor, Stewart Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Oracle 8i + non perstistant database connections

[PHP] Re: Store uploaded files in MySQL-BLOB

2001-07-10 Thread Adam
I would suggest setting the database column to LONGTEXT instead of BLOB since it can accomidate far more characters per entry. As for the entry to the database through php, I'm not entirely sure what method you're using to add these. Are they uploading their file and then it reads it as it

[PHP] PHP] Re: Store uploaded files in MySQL-BLOB

2001-07-10 Thread Tom Gitzinger
- Original Message - From: Adam [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 10, 2001 12:20 PM Subject: [PHP] Re: Store uploaded files in MySQL-BLOB I would suggest setting the database column to LONGTEXT instead of BLOB since it can accomidate far more characters per

Re: [PHP] Hiding password in a class file (object-oriented programming)?

2001-07-10 Thread teo
Hi Thomas! On Mon, 09 Jul 2001, Thomas David Kehoe wrote: How do I put my password into an external file? I have dozens of webpages with the line mysql_connect (localhost, username, password); What if I have to change my password? Rather then change dozens of scripts, I want to

[PHP] Help me install php in netscape web server ...

2001-07-10 Thread Nguyen Thanh Tung
I use php4.0.6, zip file. I install PHP in Netscape as shellcgi, it ran Ok. But now I want to install it as NSAPI, I do all thing but php not run. ( I do the same as introducing in readme.txt) I installed PHP in Netscape Enterprise Web Server run on Win2000 advance server. Please tell

RE: [PHP] http header

2001-07-10 Thread Adrian Ciutureanu
Use $HTTP_REFERER http://php.net/manual/en/language.variables.predefined.php -Original Message- From: Jack [mailto:[EMAIL PROTECTED]] Sent: 11 iulie 2001 01:23 To: [EMAIL PROTECTED] Subject: [PHP] http header Dear all folks, I want to get the url of the previous page that my

[PHP] Re: PHP] Re: Store uploaded files in MySQL-BLOB

2001-07-10 Thread Adam
The project is a kind of knowledge base. For each entry a user creates, he should be able to give additional information, such as every kind of file (i.e. not only code files but also images etc). There is an input type=file ... where he selects the file to be uploaded. The php-script is

[PHP] Re: IE cookies don't expire!

2001-07-10 Thread Adam
define a variable to be set on refresh along with the URL that erases the cookie by setting it's expire to time() minus a month or so. If you don't want the url varibale passer to show then have it set the cookie then to a header redirect to $PHP_SELF. ?php if ($refresh) {

Re: AW: [PHP] Oracle question

2001-07-10 Thread Rouvas Stathis
PL/SQL code for an Oracle trigger that will auto-increment specified field: create or replace trigger trigger before insert on table for each row begin if :new.field is null then select sequence-name.nextval into :new.field from dual; end if; end; You have to create a sequence

[PHP] need a *very simple* email checker or help to design one!

2001-07-10 Thread sunny AT wde
hi all! i'm looking for a very basic and simple web based mail checker which just downloads pop email and thats it. tne i could change the look and feel, plus delete the messages (off the database) however i want. anyone have something? reason being i've already written an addressbook and

[PHP] Cookie Strange Problem - Need Help

2001-07-10 Thread Felipe Moreno
Hi list members! I'm having a strange problem here regarding cookies. First let me explain the scenery: I'm developing a site that have a login system. I'm using PHP , MYSQL and APACHE under MS windows 98 SE. So, when the user login into the first page, I set up 2 cookies, one with his name

Re: [PHP] Require very urgent Help about Security (pki, digital signature) along with PHP

2001-07-10 Thread Christian Reiniger
On Tuesday 10 July 2001 04:50, Manisha wrote: I want to develop one payment site, where people will pay their tax. [...] These reports are very sensitive, so I want high end security (I am out of USA). I am thinking of using pki (public key infrastructure). If it is very sensitive, employ a

[PHP] Session timeout

2001-07-10 Thread Frédéric Mériot
How to set the session timeout? -- 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 PROTECTED]

[PHP] How to fetch a group by Query?

2001-07-10 Thread Frédéric Mériot
Hello (again) I've got a query which extract titles and categories with a group by on the categorie. Is there a simple way to display rows like this (without doing a second query ): Categorie A -titi -toto -tutu Categorie B -bibi -nini -fififi Categorie C -titi

[PHP] Re: Store uploaded files in MySQL-BLOB

2001-07-10 Thread elias
Tom, First, I suggest using LONGBLOB as a field... Second, Once the $userfile is uploaded...use the statment as: $query = INSERT INTO ... (file) VALUES ( LOAD_FILE($userfile)); using the MySql's LOAD_FILE() Tom Gitzinger [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

[PHP] Re: http header

2001-07-10 Thread elias
It's called HTTP_REFERER PHP document: HTTP_REFERER The address of the page (if any) which referred the browser to the current page. This is set by the user's browser; not all browsers will set this. Jack [EMAIL PROTECTED] wrote in message 05c201c1098e$ee947fc0$[EMAIL

[PHP] Re: http header

2001-07-10 Thread Johannes Janson
Hi, Dear all folks, I want to get the url of the previous page that my visitor came from. Is this correct to use http_header? Or what function that will help me do this job? the variable $HTTP_REFERER will do the job but not all browsers support it. Manual - Variables - predefined variables for

Re: [PHP] Session timeout

2001-07-10 Thread py
look in php.ini py - Original Message - From: Frédéric Mériot [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 10, 2001 1:33 PM Subject: [PHP] Session timeout How to set the session timeout? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP] Not sure how to describe this problem..

2001-07-10 Thread Chad Day
I have a chunk of code in a webpage that works like this, to rotate some ads.. : if ($row = mysql_fetch_array($getads)) { do { $POS = $row[LASTPOS]; $ID = $row[ID]; $POS++; if ($POS

Re: [PHP] Not sure how to describe this problem..

2001-07-10 Thread infoz
I agreee that it sounds like you're running into concurrency issues with mySQL. I would just adopt a statistical approach, and pick a banner at random each time...if the random number generator works properly, then you'll get an even distribution over the universe of available banners. If you

[PHP] GetImageSize

2001-07-10 Thread Matt Simpson
We are having some serious issues with GetImageSize in PHP 4.0.x and i'm wondering if anyone else had similar issues and solved or came up with a different solution. For some reason, at random and without warning, the function just seems to stop working and does nothing but wait and timeout at

AW: [PHP] global.asa or application.cfm equivalent?

2001-07-10 Thread Sebastian Stadtlich
Hello, is there an equivalent of the global.asa (ASP) or application.cfm nope , but usually you can work around that by a sessionstuff b persistent DB connections + storing information there c enviroment vars d ... what do you need it for? sebastian -Ursprüngliche Nachricht-

[PHP] including secure pages in PHP

2001-07-10 Thread Reuben D Budiardja
It seems that I cannot include secure pages, something like include (https://www.bla.com/) will fail. Any way to get around this? or is this intentional? Thanks Reuben D. Budiardja -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] how to use/compile ssl with apache and php?

2001-07-10 Thread Christopher Allen
Seb-, http://www.devshed.com/Server_Side/PHP/SoothinglySeamless/ I used this tutorial the first time. It was very straight forward. Remember that you dont need rsaref files anymore in the US. could someone explain me what i need to ad to the apache compiling string ? ( i build php in apache )

[PHP] StreamMp3 from ming extension doesn't work!!!

2001-07-10 Thread octopussy
Hi there! I'm trying a functionality from the ming library (Flash extension) that is swfmovie()-streammp3(file). This allows the streaming of an mp3 file from a web server... In fact, that is what it is supposed to do! The pb is that it doesn't work. Does anybody try it successfuly ? Thanks

[PHP] exec(), system() and

2001-07-10 Thread Siva Subraj
Dear list, I have a strange problem with the weird behaviour of exec() or system() When I do: exec('/usr/local/bin/php somescript.php if=infile.txt of=outfile.txt out_somescript '); in a script invoked by apache, it works perfectly - the somescript processes 'infile.txt' and produces

[PHP] Re: exec(), system() and

2001-07-10 Thread elias
Hmm... why don't try to use eval() read the PHP file from within your PHP script and eval the read file, Siva Subraj [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Dear list, I have a strange problem with the weird behaviour of exec() or system() When I

[PHP] Re: form action problem

2001-07-10 Thread elias
Adam, It's really better to use the isset() instead of empty() because if you set the error level report to E_ALL you will see that PHP will produce warnings if the variable is not set at all! Adam [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hmmdo again

[PHP] Re: Thumbnail code that will do an entire directory at once

2001-07-10 Thread elias
Great work scot! Scott [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... i wrote a little subroutine to make a directory full of images into thumbnails... it'll make thumbnail images of a specified height and width and properly resize the original image to

RE: [PHP] Store uploaded files in MySQL-BLOB

2001-07-10 Thread Ben Bleything
Check out http://www.phpbuilder.com/columns/florian19991014.php3. I've been using it to maintain image galleries. Works like a champ. My guess would be that any version of php will upload multiple files... just use multiple variables = Good luck and let us know, Ben -Original

[PHP] FW: virus alert

2001-07-10 Thread Maxim Maletsky
I think this guy meant to post it to the list but got the wrong address: -maxim maletsky -Original Message- From: Frederick L. Steinkopf [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 1:57 PM To: [EMAIL PROTECTED] Subject: virus alert Importance: High A message sent from me

[PHP] Re: Code Examples for Job Interview

2001-07-10 Thread Chris Lee
shamefull plug alert, shame, shame alert. php/perl/java/etc/etc/etc forum gets two new posts a day. you can have tens of comments if you wait 5-7 days. -- Chris Lee [EMAIL PROTECTED] Elias [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I invite you to

RE: [PHP] How to fetch a group by Query?

2001-07-10 Thread Ben Bleything
Did you try 'SELECT categorie,item FROM your_table GROUP BY categorie'? Ben -Original Message- From: Frédéric Mériot [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 5:41 AM To: PHP General List Subject: [PHP] How to fetch a group by Query? Hello (again) I've got a query which

[PHP] PHP 4.0.6 and TSRM, I can't compile it! please help

2001-07-10 Thread alexus
i'm geting this error while compiling php Making all in TSRM /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DMOD_SSL=208104 -DEAPI -DEAPI_MM -DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -c TSRM.c /bin/sh ../libtool --silent --mode=compile gcc

[PHP] Average of column...

2001-07-10 Thread Jeff Lewis
I am trying to obtain the average age for a few teams in my database. Am using the below code: $age_result = mysql_query(select AVG(age) FROM bat_rost WHERE ownerID = '$teamID'); while(($row = mysql_fetch_object($age_result))){ $age=$row-age; echo Average age - .$teamID.$age;} How can I get

AW: [PHP] Access to oracle db

2001-07-10 Thread Sebastian Stadtlich
hi did you specify the third 'optional' parameter? OCILogon (string username, string password [, string db]) db should be your tnsname on windows i could not make it without that parameter. it should be set as enviroment variable ORACLE_SID, but that did not work for me on win( it does on linux

Re: [PHP] Average of column...

2001-07-10 Thread infoz
You can name the pseudo-column by doing select AVG(age) as avgage from ... and then accessing it as avgage. - Tim http://www.phptemplates.org - Original Message - From: Jeff Lewis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 10, 2001 11:27 AM Subject: [PHP] Average of

[PHP] Authentication

2001-07-10 Thread David Baldwin
hi I am trying to secure a web site and I can get one page at a time to ask for authentication but thats it. Right now every page visited asks for a password, otherwise there is no auth on them at all. So I am wondering how to make $PHP_AUTH_USER and $PHP_AUTH_PW global so that isset

Re: AW: [PHP] Access to oracle db

2001-07-10 Thread Parisi Giuliano
HI, I use this PHP call to open an Oracle db connection: ora_logon(sr_tst@ORATEST , sr_tst) where user=password=sr_tst and service name is ORATEST . My tnsnames.ora contains: ORATEST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (Host = offida) (Port =

RE: [PHP] Average of column...

2001-07-10 Thread Remo Pini
if you do a $res = mysql_fetch_row($age_result) $res[0] will be the value of AVG(age). -Original Message- From: Jeff Lewis [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 5:27 PM To: [EMAIL PROTECTED] Subject: [PHP] Average of column... I am trying to obtain the

RE: [PHP] Authentication

2001-07-10 Thread Jack Dempsey
You should look into sessions...checkout www.phpbuilder.com and other places throughout the net for tutorials...always use www.php.net as well...has everything you need... jack -Original Message- From: David Baldwin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 11:41 AM To:

AW: AW: [PHP] Access to oracle db

2001-07-10 Thread Sebastian Stadtlich
which oracle version do you use? if it is 8.x then you should use the OCI-Functions not ora if it is not 8.X then i can't help. ( and you should upgrade :-] ) the tnsnames.ora looks ok try ocilogon(sr_tst , sr_tst,ORATEST); sebastian -Ursprungliche Nachricht- Von: [EMAIL PROTECTED]

RE: [PHP] Average of column...

2001-07-10 Thread Jeff Lewis
This doesn't work: $age_result = mysql_query(select AVG(age) as avgage FROM bat_rost WHERE ownerID = '$teamID'); $row = mysql_fetch_object($age_result); $age=$avgage; echo Average age - .$teamID.$avgage; Neither does this: $age_result = mysql_query(select AVG(age) as avgage FROM bat_rost WHERE

RE: [PHP] weird behaviour with (Z = Z)

2001-07-10 Thread Jack Dempsey
Perhaps not a great answer, but this issue has been brought up before, and it has to do with the incrementing of a string...search the archives...i think someone had a simple workaround using chr() to get what you want... jack -Original Message- From: Christian Dechery [mailto:[EMAIL

Re: [PHP] weird behaviour with (Z = Z)

2001-07-10 Thread Vitali Falileev
Hello Christian, 10 July, 2001, 18:44:53, you wrote: CD Z = Z is true right?? Yes, right, but Z = Z and your code makes next iteration, then $letter = AZ and AZ is LESS that Z, because A Z. :) CD then why this weird thing happens when I have this code: CD for($letter=A; $letter=Z ;

RE: [PHP] Average of column...

2001-07-10 Thread Steve Brett
$age_result = mysql_query(select AVG(age) as avgage FROM bat_rost WHERE ownerID = '$teamID'); $row = mysql_fetch_row($age_result); $average_age=$row[0]; echo Average age of .$teamID. is .$average_age; or $age_result = mysql_query(select AVG(age) as avgage FROM bat_rost WHERE ownerID =

RE: [PHP] weird behaviour with (Z = Z)

2001-07-10 Thread Maxim Maletsky
what??? are you sure it does that to you? You sound so confident that it confuses my knowledge that for loop should be counting integers, not strings (Z is a string and there's nothing bigger or lower it) -maxim maletsky -Original Message- From: Christian Dechery [mailto:[EMAIL

Re: AW: AW: [PHP] Access to oracle db

2001-07-10 Thread Parisi Giuliano
Hi, I use Oracle client 8.1.x. I've folloved your suggestion but PHP interpreter returned the same error. It's as PHP interpreter doesn't find tnsnames.ora (if I rename tnsnames.ora to tnsnames.ora doesn't change, error is always the same). sqlplus executed with parameter

[PHP] Q: Best EZ Free Mailing List Manager?

2001-07-10 Thread Marcus James Christian
Hello, I need to add a Subscribable and Unsubscribable Email mailing list to a site. I'm just not in my usual break out the books and learn 1000 new things vibe this month. So... What do you superpowered pro's recommend as the best, easiest and free Email Mailing list manager, app, or cut

RE: [PHP] weird behaviour with (Z = Z)

2001-07-10 Thread Jack Dempsey
Try this: ? for($i=65;$i=90;$i++){ $str .= chr($i) . ; } echo $str; ? jack -Original Message- From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 12:10 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] weird behaviour with (Z = Z)

Re: [PHP] stripping white space?

2001-07-10 Thread Bart Veldhuizen
Hi Remo, PS: Can anyone enlighten me concerning HTTP compression? I wish I could remember where I read this, but the PHP documentation still does not have this feature described. To enable zlib output compression, first make sure you have compiled PHP with the --with-zlib option. Next, add the

RE: [PHP] Any banner system?

2001-07-10 Thread Robert V. Zwink
http://www.phpwizard.net/ has something called phpAds. Seems to cover your requests. Robert Zwink http://www.zwink.net -Original Message- From: José León Serna [mailto:[EMAIL PROTECTED]] Sent: Monday, July 09, 2001 7:50 AM To: [EMAIL PROTECTED] Subject: [PHP] Any banner system?

[PHP] ? : where in the manual?

2001-07-10 Thread Rehuel Lobato de Mesquita
Heya guys, I am trying to find information in the manual to explain these lines: $goto = empty($SESSION[wantsurl]) ? $CFG-wwwroot : $SESSION[wantsurl]; header(Location: $goto); die; Can anyone tell me where to look??? Thanx -- PHP General Mailing List (http://www.php.net/) To

[PHP] PHP Conference in California

2001-07-10 Thread Uri Even-Chen
I have heard about the PHP Conference O'Reilly Open Source Convention in San Diego, California. Do you think it is worth being there? I saw the prices and it's quite expensive. Not to mention the cost to get there... http://conferences.oreilly.com/oscon/ Thanks, Uri Even-Chen Speedy Software

RE: [PHP] Q: Best EZ Free Mailing List Manager?

2001-07-10 Thread Chadwick, Russell
qmail with ezmlm, and ezmlm-idx which provides some more advanced features. - Russ http://cr.yp.to/ezmlm.html -Original Message- From: Marcus James Christian [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 9:11 AM To: [EMAIL PROTECTED] Subject: [PHP] Q: Best EZ Free Mailing

[PHP] security

2001-07-10 Thread AVisioN:::nomoremedia:::
Is it possible to restrict the use of a php-file to a special file (for example an swf). -- ---: AVisioN :--- http://www.nomoremedia.de -::[EMAIL PROTECTED]::- I have nothing to declare except my genius._oscar_wild -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] flat file db

2001-07-10 Thread Jon Yaggie
i am setting up a flat file database. i want to restrict acess so that users cant view it intentionally or accidentally. i am pretty positive this is a job for htaccess but i am pretty clueless in this area(one of many areas i am clueless in) anyone got a suggestion on a tutorial or another

RE: [PHP] Oracle question

2001-07-10 Thread Chadwick, Russell
Create a sequence, like so CREATE SEQUENCE WHATEVER_IDS INCREMENT BY 1 START WITH 1 MAXVALUE 1.0E28 MINVALUE 1 NOCYCLE CACHE 20 NOORDER; then when you insert INSERT INTO test (whatever_ids.nextval); the nice thing is that in your

RE: [PHP] flat file db

2001-07-10 Thread Chadwick, Russell
put in somewhere outside the document root, as long as your apache isn't jailed php can read your flat file wherever you put it, as long as its owned by the webserver user - Russ -Original Message- From: Jon Yaggie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 9:18 AM To:

RE: [PHP] ? : where in the manual?

2001-07-10 Thread Jack Dempsey
www.php.net/empty www.php.net/header the x ? Y : z; form is a quick n easy structure that works like if/else do a search for classes and objects for the $CFG-wwwroot part jack -Original Message- From: Rehuel Lobato de Mesquita [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001

RE: [PHP] Q: Best EZ Free Mailing List Manager?

2001-07-10 Thread Maxim Maletsky
try ezmlm, it is what this mailing list is running. You'll need qmail for it to work. Or majordomo. URLs, search google, easy to find. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original

Re: [PHP] Post a form within a running php-script

2001-07-10 Thread Julian Wood
A class which allows you to post from within a php script and retrieve the results: http://px.sklar.com/code-pretty.html?code_id=313 Julian On Sunday, July 8, 2001, at 11:22 PM, mike cullerton wrote: on 7/8/01 11:17 PM, Bob Horton at [EMAIL PROTECTED] wrote: What if someone wanted to

Re: [PHP] flat file db

2001-07-10 Thread Jon Yaggie
is there a way i can check this? and what is the liklihood of it being so? - Original Message - From: Chadwick, Russell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 10, 2001 11:23 PM Subject: RE: [PHP] flat file db put in somewhere outside the document root, as long

Re: [PHP] security

2001-07-10 Thread Chris Lambert - WhiteCrown Networks
Check what the user agent is for the SWF, and see if it passes a specific referer. That should deter 99% of attempts. /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From:

RE: [PHP] Average of column...

2001-07-10 Thread Remo Pini
hm, not too surprising, no colon delimiter... $age_result = mysql_query(select AVG(age) FROM bat_rost WHERE ownerID = '$teamID'); $res = mysql_fetch_row($age_result); $age = $res[0]; echo Average age - $teamID$age; should work actually... btw, if teamID is numeric, you have to omit the '

RE: [PHP] weird behaviour with (Z = Z)

2001-07-10 Thread Maxim Maletsky
I would rather go for the following solution: for($i=ord('A'); $i=ord('Z'); $i++) echo chr($i).' '; I know it's same and even slower as it takes two more functions to execute, but at least it is visually closer to what Christian was trying to do. Sincerely, Maxim

Re: [PHP] ? : where in the manual?

2001-07-10 Thread Philip Olson
These are called (well, one name for it), is ternary operator. It's not PHP specific and a search on google will find some results. Regarding PHP, brief discussion (with examples) can be found at the following locations : http://www.php.net/manual/language.expressions.php

[PHP] Line by Line , Word by Word

2001-07-10 Thread alfareees alfareees
How to read file line by line and read line word by word _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

RE: [PHP] weird behaviour with (Z = Z)

2001-07-10 Thread Philip Olson
I forget which version of PHP allows you to do the following, it may be 4.0.6 or maybe 4.0.7 : for ($a='a'; $a='z'; $a++) { print $a; } The way I get around this is by : $letter = 'a'; for ($a=1; $a=26; $a++) { print $letter++; } It works or at least may easily work for

RE: [PHP] ? : where in the manual?

2001-07-10 Thread Maxim Maletsky
same from : header(Location: .(empty($SESSION[wantsurl]) ? $CFG-wwwroot : $SESSION[wantsurl])); Exit; or, if not readable enough then: if(empty($SESSION[wantsurl])) { $goto = $CFG-wwwroot; } else { $goto = $SESSION[wantsurl]; } header(Location: $goto);

Re: [PHP] Line by Line , Word by Word

2001-07-10 Thread Philip Olson
In short : file() opens the file line-by-line and you can explode() each line via a space ' ' although not perfect, it could work for you. See manual for details. Regards, Philip On Tue, 10 Jul 2001, alfareees alfareees wrote: How to read file line by line and read line word by word

RE: [PHP] weird behaviour with (Z = Z)

2001-07-10 Thread Maxim Maletsky
wow, I have just upgraded a couple of servers to v.4.0.6. Will go wild testing this staff tomorrow. Thanks Philip. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Philip

RE: [PHP] Line by Line , Word by Word

2001-07-10 Thread Maxim Maletsky
readfile(bla bla bla and then explode(' ', $line[$i]) Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: alfareees alfareees [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July

[PHP] Thanx Guys

2001-07-10 Thread Rehuel Lobato de Mesquita
Thanx for the explanation of the ternary operations If I can help, Please let me! Rehuel -- 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

[PHP] include nubie question - need help

2001-07-10 Thread Ivo Stoykov
Hello I migrated to php 4.0.5 under windows IIS 5/win2000 AS The following line - if($HTTP_POST_VARS['user_name']) { ... WHATEVER ...} - returns me following error with and without global $HTTP_POST_VARS Warning: Undefined index: user_name in E:\10ioWebSite\sales\login.php on line 99 and the

Re: [PHP] Line by Line , Word by Word

2001-07-10 Thread Chris Lambert - WhiteCrown Networks
www.php.net/fgetcsv Use a space as the deliminator. /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: alfareees alfareees [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

  1   2   >