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
wrote:
>
> 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
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 see
at.
Thanks 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_e
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 ), not even whitespace.
You critical spot seems to be line 2 in go.php
Cheers,
Ben
Rosen wro
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 so
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
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 script
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 i
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 bes
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:
>
>
Hi,
have to correct that (thanks to Adam Whitehead for pointing out).
It should be %f instead of %d. However:
'' | php -q
2286484951194899000
Segmentation fault (core dumped)
[ben@home ben]$
This is PHP4.0.4pl1
Ben
Ben P
Hi,
I tried
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 such of limits to sprintf?
Ben
SED wrote:
>
> Hi,
>
> I'm multiplying flo
eers,
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
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
ow or you aren't 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 memo
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
need to
display the either.
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 '-Buiz Inc'.
Ben
Peter Houchin wrote:
>
> t
(shorter):
list($company)=mysql_fetch_row($result);
> printf(" $company \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 o
Message-
> > > From: Joe Stump [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, February 14, 2001 5:11 PM
> > > To: Ben Peter
> > > Cc: John McCreesh; [EMAIL PROTECTED]
> > > Subject: Re: [PHP] Structuring large PHP programs
> > >
> &g
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
Maxim Maletsky wrote:
> Anyway, " " compatibility.
I believe http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
"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,
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
gra
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
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 p
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 sto
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
> runn
28 matches
Mail list logo