Re: [PHP] Discussion board recommendation

2001-01-10 Thread Richard Lynch
Phorum? - Original Message - From: "H. Wade Minter" <[EMAIL PROTECTED]> Newsgroups: php.general Sent: Tuesday, January 09, 2001 2:36 PM Subject: [PHP] Discussion board recommendation > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I'm looking for a PHP/MySQL-or-Postgres based di

Re: [PHP] Serving files form DB

2001-01-10 Thread Richard Lynch
You could save yourself a whole lot of headaches by putting the files in the file-system, and storing only the path in the database... Also, IE and Netscape use different things to populate the filename box on the download dialog... One uses Content-disposition header(), and one uses whatever ha

Re: [PHP] FATAL: emalloc() error

2001-01-10 Thread Richard Lynch
What arguments are you passing to odbc_exec()? - Original Message - From: Justin Smith <[EMAIL PROTECTED]> Newsgroups: php.general Sent: Tuesday, January 09, 2001 1:07 PM Subject: [PHP] FATAL: emalloc() error > I'm trying to query an MS Access database via ODBC, but the odbc_exec > com

Re: [PHP] unique id

2001-01-10 Thread Richard Lynch
*WHY* not use auto_increment? Would the builtin http://php.net/uniqid function not work better? *NEVER* seed the random number generator more than once per script. Call srand() once, and only once. The return() statement will return the MySQL resource ID, which is probably not useful, but all

Re: [PHP] How to develope and add a new user function or lib or extention to php

2001-01-10 Thread Richard Lynch
> How to develpe and add a lib or extension or user function to php. I want to > make things easy. The idea case is, I don't need to change my current php, > just add the new module to the current php. You want to read about "PEAR". How the functins you describe will be any more secure than usin

Re: [PHP] Running an .exe on localhost

2001-01-10 Thread Richard Lynch
> Can somebody please give me a starter in trying to run a local application > (.exe) from a html button eg. Does it involve exec() or system() ? And if > so, could somebody give me an example. I'm too dim to learn any other way ;) exec("C:/program files/whatever/full/path/something.exe", $output

Re: [PHP] behaviour of system()

2001-01-10 Thread Richard Lynch
> I'm running Suse 7.0 as root, apache runs as wwwrun, so i guess the php > calls also run as wwwrun. Not only does php run as wwwrun, it also runs with a different shell, environment, and most notably path than you do when you log in. You should probably just get in the habit of providing full

Re: [PHP] Sessions / Var Tracking

2001-01-10 Thread Richard Lynch
> I am interested in logging people in against a MySQL database, and then > storing temporary session data about them that would include anonymity > stats, permissions, and variable tracking from page to page in a MySQL > Database. (As opposed to insecure POST/GET/Cookie methods). I'm a trifl

Re: [PHP] Accessing Common Log Format (CLF) info.

2001-01-10 Thread Richard Lynch
I doubt it... On busy servers, those files must get so huge, there's no way Apache can be trying to keep it all in RAM. So, pretty much, Apache logs it and forgets it. The only place that data exists is in the log file... Unless you hack the Apache logging routine to send it to your database o

Re: [PHP] Websites warned over first hypertext virus, is it true?

2001-01-10 Thread Richard Lynch
Either it's not the first, or it's pretty old news... And if it's the same old virus from before, the referenced article didn't even bother to describe the virus and how to detect remove it, which other articles have done -- They just hawk their wares. Search the archives for "PHP Virus" and you

Re: [PHP] ibase (firebird) localhost login ?

2001-01-10 Thread Richard Lynch
Most dbs use "localhost" for that, and the database username/password that is configured into the database software/tables... I know nothing of Interbase, but that's how all the others work... If "localhost" doesn't work for the host, try "127.0.0.1" - Original Message - From: "Chris Ha

Re: [PHP] Each site with its php.ini?

2001-01-10 Thread Richard Lynch
> Hi. Does anybody knows how to have different configuration options, that is, > different php.ini files, for several different sites that reside on the same > server? > I have IIS and the CGI version of PHP 4.04. H... I dunno how IIS does Virtual Hosting, but maybe you could have a differen

Re: [PHP] Cannot send session cache limiter - headers already sent Cannot send session cookie - headers already sent by

2001-01-10 Thread Richard Lynch
I think you want to do more like this: session_start(); if (!session_is_registered('cart')){ session_register('cart'); $cart = array(); } - Original Message - From: "JB" <[EMAIL PROTECTED]> Newsgroups: php.general Sent: Wednesday, January 10, 2001 3:43 PM Subject: [PHP] Cannot se

Re: [PHP] strip_tags ?

2001-01-10 Thread Richard Lynch
I don't think it looks for specific HTML tags to strip. Anything that looks like or is going to get yanked. In other words, it strips *EVERY* HTML tag, no matter how obscure. - Original Message - From: "Jon Rosenberg" <[EMAIL PROTECTED]> Newsgroups: php.general Sent: Wednesday, Janua

Re: [PHP] Session cookie expiration

2001-01-10 Thread Richard Lynch
There are settings in php.ini for that, I think... - Original Message - From: Michal Thomka <[EMAIL PROTECTED]> Newsgroups: php.general Sent: Wednesday, January 10, 2001 4:24 AM Subject: [PHP] Session cookie expiration > > > I am working on an aplication which uses sessions, and I w

Re: [PHP] Im having Trouble with File uploading,

2001-01-10 Thread Richard Lynch
> "C:\nusphere\apache\htdocs\morgan\php\database\CMS\pdf"); This string contains a newline... You need \\ on each of those, or just use / and I think it will make everybody happy. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: [PHP] Re-engineering print() - PHP 4 required

2001-01-10 Thread Kristofer Widholm
Here's what you wrote, 01-01-10: >Try this: > >function my_eval($code) { >ob_start(); >eval($code); >$retval = ob_get_contents(); >ob_end_clean(); >return $retval; >} > >$str = my_eval("echo 2+2;"); >echo $str; Mr. Lerdorf, Mr. McClahahan, Mr. Butzon et al, Thank you for you

RE: [PHP] How to add a user of LDAP?

2001-01-10 Thread Maciek Uhlig
You might want to look at http://www.zend.com/codex.php?id=113&single=1 Maciek > -Original Message- > From: Huang Wenhai [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 11, 2001 3:53 AM > To: [EMAIL PROTECTED] > Subject: [PHP] How to add a user of LDAP? > > > I want to add a user

[PHP] Change Array Data

2001-01-10 Thread Kersten Lohmeyer
Hi, I'm new to PHP so I thought someone could give me some advice on this one: I'm creating a shopping cart, which is nothing but an array within a session variable. Adding products to my cart works fine. But now I want to be able to change certain fields in my already filled array, e.g. the amo

Re: [PHP] Re-engineering print()

2001-01-10 Thread Rasmus Lerdorf
Try this: function my_eval($code) { ob_start(); eval($code); $retval = ob_get_contents(); ob_end_clean(); return $retval; } $str = my_eval("echo 2+2;"); echo $str; -Rasmus On Thu, 11 Jan 2001, Kristofer Widholm wrote: > Here's what you wrote, 01-01-11: > > > > $s = sprintf("%s

RE: [PHP] Re-engineering print()

2001-01-10 Thread Maxim Maletsky
Like when you have to to run a thousand of functions and IFs for then output it all in a simple $message to send as an email? then just use $staff .= whatever(); assign everything to one single variable and use it later on. $here .= from_there(); is the method to do that. Did I understand you

Re: [PHP] Re-engineering print()

2001-01-10 Thread Josh G
Cool, didn't think you could do that. Well never mind me then ;-) Gfunk My name was Brian McGee, I stayed up listening to Queen, When I was seventeen. http://www.gfunk007.com/ - Original Message - From: "Matt McClanahan" <[EMAIL PROTECTED]> To: "Kristofer Widholm

Re: [PHP] Re-engineering print()

2001-01-10 Thread Matt McClanahan
On Wed, 10 Jan 2001, Kristofer Widholm wrote: > Basically, I'm wondering if there is a way to redirect print and echo > output from PHP to a variable instead of directly to a browser or > file stream. What I'm trying to do is create code that can generate > an HTML page to a variable that I ca

Re: [PHP] Re-engineering print()

2001-01-10 Thread Josh G
If the system() doesn't return something, try using the backticks (left of the 1 key) like so: $s = `/path/to/php /path/to/yourfile.php`; Gfunk My name was Brian McGee, I stayed up listening to Queen, When I was seventeen. http://www.gfunk007.com/ - Original Message

Re: [PHP] Re-engineering print()

2001-01-10 Thread Josh G
$s = system ("/usr/local/whatever/php/bin/php /path/to/your/file.php"); This should be what you're after. In PHP4 there _may_ be some way to use the inbuilt buffering for that purpouse, but I doubt it. Perhaps this could be added to the language? It would be a good counterpart to eval()... Gfun

Re: [PHP] Re-engineering print()

2001-01-10 Thread Toby Butzon
Look into output buffering (ob_* functions). You wouldn't want to do that with your whole script; but there is an example (if not in the manual it's on zend I believe) so you can assign the results (what would've been outputted to the browser without the buffering) to a variable. --Toby - Or

Re: [PHP] Re-engineering print()

2001-01-10 Thread Kristofer Widholm
Here's what you wrote, 01-01-11: > > $s = sprintf("%s", implode("\n", file('template.php'))); > >Why this??? It's redundant, isn't it? Wouldn't > >$s= implode("\n", file('template.php')); do it? > >Gfunk Gfunk, and Mr. Murray, I guess I didn't write my query very clearly. What I am looking for

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-01-10 Thread Rasmus Lerdorf
rasmus Wed Jan 10 22:06:03 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: More people for the documentation team Index: CVSROOT/avail diff -u CVSROOT/avail:1.27 CVSROOT/avail:1.28 --- CVSROOT/avail:1.27 Tue Jan 9 15:46:44 2001 ++

RE: [PHP] case ?

2001-01-10 Thread Steve Edberg
At 2:29 PM +0900 1/11/01, Maxim Maletsky wrote: >here we go, from Zeev: > > > >As of PHP 4.0.3, the implementation of require() no longer behaves that > > >way, and processes the file 'just in time'. That means that in the 1st > > >example, the file will be processed a hundred times, and in the 2

[PHP] sorry, btw

2001-01-10 Thread bard
sorry, btw about my wraps. vi, pine and I are having a bit of a disagreement at the moment and I keep forgetting to hit return. -- 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 ad

RE: [PHP] case ?

2001-01-10 Thread Maxim Maletsky
here we go, from Zeev: > >As of PHP 4.0.3, the implementation of require() no longer behaves that > >way, and processes the file 'just in time'. That means that in the 1st > >example, the file will be processed a hundred times, and in the 2nd > >example, it won't be processed at all. That's the

RE: [PHP] case ?

2001-01-10 Thread Maxim Maletsky
>'require' ALWAYS includes the file; 'include' is what you want here. not since v4.0.2(?) came out ... I heard from Zeev that require() and include() behave now just about the same. Read our posting regarding this topic of 1-2 month ago.. Cheers, Maxim Maletsky >The tradeoff is that include is

Re: [PHP] SSH file transfers

2001-01-10 Thread Kyle Jerviss
Yeek! Not quite what I meant. I don't think that web servers have any business being on windows boxes. I was wondering if there were a way to upload using something like scp from a windows (or other) browser to a unix server. bard wrote: > > the people who make putty (my favorite ssh client f

Re: [PHP] Exponents

2001-01-10 Thread Josh G
exp(num,pow) i do believe. of course this is off the top of my head Gfunk My name was Brian McGee, I stayed up listening to Queen, When I was seventeen. http://www.gfunk007.com/ - Original Message - From: "Ian LeBlanc" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTE

Re: [PHP] Exponents

2001-01-10 Thread Brian Clark
Hello Ian, (IL == "Ian LeBlanc") [EMAIL PROTECTED] writes: IL> Hey guys this one might be simple for ya.. IL> how do you get a exponent of a verable.. example... http://www.php.net/manual/html/function.pow.html -Brian -- Logic: The systematic method of coming to the wrong conclusion with c

[PHP] Exponents

2001-01-10 Thread Ian LeBlanc
Hey guys this one might be simple for ya.. how do you get a exponent of a verable.. example... shoudl be simple.. i have tried all kinds of things.. please help Ian LeBlanc 2tonecafe.com Admin 727-517-3866 You can have [EMAIL PROTECTED] free too. Apply today! -- PHP General Mailing List (

Re: [PHP] SSH file transfers

2001-01-10 Thread bard
the people who make putty (my favorite ssh client for windows) also make a command line scp program. this could be included as an exec() in a script I would think... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

Re: [PHP] case ?

2001-01-10 Thread Joe Stump
require includes the file BEFORE any processing is done - so yes it will be included - you need to use include() instead. --Joe On Wed, Jan 10, 2001 at 11:17:43PM -0500, Jon Rosenberg wrote: > I know this is kinda silly. but, if I have the following, will the file > only be included when the ca

Re: [PHP] SSH file transfers

2001-01-10 Thread Kyle Jerviss
jeremy brand wrote: > > > How can I upload / download files using SSH through PHP? > > Use scp. > > I built a rather complex document system that is more > than I want to mention for this topic, but... > > > Has anyone ever did it before? > > Yes. You can run "any" program from php. Just us

Re: [PHP] Re-engineering print()

2001-01-10 Thread Josh G
> $s = sprintf("%s", implode("\n", file('template.php'))); Why this??? It's redundant, isn't it? Wouldn't $s= implode("\n", file('template.php')); do it? Gfunk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: [PHP] Re-engineering print()

2001-01-10 Thread Jason Murray
> #Option 1: code I wish worked > $s = include("phpcode.php"); > > #Option 2: also code I wish worked > $s = sprintf("%s", include('template.php')); $s = sprintf("%s", implode("\n", file('template.php'))); :) Jason -- Jason Murray [EMAIL PROTECTED] Web Design Team, Melbourne IT Fetch the com

Re: [PHP] case ?

2001-01-10 Thread Steve Edberg
At 11:17 PM -0500 1/10/01, Jon Rosenberg wrote: >I know this is kinda silly. but, if I have the following, will the file >only be included when the case is matched or does require always bring in >the file regarless? > >case blah: >require('include.php'); >do something >break; > 're

[PHP] Re-engineering print()

2001-01-10 Thread Kristofer Widholm
Hi, I'm involved in a conundrum that is a little difficult to explain with plain English. Perhaps some PHP code will help you understand what I am attempting: #Option 1: code I wish worked $s = include("phpcode.php"); #Option 2: also code I wish worked $s = sprintf("%s", include('template.php'

[PHP] Re-engineering print()

2001-01-10 Thread Kristofer Widholm
Hi, I'm involved in a conundrum that is a little difficult to explain with plain English. Perhaps some PHP code will help you understand what I am attempting: #Option 1: code I wish worked $s = include("phpcode.php"); #Option 2: also code I wish worked $s = sprintf("%s", include('template.php'

Re: [PHP] case ?

2001-01-10 Thread Brian Clark
Hello Jon, (JR == "Jon Rosenberg") [EMAIL PROTECTED] writes: JR> I know this is kinda silly. but, if I have the following, will the JR> file only be included when the case is matched or does require JR> always bring in the file regarless? That is *supposed* to be the way it works. That is *su

Re: [PHP] case ?

2001-01-10 Thread Dean Hall
> I know this is kinda silly. but, if I have the following, will the file > only be included when the case is matched or does require always bring in > the file regarless? > > case blah: > require('include.php'); > do something > break; Pretty sure it depends on whether your file sys

Re: [PHP] Apache error after setting path for mysql=

2001-01-10 Thread Brian Clark
Hello Shane, (SR == "Shane Reid") [EMAIL PROTECTED] writes: SR> I reconfigured php with ./configure SR> --with-mysql=/usr/local/etc/mysql SR> --with-apxs=/usr/local/etc/apache/bin/apxs and apache will no SR> longer start. I removed the path from the mysql to get the SR> webserver back up but m

[PHP] case ?

2001-01-10 Thread Jon Rosenberg
I know this is kinda silly. but, if I have the following, will the file only be included when the case is matched or does require always bring in the file regarless? case blah: require('include.php'); do something break; --

[PHP] Apache error after setting path for mysql=

2001-01-10 Thread Shane Reid
I reconfigured php with ./configure --with-mysql=/usr/local/etc/mysql --with-apxs=/usr/local/etc/apache/bin/apxs and apache will no longer start. I removed the path from the mysql to get the webserver back up but my question was why would it not be able to find libmysqlclient.so.10 (error down

[PHP] For RegExp Experts.

2001-01-10 Thread Diego Fulgueira
Does anyone around knows the regular expression that matches all the ocurrences of a word (p.e. "needle") not within PHP code, i.e., outside the tags? By the way, is there a good online tutorial or reference on regular expressions? Thanks a lot. -- PHP General Mailing List (http://www.php.ne

Re: [PHP] looking for a PHP editor

2001-01-10 Thread Brian Clark
(BC == "Brian Clark") [EMAIL PROTECTED] writes: BC> Likewise, if you get into the habit of doing or ?> tandem, your worries will soon disappear. P.S. a decent editor that has *good* syntax highlighting (Ie. different schemes for HTML, JavaScript and PHP highlighting in the same document) help

Re: [PHP] looking for a PHP editor

2001-01-10 Thread Brian Clark
Hello Miles, (MT == "Miles Thompson") [EMAIL PROTECTED] writes: MT> When I turn PHP on and off I tend to have "OOPS" scenarios, and MT> have to go searching for the previous "?>" or " or ?> Miles -Brian -- Don't try to be like Jackie. There is only one Jackie. Study computers instead. -- Ja

Re: [PHP] Re: [PHP-DB] Autonomous Mass Mail List System (Broadcast Email)

2001-01-10 Thread Toby Butzon
I notice this is kinda getting pushed towards other directions and the reasons for keeping the direction asked for seem to have merit, so... It can be done, I'm sure, but you'll have to sit down and design it... you'll probably be better off using a package that already does such things. You've g

Re: [PHP] looking for a PHP editor

2001-01-10 Thread Miles Thompson
Actually, the pages I've been working on lately have been so code-intensive I've found it easier to echo/print the HTML, especially as not that much has been generated. When I turn PHP on and off I tend to have "OOPS" scenarios, and have to go searching for the previous "?>" or "Hello Alexande

[PHP] How to add a user of LDAP?

2001-01-10 Thread Huang Wenhai
I want to add a user of my Netscape Messaging server(ldap) with php,who can give me a example of such using,including userid,password,email and so on! Thanks a lot! my email address: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMA

[PHP] How to add a user of LDAP?

2001-01-10 Thread Huang Wenhai
I want to add a user of my Netscape Messaging server(ldap) with php,who can give me a example of such using,including userid,password,email and so on! Thanks a lot! my email address: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL P

[PHP] Re: [PHP-DB] Autonomous Mass Mail List System (Broadcast Email)

2001-01-10 Thread Jason Beebe
well, the fact of the matter, is that we will not be sending the mail from the server, i only need something to handle bounces and discontinues when sent to a specific email address, which resides on the server. the resources are not available to use to send out that volume of custimized emails.

Re: [PHP] SSH file transfer

2001-01-10 Thread Opec Kemp
Humm... that's a bit difficult. There are easier solution: 1) Get your users to learn and usr SCP :) (not likely :)) 2) Get a better FTP Server. There are better FTP servers out there other than Wu-FTPD :). Try Pro-FTPD 3) SSH server to forward the FTP port (21). This will pass the "command" c

Re: [PHP] dynamic code

2001-01-10 Thread Alex Black
why would you want to do that? can you give me a little more detail about the application? -alex -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 Saul Zaentz Film Center 2600 Tenth St Suite 433 Berkeley, CA 94

Re: [PHP] two submit buttons possible?

2001-01-10 Thread Alex Black
just name the submit: input type="submit" name="credit_card" and input type="submit" name="dealer" that's easy to capture. -alex -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 Saul Zaentz Film Center 2600 T

Re: [PHP] DB portability

2001-01-10 Thread Alex Black
we chose metabase for binarycloud (www.binarycloud.com) specifically for its maturity, relative simplicity, and the incredibly cool XML schema thing, which has saved me countless hours of crapwork :) I think PEAR's db class will eventually be good, but for now metabase beats is simply because it

[PHP] Websites warned over first hypertext virus, is it true?

2001-01-10 Thread juang
HI all, i have an article from my friend where the subject is virus in php. My Question is, is't true ? if yes, how to anticipate it? the article: > This article from vnunet.com has been sent to you by [EMAIL PROTECTED] > > who has added the following message: $#%@#^$& > > If you wish to go

Re: [PHP] SSH file transfers

2001-01-10 Thread Alex Black
write a lib that can call scp :) -alex -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 Saul Zaentz Film Center 2600 Tenth St Suite 433 Berkeley, CA 94710-2522 > From: [EMAIL PROTECTED] ("Nando2") > Newsgro

[PHP] RE: [PHP-DB] Autonomous Mass Mail List System (Broadcast Email)

2001-01-10 Thread Cal Evans
Don't reinvent the wheel. It will take you longer to write it than it will to learn to admin majordomo or any of 10 other programs like it. IMHO, Cal -Original Message- From: Jason Beebe [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2001 7:49 PM To: [EMAIL PROTECTED]; [EMAIL PR

Re: [PHP] Good and working documentation generator

2001-01-10 Thread Alex Black
we're using PHPDoc with binarycloud, it's a little rough at the moment, but it looks like the code is moving along, and having a standard is fantastical :) phpdoc.de binarycloud: www.binarycloud.com _alex -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc. http://www.turings

Re: [PHP] AFTERBURNER - PHP CACHE

2001-01-10 Thread Alex Black
VERY exciting! cool cool cool zend cache, but for free! but does it work. more to come, as I will be testing this :) _alex -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 Saul Zaentz Film Center 2600 Tenth

[PHP] Session Mgmt in MySQL - cleanup

2001-01-10 Thread Hardy Merrill
I've adapted a session management script I found on www.phpbuilder.com for storing session info in MySQL, but I'm wondering about "garbage collection". Does the system do the garbage collection itself somehow, or should my sess_open function call sess_gc directly? I noticed that when I invoke se

Re: [PHP] libSWF

2001-01-10 Thread Jeff Warrington
In article <[EMAIL PROTECTED]>, "Arcady Genkin" <[EMAIL PROTECTED]> wrote: http://reality.sgi.com/grafica/flash/dist.99.linux.tar.Z Jeff > Are libswf's sources available, or is it only distributed in binary? > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAI

Re: [PHP] FORM problem

2001-01-10 Thread Joe Stump
Have you tried looking at addslashes() ??? Or am I not understanding the problem here. Just remember to deliminate the "'s and ''s before entering them into the db. --Joe On Wed, Jan 10, 2001 at 08:19:24PM -0500, Romulo Roberto Pereira wrote: > Hello! > > I am having a problem when people copy

Re: [PHP] include path confusion

2001-01-10 Thread Jeff Warrington
In article <[EMAIL PROTECTED]>, "Randy" <[EMAIL PROTECTED]> wrote: I would be willing to bet that within the php.ini file, an entry such as you listed would look for includes in: if foo = location of php.ini e.g. /usr/local/lib/php.ini, then ../include relative to foo is /usr/local/include/ s

Re: [PHP] Autonomous Mass Mail List System (Broadcast Email)

2001-01-10 Thread Joe Stump
Sure - I did this with qmail. In your .qmail file or any file that passes the incoming mail to /dev/stdin you need to pipe it to a php script. It will look like this: I had email addresses setup like ezmlm - ie [EMAIL PROTECTED] or on the other hand [EMAIL PROTECTED] - then just parse out the

Re: [PHP] Shopping Carts

2001-01-10 Thread Alex Black
hi Brandon, we use php's session handing functions to set cookies, they are obviously hashed, etc before the values are sent. as part of the authentication system, we check to see that the user's client matches the last access with that session id, if not, we request a sign in. if you're not ta

Re: [PHP] mysql and php possibly causing problem

2001-01-10 Thread Michael Brunson
On 9 Jan 2001 21:04:26 -0800, [EMAIL PROTECTED] (James Mclean) wrote: >list, >ok her is the problem. i have a page taht works fine in one dir, but in a sub >dir, it doesnt even show up. here is my dir structure. >public_html/| >|website/| >||index.php >|

Re: [PHP] Code diagnostics & profiling

2001-01-10 Thread Alex Black
hi Guillermo, as part of the binarycloud error handling infrastructure, we capture all errors on a page (that and sql queries + apache environment) and provide a module that you can (optionally) have print all of that stuff in your pages in an easy-to-read table. it has helped us quite a bit, bec

[PHP] Autonomous Mass Mail List System (Broadcast Email)

2001-01-10 Thread Jason Beebe
Hey Everyone, I'm working a project for one of the company's websites. they have a subscription mailing list that the user signs up their email address to receies periodical emailings. The email addresses are stored in a flat txt file. 1 email per line. I could also convert it to a coma delim

Re: [PHP] 2d array?

2001-01-10 Thread Toby Butzon
> $file should be the name of the file - there is a PHP variable for this but > I'm drawing a blank right now. How about __FILE__ ? ;) Note: it's a constant, so make sure you don't try to use a $ before it --Toby - Original Message - From: "Joe Stump" <[EMAIL PROTECTED]> To: "Kurth Bem

Re: [PHP] Force variables to add

2001-01-10 Thread Jeff Warrington
In article <[EMAIL PROTECTED]>, "Brandon Orther" <[EMAIL PROTECTED]> wrote: You will want to apply a cast to the variables to force the addition to be dealing with numbers. So, if $var1 = "2" and $var2 = "3", then $var3 = (int) $var1 + (int) $var2; print($var3); will show 5 see: http://ww

Re: [PHP] pause

2001-01-10 Thread Alex Black
hey robert, have a look at binarycloud, with form builder, we take form input, check it, and return errors with the same form, input there and everything. if you want, you can have it do fancy stuff like carry over elements on multi page forms (a person forgets fo fill out one elemtn on a page,

Re: [PHP] 2d array?

2001-01-10 Thread Joe Stump
I'll give it a whirl ... $array_of_page_titles = array( 'aboutus.php' => 'All about our company', 'index.php' => 'Welcome to www.server.com!', 'foo.php' => 'I\'m a worthless script!' ); Then ... $file should be the name of the file - there is a

Re: [PHP] mixing HTML and PHP code

2001-01-10 Thread Alex Black
uh, while I agree that including your html is definitely the way to go, you _must_ mix php with html to a certain extent, assuming you're actually doing anything interesting like talking to a database. if you're _only_ including files (i.e. using php as a replacement for SSI) I guess that would

[PHP] 2d array?

2001-01-10 Thread Kurth Bemis
i'm confused by the method the go about this. i want to have a location: home / company / about on a page like server.com/company/aboutus.php i'm thinking that i can use an array containing the page name and then search the array and return the page title. now - how do i do this with an arra

[PHP] Re: [PHP-DEV] Compile Problem: Place for Help

2001-01-10 Thread Jani Taskinen
On Wed, 10 Jan 2001, Mark Olbert wrote: >Can anyone recommend a place/forum for help in getting PHP to compile under >linux? > >I am running into a problem that I haven't gotten any feedback on from >php-dev, php-general or php-install. > >The specific problem is: > >/usr/bin/ld: .libs/libphp4.so

[PHP] FORM problem

2001-01-10 Thread Romulo Roberto Pereira
Hello! I am having a problem when people copy and paste text inside a TEXTAREA in a form that contains double quotes ' " ' . The first file is a simple form. The second one is a php script that treats the data from the user and stores in a MySQL table. Onyone has any ideas? I need to use jav

[PHP] PHP makes sexy!

2001-01-10 Thread Dieter Kneffel
Well, now that I finally got your attention, you perhaps might be able to help me! Just wondering why nobody ansered yet: Is my question to hard to understand or is the issue to complicated??? --- original message --- Please help! Perhaps you have an idea what to do

Re: [PHP] Funny running PHP4 on Apache, Windows 95

2001-01-10 Thread Brian Clark
Hello Patrick, (PD == "Patrick Dunford") [EMAIL PROTECTED] writes: PD> I have this funny thing when running PHP 4 on Apache on Win95. If PD> the script PD> AddType application/x-tar .tgz PD> AddType application/x-httpd-php3 .php3 PD> AddType application/x-httpd-php3-source .phps

[PHP] Funny running PHP4 on Apache, Windows 95

2001-01-10 Thread Patrick Dunford
.phps === Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/ In his heart a man plans his course, but the LORD determines his steps. -- Proverbs 16:9 http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=200

[PHP] Matching specific HTML tags with a regex

2001-01-10 Thread Jason Murray
Hi folks, Seen this discussed on here a bit in the past, so I hope someone remembers and can help me sort of quickly before I go nuts, declare victory and move on to another problem :) My regular expression abilities are ... limited. This is what I'm trying to accomplish: An input buffer to a

[PHP] SECURITY: Question about PHP Wrappers - What to do without them?

2001-01-10 Thread brunatex
I have an account on JTLNET ... I have decided to install Phorum (from Phorum.org), but this requires the scripts to be run inside a PHP CGI wrapper .. JTLNET although supporting php very nicely indeed, do not provided CGI Wrappers for scripts... hence if i were to run the scripts, i would b

RE: [PHP] How can I get a random number

2001-01-10 Thread Jerry Lake
I'll go ahead and get that investment money rolling, as soon as I see my return from mindpixel...haha! I hear that MIR can be had for about the cost of a decent case of vodka though Jerry Lake -Original Message- From: Philip Olson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10,

[PHP] Re: WELCOME to php-general@lists.php.net

2001-01-10 Thread Paul Trapnell
subscribe

Fw: Re: Re: [PHP] problem with includes

2001-01-10 Thread James Mclean
> include file has extension .php in the file is some php stuff, reading out of a > mysql database and printing to page. > > page it is bieng included in also has mysql functions in it, along with php > functionas also. > > > > On Wed, 10 Jan 2001, Brian Clark wrote: > > Date: Wed, 10 Jan 2

php-general Digest 10 Jan 2001 23:46:51 -0000 Issue 447

2001-01-10 Thread php-general-digest-help
php-general Digest 10 Jan 2001 23:46:51 - Issue 447 Topics (messages 33648 through 33844): Re: Shopping Cart Schema - Sessions 33648 by: Teodor Cimpoesu 33652 by: Paul K Egell-Johnsen 33682 by: JB 33694 by: JB 33696 by: Teodor Cimpoesu Re: Show outpu

RE: [PHP] mixing HTML and PHP code

2001-01-10 Thread MR
Brian Clark ... > > Hello Alexander, > > (AW == "Alexander Wagner") [EMAIL PROTECTED] writes: > > >> Mmmmfff... ultraedit's wordlist file still lacks the color of > >> allaire's homesite - it does detect which parts of the .php file > >> are HTML and what parts of the file are PHP code, and co

RE: [PHP] How can I get a random number

2001-01-10 Thread Philip Olson
Good idea! I hear MIR is for sale. This could make a good PHP random function, one that always works! Let's pool our resources and get on it. Great thing is, no need for these mysterious seeds. philip On Wed, 10 Jan 2001, Jerry Lake wrote: > We may as we set it up in space > to minimalize

Re: [PHP] BIG include file !!!

2001-01-10 Thread Abe
Thanks - nice looking site. Abe - Original Message - From: "Jason Murray" <[EMAIL PROTECTED]> To: "'Abe'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, January 10, 2001 10:17 PM Subject: RE: [PHP] BIG include file !!! > > As I am working I am taking more and more of the co

Re: [PHP] problem with includes

2001-01-10 Thread Brian Clark
(BC == "Brian Clark") [EMAIL PROTECTED] writes: BC> So us what is in comment.php ^^ Show -Brian -- There are two ways to write error-free programs, and only the third one works. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: [PHP] Connect problem

2001-01-10 Thread Brian Clark
Hello Maximiliano, (MB == "Maximiliano Bubenick") [EMAIL PROTECTED] writes: MB> I run linux red hat 6.2 with apache 1.3.12, php4 and mysql 3.22.32 MB> The first time my problem was Call to undefined function: MB> mysql_connect(), and I add the line dl("mysql.so"); and then bring MB> me: Why

Re: [PHP] problem with includes

2001-01-10 Thread Brian Clark
Hello James, (JM == "James Mclean") [EMAIL PROTECTED] writes: JM> i am having a problem with pages that use includes. What is the extension of the document that you're placing include() in? JM> i am requiring the page like this JM> require("./comment.php"); So us what is in comment.php JM

Re: [PHP] looking for a PHP editor

2001-01-10 Thread Brian Clark
Hello Alexander, (AW == "Alexander Wagner") [EMAIL PROTECTED] writes: >> Mmmmfff... ultraedit's wordlist file still lacks the color of >> allaire's homesite - it does detect which parts of the .php file >> are HTML and what parts of the file are PHP code, and colours >> syntax very well...

Re: [PHP] include path confusion

2001-01-10 Thread Brian Clark
Hello Randy, (R == "Randy") [EMAIL PROTECTED] writes: R> How I think it SHOULD work is like DOS - First it looks at where R> you say it is. If not there, it looks in the current directory. Let's not forget Unix. ;-) R> If not there, it looks in the directories in the path. I'm sure PHP R> do

  1   2   3   4   >