that's not true.
you can call a static method with the "::" notation.
like ClassName::method();
there's doesn't need to be an instance to do that.
not sure if that's true for all of PHP4 or just 4.04 or whatnot.
-aaron
At 11:56 AM -0500 2/24/01, Kevin Beckford wrote:
>Well I meant class func
that's easy.
don't redirect, just do an include() on the PHP file you actually
want, or if you're using some fancy caching system and alrady have
the output in a file, do a readfile().
then use Apache's ForceType.
I think it's like:
ForceType application/x-httpd-php
something like that.
At 3:37 PM -0800 3/8/01, Nicole Lallande wrote:
>$len = mysql_num_rows($result);
>for ($i=0; $i<=$len; $i++) {
> echo "$catid";
>}
I believe your problem is in that code becuase it's ambiguous and
because $catid is an array and you're treating it as a regular
variable.
what you should do is
mysql_query($sql) or die("there was an error: ".mysql_error());
-aaron
At 3:16 PM -0800 3/8/01, Dennis Gearon wrote:
>I do an insert using phpadmin, and i get back the error message (or
>maybe it's a warning?) The insert is of a duplicate on a unique field. I
>expected an error, but when I do my
put ob_start() at the beginning of your script.
at the end put:
mail('[EMAIL PROTECTED]', 'confirmation', ob_get_contents());
ob_end_flush();
-aaron
At 11:48 PM + 3/8/01, kaab kaoutar wrote:
>Hi
>I've tried what, one of u, has kindly suggested, to send the whole
>html page as email :
>i p
does anyone look at the manual anymore?
there's TONS of info at:
http://www.php.net/manual/en/features.file-upload.php
-aaron
At 1:10 PM -0800 3/9/01, Jerry Lake wrote:
>Anyone know where I can find a file upload
>tutorial ?
>
>Jerry Lake- [EMAIL PROTECTED]
>Web Designer
>Europa Co
At 1:42 PM -0500 3/9/01, Mike wrote:
>Whats wrong with this?
>$MaxID="select Max($Table.'ID') from $Table";
I assume you want to do:
$MaxID="select Max($TableID) from $Table";
as long as you don't have a variable called $TableID that is. if you
do then do:
$MaxID="select Max(".$Table."ID) f
I use Virisign PayFlow Pro and it's so easy. ust the built in
functions or just call parse_str() on the output and you're set.
-aaron
At 5:27 PM -0500 3/9/01, Rick St Jean wrote:
>How to people typically integrate payment processors with PHP?
>And what processors are used most often? I know t
rocessor then
>you buy some driver from them.
>
>
>At 02:28 PM 3/9/01 -0800, Aaron Tuller wrote:
>>I use Virisign PayFlow Pro and it's so easy. ust the built in
>>functions or just call parse_str() on the output and you're set.
>>
>>-aaron
>>
&g
use Zend Encoder.
-aaron
At 8:51 PM -0300 3/9/01, Marco Aurélio wrote:
>Hello!
>
>
>My case:
>
>My users have ftp access to their directories, then if I put my scripts
>inside it, they will br able to stole!
>
>Is possible to use directory alias and forcetype on Apache to protect my
>scripts or
At 12:27 AM -0600 3/10/01, Jeffrey Greer wrote:
>With paypal's business account there are no credit checks and the rate
>is 2.2% for cc payments.
except you can't really integrate it into your web site. who knows
how long paypal will be around. it shoes up as paypal on people's
credit card st
At 11:19 PM +0100 3/12/01, Joachim Maier wrote:
>To create the HTML-cache page i need to build the whole HTML-page content in
>memory, instead of echoing it back to the user's browser, and finally write
>it to disk. That means, i have to write all HTML in php-code. I can't just
>embed php-parts in
At 2:32 PM -0800 3/12/01, Mark Maggelet wrote:
>I'm leaning towards verisign/payflow pro. has anyone had trouble with
>these guys?
no. it's good stuff. Verisign is not going out of business anytime
soon. and it's flat rate. you can't beat it.
-aaron
--
PHP General Mailing List (http://www
what you say.
>But i couldn't find any buffering functions in the online docs.
>
>Could you please gimme a pointer on where i can find these functions
>and what's their name. Are they available in php3?
>
>Thanks a lot,
>Joe
>
>-Ursprungliche Nachricht-
>V
anyone run into this?
I was checking my error log and the entire post-PHP contents of a
page was in my error log. I checked the access log and the page was
requested but the client got back 0 bytes. very strange.
It looks like it happened a few times.
I'm using Apache 1.3.14 on RH 7.0 with
you don't have to use fwrite() if you use output buffering.
just ob_start(), ob_get_contents(), and ob_end_clean()
and leave your code how it is.
-aaron
At 1:02 AM -0600 3/16/01, Richard Lynch wrote:
>You can use PHP to write out the HTML to a file, instead of using
>echo/print.
>
>You'll have
or you can use Apache to ForceType bar to use PHP.
then just write a generic URL parsing script and you're done.
if you want it for all of your URL's, make DocumentRoot a PHP script.
you might tricky problems with images and other non-script files, but
that's ok because you can just check for
put your defines in an include that all your pages include.
-aaron
At 2:28 PM -0700 3/16/01, Johnson, Kirk wrote:
>Can a defined()'d CONSTANT be made persistent between pages? According to my
>experiments, the answer is "no". Am I missing something?
>
>TIA
>
>Kirk
>
>--
>PHP General Mailing List
At 1:16 AM + 4/19/01, Philip Olson wrote:
>
>
>
don't do that, at least I think it will recursively traverse the
$GLOBALS arrary (since $GLOBALS itself is $GLOBAL) and you will never
end.
-aaron
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL P
>At 12:12 AM +0300 5/1/01, Zeev Suraski wrote:
>- Implemented high-performance zlib-based output compression - see
> zlib.output_compression INI directive. (Zeev)
is this different from ob_gzhandler()? if so, how is it different? thanks.
-aaron
--
PHP General Mailing List (http://www.php.n
ummm, not to be insensitive but that error told you everything you
want to know.
passing by reference at call time is putting an & in front of a
variable. if you want to make it work, either modify your script to
not need call time pass by reference (you can change the function
declaration t
super easy.
$path_array = explode('/', $REQUEST_URI);
$numPathElements = count($path_array);
then loop through the elements and do what you need, you might need
to use strtok() if you're expecting slashes in your arguments.
-aaron
At 8:58 PM -0500 3/23/01, Jaxon wrote:
>how about parsing a ur
see:
http://www.php.net/manual/en/function.serialize.php
you could store a unique id in your URL that refers to the ow in your
DB where the array is stored.
-aaron
At 9:04 PM -0500 3/23/01, Jaxon wrote:
>can an array be stored in a database field?
>E.g. make a few runtime settings for a page,
$module = "mod_news";
echo $module();
i think that's it.
or:
$module = "mod_news()";
eval("echo ".$module);
I think the former is faster.
-aaron
At 7:16 PM -0500 3/24/01, Jaxon wrote:
>hi all, I'm trying to change which function is called at runtime:
>
>e.g.
>page1.php:
>
>include "functio
why can't you str_replace the $QUERY_STRING frm the $REQUEST_URI?
give an example of what you are trying to do? (I'm sorry if you did
and I missed it)
-aaron
At 9:06 PM -0500 3/25/01, Jaxon wrote:
>K, read em all, and understood more than I thought I :)
>
>
>I still don't see how you can 'san
umm, no, you assigned $string to the output and you flushed it and
you echoed $string. maybe you mean ob_end_clean()?
-aaron
At 12:22 AM -0300 4/6/01, Christian Dechery wrote:
>take a look at this small code:
>
>ob_start();
>echo "something";
>echo "something else";
>$string=ob_get_contents();
why doesn't this work?
$parentClass = get_parent_class($this);
parent::{$parentClass}();
I get a parse error. can I not use variable functions with the "::" syntax?
I tried eval() and it loses the context.
thanks for the help!
-aaron
--
PHP General Mailing List (http://www.php.net/)
To uns
ok, I == dumb. this works:
$parentClass = get_parent_class($this);
eval("$parentClass::$parentClass();");
still, I think I should be able to do what I wrote below.
-aaron
At 8:05 PM -0800 2/6/01, Aaron Tuller wrote:
>why doesn't this work?
>
>$parentClass = get_pare
At 12:13 PM +0100 2/7/01, Christian Reiniger wrote:
>On Wednesday 07 February 2001 05:14, Aaron Tuller wrote:
> > $parentClass = get_parent_class($this);
>> eval("$parentClass::$parentClass();");
>>
>> still, I think I should be able to do what I wrote be
HTTPS is set to "on", at least on my Apache when SSL is enabled.
it's undefined when it's not.
this is what I would do (untested code below):
function UsingHTTPS()
{
$HTTPS = getenv("HTTPS");
return ($HTTPS == "on");
}
function UsingHTTP() // might be useful?
{
return
30 matches
Mail list logo