Rasmus
On Fri, 22 Mar 2002, Ashley M. Kirchner wrote:
> Rasmus Lerdorf wrote:
>
> > http://www.php.net/manual/en/function.mysql-affected-rows.php
>
> Thanks Rasmus. I did try that as well, same result. If I don't bother with the
> $result, everything's fin
http://www.php.net/manual/en/function.mysql-affected-rows.php
On Fri, 22 Mar 2002, Ashley M. Kirchner wrote:
>
> After a bit of research:
>
> --
> Rick Emery wrote:
>
> > $result = mysql_query(.)'
> > mysql_num_rows($result)
>
> Hrm, this is resulting in:
>
> Warning: Supp
So add it those.
On Fri, 22 Mar 2002, James Taylor wrote:
> The PHP FAQ isn't really specific when it comes to most problems. The 'code'
> section has like 10 questions, the rest of the FAQ is mainly how to
> download/compile, what do these PHP errors mean, migration, etc. A FAQ that
> had answ
I just don't see what the difference is. This is a PHP mailing list which
supposedly gets questions about PHP. Why would the PHP FAQ not be the
right place for this?
-Rasmus
On Fri, 22 Mar 2002, James Taylor wrote:
> You are correct sir. The purpose of the FAQ would be so that, like I said,
That's a FAQ
(did you try the obvious? http://php.net/faq)
On Fri, 22 Mar 2002, James Taylor wrote:
> Has anyone given any thought to possibly maintaining a FAQ containing the
> answers to the most commonly asked PHP questions on this list? I notice
> duplicates roll through every couple of da
> text password : f0rget123
> encrypted password: òOú«#7Fá73¯
Uh, that's not md5 at all. By definition md5 is 32 characters.
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Show us an example Perl one. Chances are you can get the PHP crypt()
function to do the right thing by feeding it the correct SALT.
-Rasmus
On Fri, 22 Mar 2002, R'twick Niceorgaw wrote:
> Hi all,
> I'm converting a site written in perl to php. It has a member section which
> is password protec
Well, a stray define('myvar','foo') somewhere would make a mess of that.
It is safer to use $myarray['myvar']. Inside a quoted string you of
course shouldn't use the ''
-Rasmus
On Thu, 21 Mar 2002, Kevin Stone wrote:
> The single quotes in $_SESSION['myvar'] are not necessary. You're
> readin
So either turn off the DirectoryIndex or put an index.html in the dir.
On Fri, 22 Mar 2002, Jason Wong wrote:
> On Friday 22 March 2002 00:54, Erik Price wrote:
> > Isn't it just a matter of setting the permissions? apache can't have
> > read access to this directory, that's all.
>
>
> No, he d
Are you calling session_start() on the subsequent pages you want to be
part of the session?
On Thu, 21 Mar 2002, Randy Phillips wrote:
> Hi,
>
> I have tried every example of creating a session variable I could find on
> php.net and have had the same results with all of them. The session
> varia
Think about what you are doing a bit here. You want to store the pictures
outside of your document_root, yet you want to reference them directly
from a web page. That makes absolutely no sense. By definition,
something that can be accessed directly through your web server must be
accessible fro
> On 21 Mar 2002, at 8:03, Rasmus Lerdorf wrote:
>
> > This Faction variable comes from the browser.
>
> Thanks for answering Rasmus.
>
> But is it possible to clear this variable. Is this what is called a
> global variable? If not, does this means that the scope of POS
> Please note, there are many German PHP developers. Most of them are
> not so stupid ...
Oh, I don't know about that. I have met a bunch of them... ;)
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Step 1 - upgrade to a recent version. Then report back.
-Rasmus
On Thu, 21 Mar 2002, Sam Jordan wrote:
> Hello all
>
> I'm working for an ISP and some weeks ago we noticed a problem
> with PHP we never had before. Since then quite often the PHP
> code is not interpreted, but displayed as plain
> The above speudo script work fine and when the user click 'Add to
> Data', the data is added to my database. Howver, the
> session_unregister and session_destroy do not clear the variable
> Faction and its value. Therefore if the user click Reload on the
> browser, the data gets added again.
>
You can do exactly the same thing with PHP. The 205 would show up in the
$PATH_INFO variable.
-Rasmus
On Thu, 21 Mar 2002, Kelly Meeks wrote:
> Does anyone have any ideas/info (or can you point me to) regarding how to make
>dynamic php content more search engine friendly (losing the '?' when
'none' comes from a failed file upload. Figure out why the file upload is
not working. Did you perhaps turn file uploads off in your php.ini file?
-Rasmus
On Wed, 20 Mar 2002, Rick wrote:
> We have an application that used PHP's FTP function to upload files. Now it
> worked until we upgraded
Think you could post a base64_encode() version of that string?
On Tue, 19 Mar 2002, Gil Disatnik wrote:
> Of course.
> Following is a part Hebrew part English text I have in my phorum, it
> probably won't look good on a system without Hebrew support.
>
> String on a file:
> --->snip<
Well, how are you putting it into the string?
On Tue, 19 Mar 2002, Gil Disatnik wrote:
> Hello there,
>
> I have a 98 characters string (including spaces), wc -c says it's 98
> characters and a file containing this string is 98 bytes as well.
>
> For some reason - strlen() says it's more... it s
$new = preg_replace('/[^a-z]/i','',$old);
Note that this will also get rid of the - in this case since you
specifically asked for something that got rid of everything not a-z
-Rasmus
On Mon, 18 Mar 2002, andy wrote:
> Hi there,
>
> I am still searching for a function which is replacing all cha
he htpassword is generating $apr1$ hashes.
>
> Where is the gadget that needs fixed?
>
> David
>
> Rasmus Lerdorf wrote:
>
> >The PHP one supports that if your OS does.
> >
> >On Thu, 14 Mar 2002, David Ford wrote:
> >
> >>Does anyone have a cr
The PHP one supports that if your OS does.
On Thu, 14 Mar 2002, David Ford wrote:
> Does anyone have a crypt() function that can use the $apr1$ prefixed
> salt that apache's htpasswd uses?
>
> David
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.p
Nope, not with Apache-1.3. Apache 2.0 will have a solution to this. Or
you can run multiple instances of Apache behind a Squid reverse proxy with
Squidguard redirecting requests to the appropriate port.
-Rasmus
On Thu, 14 Mar 2002, Pablo Murillo wrote:
> Hi
>
> I have a machine running :
> -
You can't put $a[][] inside a qouted string like that. Either use
${a[][]} or put it outside like this:
Print(" ".$aOptions[1][1]."\n");
-Rasmus
On Thu, 14 Mar 2002, Mauricio Cuenca wrote:
> Hello,
>
> I've built a function that receives an array as an argument to create an
> HTML drop-do
> Please take a look at the script below.
> If i want to show an image it doesnt work if it's under an if statement.
> Why in this case?
>
> $feedb=0;
> if($feedb==0){ echo "";}
> echo "";
> ?>
> How can i solve this problem?
By spelling src correctly.
-Rasmus
--
>UNIX_TIMESTAMP(2002-03-21 08:30:00) and
>mktime(2002,03,21,08,30,00) equal or not?
Careful, 08 != 8
A leading 0 indicates an octal number in PHP.
Also, you have the arguments to mktime() completely messed up. It is
hour, minute, second, month, day, year. 2002 is a strange-loo
Just do the obvious:
$rand = rand(33,111);
$num = ($rand>90) ? $rand+35 : $rand;
On Wed, 13 Mar 2002, Jeff Sittler wrote:
> I am wanting to use rand() to generate a number between 33-90 OR 125-146.
> Is there a way to do this? I don't want any numbers before 33 or between
> 91-124 or
> echo '';
First of all, $_POST will only work in PHP 4.1.x so make sure you are
running a recent version. And second, I bet you mean $_POST['inp'] there.
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
references
-Rasmus
On Wed, 13 Mar 2002, Hunter, Ray wrote:
> Where is some good documentation on how $GLOBALS works and what is really
> going on in the background?
>
>
> Thank you,
>
> Ray Hunter
> Firmware Engineer
>
> ENTERASYS NETWORKS
>
>
> -Ori
I don't understand why you think it is illogical. How else would you
dereference a multi-dimensional array?
On Wed, 13 Mar 2002, Richard Davey wrote:
> "Mike Ford" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > $GLOBALS['mtxt'][1]
>
> Fantastic :)
>
> Th
$output = preg_replace('/\s/','',$input);
On Mon, 11 Mar 2002, Lee P Reilly wrote:
> Can somebody tell me if there is a function that will remove *all*
> whitespace (\n, \r, \t, \w, etc) from a string i.e. from the beginning,
> the end, and the middle?. Something like chop(), trim()?
>
> e.g. in
The book will be coming out. I have seen the galleys and the appendices
have gone in.
-Rasmus
On Fri, 8 Mar 2002, DL Neil wrote:
> Hi Erik,
>
> > > Rasmus/others,
> > >
> > > O'Reilly are advertising the imminent release (Mar 2002) of
> "Programming
> > > PHP" (http://www.oreilly.com/catal
There is no such feature.
On Mon, 4 Mar 2002, Renato Lins wrote:
> Sorry, I may not haven been clear.
>
> What should I do to include from a safe area (/myuser/safe) when I have
> open_basedir set to other path (/myuser/public_html) ?
>
> Rasmus Lerdorf wrote:
>
> >
--with-apache builds the static library version of PHP which is linked
into Apache. If you use this switch you need to recompile Apache as well
which you haven't done. Please read the INSTALL file that came with PHP.
-Rasmus
On Mon, 4 Mar 2002, James Taylor wrote:
> I'm trying to compile 4.1.
Well, what is the error?
On Mon, 4 Mar 2002, Sebastian Wenleder wrote:
> I am having the same problem, I can't compile the latest php-cvs with
> gd support on Linux. It worked until last week or so.
>
> Sebastian
>
> At 8:46 Uhr -0800 04.03.2002, Rasmus Lerdorf wrote:
&
Which OS? If a Linux distro, are you sure you have both libpng and
libpng-devel packages installed? And does your configure script detect
PNG support?
On Mon, 4 Mar 2002, Alex Bloor wrote:
> Hi,
>
> Thanks for reading this message. I am having great difficulty recompiling
> php 4.1.2 + apache
open_basedir doesn't take a list of paths.
On Mon, 4 Mar 2002, Renato Lins wrote:
> Some one can help me. Why this is not working ?
>
>
>
> # apache conf
>
> php_admin_flag safe_mode on
> php_admin_value safe_mode_include_dir "/myuser/safe/"
> php_admin_value doc_root "/myuser/public_html/"
Do a phpinfo() and check to see if you perhaps have a cookie with the
name "id" set with the value "1". If your look at variables_order in your
php.ini file, you will see that cookie data will override get-method data.
To force a read from the GET data, use $_GET['id'] instead of $id.
-Rasmus
Which version of PHP? I just tested it and it works just fine for me.
How exactly do you know the script is not finishing? Try a test like
this:
\n";
flush();
fputs($fp,"Line $i\n");
fflush($fp);
sleep(1);
}
?>
Load up this file. You should see it start wri
Check that register_globals = On in your php.ini file.
On Sun, 3 Mar 2002, cyberskydive wrote:
> yayy i had my virtual server upgraded to php 4.1.2!
>
> oh wait.. nothings F#*&ing working now!
>
> a simple dropdown menu- leading to a page containing:
>
> header("location:$location");
> exit
Well, add this and tell us what it says:
if(!$cursor) echo odbc_error($db).": ".odbc_errormsg($db);
right after that odbc_exec() call.
*always check for errors - and when you get one, show it!*
-Rasmus
On Sat, 2 Mar 2002, Dr. Shim wrote:
> I've tried, and tried. Reread, and reread. I can't a
I don't see how this can be a PHP problem. If you say that a similar
script written in Perl doesn't cause this, then simply compare the output
of the Perl one to the PHP one and make sure they are sending the same
thing. If your IE browser gets confused with the PHP version then it must
be sendi
I will be setting one up next week so should have more for you then. But
there really isn't much for PHP to do here. Basically you need something
like camstream to regularly create an image somewhere and then a little
meta-refresh page that reloads that image. You are unlikely to be able to
str
> I have a site that uses a $HTTP_POST_VARS['var_name'],
> $HTTP_GET_VARS['var_name'] and $HTTP_SERVER_VARS['var_name'] all over the
> place (there is more PHP in there than flat HTML :) and more than a handful
> of references to $HTTP_USER_AGENT, $PHP_AUTH_*, $PHP_SELF, etc
> Is there anythin
You will always be able to turn register_globals on. Completely removing
that feature would make it impossible to ever run a lot of code written
for PHP. Some will argue that this is a good thing, but ultimately it is
not for us to say.
When you turn register_globals on, $HTTP_* do not disappea
> Anyone have any ideas or similar problems?
I just built a server yesterday for IMP. My PHP configure line was:
'./configure' \
'--with-pdflib=/usr/local' \
'--with-gd=/home/rasmus/gd-2.0.1' \
'--with-jpeg-dir=/usr' \
'--with-freetype-dir=/usr' \
'--enable-gd-native-ttf' \
'--enable-gd-imgstrt
> > Using mod_perl I can write a module for any phase that Apache
> > goes through while handling a request. Based upon any variables I
> > want, I can tell Apache to have my module handle one of those
> > phases. So when you request this url for example:
> >
> > http://www.mydomain.com/joe.html
>
No, that is not a good idea. It is potentially much worse to allow people
to execute include files out of context than to merely let them see them.
The correct way to handle this is to either put your include files outside
the document_root, or add an Apache rule to block any direct access to
.in
The easiest way to make this work is to use open_basedir settings instead
of safe_mode. Safe_mode is specifically created to prevent you from doing
what you are trying to do.
-Rasmus
On Fri, 1 Mar 2002, Mika Lindqvist wrote:
> I and my www space provider have fought with a problem. All
> files
You never put "lib" in a PHP configure flag. Read the INSTALL file
carefully, please. It should just be --with-gd=/usr since it also needs
to find the gd header files which are nowhere under /usr/lib
On Fri, 1 Mar 2002, Hendrik wrote:
> hi there,
>
> i tried to compile php with GD2 support and
So download 4.0.6 and patch that. Or walk through the patch manually and
apply the relevant bits to the rfc1867.c file.
On Thu, 28 Feb 2002, Steven Deaton wrote:
> I'm trying to use the file upload patch..on 4.0.4pl1
> but it only says its for 4.0.6.so will it not work on 4.0.4pl1?
$leading_digits = '0' . $leading_digits;
although what you probably want is strpad() or sprintf()
On Thu, 28 Feb 2002, Andy wrote:
> Hi guys,
>
> is there a possibility to add a string in front of a veriable like the .=
> commands adds it to the end? I would like to create a 6 digit number out
Not really, no.
On Wed, 27 Feb 2002, Henning Sprang wrote:
> hy all,
> is there an easy way to compile php with all possible extension and
> feature options, as far as they don't crash when used together, and,
> even better as far as the libs are available on the system?
>
>
> tia,
> henning
>
>
These are all HTTP request headers. See the HTTP spec for details. They
have nothing to do with PHP.
-Rasmus
On Tue, 26 Feb 2002 [EMAIL PROTECTED] wrote:
> Hi all,
>
> I'm debugging a php script that is using several environmental vars that I'm not
>familiar with:
> HTTP_VIA
> HTTP_CONNECTIO
See http://www.php.net/~rasmus/gd.html
On Sun, 24 Feb 2002, Andy wrote:
> Hi there,
>
> I am a Linux newbie and I would reallly like to get this thing working on
> RH7.2 But it does not work out!
>
> A "normal" PHP4.1.1 installation works. But I need gd2.0 and JPEG support.
> Thats where my know
Well, if $submit_happening is set to 0, "0" or false then
if($submit_happening) will evaluate to false while
if(isset($submit_happening)) will evaluate to true
As the documentation (please read http://www.php.net/isset) isset()
returns true if the variable exists and false if it doesn't.
-Rasmu
It does only fix the anti-aliasing problem. ImageFtText() works fine.
On Fri, 22 Feb 2002, Ernie Dipko wrote:
> Do I need Wes's patch for gdImageStringFTEX to work??? I was mistaken, I
> thought the patch only fixed the anti-aliasing problem?
>
>
> "Rasmus Lerdorf"
> From the list, the APR API is done. So there should be no further issues
> getting it to work.(As in, you should no longer have to jump through
> hoops every month or release, just to keep up with apr).
Well, this is simply not true. Things are still changing.
-Rasmus
--
PHP General Mailin
>
>
>
> INCLUDEDIRS=-I. -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/i
> nclude/X11 -I/usr/X11R6/include/X11
>
> LIBDIRS=-L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib -L/usr/lib
>
>
>
> Did I miss something...Is my INCLUDEDIRS correct for the
You can't redirect after sending output unless you use Javascript or some
other weirdness. Redirections are done before any output.
-Rasmus
On Fri, 22 Feb 2002, Michael P. Carel wrote:
> Hi ,
>
> I have a problem in using the Header() function. I want to automatically
> redirect the page into
You can sort of fake it using the call handler of the overload extension.
-Rasmus
On Thu, 21 Feb 2002, Mika Tuupola wrote:
>
> Is there a way to create/add methods runtime to a class via
> constructor or static factory method? I know it is possible
> to create functions runtim
It won't work simply because Apache 2.0 is very much in a state of flux.
The API's change constantly. We are many months away from any sort of
stable Apache2+PHP system. Unless you are a developer and can help fix
problems, you are much better off sticking with Apache 1.3.x and not
bugging the d
What you are looking for is called a "Reverse Proxy". Do some google
searches on that term.
-Rasmus
> I have been trying to figure this out for a week now, with no luck. Posts
> to [EMAIL PROTECTED] have gotten no response. Anyone here happen to
> know how to do this?
>
> I understand that Ap
Well, in this particular case it really makes no difference as
PHP_AUTH_* is data that comes from the user anyway. Whether it is sent in
the GET-method data or in the Authenticate header is completely irrelevant
and turning register_globals off does not make any difference whatsoever.
The reason
Are you trying to draw TTF fonts on a truecolor image? If so, GD-2.0.1
has a bug which turns of anti-aliasing of the fonts in that case.
GD-2.0.2 will have the fix. For now, try it with a non-truecolor image
and I bet the font will look just fine.
You can also ask Wes Furlong nicely for the pat
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
> 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 s
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
> Sorry, I forgot to mention that I would be willing to get the
> information off either METAR or any other source that provides the raw
> data for the forecasts. I am in australia and the Bureau of Meteorology
> provides annoymous ftp access to a raw data text file for this
> information as well.
This will give you the difference between the two dates in seconds:
$diff = strtotime(str_replace('-','/',$str1)) - strtotime(str_replace('-','/',$str));
-Rasmus
On Wed, 20 Feb 2002, Uma Shankari T. wrote:
>
>
>
> Hello,
>
> How can i find out the difference between two dates.
>
> I am h
This creates all the variables you asked for and also prints each one in a
column of a table.
foreach($row as $key=>$val) {
$$key = $val;
echo "$val";
}
-Rasmus
On Tue, 19 Feb 2002, Baloo :0) wrote:
> How can I assign automatically all fields of a database to a variable of
> the same n
ImageColorsForIndex() and ImageColorAt()
But you will PHP 4.1 for these functions to work with TrueColor images.
-Rasmus
On Tue, 19 Feb 2002, Baumann Reto wrote:
> Hi there
>
>
> I have to get an RGB value of a specified pixel in an JPEG image. This image
> uses 24bit per pixel (so is true-co
> Rodrigo,
> I've been struggling with this for some time, so here goes:
>
> The php4 builds do not support .gif files, you'll need to change your files
> to .jpg or .png format, or use php3 (I can't change to php3).
This is not true. GIF support depends solely on the version of the GD
library
http://php.net/substr
$rest = substr("abcdef", 0, -1); // returns "abcde"
-Rasmus
On Thu, 14 Feb 2002, marcbey wrote:
> hello php guys,
>
> how can i delete the last char in a string?
>
> thanx
>
>
> --
> ---
> magic garden GmbH - Agentu
> On Fri, Feb 01, 2002 at 09:14:24AM -0800, Rasmus Lerdorf wrote:
> > > a) if Apache 2 is a single-process server (as opposed to Apache 1.x which
> > > forks a new process for a new request)
> >
> > It is a hybrid server which can be anything from one to the oth
> a) if Apache 2 is a single-process server (as opposed to Apache 1.x which
> forks a new process for a new request)
It is a hybrid server which can be anything from one to the other.
> b) if PHP will work, or does work, with Apache 2 in this mode
It works today.
> c) how database connection p
You can add modules on the fly today using dl() or semi-on-the-fly by
adding them to php.ini and just restarting the web server. You don't need
to recompile php to add any of these modules.
-Rasmus
On Thu, 31 Jan 2002, Kunal Jhunjhunwala wrote:
> Hey,
> I was wondering, if it would be possible
> can anone show me a good example how to use this function?
> I'm not really sure how it works
it only makes sense to use if your turn off user aborts.
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAI
google for gd-1.8.3gif
On Wed, 30 Jan 2002, Ed Lazor wrote:
> I'm trying to play with the gif functions this program supports. I'm
> having trouble finding it. Could someone e-mail it to me?
>
> Thanks,
>
> -Ed
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-
Try leaving off the --with-expat-dir switch completely. PHP comes with
its own expat.
On Fri, 25 Jan 2002, Ziying Sherwin wrote:
>
> We tried to install php 4.1.1 with wddx support on our Solaris 2.8 with
> gcc 3.0. We installed expat library 1.2 (download from
> http://www.jclark.com/xml/expat
http://www.php.net/manual/en/features.file-upload.php
$HTTP_POST_FILES or $_FILES
-Rasmus
On Fri, 25 Jan 2002, Gonzalez, Zara E wrote:
> To add on to this question, I have an upload script that I use on my site and
> now that I have registered globals off, I can't seem to find where the
> auto
PHP does not support having multiple methods with the same name. Write a
single method and check the number of args in that.
-Rasmus
On Thu, 24 Jan 2002, Marc Swanson wrote:
> I'm not sure if this is a known feature in php.. but the following code will
> generate this warning: Warning: Missin
I think the real answer here is to treat these as read-only arrays. ie.
never use them on the left side of the '=' and you will never run into
problems. Or if you do, be consistent and use the same array all the
time. You are writing your code with the assumption that these two arrays
are the s
That's how databases work. There is no implied ordering internally. An
order is only applied if you add an "order by" clause on a select.
-Rasmus
On Thu, 24 Jan 2002, Phil Schwarzmann wrote:
> When Im adding rows into my MySQL database using PHP, it seems to put
> them in random places in the
> while (list($opid, $ppid, $amount, $pname) = mysql_fetch_row($res)) {
> $eval = '$temp["'.$pname.'"] = $temp["'.$pname.'"] + '.$amount.';';
> eval($eval);
> $i++;
Whoa... Why not simply:
$temp[$pname] += $amount;
??
-Rasmus
--
PHP General M
> On Wednesday, January 16, 2002, at 08:04 PM, Rasmus Lerdorf wrote:
>
> > No, it is safer to block access to .inc files with an httpd.conf rule.
> > Allowing people to execute files that were meant to be included out of
> > context could end up being much more dang
> On Thu, 17 Jan 2002, [EMAIL PROTECTED] wrote:
>
> > I've seen a number of sites for example that didn't have the .inc extension
>registered,
> > include() doesn't care about that, but if your includes are under the document
>root of your
> > website (that happens a lot too, i don't know why ?
Fix your sendmail flags in your php.ini file to just queue up the mail.
On Wed, 16 Jan 2002, Ben Sinclair wrote:
> Is there a way to shorten the timeout for the mail() function? Currently it
> will wait too long when it is unable to send mail, causing the browser to
> appear to hang.
>
> --
> Be
> You can see where I'm going with this.
> Experiments of mine with using array elements within SQL statements
> brought some of my questioning to the list just last week. I found that
> the following did not work:
>
> $sql = "SELECT table.column FROM table WHERE criteria LIKE
> $myrow['variable'
> If you are careful, you can defend against Scenario 1 with register_globals
> on, but you need to understand all the stuff that PHP is doing with the
> data, and that is a fairly complicated picture. Your application can still
> work even if you don't understand that picture, and that is how uns
This has been discussed a number of times here. Apache will always inherit
the environment of the user that starts it. You should start it with a
clean environment. ie. add "env -i" to whatever script starts your httpd
server.
-Rasmus
On Tue, 15 Jan 2002, Michael Sims wrote:
> This may be more
Redhat's apxs was broken years ago in RH 6.0 or some version like that.
But since then the apxs from the apache-devel package has been fine.
-Rasmus
On Tue, 15 Jan 2002, Simon Ritchie wrote:
> > I'm trying to compile php 4.1.1 and when it gets to the
> > --with-apxs option it errors out with th
Grab the latest version of PHP. There is a new php.ini directive called
always_populate_raw_post_data
which when turned on forces all post data to be available through the
$HTTP_RAW_POST_DATA variable.
-Rasmus
On Tue, 15 Jan 2002, Daniel C. Sobral wrote:
> I have a little problem I have been t
You don't mention which OS you are on, but usually apxs is found in the
apache-devel package. You probably didn't install that.
-Rasmus
On Mon, 14 Jan 2002, Jay Paulson wrote:
> I'm trying to compile php 4.1.1 and when it gets to the --with-apxs option it errors
>out with the following:
>
> S
This doesn't appear to be a PHP question. Are you sure you are on the
right list?
On Sun, 13 Jan 2002, sundogcurt wrote:
> Hi! I'm storing a date in this format :
>
> 2002-01-13 11:08:40
> -mm-dd hh:mm:ss
>
> This is great because it gives me the date and the time, which I need.
> I want to
You call it broken, we call it finally making them POSIX-compliant.
Whatever floats your boat.
-Rasmus
On Mon, 14 Jan 2002, Manuel Lemos wrote:
> Hello,
>
> Alain Samoun wrote:
> >
> > Manuel:
> > What is broken with strtok() since php4.06? So far my code that use it seems
> > to work ok with P
copies are faster if you don't change the copied data since no copy is
actually done. It is a shallow copy also know as a copy-on-write so you
should just pass a copy in your case, I bet.
-Rasmus
On Mon, 14 Jan 2002, Tino Didriksen wrote:
> Is it just me, or is working with references slow?
>
ld consider using SQL commands in
>favor of implementing
> identical functionality in PHP (and possibly in some situations, vice-versa)?
>
> Regards,
> =dn
>
>
>
> - Original Message -
> From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
> To: "Sander Pete
MySQL has plenty of functions to return dates to you in any format you
specify. Please read
http://mysql.com/documentation/mysql/bychapter/manual_Reference.html#Date_and_time_functions
and pay special attention to the DATE_FORMAT() function.
-Rasmus
On Sun, 13 Jan 2002, Sander Peters wrote:
> I am experiencing a lot of Signal 11's when I compile PHP 4.1.1 into my
> Apache server on my FreeBSD 4.5-RC machine. If I compile the -exact- same
> Apache configuration with PHP 4.0.6, it works fine. As soon as I switch to
> 4.1.1, it causes Signal 11's (and sometimes 10's) when I load certa
901 - 1000 of 1648 matches
Mail list logo