[PHP] looking for pluggable bb/forum

2001-10-02 Thread Ben Peter
Hi all, does anyone know of good php forum software that does not take the approach that customizable headers/footers are used (like with phorum), but one that is plugged in the middle of a page, say by calling a function that displays the forum in it's current status, or by including a file? I

Re: [PHP] Can't find php.ini on my Linux/Apache module install

2001-02-26 Thread Ben Peter
Ken, if PHP is 'built in' to apache (--with-apxs, besides other ways to achieve this), it is configured through Apache. This is either httpd.conf, or .htaccess files within your web tree. The 'configuration' section in the manual is more specific on that. Cheers, Ben Ken wrote: I can't seem

[PHP] Re: Can't find php.ini on my Linux/Apache module install

2001-02-26 Thread Ben Peter
: At 07:08 AM 2/27/01 +0100, Ben Peter wrote: Ken, if PHP is 'built in' to apache (--with-apxs, besides other ways to achieve this), it is configured through Apache. This is either httpd.conf, or .htaccess files within your web tree. The 'configuration' section in the manual is more

[PHP] using include_path with file_exists()

2001-02-20 Thread Ben Peter
Hi all, is there a decent way to check whether a file is available on the include_path? The only soultion I have found is if ( ( $fd = fopen( 'my_file', 'r', 1 ) ) ) { fclose( $fd ); /* ok, file is there */ } That one's not really nice, at it opens the file for reading. It would be

Re: [PHP] Re: sending variables

2001-02-20 Thread Ben Peter
No, PHP makes get variables available in $HTTP_GET_VARS. Thus, Rosen can access his variable as $HTTP_GET_VARS['rosen']. If register_globals is true, the variable is also available in the global scope as $rosen (as in Rosen's example). If this does not work, it would seem that register_globals

Re: [PHP] PHP Variables across files

2001-02-20 Thread Ben Peter
Jay, to make variables.inc available from wherever you are, set the value of include_path in your php.ini or httpd.conf or .htaccess t something like ".:/path/to/where/variables.inc/is:/other/paths" as an alternative, use the auto_prepend_file directive to include variables.inc before any

Re: [PHP] Strange behaviour: Cannot exit as expected AND Script starts from the beginning, executed TWICE. Anyone?

2001-02-20 Thread Ben Peter
Yasuo, the function you call is $msg = user_regist(); while in regist_util.inc, the function defined is function regist_user() { Could that be the problem? Do you see any errors about undefined functions? Cheers, Ben Yasuo Ohgaki wrote: This is really strange. PHP fails to exit /

Re: [PHP] HTTP Content-length...

2001-02-20 Thread Ben Peter
Evan, I have no good answer to your problem, but probably you should have a look at Snoopy (snoopy.sourceforce.net), which implements HTTP posts, along with some other nifty functions and is very easy to use. Cheers, Ben "Montgomery-Recht, Evan" wrote: I'm working through geting the raw

Re: [PHP] Redirect page

2001-02-20 Thread Ben Peter
Rosen, You have to make sure that nothing is output before the header function. Make sure that you neither employ an echo or print before, and have nothing outside of th ephp code (the part enwrapped in ?php or ? and ?), not even whitespace. You critical spot seems to be line 2 in go.php

Re: [PHP] using include_path with file_exists()

2001-02-20 Thread Ben Peter
s for the idea, Ben Michael Dearman wrote: Hi Ben, I thought maybe there was something like HTTP_SERVER_VARS["INCLUDE_PATH"], but apparently not. Could you just define your own $GLOBALS["my_include_path"] = and use that with file_exists()?? Mike D. Ben Peter wrot

Re: [PHP] Standard-Output

2001-02-18 Thread Ben Peter
Martin, you can either use the file 'php://stdout', which will open stadard output independant of platform, or access /dev/stdout, which is a symlink to the stdout stream of your process. Also, any output that is printed from PHP will be printed to stdout. Cheers, Ben Martin Thoma wrote:

Re: [PHP] File_exists function question.

2001-02-16 Thread Ben Peter
Ben Gerry wrote: Hello again: Ben Peter wrote: Gerry, could you give us a bit more code, esp. the while or for loop that surrounds the code you have quoted? Cheers, Ben Sorry for the confusion, and yes I did mispelled camera in english. Here is more of my sloppy code. I

Re: [PHP] How to transfer 2.2864849511949E+190 to a normal-human-readable number?

2001-02-16 Thread Ben Peter
Hi, I tried ? $foo = 2.2864849511949E+190; settype($foo,"double"); printf("%d\n", $foo) ? which gave me -2147483648 echo $foo gives 2.2864849511949E+190 - This looks like the number is too large for printf (the 'human readable form' printed by printf is abviously wrong). Does anybody know

Re: [PHP] How to transfer 2.2864849511949E+190 to a normal-human-readable number?

2001-02-16 Thread Ben Peter
000 Segmentation fault (core dumped) [ben@home ben]$ This is PHP4.0.4pl1 Ben Ben Peter wrote: Hi, I tried ? $foo = 2.2864849511949E+190; settype($foo,"double"); printf("%d\n", $foo) ? which gave me -2147483648 echo $foo gives 2.2864849511949E+190 -

Re: [PHP] Specific PHP/JSP questions

2001-02-15 Thread Ben Peter
Gerald, although I cannot give you extensive answers, I hope I can help you in some points: 1) JSPs can persist variables at the page, request, session and application scopes. I believe PHP variables are implicitly page-scoped, and session management can be used for session-scoping. Are

Re: [PHP] Structuring large PHP programs

2001-02-15 Thread Ben Peter
coding things very well ... --Joe On Thu, Feb 15, 2001 at 04:16:22AM +0100, Ben Peter wrote: Hi Joe, the reason I changed to 'include on demand' was a rather large application which would not work, as the memory limit that my isp had set wouldn't suffice. I have files

Re: [PHP] File_exists function question.

2001-02-15 Thread Ben Peter
Gerry, could you give us a bit more code, esp. the while or for loop that surrounds the code you have quoted? Cheers, Ben Gerry wrote: Hello everyone: I'm trying to build a table with the last row being a check function for an image, where it checks if the item image exists in the

Re: [PHP] Structuring large PHP programs

2001-02-14 Thread Ben Peter
John, part of this is a matter of taste - I would personally rather split this into functions. BUT: even if you _are_ using functions, you should only include() the file with the function when you need it, IF this part of the code is getting large. This way, php will not need to parse code that

Re: [PHP] Structuring large PHP programs

2001-02-14 Thread Ben Peter
in init.inc even if that script doesn't use it? So if you have a db.inc and it doesn't use the db at all...is it included? -Jonathan -Original Message- From: Joe Stump [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 5:11 PM To: Ben Peter Cc: John McCreesh

Re: [PHP] SELECT BLAH WHERE BLAH LIKE BLAH not working

2001-02-14 Thread Ben Peter
t($company)=mysql_fetch_row($result); printf("trtd $company /td/tr\n"); otherwise, $company would not be set. Ben Peter Houchin wrote: Hiya, i was wondering if some one could help me with this ... i have a little form where you can enter a value say company then on submit its ment to ch

Re: [PHP] SELECT BLAH WHERE BLAH LIKE BLAH not working

2001-02-14 Thread Ben Peter
. The while runs until mysql_fetch_row returns false, which is the case when all rows have been retireved. htmlentitites($company) makes sure that no HTML special characters slip through (like a company named 'E-Buiz Inc'. Ben Peter Houchin wrote: thanks ben it works :) Just one thing if i say

Re: [PHP] echo vs print

2001-02-09 Thread Ben Peter
Maxim Maletsky wrote: Anyway, "?php" , "?" are quite same too, except that php3 used to have "?php" while older versions use mainly "?", this is just about compatibility. I believe ?php is needed if you want your scripts to be valid XML. Ben -- PHP General Mailing List

Re: [PHP] security help

2001-02-08 Thread Ben Peter
"James, Yz" wrote: In addition, (if using .htaccess) They would only be able to read the .htpasswd from public directory if they had first authorised themselves. The browser will prompt them to identify before it allows files from a protected directory to be included. James, are

Re: [PHP] PHP hosting - the final frontier.

2001-02-03 Thread Ben Peter
Chris, This all sounds good but for one thing: I firmly believe that one man with a root password is not enogh to look after even one client. I have hosted with 3 one-man-companies, and it always came to the point where I couldn't reach someone for a week, or I waited for 3 months, only to be

Re: [PHP] Strange Parser error

2001-02-01 Thread Ben Peter
Phil, posting the scrpit would be good, it's hard to say anything without having seen it. Ben Phil Daintree wrote: I have been working on a script and come to a brick wall which I can't break... I am using Suse Linux 2.2 kernel, PHP4.04pl1 Mysql 3.22 Mod_ssl open_ssl - this is running

Re: [PHP] Why sprintf for query?

2001-02-01 Thread Ben Peter
Karl, where is the first line from? it's pretty useless overhead. $q = 'SELECT prodnum, childdesc FROM prodaval' would be second fastest (the string is now parsed as it is in single quotes). fastest would be to directly feed the statement to the query function (e.g. mysql_query) instead of

[PHP] List archives with PHP frontend

2001-02-01 Thread Ben Peter
Hi all, has anyone seen mailing list archiving software with a php frontend? more detailed: I am looking for software that sits listening on an email address and will archive all mail that it receives (which in this case would be that of a mailing list). The archive should be accessible by a

Re: [PHP] contracting consulting (was [PHP] Pricing for PHP programming???)

2001-02-01 Thread Ben Peter
Hi Ben, I know that that Java/EJB/JSP and COM/ASP is in MUCH more demand, and therefore command a higher wage. Demand vs supply, right?. A search today on monster.com for ASP in LA yields 142 listings, Java yields 262, JSP yields 32, Perl yields 105, PHP yields 16, cold fusion yields 16.