Re: [PHP] CGI and HTTP Authentication

2002-01-04 Thread Brian Clark
* Gaylen Fraley ([EMAIL PROTECTED]) [Jan 05. 2002 01:36]: > But is there a PHP variable that holds the Server API? How about a function that returns a string? php_sapi_name() PHP 4.x -- Brian Clark | Avoiding the general public since 1805! Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB

[PHP] Re: Checking for characters in string

2002-01-04 Thread Joe Webster
This one had me for a min, thank god for the lookahead =) $password_string being the password in quesiton, $is_valid = true when it is valid, false when it's not valid. $is_valid = preg_match("/(?=.*\d)(?=.*[a-z])(?=.*[A-Z])./", $password_string); I've said it before and I'll say it again, preg

Re: [PHP] CGI and HTTP Authentication

2002-01-04 Thread Gaylen Fraley
But is there a PHP variable that holds the Server API? -- Gaylen [EMAIL PROTECTED] Home http://www.gaylenandmargie.com/ PHP KISGB v3.02 Guest Book http://www.gaylenandmargie.com/phpwebsite/ "Brian Clark" <[EMAIL PROTECTED]> wrote in message 20020105061814.GL17616@ganymede">news:20020105061814.GL

Re: [PHP] CGI and HTTP Authentication

2002-01-04 Thread Brian Clark
* Gaylen Fraley ([EMAIL PROTECTED]) [Jan 05. 2002 00:27]: > Just for curiosity, can HTTP Authentication be disabled in any other way, if > PHP is installed as a module? In other words, is there any other reason why > the authentication might not work (under *nix), not IIS? If this is Apache, HT

Re: [PHP] php form

2002-01-04 Thread Brian Clark
* M.E. Suliman ([EMAIL PROTECTED]) [Jan 05. 2002 00:22]: > Hi Hello > I'm pretty new to this PHP thing so this might sound a bit stupid, or easy > for the pros out there. I need a basic php form that when submit is clicked > all the information filled in that form is either generated into an h

Re: [PHP] CGI and HTTP Authentication

2002-01-04 Thread Brian Clark
* Gaylen Fraley ([EMAIL PROTECTED]) [Jan 05. 2002 00:22]: > Thanks :). I thought I had figured out a way to determine if it was a CGI > or module. But it didn't work. Is there a reliable way? Yes, stick into a .php file and load it into your browser. Beside "Server API" it'll either say Apac

Re: [PHP] CGI and HTTP Authentication

2002-01-04 Thread Gaylen Fraley
Just for curiosity, can HTTP Authentication be disabled in any other way, if PHP is installed as a module? In other words, is there any other reason why the authentication might not work (under *nix), not IIS? -- Gaylen [EMAIL PROTECTED] Home http://www.gaylenandmargie.com/ PHP KISGB v3.02 Guest

Re: [PHP] CGI and HTTP Authentication

2002-01-04 Thread Gaylen Fraley
Thanks :). I thought I had figured out a way to determine if it was a CGI or module. But it didn't work. Is there a reliable way? -- Gaylen [EMAIL PROTECTED] Home http://www.gaylenandmargie.com/ PHP KISGB v3.02 Guest Book http://www.gaylenandmargie.com/phpwebsite/ "Brian Clark" <[EMAIL PROTEC

[PHP] php form

2002-01-04 Thread M.E. Suliman
Hi I'm pretty new to this PHP thing so this might sound a bit stupid, or easy for the pros out there. I need a basic php form that when submit is clicked all the information filled in that form is either generated into an html template or text file so it can be emailed. I would be looking at th

Re: [PHP] CGI and HTTP Authentication

2002-01-04 Thread Brian Clark
* Gaylen Fraley ([EMAIL PROTECTED]) [Jan 04. 2002 21:26]: > Is there any work around for using HTTP Authentication and PHP installed as > CGI? I know how to make the detection, I'm hoping (probably in vain) that > there is some way to make the two work. Thanks. AFAIK, no, unless you use .htacc

Re: [PHP] configuring sever to send mail (Win2k)

2002-01-04 Thread Brian Clark
* CJ ([EMAIL PROTECTED]) [Jan 04. 2002 23:01]: > PHP Version 4.0.6 > > [mail function] > ; For Win32 only. > SMTP = localhost Do you really have SMTP running on the Win2k server? -- Brian Clark | Avoiding the general public since 1805! Fingerprint: 07CE FA37 8D

Re: [PHP] PEAR

2002-01-04 Thread Bas van Rooijen
anyway, if you would really like to do this you could use output buffering function to send headers from anywhere in your script, ofcourse delaying output. check the manual part LXXII. Output Control Functions .. bvr. On Fri, 4 Jan 2002 22:37:13 -0500, Brian Clark wrote: >* harry ([EMAIL P

[Fwd: [PHP] Stupid question alert]

2002-01-04 Thread Bogdan Stancescu
(Inadvertedly only sent to me) --- Begin Message --- Object and events that occur in the browser window are controlled by client-side scripts (JavaScript, VB). Objects and events that occur on the server are controlled by server-side scripts (PHP, ASP, etc.) Since PHP is a server-side scriptin

[PHP] configuring sever to send mail (Win2k)

2002-01-04 Thread CJ
thanks for the reply but i still need some help: PHP Version 4.0.6 [mail function] ; For Win32 only. SMTP = localhost ; For Win32 only. sendmail_from = [EMAIL PROTECTED] --- I get this error when i use the mail function on

Re: [PHP] PHP Compile Errors

2002-01-04 Thread Brian Clark
* Jason Signalness ([EMAIL PROTECTED]) [Jan 04. 2002 16:18]: > Hello, Backatcha > I am having trouble compiling php with snmp support. ucd-snmp 4.2.2 is > installed and working without trouble. PHP4.1.1 configures ok but fails > on make, giving many errors similar to this: > /usr/local/lib/l

Re: [PHP] NEWBIE IN DISTRESS: Install Instructions are not work for PHP 4.1.1!!!

2002-01-04 Thread Brian Clark
* Mark ([EMAIL PROTECTED]) [Jan 04. 2002 12:14]: [...] > the Module version (Get a "Requested Operation Failed" message). can > someone please help? My system is as follows: > Windows 2000 SP2 > Apache 2.0.28 (I have also tried version 1.3.22 with same results as People had problems in t

Re: [PHP] PHP-Friendly WYSIWYG HTML Editor

2002-01-04 Thread Brian Clark
* Brandon ([EMAIL PROTECTED]) [Jan 04. 2002 10:47]: > G'day! G'day, mate! [...] > I've tried the following without success: > - Adobe PageMill. It came free with PageMaker; nice, except it arbitrarily > replaces things like - Netscape Composer, which gets the current value produced by the PH

Re: [PHP] PEAR

2002-01-04 Thread Brian Clark
* harry ([EMAIL PROTECTED]) [Jan 04. 2002 10:44]: > Hi all Hi Harry > I have been trying to use PEAR and have come to a standstill. > The following: > require_once ("HTML/Page.php"); > /* PAGE SETUP */ > $p = new HTML_Page(); > $p->setCache("true"); > echo "TEST 1"; Try commenting

[PHP] Checking the season

2002-01-04 Thread webapprentice
Hi, Just need a sounding board to help me think this through. I want to check the current date to determine what "season" it is and display the appropriate picture. I define spring as 03/21/, summer as 06/21/, autumn as 09/21/, and winter as 12/21/. I form a string for the cur

Re: [PHP] compilation of PHP with SNMP support

2002-01-04 Thread Kancha .
I faced the same problem when compile php 4.0.6 and 4.1.0 with snmp. I tried several times so i just dropped it. Now I'm using php without snmp. Do let me know if you get over this error. --- Jason Signalness <[EMAIL PROTECTED]> wrote: > Hello, > > I am having trouble compiling php with snmp

Re: [PHP] Cannot find imap library

2002-01-04 Thread Brian Clark
* Richard Brust ([EMAIL PROTECTED]) [Jan 04. 2002 16:25]: > original configure script: > ./configure --with-apxs=/etc/httpd/bin/apxs --enable-track-vars > --enable-ftp --with-gd=../gd-1.8.4 --prefix=/etc/php --sysconfdir=/etc/php > --with-imap=../imapServer > Note: ../imapServer is the dir whe

Re: [PHP] PHP XML with Dynamic Content

2002-01-04 Thread Brian Clark
* Emile Bosch ([EMAIL PROTECTED]) [Jan 03. 2002 15:38]: > Hi a lot of todays proffesional content management systems use XML, now > i was wondering how it's possible to mix XML with Dynamic Content, or > content which is change sensitive, IE A shop, or an auction, > let's say you have a shop with

Re: [PHP] Quick regular expressions question / preg_replace

2002-01-04 Thread David Yee
Ah that would do it (just need to double quote the \r\n). Thanks! I just know, however, one of these days I'm gonna need to use preg_replace :-). David - Original Message - From: "Bogdan Stancescu" <[EMAIL PROTECTED]> To: "David Yee" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Fr

Re: [PHP] Warning: Unknown persistent list entry type in module shutdown (11)

2002-01-04 Thread Brian Clark
* Ed Swartz ([EMAIL PROTECTED]) [Jan 03. 2002 13:26]: > Hi, Hiya > The error message listed in the subject line is being displayed at the > bottom of my HTML pages gen'd by PHP. Any hints how what might be > causing this message? I looked in BUGS, FAQTS, etc not to no avail. May help:

Re: [PHP] How to clear a populated array

2002-01-04 Thread Michael Sims
>>>I've got an array $Erros[] and I would like to be able to clear it >>>entirely. Is there any builtin function that acomplishes that? Why not: unset($Errors); ?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

Re: [PHP] Quick regular expressions question / preg_replace

2002-01-04 Thread Bogdan Stancescu
str_replace("\r\n\r\n", '\r\n', $string); David Yee wrote: > That's an idea but it would delete the carriage return before it which I > don't want to happen. I've tried preg_replace("/^\r\n/", '', $string) > + quite a few other variations but no luck :-(. Argh! > > David > > - Original Mes

Re: [PHP] Quick regular expressions question / preg_replace

2002-01-04 Thread David Yee
That's an idea but it would delete the carriage return before it which I don't want to happen. I've tried preg_replace("/^\r\n/", '', $string) + quite a few other variations but no luck :-(. Argh! David - Original Message - From: "Bogdan Stancescu" <[EMAIL PROTECTED]> To: "David Yee" <

[PHP] CGI and HTTP Authentication

2002-01-04 Thread Gaylen Fraley
Is there any work around for using HTTP Authentication and PHP installed as CGI? I know how to make the detection, I'm hoping (probably in vain) that there is some way to make the two work. Thanks. -- Gaylen [EMAIL PROTECTED] Home http://www.gaylenandmargie.com/ PHP KISGB v3.02 Guest Book http:

Re: [PHP] Quick regular expressions question / preg_replace

2002-01-04 Thread Bogdan Stancescu
I suck big time at regular expressions, but have you tried str_replace("\r\n\r\n", '', $string); ? Bogdan David Yee wrote: > Hi guys. Quick regular expressions question here: > > I want to match: > > > > but not: > > blah blah > > Basically I want to wipe out lines beginning with the tag fo

Re: [PHP] Stupid question alert

2002-01-04 Thread Bogdan Stancescu
Your question is not stupid - it's just uninformed, and that's easily understandable if you never used PHP. The concept is dynamically creating the page SERVER-SIDE. That is, use some databases or some nifty code to dynamically build a page using specific parameters. Unforunately for you, this me

[PHP] Stupid question alert

2002-01-04 Thread tim at 10Kv
Hi, first of all apologise to the list ­ this is a very basic question for you I¹m sure. I have tried to find an answer on the web but the problem is knowing HOW to ask the question ­ and I hoping you can provide me with a starting point. Anyway.. I design a lot of graphic intensive pages which

Re: [PHP] NEWBIE IN DISTRESS: Install Instructions are not work for PHP 4.1.1!!!

2002-01-04 Thread Miles Thompson
I've never installed PHP on a Windows box, but on Linux you have to move and rename the php.ini file. It's mentioned in the docs, but for the life of me I can't remember its name right now. Miles Thompson At 11:15 AM 1/4/2002 -0600, Mark wrote: >I apologize if the title of this post sounds ov

Re: [PHP] How to clear a populated array

2002-01-04 Thread Miles Thompson
Carlos, Just redeclare the array $Erros = array(); Miles At 05:11 PM 1/4/2002 -0700, Carlos Fernando Scheidecker Antunes wrote: >Hello All, > >I have a populated array that stores user input errors. > >I have been browsing the manual and some books and I couldn't find one thing. > >I've go

Re: [PHP] configuring sever to send mail (Win2k)

2002-01-04 Thread CJ
thanks for the reply but i still need some help: PHP Version 4.0.6 [mail function] ; For Win32 only. SMTP = localhost ; For Win32 only. sendmail_from = [EMAIL PROTECTED] --- I get this error when i use the mail function on

[PHP] Paging through MySQL results in PHP

2002-01-04 Thread Nelson Goforth
I have an application that returns a set of results from a MySQL query. Let's say I have 100 results from the query, but only want to show 25 per HTML page. The MySQL query is driven by a 'Search' page that creates an array "$keywords" - which can be of any size. I then loop through the $ke

[PHP] Quick regular expressions question / preg_replace

2002-01-04 Thread David Yee
Hi guys. Quick regular expressions question here: I want to match: but not: blah blah Basically I want to wipe out lines beginning with the tag followed immediately by a carriage return. If I do a: str_replace("\r\n", '', $string); It wipes out and the carriage return after blah blah

Re: [PHP] How to clear a populated array

2002-01-04 Thread Carlos Fernando Scheidecker Antunes
Yeah Bogdan. I have thought so too, but I also found it quite intuitive and I thought there might be something easier. As usual you reply to my questions. And as usual I appreciate your help. Thanks again. regards, Carlos Fernando. Bogdan Stancescu wrote: >I don't know, does $Errors=array

Re: [PHP] How to clear a populated array

2002-01-04 Thread Bogdan Stancescu
I don't know, does $Errors=array() work for you? Hope I understood your problem... Bogdan Carlos Fernando Scheidecker Antunes wrote: > Hello All, > > I have a populated array that stores user input errors. > > I have been browsing the manual and some books and I couldn't find one > thing. > > I

[PHP] How to clear a populated array

2002-01-04 Thread Carlos Fernando Scheidecker Antunes
Hello All, I have a populated array that stores user input errors. I have been browsing the manual and some books and I couldn't find one thing. I've got an array $Erros[] and I would like to be able to clear it entirely. Is there any builtin function that acomplishes that? Thank you in adva

[PHP] Re: A compress function?

2002-01-04 Thread Gaylen Fraley
Not even close. I'm after a function to compress multiples of the same character to one instance, as in my stated example, 30 spaces to 1 space, not compressing the string. Emil offered a good substitute. -- Gaylen [EMAIL PROTECTED] Home http://www.gaylenandmargie.com/ PHP KISGB v3.02 Guest Boo

Re: [PHP] adding users on *nix

2002-01-04 Thread Jason Bell
you might be better off triggering a back-end script to do that. the script would have to have root privilegf es. I'm not sure if you can "become root" within PHP, but if you trigger a shell script or perl script or something, it can be set SUID to root or something please note that my su

RE: [PHP] Problem with Printer-friendly script

2002-01-04 Thread Torrent
Problem is now resolved :-) In the end I swapped the fsockopen() for an fopen(). This seemed to fix it up a treat. Thanks for all your help. Torrent -Original Message- From: Miles Thompson [mailto:[EMAIL PROTECTED]] Sent: 04 January 2002 01:30 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Su

Re: [PHP] problem reading sessions

2002-01-04 Thread Alastair
yup, it's set correctly. It actually creates the file (I've opened it in a text editor) with the correct variable names, but just no values. "R'Twick Niceorgaw" <[EMAIL PROTECTED]> wrote in message 065d01c1956a$f1321db0$[EMAIL PROTECTED]">news:065d01c1956a$f1321db0$[EMAIL PROTECTED]... > Have you

Re: [PHP] problem reading sessions

2002-01-04 Thread R'twick Niceorgaw
Have you set the session.save_path properly in php.ini ? By default it is set to /tmp which doesn't work under Win* systems. You need to point it to a valid directory on your machine. HTH - Original Message - From: "Alastair" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, Janu

[PHP] adding users on *nix

2002-01-04 Thread Chris Hogben
Is there a way of adding a user to a *nix box thru php. Like, someone signs up, and they're account is added? 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 administrator

Re: [PHP] problem reading sessions

2002-01-04 Thread Alastair
I get the error: 'Warning: Undefined index: blah' when I use the long name. As far as I can tell it doesn't seem to be actually writing the data into the session file. Am I missing a crucial step somewhere? alastair "Kevin Stone" <[EMAIL PROTECTED]> wrote in message 003401c19563$95ee2e00$[EMAIL

Re: [PHP] Re: php-general Digest 3 Jan 2002 12:22:53 -0000 Issue 1089

2002-01-04 Thread Mehmet Kamil ERISEN
you can aslo go to www.php.net and read the emails from your browser. --- Garth Dahlstrom <[EMAIL PROTECTED]> wrote: > > If you don't like getting 50 messages a day, I suggest > using this list's digest mode, then you get 1 big message > with your daily dose of 50 messages tucked away neatly > i

[PHP] Re: php-general Digest 3 Jan 2002 12:22:53 -0000 Issue 1089

2002-01-04 Thread Garth Dahlstrom
If you don't like getting 50 messages a day, I suggest using this list's digest mode, then you get 1 big message with your daily dose of 50 messages tucked away neatly inside. :) > "Matt Moreton" > - Re: [PHP] Holy Moly... > - Thu, 3 Jan 2002 03:03:02 - > > If you dont mind do

Re: [PHP] configuring sever to send mail (Win2k)

2002-01-04 Thread DL Neil
CJ, > i have a problem using the mail function on my server. > win2000 Pro > IIS 5.0 > PHP Version 4.0.6 > > i'm not sure if it's a configuration problem with IIS or i'm missing > something in the php.ini file. The pre-requisite is that the php.ini file points to a visible SMTP server. Pl

[PHP] Cannot find imap library

2002-01-04 Thread Richard Brust
[2002-01-03 21:55:02] [EMAIL PROTECTED] original configure script: ./configure --with-apxs=/etc/httpd/bin/apxs --enable-track-vars --enable-ftp --with-gd=../gd-1.8.4 --prefix=/etc/php --sysconfdir=/etc/php --with-imap=../imapServer Note: ../imapServer is the dir where I gunzip'd the source fil

[PHP] print files

2002-01-04 Thread Leon_Tseng
Greetings all! I'm a newbie to PHP and I wonder how I can print a file (eg. .doc, .xls etc.) using PHP. I looked at the printer functions but I can't seem to print anything other than plain text and bitmaps. Any help would be greatly appreciated. :p -- PHP General Mailing List (http://www.php.

[PHP] PHP Compile Errors

2002-01-04 Thread Jason Signalness
Hello, I am having trouble compiling php with snmp support. ucd-snmp 4.2.2 is installed and working without trouble. PHP4.1.1 configures ok but fails on make, giving many errors similar to this: /usr/local/lib/libsnmp.a(snmp_alarm.o): In function `sa_find_next': /export/home/j/js/jsignalness/u

Re: [PHP] problem reading sessions

2002-01-04 Thread Kevin Stone
I'll add if you do not have register_globals set then you can access the variable by its long name, $HTTP_SESSION_VARS["blah"]. -Kevin > Is register_globals set to 'on' in php.ini? It needs to be for this coding > style to work. > > Kirk > > > -Original Message- > > From: Alastair [mail

[PHP] configuring sever to send mail (Win2k)

2002-01-04 Thread CJ
i have a problem using the mail function on my server. win2000 Pro IIS 5.0 PHP Version 4.0.6 i'm not sure if it's a configuration problem with IIS or i'm missing something in the php.ini file. thanks CJ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL P

RE: [PHP] problem reading sessions

2002-01-04 Thread Johnson, Kirk
Is register_globals set to 'on' in php.ini? It needs to be for this coding style to work. Kirk > -Original Message- > From: Alastair [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 04, 2002 1:41 PM > To: [EMAIL PROTECTED] > Subject: [PHP] problem reading sessions > > > > I have ju

[PHP] Keep my own frameset

2002-01-04 Thread R. Elsenaar
Hi all, Lot of sites are deeplinking to my site. I like them to do so but .. I want them to see the requested page IN MY OWN FRAMESET. To do so I figured out that I can redirect the requested url to my framepage and build it up again with the requested URL in the content-frame. There is one

[PHP] problem reading sessions

2002-01-04 Thread Alastair
I have just recently set up PHP on my Win2K laptop and I have just found out that I can't read sessions. As far as I can tell the session file is being created, but PHP doesn't seem to be able to get any data into it. Here is what the session file looks like: !sess_user|!blah| The two PHP files

[PHP] jukebox

2002-01-04 Thread Scott
Has anyone experimented with controlling an mp3 player like mpg123 from php? I want to build a radio automation system using a web interface, but not sure how I want to handle the actual playing of music. Basically I would have a mysql database that rotates the music based on categories and

Re: [PHP] Modulus and floating point...

2002-01-04 Thread Bogdan Stancescu
You can consider doing this: $number=102.52; $fraction=$number-floor($number); $number=($number % 50)+$fraction; Basically it's the exact solution you're suggesting, just that you don't have to do any string stuff. PHP's behaviour is normal - modulus is generally intended for integers... Bogdan

[PHP] Re: DOM XML?

2002-01-04 Thread Jeff Warrington
In <[EMAIL PROTECTED]>, Yasuo Ohgaki wrote: > Daniele Baroncelli wrote: > >> Hello, >> >> I would like to restyle one big site in XML and I would like some brief >> straight info/suggestions. >> >> I am definitely interested in DOM XML, but as far as I can understand, >> the module is still ex

Re: [PHP] pass variable from php script to another php script

2002-01-04 Thread Kevin Stone
It all depends on how you're calling the script. Obviously these variables are not system globals. So if the mail.php script is being accessed separately from the upload.php script they will not share variables. However if you include("mail.php"); from within upload.php, then it automaticaly inh

Re: [PHP] draw image graph with uptime command

2002-01-04 Thread php3
Addressed to: "Daniel Masur" <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from "Daniel Masur" <[EMAIL PROTECTED]> Fri, 4 Jan 2002 08:54:00 +0100 > anybody can help? > > ps, i never worked with images in php before... Take a look at: http://www.aditus.nu/jpgraph/ Ri

[PHP] pass variable from php script to another php script

2002-01-04 Thread toni baker
I would like to pass the "$text" variable to the body of an email message in another php script. The code is below: < -- upload.php -- > if (!$file=fopen(text.txt", "r")) { echo "Could not open file"; } else { $text=fread($file, 100); fclose($file); } < -- mail.php -- > $to =

[PHP] Modulus and floating point...

2002-01-04 Thread Boget, Chris
Consider the following: $number = 102.52; echo $number % 50; echo bcmod( $number, 50 ); in both cases, it's spitting out "2". Why is it not spitting out "2.52"? Is there a way I can get that information? w/o having to parse the string, breaking it up, getting the modulus and then adding it ba

Re: [PHP] Re: win2k..grrr

2002-01-04 Thread Kunal Jhunjhunwala
nopes.. dint do the trick.. anything else?? Regards, Kunal Jhunjhunwala - Original Message - From: "George Nicolae" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 04, 2002 11:52 PM Subject: [PHP] Re: win2k..grrr > i tell you why. because on instalation you use php.ini-

RE: [PHP] Problem with Printer-friendly script

2002-01-04 Thread Torrent
Appreciate the help on this one. I have not worked with fsockopen before either (I only started php about 6 weeks ago which also doesn't help). I am almost certain the delay isn't with the database because at the point where the pause is the query has already been executed and the result returne

[PHP] Re: win2k..grrr

2002-01-04 Thread George Nicolae
i tell you why. because on instalation you use php.ini-optimized. file. copy in your win2k director the php.ini-dist as php.ini. After that the script will work. I don't know what is set in optimized ini file and your script not work. -- Best regards, George Nicolae IT Manager _

Re: [PHP] win2k..grrr

2002-01-04 Thread Frank M. Kromann
I do that all the time without any problems. Could you give us a (small) sample script ? - Frank > Hey, > Does anyone know WHY form scripts, that submit to themselves, dont work on > windows boxes?? Example : > I have a script called mail.php. The first part of the script displays the > form wh

[PHP] Classes versus native functions

2002-01-04 Thread Vikram Vaswani
Hi, I was wondering if anyone knew (and could quantify) the performance difference between a script that uses PHP's native XML functions - for example, DOM functions to add/remove nodes - and one that simulates these functions via a class - like the PHP.XPath class. I would assume that simulatin

[PHP] compilation of PHP with SNMP support

2002-01-04 Thread Jason Signalness
Hello, I am having trouble compiling php with snmp support. ucd-snmp 4.2.2 is installed and working without trouble. PHP4.1.1 configures ok but fails on make, giving many errors similar to this: /usr/local/lib/libsnmp.a(snmp_alarm.o): In function `sa_find_next': /export/home/j/js/jsignalness/u

[PHP] win2k..grrr

2002-01-04 Thread Kunal Jhunjhunwala
Hey, Does anyone know WHY form scripts, that submit to themselves, dont work on windows boxes?? Example : I have a script called mail.php. The first part of the script displays the form whos action states, mail.php. When the form is submitted, the second part of the script mails the form details o

[PHP] Re: ' and " in sql query

2002-01-04 Thread Philip Hallstrom
addslashes() would work... or use an ereg_replace to do it. Provided that you only use single quotes in your SQL (which is a good idea anyway since other db's only allow you to use single quotes) then you only have a problem with single quotes and not double quotes. On Thu, 3 Jan 2002, Daniel Ha

Re: [PHP] PHP Grammar

2002-01-04 Thread Henning Sprang
Am 04 Jan 2002 14:53:18 -0200 schrieb JJVG: > Hi, > > Is there a place where I can get the PHP Grammar? http://download.php.net/manual/en/langref.php have fun, henning -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

Re: [PHP] draw image graph with uptime command

2002-01-04 Thread Austin Gonyou
x axis= 0 - 365 (time in days) y axis= 0 - 100(or 1 depending on the value you're taking for utilization. It's best to convert it into %.) (percent util) After that you'll need some way of being able to plot  y/x or Percent util over time. After that, it should be easy. On Fri, 20

[PHP] NEWBIE IN DISTRESS: Install Instructions are not work for PHP 4.1.1!!!

2002-01-04 Thread Mark
I apologize if the title of this post sounds overly aggresive, but I have followed the instructions to a 'T' and got nowhere!! I have tried the "auto" install version of PHP and manual instructions for installing PHP 4.1.1. Neither of them work. I added the lines to my httpd.conf file for both

[PHP] Encoding Code

2002-01-04 Thread Devin Atencio
I have mcrypt installed and I would like to encrypt Like say a block of code then insert it into a database. It looks like when I encrypt more than 1 word it seems To get weird on me and doesn't encrypt or decrypt Correctly. Does anyone know how I can encrypt like a paragraph And then beable to

[PHP] Re: Problem with Printer-friendly script

2002-01-04 Thread Dennis Gearon
Every now and then, I get a corrupted htm file. It ends up with characters in it that DON'T show up in the editor. I usually have to type the whole thing again. Maybe that's what's happened here? "ski-info" <[EMAIL PROTECTED]> wrote: >I am in the process of producing a script which will allow me

Re: [PHP] Problem with function declaration in include files

2002-01-04 Thread Bobby
I wish it was that simple, I have already added debug 'echo' statements to make sure the included file is being included correctly and it is? This problem really has me beat, I never usually send out desperate pleas, but I am not a happy bunny atm. Any thoughts would be appreciated Cheers

[PHP] Re: A compress function?

2002-01-04 Thread George Nicolae
take a look at http://www.php.net/manual/en/function.bzcompress.php -- Best regards, George Nicolae IT Manager ___ X-Playin - Professional Web Design www.x-playin.f2s.com "Gaylen Fraley" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > With

[PHP] PHP Grammar

2002-01-04 Thread JJVG
Hi, Is there a place where I can get the PHP Grammar? TIA, Juan

RE: [PHP] Sending variables between PHP pages

2002-01-04 Thread Dave Brotherstone
Use the pconnect functions. These do exactly that. eg. mysql_pconnect() at the top of your page, and it will re-use the database connection for you. mysql_close() won't close a permanent connection. Please don't post general questions to the php-dev list. This is for development OF PHP, no

Re: [PHP] Script accesses complete harddrive. what did I do wrong?

2002-01-04 Thread Miles Thompson
This is an Apache question, not a PHP one. I don't know if your Apache configuration file is named apache.conf or httpd.conf under Windows, but whatever it is, check these settings: ServerRoot - should be set to the location where Apache is installed. DocumentRoot = set to where your web files

Re: [PHP] Re: User-friendly URI's

2002-01-04 Thread Philip Hallstrom
AddType application/x-httpd-php .php .php3 .whatever -philip On Fri, 4 Jan 2002, Jamie Fields wrote: > How do you set up apache to recognize .whatever as a php extension? > > - Original Message - > From: "Philip Hallstrom" <[EMAIL PROTECTED]> > To: "Mike Eheler" <[EMAIL PROTECTED]> > Cc

[PHP] Re: Script accesses complete harddrive. what did I do wrong?

2002-01-04 Thread harry
Christian Holler wrote: > Hi, > > I have a big security hole in my php and I cannot get out why: > > Operating system: Windows XP > PHP version: 4.1.1 > Bug description: Script accesses harddrive. what did I do wrong? > > I installed Apache 1.3.20 with PHP and now I saw, a php scrip

[PHP] PHP-Friendly WYSIWYG HTML Editor

2002-01-04 Thread Brandon
G'day! I'm a full-time university student, and also serve on a part-time basis (during vacations, holidays, etc.) as the Systems Administrator/Webmaster/PHP Guru/Computer Trainer for my library back home. Another work term is coming to an end soon, and in my absence, there will be no PHP/HTML-sav

[PHP] PEAR

2002-01-04 Thread harry
Hi all I have been trying to use PEAR and have come to a standstill. The following: setCache("true"); echo "TEST 1"; //$p->toHtml(); echo "TEST 2"; // $p->setTitle("Jobsite Page"); $p->display(); require_once ("HTML/Form.php"); /*This is where the class is initialised */ $f =

[PHP] problems with php 4.1.1 (strtok?)

2002-01-04 Thread Robert Mena
Hi, I have a script to upload/insert records in a mysql db. I was running fine before the upgrade (php 4.0.4pl1) now it confuses the columns starting with the column number 9. I've attached a one line file that I used with the scripts. the problem seems to be with strok and null values. One of

[PHP] Script accesses complete harddrive. what did I do wrong?

2002-01-04 Thread christian_holler
Hi, I have a big security hole in my php and I cannot get out why: Operating system: Windows XP PHP version: 4.1.1 Bug description: Script accesses harddrive. what did I do wrong? I installed Apache 1.3.20 with PHP and now I saw, a php script can show my complete harddrive remotly.

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 part of the PHP > engine right? >

[PHP] Error Logging Question

2002-01-04 Thread TD - Sales International Holland B.V.
Hey there, I'm playing around with the logging options in the php.ini file. I set this: display_errors = Off Because I don't want to visitors to see any errors (besides the errors I define myself in the PHP script, which is exactly what this does... I only print out things like can't open data

[PHP] RE: [PHP-DB] php+mysql simple query help me pls! ty.

2002-01-04 Thread Rick Emery
Test the mysql_query() return value: $result = mysql_query("SELECT * FROM members") or die("Error:".mysql_error()); there may be an error in your query. -Original Message- From: louie miranda [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 1:59 PM To: [EMAIL PROTECTED] Cc: [E

[PHP] Re: An idea for a PHP tool

2002-01-04 Thread J Smith
If anybody out there is using Konqueror, try setting up an item in the Enhanced Browsing dialog with a shortcut like "php" and the search URI set to "http://www.php.net/manual-lookup.php?pattern=\1";. Now you can go to the location textbox and enter something like "php:fsockopen" to bring up t

Re: [PHP] Sending variables between PHP pages

2002-01-04 Thread Henning Sprang
Am 04 Jan 2002 12:49:41 +0100 schrieb Berlina: > Yes, Im thinking the same... > :-(( > > Thanks again Intruder > > > - Original Message - > From: "Intruder" <[EMAIL PROTECTED]> > To: "Berlina" <[EMAIL PROTECTED]>; "php-general-list" > <[EMAIL PROTECTED]>; "php-dev-list" <[EMAIL PROTECTE

Re: [PHP] A compress function?

2002-01-04 Thread Emil Rasmussen
Hey > With all the wonderful String functions in PHP, I haven't been able to find > a str_compress(). Is there such an animal? Let's say I have a string like > this: > > $myString = First_word <30 spaces> second_word <10 spaces> etc... This would proberly work: ---

Re: [PHP] Problem with function declaration in include files

2002-01-04 Thread Dennis Moore
The problem is most likely with your include statement.  The include path imay be incorrect...        "Bobby" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...> I have been using the following function declaration syntax for ages with no> problems.> > Main p

RE: [PHP] Problem with Printer-friendly script

2002-01-04 Thread Miles Thompson
I don't, because if MySQL caused the problem you would see it on the original page. I'venot worked with fsockopen(), is there any way you can test it without hitting the database, which may be causing a delay? What I'm thinking is to take the page created in the original call (www.ski-info-on

php-general Digest 4 Jan 2002 12:25:49 -0000 Issue 1091

2002-01-04 Thread php-general-digest-help
php-general Digest 4 Jan 2002 12:25:49 - Issue 1091 Topics (messages 79407 through 79450): Re: User-friendly URI's 79407 by: Philip Hallstrom 79408 by: Jason Murray 79409 by: Mike Eheler 79410 by: Mike Eheler 79411 by: Philip Hallstrom 79413 b

[PHP] From 4.1 to 4.04pl1

2002-01-04 Thread Julio Nobrega Trabalhando
Hi everybody, On my dev machine I have php 4.1. I have now to upload a huge script half ported to 4.1 from 4.06 on a host where 4.04pl1 runs. By 'half-ported' I mean almost every file I changed global $form_var or function($form_var) to $_POST['form_var']. But it will not work since it'

[PHP] A compress function?

2002-01-04 Thread Gaylen Fraley
With all the wonderful String functions in PHP, I haven't been able to find a str_compress(). Is there such an animal? Let's say I have a string like this: $myString = First_word <30 spaces> second_word <10 spaces> etc... I need to do one of two things. Either compress the multiple spaces to

[PHP] Problems with uploading even small files

2002-01-04 Thread Screwy
I'm trying to upload files using php to a server on the lan. Apache/1.3.22, PHP 4.0.6, MySQL 3.23.40 My problem is that file uploads are slow, a <50KB file takes around 5 minutes. Thats kilobytes. in 5 minutes. Larger files just timeout. I've set the max file sizes in apache and php configs, al

  1   2   >