[PHP] How to Config PHP to run snmp in php script?

2002-02-20 Thread Raymond Mak
Dear All, I am using RedHat Linux 7.2, PHP4.1 and its buitd-in apache, I had tested that the php run correctly with apache. According to the documentation of www.php.net, As shown below: # XCIII. SNMP functions In order to use the SNMP

[PHP] [ANN] session_pgsql 0.2 (alpha) released

2002-02-20 Thread Yasuo Ohgaki
Hi all, session_pgsql version 0.2 (beta) is released. New: - Auto global variable $_APP is added. It's a application scope variable. You can share values in the same application. It uses session name for application name. Feature: - More than 2 times faster than 'user' save

[PHP] mass mail

2002-02-20 Thread Kancha .
I've users in a database classified by differnet catagories. Now based on category I need to send mail to all the users in a category. Calling mail() function in a loop would be a kill for the server as there are more than 1000 users in each category. Is there any way of doing this ?? Creating

AW: [PHP] mass mail

2002-02-20 Thread Norbert Eder
hi. maybe you put the first user into the to-field and all others into field blindcopy... you will need one mail and send it to all. but i don't know if there is a limit ... greetz -Ursprungliche Nachricht- Von: Kancha . [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 20. Februar

[PHP] novice question -- array_push($real[$i][$j],$s[$j]);????????

2002-02-20 Thread brendan conroy
Hi, thanks for reading this, Iam trying to push elements into a two dimentional array, but I cant find the proper syntax, I'd be grateful if someone could email me the proper method. Iam using the normal method, which worked fine for a one dimentional array, but when I use it for a two

[PHP] Re: Crashing a webserver

2002-02-20 Thread Ruben Vermeersch
Thank you all, let's see how good the machine will do... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mass mail

2002-02-20 Thread Rambo Amadeus
yas, but that way they all end up in junk filters. Dont use bcc to send you mailing list - Original Message - From: Norbert Eder [EMAIL PROTECTED] To: Kancha . [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: 20. veljaèa 2002 13:10 Subject: AW: [PHP] mass mail hi. maybe you put the first

[PHP] xbithack causes parsing of html-files by PHP instead SSI

2002-02-20 Thread Tobias Wiersch
Hi! Problem: see subject I posted the problem to php's bug-db but [EMAIL PROTECTED] answered: The bug system is not the appropriate forum for asking support questions. For a list of a range of more [...] With xbit hack, you are supposed to parse by PHP. BUT: On our old server-install (PHP

[PHP] gmp installation win32

2002-02-20 Thread Murray Chamberlain
Has anybody installed the gmp library or know of any well documented ways of doing so I really need some help with this one. I am using win32 and I need to get it running asap. I have already installed the gmp library using cygwin but I can't get php to configure with gmp and make it gives a

[PHP] php-general-unsubscribe@lists.php.net

2002-02-20 Thread wkelleher
[EMAIL PROTECTED] -Original Message- From: Tobias Wiersch [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 8:04 AM To: [EMAIL PROTECTED] Subject: [PHP] xbithack causes parsing of html-files by PHP instead SSI Hi! Problem: see subject I posted the problem to

[PHP] how the ticks works?

2002-02-20 Thread bob
I don't understand how the 'ticks' works: please help me. pre ?php // A function that records the time when it is called function profile ($dump = FALSE) { static $profile; // Return the times stored in profile, then erase it if ($dump) { $temp = $profile;

RE: [PHP] How to Config PHP to run snmp in php script?

2002-02-20 Thread Hunter, Ray
Raymond, Here is the break down: 1. Download ucd-snmp tar.gz file. 2. Download openssl tar.gz file. You will need openssl for snmp v3 for the security stuff. Uninstall ucd-snmp if it is installed on your system. Uninstall openssl on your system. 3. Untar the files... 4. In the ucd-snmp

[PHP] Get an application/octet-stream from a java applet

2002-02-20 Thread Nicolas Boutet
Hi all, I'm trying to make a script to get application/octet-stream datas from a java applet. The method used by the applet is POST and I tried to use $HTTP_RAW_POST_DATA like this ? if (isset($HTTP_RAW_POST_DATA)) { $contentlength = strlen($HTTP_RAW_POST_DATA); $buffer =

[PHP] Re: [PHP-DEV] Get an application/octet-stream from a java applet

2002-02-20 Thread Andrey Hristov
AFAIK 4.0.6 is weird in the process of HTTP_RAW_POST_DATA generation. I used this var successfully on 4.0.0, when tried to upgrade to 4.0.6 there was a problem. After an investigation I found that if the submited POST has known by Apache Content header then the var is empty. I think it is fixed

Re: [PHP] register_shutdown_function vs require (with pseudocode example)

2002-02-20 Thread Arpad Tamas
Hi, No one has any idea on this topic? Or the question wasn't clear? Thanks, Arpi Hi again, I read my email back and found a little hard to understand :)), so I thought a code exmplae might help. It's just pseudo code for explaining how my cache works: //simplified main code if

[PHP] HT access

2002-02-20 Thread Sven Jacobs
Yow I've a question, :-) I'm using ht access to protect a Directory with CGI in that I need use on my website. The htaccess uses the password file of my Linux to authenticate one. Now I want to keep the ht access but when I login via another login script a want my ht access to be filled in

RE: [PHP] Don't Know how to Set the include Path

2002-02-20 Thread Rick Emery
Do you need to use an include path? Why not just use the include() function? Also, what are the contents of constant.inc? Perhaps the problem lies there. -Original Message- From: Jack [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 2:03 AM To: [EMAIL PROTECTED] Subject:

[PHP] doskey and Mysql with Win9x?

2002-02-20 Thread Simon De Deyne
How come doskey doesnt seem to work under Mysql running in Win9x? Is there an alternative instead of endless repetitve typing and quickly disintegrating wrists? Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Timed Jobs.

2002-02-20 Thread webmaster mbtradingco
Hi: I was wondering if it is posible to make in PHP a cron job, that will trigger an event (i.e. send an e-mail) long after the process of the data has taken place, like programming an e-mail to go out, on an specified date. My question is, since the script is run and triggered by

Re: [PHP] Difference between two dates

2002-02-20 Thread Steve Werby
Uma Shankari T. [EMAIL PROTECTED] wrote: If i gave the str date as 31-01-2001; and $str1=04-02-2001; then it is displaying the wrong result Plz tell me how can i rectify this problem... Uma, I wrote a function last year that calculates the time between 2 dates in whatever unit is preferred

php-general Digest 20 Feb 2002 14:55:11 -0000 Issue 1183

2002-02-20 Thread php-general-digest-help
php-general Digest 20 Feb 2002 14:55:11 - Issue 1183 Topics (messages 85485 through 85533): Re: Difference between two dates 85485 by: Rasmus Lerdorf 85487 by: Steven Walker 85502 by: Uma Shankari T. 85533 by: Steve Werby Re: Weather Scripts 85486

RE: [PHP] Crashing a webserver

2002-02-20 Thread Brinkman, Theodore
Pull the plug? :) -Original Message- From: Chris Lott [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 1:28 PM To: Ruben Vermeersch Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Crashing a webserver I have got the task to down our webserver, to see how stable she is, and how

Re: [PHP] Timed Jobs.

2002-02-20 Thread Steve Werby
Argh! Please drop the purple bakground from your email. HTML email is bad enough since many of us use mail readers that can't read it, but black on purple is just plain hard to look at! webmaster mbtradingco [EMAIL PROTECTED] wrote: I was wondering if it is posible to make in PHP a cron job,

RE: [PHP] Help for passing variable to all pages

2002-02-20 Thread Rick Emery
change: a href=welcome.php3?dbcnxid=?php echo($dbcnx); ?test link/a to: a href=?php print \welcome.php3?dbcnxid=$dbcnx\; ?test link/a -Original Message- From: WG4- Cook, Janet [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 5:30 PM To: PHP List Subject: [PHP] Help for

Re: [PHP] mass mail

2002-02-20 Thread Steve Werby
Kancha . [EMAIL PROTECTED] wrote: I've users in a database classified by differnet catagories. Now based on category I need to send mail to all the users in a category. Calling mail() function in a loop would be a kill for the server as there are more than 1000 users in each category. Is

[PHP] RE: novice question -- array_push($real[$i][$j],$s[$j]);????????

2002-02-20 Thread Tim Ward
Array_push() takes an array as it's first parameter. In your case you have an array of arrays (NOT a 2 dimensional array) and to add an element on to the end of one of them you need to pass the name of the element of the top level array you want to add an element to into the function. I.e. if

RE: [PHP] Timing Sessions Out

2002-02-20 Thread Johnson, Kirk
Right you are, seconds. -Original Message- At 03:21 PM 2/19/2002 Tuesday, Johnson, Kirk wrote: See session.gc_maxlifetime in php.ini. Kirk I assume that the value given is in seconds. Correct?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Help for passing variable to all pages

2002-02-20 Thread Simon Willison
a href=welcome.php3?dbcnxid=?php echo($dbcnx); ?test link/a You can't pass resource types like database connection IDs in URLs as they are only relevant for the instance of the script in which they are created. The same goes for things like file identifiers (from fopen) and other stuff like

[PHP] XP + IIS + PHP - Error 405

2002-02-20 Thread Ice CooL
Anyone know why someone would get a 405 Resource not allowed error while trying to input to a PHP script from a form, using Windows XP, IIS 5 and PHP 1.1.1 (CGI Ver.) _ Get your FREE download of MSN Explorer at

[PHP] Re: Timed Jobs.

2002-02-20 Thread J Smith
Suggestion: - When the user triggers the event, store their user name, email or whatever along with a timestamp in your site's database (if it has one) or in some text file some place. - Write a cron script that runs every five minutes, every minute, every hour, whatever. When this script

[PHP] fdisk?

2002-02-20 Thread Brian V Bonini
Anyone know what fdisk stands for? I've heard both fixed disk and format disk, I always thought the later Sorry for for the OT post. -B -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] fdisk?

2002-02-20 Thread Hunter, Ray
It depends on who you are talking too... Ray Hunter Firmware Engineer ENTERASYS NETWORKS -Original Message- From: Brian V Bonini [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 9:12 AM To: PHP Lists Subject: [PHP] fdisk? Anyone know what fdisk stands for? I've heard

Re: [PHP] fdisk?

2002-02-20 Thread Jeff Sheltren
I would say it stands for fixed disk - it really doesn't format anything anyway, it is for partitions. A paste from the man page: NAME fdisk - create or modify fixed disk partition table Jeff At 11:11 AM 2/20/2002 -0500, Brian V Bonini wrote: Anyone know what fdisk stands for? I've

[PHP] Retaining data across multiple sites

2002-02-20 Thread Ben Sinclair
I want to retain some data across my sites, which have different domain names. I can't use cookies because they rely on the domain name, and I'd rather not pass the information on every link Any suggestions? -- Ben Sinclair -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Retaining data across multiple sites

2002-02-20 Thread Chris Boget
I want to retain some data across my sites, which have different domain names. I can't use cookies because they rely on the domain name, and I'd rather not pass the information on every link Any suggestions? Need to store it server side somehow. Perhaps a global database? Chris -- PHP

Re: [PHP] Retaining data across multiple sites

2002-02-20 Thread Ben Sinclair
I could do that, but how would I keep track of the users? I don't think IP addresses are reliable. I would also prefer to limit my database access. -- Ben Sinclair - Original Message - From: Chris Boget [EMAIL PROTECTED] To: Ben Sinclair [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent:

RE: [PHP] Retaining data across multiple sites

2002-02-20 Thread Jon Haworth
Write it to a database from one server, and then read it from another? webserver 1 -- db server -- webserver 2 HTH Jon -Original Message- From: Ben Sinclair [mailto:[EMAIL PROTECTED]] Sent: 20 February 2002 16:25 To: [EMAIL PROTECTED] Subject: [PHP] Retaining data across multiple

Re: [PHP] Retaining data across multiple sites

2002-02-20 Thread Chris Boget
I could do that, but how would I keep track of the users? I don't think IP addresses are reliable. I would also prefer to limit my database access. Are you using sessions? If so, you can keep track of users that way. I believe this would be the only solution available to you. I am not sure

[PHP] Using a mysql data base and cookie to log a person in

2002-02-20 Thread Brandon Orther
Hello, I loosely understand how I can have a person login to a system by giving them a cookie with a certain amount of time with a encrypted code. And save that same encrypted code in the database for a certain amount of time. I am looking for a tutorial on how to do this so I can wrap my

RE: [PHP] Retaining data across multiple sites

2002-02-20 Thread scott
They can... i've used the same code and the same database server for two domains with no prob's. The problem is cookies (as was mentioned previously) If domainx.com writes a cookie, then no other domain can (theoretically) access it. -Original Message- From: Chris Boget

Re: [PHP] Using a mysql data base and cookie to log a person in

2002-02-20 Thread Steve Edberg
Have you considered PHPLIB? http://phplib.sourceforge.net/ http://sourceforge.net/projects/phplib http://www.sanisoft.com/phplib/manual/ The docs'll give you an idea of how they did it. The code is pretty complex, though, but it does a lot. I'd suggest using this as a

Re: [PHP] Weather Scripts

2002-02-20 Thread Erik Price
On Tuesday, February 19, 2002, at 08:13 PM, Shannon Doyle wrote: Hi People, I have been looking around the web lately and have noted a number of sites are running what appears to be php scripts that parse their local weather information and display it on their wesite. Well, I want to

Re: [PHP] Retaining data across multiple sites

2002-02-20 Thread Simon Willison
Ben Sinclair wrote: I want to retain some data across my sites, which have different domain names. I can't use cookies because they rely on the domain name, and I'd rather not pass the information on every link Any suggestions? I've been thinking about this recently and here's what I came up

Re: [PHP] Retaining data across multiple sites

2002-02-20 Thread Christopher William Wesley
On Wed, 20 Feb 2002, Ben Sinclair wrote: I want to retain some data across my sites, which have different domain names. I can't use cookies because they rely on the domain name, and I'd rather not One way I handle this ... it's a work-around, so it's not all that pretty: In the doc root on

Re: [PHP] Retaining data across multiple sites

2002-02-20 Thread Ben Sinclair
These are all workable solutions, but I also have to worry about https sites. If I link to hidden images on non-secure servers, the browser will display a warning. I'm also trying to avoid buying multiple certificates when all I want to do is brand a site. -- Ben Sinclair - Original Message

[PHP] text files instead of mySQL

2002-02-20 Thread M.E. Suliman
Hi Is it possible to convert a PHP script that writes and pulls data from a mySQL database to use text files / database instead. Thanks in advance Mohamed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Get an application/octet-stream from a java applet

2002-02-20 Thread Rasmus Lerdorf
Grab a recent PHP release and in your php.ini file add: always_populate_raw_post_data = On -Rasmus On Wed, 20 Feb 2002, Nicolas Boutet wrote: Hi all, I'm trying to make a script to get application/octet-stream datas from a java applet. The method used by the applet is POST and I tried to

Re: [PHP] text files instead of mySQL

2002-02-20 Thread Simon Willison
M.E. Suliman wrote Is it possible to convert a PHP script that writes and pulls data from a mySQL database to use text files / database instead. Yes it is but you could have a job on your hands depending on the complexity of the script. Personally I favour PHP's serialization capabilities

Re: [PHP] Retaining data across multiple sites

2002-02-20 Thread Analysis and Solutions
Hey Ben: Ben Sinclair wrote: These are all workable solutions Not really. JavaScrap and cookies are not a solution. They're a quick answer which doesn't work 100% of the time. *IF* you're going to use sessions, use a URL based session ID, which will work in 100% of browsers. Not all

[PHP] Chatroom sounds

2002-02-20 Thread Mick Fitzpatrick
Hello This my first post and I hope I can understand any replies :-) I download a chatroom from webscriptsworld.com very nice it is as well. What I would achieve is to make a sound when someone enters and when someone leaves. I'd also like to to replace some words with sounds. I was

Re: [PHP] Don't Know how to Set the include Path

2002-02-20 Thread DL Neil
Dear Jack, I had create a file called contant.inc. What i want to do is to use the require function() to point to this file, but when i test it, it says: Warning: Failed opening 'constant.inc' for inclusion (include_path='') in C:\InetPub\wwwroot\php study\General News\news.php on line 17

Re: [PHP] Retaining data across multiple sites

2002-02-20 Thread Christopher William Wesley
On Wed, 20 Feb 2002, Ben Sinclair wrote: These are all workable solutions, but I also have to worry about https sites. I called it a work-around rather than a solution on purpose :) The only real solution is to collapse the different sites into one domain. If I link to hidden images on

[PHP] Reading the value in a cookie

2002-02-20 Thread Brandon Orther
Hello, I know how to set a cookie. How do I read the value of that cookie the next time that person returns to my website? Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com

Re: [PHP] Reading the value in a cookie

2002-02-20 Thread James Taylor
http://www.php.net/manual/en/function.setcookie.php Also, read up on any other cookie related functions linked from that page. On Wednesday 20 February 2002 10:04 am, you wrote: Hello, I know how to set a cookie. How do I read the value of that cookie the next time that person returns to

[PHP] textarea form input converting lt; and gt; to

2002-02-20 Thread Byron Albert
Hello, I have a few forms that are used to input html. We have run into a problem of lt; and gt; getting turned into and when you hit submit, Or if you hit submit more than once. I have attached a sample form. The major problem here is that some times we want lt; and some times we want to

Re: [PHP] Reading the value in a cookie

2002-02-20 Thread Steven Walker
Brandon, There are a few things about cookies that are not completely. I may be wrong about this, but this is what I've found: • When a cookie is set, it must be passed before any other headers or tags. But the cookie is not actually available to the page it was set on. If the user reloads

Re: [PHP] Chatroom sounds

2002-02-20 Thread Steve Werby
Mick Fitzpatrick [EMAIL PROTECTED] wrote: This my first post and I hope I can understand any replies :-) I download a chatroom from webscriptsworld.com very nice it is as well. What I would achieve is to make a sound when someone enters and when someone leaves. I'd also like to to

[PHP] getenv $REMOTE_ADDR

2002-02-20 Thread Steven Walker
Does anybody know why the predefined variable $REMOTE_ADDR would be null, while getenv(REMOTE_ADDR) works fine? Steven J. Walker Walker Effects www.walkereffects.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Displaying special characters on the web

2002-02-20 Thread Marko Karppinen
After much trial and error, I've learned what it takes to display special characters (such as em or en dashes and curly quotes etc.) reliably on practically any browser. My recommended steps are: - Save the content in your database and XML files as UTF-8 - Don't announce your charset as UTF-8

[PHP] about socket_set_timeout

2002-02-20 Thread K
I have windows 98 sr 2 and php 4.1.1 installed. When i call the function socket_set_timeout, i got a socket_set_timeout supported in this php build. What am i supposed to do ? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] zend encoder

2002-02-20 Thread Kunal Jhunjhunwala
hey, Any ideas on how one can encode multiple files on a windows machine?? Regards, Kunal Jhunjhunwala Minds think with ideas, not information. No amount of data, bandwidth, or processing power can substitute for inspired thought. - Clifford Stoll -- PHP General Mailing List

[PHP] preg_replace(/^\//.. doesnt work?

2002-02-20 Thread John Ericson
Im having a weird regexp problem in PHP that I think is correct but it doesnt appear to work. The code is this: $a = /test/; preg_replace(/^\//, , $a); echo $a; I want preg_replace to replace the first '/' in $a with '' so that the echo function echoes test/,

[PHP] Re: preg_replace(/^\//.. doesnt work?

2002-02-20 Thread Philip Hallstrom
$a = /test/; $a = preg_replace(/^\//, , $a); echo $a; Notice the difference in the second line... On Wed, 20 Feb 2002, John Ericson wrote: Im having a weird regexp problem in PHP that I think is correct but it doesnt appear to work. The code is this: $a =

Re: [PHP] preg_replace(/^\//.. doesnt work?

2002-02-20 Thread James Taylor
try: $a = preg_replace(/^\//, , $a); On Wednesday 20 February 2002 12:25 pm, you wrote: Im having a weird regexp problem in PHP that I think is correct but it doesnt appear to work. The code is this: $a = /test/; preg_replace(/^\//, , $a); echo $a; I want

[PHP] how to pass variable and an internal link

2002-02-20 Thread Jena
Hi I've encountered a little (I hope) problem I can put an anchor on a page to create an internal link writing a name=my_anchor and then reach it with a normal link writing echo a href=\page.php#my_anchor\go to my_anchor/a; but to me is necessary to add a variabale to this link usually I

[PHP] Re: preg_replace(/^\//.. doesnt work?

2002-02-20 Thread John Ericson
thanks! On Feb 20 11:55, Philip Hallstrom wrote: $a = /test/; $a = preg_replace(/^\//, , $a); echo $a; Notice the difference in the second line... On Wed, 20 Feb 2002, John Ericson wrote: Im having a weird regexp problem in PHP that I think is correct but it

RE: [PHP] Re: preg_replace(/^\//.. doesnt work?

2002-02-20 Thread scott
Also note: ^ matches the beginning of the string, so ^\/ will only match a / at the beginning of the string (not the first occurence of /) -Original Message- From: Philip Hallstrom [mailto:[EMAIL PROTECTED]] Subject: [PHP] Re: preg_replace(/^\//.. doesnt work? $a = /test/;

Re: [PHP] Re: preg_replace(/^\//.. doesnt work?

2002-02-20 Thread James Taylor
Err, that's what he wanted On Wednesday 20 February 2002 12:13 pm, you wrote: Also note: ^ matches the beginning of the string, so ^\/ will only match a / at the beginning of the string (not the first occurence of /) -Original Message- From: Philip Hallstrom [mailto:[EMAIL

RE: [PHP] preg_replace(/^\//.. doesnt work?

2002-02-20 Thread Darren Gamble
Good day, The first argument should just be a normal regular expression, not a replacement regular expression. I'm not at my server right now, but I would guess that it'll work once you get rid of the last / in the first expression. Darren Gamble Planner, Regional

Re: [PHP] how to pass variable and an internal link

2002-02-20 Thread Analysis and Solutions
Hey Sergio: Jena wrote: how can I pass either the internal anchor and the variable in the url? I tried in many ways echo a href=\page.php#my_anchor?variable= . $my_variable . \go to/a; echo a href=\page.php?variable= . $my_variable . #my_anchor\go to/a; This URL works for me:

Re: [PHP] getenv $REMOTE_ADDR

2002-02-20 Thread Analysis and Solutions
Hi Steven: Steven Walker wrote: Does anybody know why the predefined variable $REMOTE_ADDR would be null, while getenv(REMOTE_ADDR) works fine? Put register_globals on via your php.ini or .htaccess file. In php.ini, change register_globals = Off to register_globals = On Enjoy,

RE: [PHP] Re: preg_replace(/^\//.. doesnt work?

2002-02-20 Thread scott
that's probably what he meant... but what he asked for was how to replace the first '/' in $a if you have $a=abc/def, the regex ^/ will not replace the first / in your string, which was my point :-) -Original Message- From: James Taylor [mailto:[EMAIL PROTECTED]] Subject: Re: [PHP]

Re: [PHP] getenv $REMOTE_ADDR

2002-02-20 Thread Lars Torben Wilson
On Wed, 2002-02-20 at 12:26, Analysis and Solutions wrote: Hi Steven: Steven Walker wrote: Does anybody know why the predefined variable $REMOTE_ADDR would be null, while getenv(REMOTE_ADDR) works fine? Put register_globals on via your php.ini or .htaccess file. In php.ini, change

Re: [PHP] textarea form input converting lt; and gt; to

2002-02-20 Thread Analysis and Solutions
Hi Byron: Byron Albert wrote: The major problem here is that some times we want lt; and some times we want to input html tags. The solution depends on what you're trying to do. What's your goal. Are you using the text area to store full web pages, or examples of how to write HTML, or

Re: [PHP] Unicode TTF Font wingding's just don't cut it!

2002-02-20 Thread Rasmus Lerdorf
Does anyone know where I can get a simple symbol font which is .ttf and unicode compatible. Seems that my php graphic program is very sensitive to ttf problems. It'll take one or two wingdings in imagettftext() before it up and dies. Your help will be greatly appreciated. Dies? How so? Is

Re: [PHP] getenv $REMOTE_ADDR

2002-02-20 Thread Steven Walker
What is the difference between $_SERVER and getenv()? Why should one be more reliable/better than the other? Better: avoid globals and use $_SERVER['REMOTE_ADDR']. Sorry, if I'm asking you to repeat yourself... the documentation doesn't relate the two. Steven J. Walker Walker Effects

[PHP] question

2002-02-20 Thread Matthew Berwald
In php for windows, you can use the printer_open() function found in the php_printer.dll. Unfortuantly, I run a Red hat/Apache web server and this won't work. Do you know of any method/package out there that I could install on my linux machine that will all me to print data to a printer?

Re: [PHP] PDF Fonts Files

2002-02-20 Thread Rasmus Lerdorf
You need to sit through my PDF/PHP talk where I go through all this. See conf.php.net/paris2 specifically slides 7 and 8 In particular see the example: http://conf.php.net/pres/slides/intro/pdf_font_ex2.php the code for which is on slide #8. This example shows how to use each of the built-in

RE: [PHP] question

2002-02-20 Thread Hunter, Ray
A work around is using the one of the system commands and print that way. Check here for the program execution functions: http://www.php.net/manual/en/ref.exec.php Ray Hunter Firmware Engineer ENTERASYS NETWORKS -Original Message- From: Matthew Berwald [mailto:[EMAIL PROTECTED]]

[PHP] Re: question

2002-02-20 Thread Jim Winstead
Matthew Berwald [EMAIL PROTECTED] wrote: Do you know of any method/package out there that I could install on my linux machine that will all me to print data to a printer? Thanks for the help. $lp = popen(lpr, w); fwrite($lp, stuff to print); pclose($lp); this uses the unix-standard 'lpr'

[PHP] Class question

2002-02-20 Thread Chris Boget
I'm still kind of new when it comes to dealing with classes. I'm curious, is it accepted practice for member functions of your class to: * access global variables * use non member, user defined functions Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: textarea form input converting lt; and gt; to

2002-02-20 Thread Jim Winstead
Byron Albert [EMAIL PROTECTED] wrote: I have a few forms that are used to input html. We have run into a problem of lt; and gt; getting turned into and when you hit submit, Or if you hit submit more than once. I have attached a sample form. The major problem here is that some times we

RE: [PHP] Class question

2002-02-20 Thread Hunter, Ray
The whole idea with object-oriented programming is polymorphism and encapsulation. You do not want your classes to access global variables but access that information through objects and messaging between objects. If you are referring to the use of non-member as being outside of the class, then

Re: [PHP] getenv $REMOTE_ADDR

2002-02-20 Thread Lars Torben Wilson
On Wed, 2002-02-20 at 12:42, Steven Walker wrote: What is the difference between $_SERVER and getenv()? Why should one be more reliable/better than the other? Better: avoid globals and use $_SERVER['REMOTE_ADDR']. Sorry, if I'm asking you to repeat yourself... the documentation doesn't

Re: [PHP] Class question

2002-02-20 Thread Jeff Sheltren
Well, I guess many things are accepted now, but here's my two cents: I wouldn't access global variables, instead you should pass everything you need as parameters. Using global variables can come back to bite you occasionally because you may think you are changing a local variable at one

RE: [PHP] question

2002-02-20 Thread Kevin Stone
I'm not sure from your question whether or you understand that the PHP printer functions only work with printers connected directly to the server. They're not for client side printing. And there are no equivalent functions for non-Windows platforms. However I do recall coming across a

Re: [PHP] What Do You Think?

2002-02-20 Thread Jon Abernathy
Richard Crawford [EMAIL PROTECTED] wrote in message 1013802064.4935.5.camel@mossroot">news:1013802064.4935.5.camel@mossroot... I'd be much more interested in microbreweries, though. Most commercial breweries like Anheuser Busch and Coors don't brew beer. Send some of their product to a lab,

[PHP] array session variable problem (register_global=off)

2002-02-20 Thread Harry Yu
Hi All, I have register_global = off and I have problem retrieving array session variable. For example; Page1.php ?php $name = array(); session_register (name); $name[first] = First Name; $name[last] = Last Name; ? Page2.php ? session_start(); echo $_SESSION[name['first']]; echo

RE: [PHP] array session variable problem (register_global=off)

2002-02-20 Thread Johnson, Kirk
The code in the first file is correct if register_globals is on. Since it is off, remove the call to session_register() and just assign values directly to $_SESSION, e.g., $_SESSION[name['first']] = 'First Name'; Kirk -Original Message- From: Harry Yu [mailto:[EMAIL PROTECTED]]

RE: [PHP] form submission error trapping

2002-02-20 Thread Jason Dulberg
Okay... I messed around with things a bit and moved the php stuff to the top as you suggested. I have part of the validation working however if more than 1 error exists, it still only prints the 1st one. Below are 2 example places where there would be an error... if I leave them both blank, they

[PHP] dealing with MSWord curly quotes in text

2002-02-20 Thread austin swinney
im having a problem with text being submitted to my site through forms into the database, where the text has been edited in MSWord and the quotes that it uses get turned into question marks. does anyone know a way to convert these MSWord quotes to normal marks? -- austin swinney

[PHP] Re: Removing every thing between ( )

2002-02-20 Thread CC Zona
In article 001901c1ba5d$634e3840$89010a0a@bpaulson, [EMAIL PROTECTED] (Brian Paulson) wrote: What would the regular expression be to remove all the text between ( ) $string = This is a (001 Test) and (002 Test); $string=preg_replace(/\(.+\)/U,'',$string); Note that

[PHP] Removing every thing between ( )

2002-02-20 Thread Brian Paulson
Hello, What would the regular expression be to remove all the text between ( ) $string = This is a (001 Test) and (002 Test); The numbers always change but the word stays the same Any help would be appreciated. Thank You Brian Paulson Sr. Web Developer [EMAIL PROTECTED]

[PHP] monitoring banwith used by a script

2002-02-20 Thread Paul Roberts
is there a way to monitor bandwidth use of a script any ideas welcome. Paul Roberts [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Removing every thing between ( )

2002-02-20 Thread Brian Paulson
Great, Thanks for the help, worked like a charm Brian -Original Message- From: CC Zona [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 1:50 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Removing every thing between ( ) In article

Re: [PHP] Removing every thing between ( )

2002-02-20 Thread Erik Price
On Wednesday, February 20, 2002, at 05:24 PM, Brian Paulson wrote: What would the regular expression be to remove all the text between ( ) $string = This is a (001 Test) and (002 Test); The numbers always change but the word stays the same preg_replace(/(\()\d{3,3} Test(\))/, \1\2,

[PHP] how can you tell the url of a remote script?

2002-02-20 Thread Ed Lazor
I have a script, which is called by scripts located on other sites. Is it possible to tell the url of the remote script that is calling my script? -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Hyperlinks vs Buttons

2002-02-20 Thread Steven Walker
Is there a way to regular hyperlinked text to submit a form? For example, rather than having a button that says [Login], I just want underlined text: Login Steven J. Walker Walker Effects www.walkereffects.com [EMAIL PROTECTED]

[PHP] Pulling Variables from URL

2002-02-20 Thread Phillip S. Baker
Is there an easy way to pull all the variables after the URL? Let use say that the page I am looking at is this. www.somewhere.com/pages.php?id=27color=redbgcolor=green Now on the page I want a link to have the 3 variables from above. I know I can do this. a href=another_page.php?id=?php echo

RE: [PHP] Hyperlinks vs Buttons

2002-02-20 Thread Jason Murray
Is there a way to regular hyperlinked text to submit a form? For example, rather than having a button that says [Login], I just want underlined text: Login You can use JavaScript on that link. An onClick event which triggers document.formname.submit() would work, but then you lose

  1   2   >