Yes, you can do that and yes that's how you do it :)
Danny.
- Original Message -
From: Jay [EMAIL PROTECTED]
To: Php-General (E-mail) [EMAIL PROTECTED]
Sent: Monday, June 10, 2002 5:17 PM
Subject: [PHP] OO Question
I was wondering can I create a new Object inside of a different
I ran into this problem too - but there is a conf directive to handle it now
(even on FreeBSD, which I use) -
http://httpd.apache.org/docs-2.0/mod/core.html#acceptpathinfo
Danny
- Original Message -
From: a.h.s.boy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 10, 2002 7:14
On Sunday 16 June 2002 12:46 am, Gerard Samuel wrote:
Im trying to make a dynamic printf().
By that I mean -
function this($foo, $bar)
{
if (strlen($bar) == '0')
{
print($foo);
}
else
{
printf($foo, $bar);
}
}
Now it works if there is one
On Sunday 16 June 2002 1:13 am, Gerard Samuel wrote:
check to see if $bar is an array and
feed the array to vprintf()
Wow, didn't even know that one existed! Might come in handy though :)
Danny.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I got that error once - turned out that I'd forgotten to compile the IMAP
lib with SSL support. Try recompiling your IMAP libs and then recompiling
everything else.
Danny.
FreeBSD 4.5/Apache 1.3.26/PHP4.2.1
- Original Message -
From: Rick Kukiela [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Try actually looking in the Apache2 manual -
http://httpd.apache.org/docs-2.0/mod/core.html#acceptpathinfo
HTH
Danny.
- Original Message -
From: Simon Grabowski [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, June 23, 2002 3:08 PM
Subject: [PHP] Problem with Apache2/PHP4.2.1
This article's been around for ages. I OO design wherever I think it'll make
the code more portable and extendable later on. From what I've seen, the
slow down is negligible rather than considerable.
But you write how you want to write and I'll write how I want to write.
HTH
Danny.
-
Actually, it's Netscape'sCrap, if you get specific :) Java's a totally
different kettle of crap.
Danny.
- Original Message -
From: Analysis Solutions [EMAIL PROTECTED]
To: PHP List [EMAIL PROTECTED]
Sent: Thursday, July 04, 2002 4:05 PM
Subject: Re: [PHP] Button can't see form!
And
Try this:
?php
function unixTime($time)
{
$year=substr($time,0,4);
$month=substr($time,4,2);
$day=substr($time,6,2);
$hour=substr($time,8,2);
$min=substr($time,10,2);
$sec=substr($time,12,2);
return strtotime($year/$month/$day $hour:$min:$sec);
}
$time1='2002070714';
You just knew there was a regexp version on the way, didn't you :)
Danny.
?php
function unixTime($time)
{
$time=preg_replace('/(.{4})(.{2})(.{2})(.{2})(.{2})(.{2})/','\\1/\\2/\\3
\\4:\\5:\\6',$time);
return strtotime($time);
}
$time1='2002070714';
$time2='2002070716';
header() simply sends response headers - I.e adds/replaces server headers -
it has no effect on request headers sent by the client.
If, for some reason, you want to alter the user-agent you've received from
the client (for testing maybe?) you can do this:
echo $_SERVER['HTTP_USER_AGENT'];
If read the earlier posts you'll find that this is the guy who was to thick
to unsubscribe himself this morning - he obviously still hasn't got it so
he's trying to get a lifetime ban.
So sad, so filtered :)
Danny.
- Original Message -
From: Rodolfo Gonzalez [EMAIL PROTECTED]
To: [EMAIL
Not sure - but i've heard that this works:
$mbox = imap_open ({localhost:995/pop3/tls/novalidate-cert}, user_id,
password);
So maybe it does, no promises though :)
HTH
Danny.
- Original Message -
From: Alexander Skwar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 09,
Who knows when they'll officially state that PHP runs on Apache2 - I've been
running it for a while now without much trouble (4.2.1 + 2.0.36/2.0.39) -
the only problem that I've really seen (though not been affected by) is that
multiple cookies seem to break - only the last cookie is set
- Original Message -
From: Mark Gallagher [EMAIL PROTECTED]
To: Ben Ramsey [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, July 10, 2002 10:14 AM
Subject: Re: [PHP]
??ØØ
The list really can be a
just sort($Lang);
A question: wouldn't it have been quicker to knock out a couple of test
files to see which is the right way?
HTH
Danny.
- Original Message -
From: vins [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 10, 2002 1:36 PM
Subject: [PHP] Now a Question for
The problem with this method is assuming the ~1 part. What if I have:
'My Directory'- MYDIRE~1
'My DirectoryForPics' - MYDIRE~2
Now if your path has 'My DirectoryForPics' it's going to translate that into
MYDIRE~1 which won't work.
HTH
Danny.
- Original Message -
From:
To set a session cookie (one that is deleted when the browser window is
closed) set a cookie without any expire date/time.
To delete a cookie set a cookie of the same name with an expire date in the
past.
HTH
Danny.
- Original Message -
From: Alexander Ross [EMAIL PROTECTED]
To:
Ah, that'll teach me to actually read the post next time, not just the code
:)
Danny.
- Original Message -
From: Michael Sims [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 10, 2002 2:02 PM
Subject: Re: [PHP] Dos Paths
On Wed, 10 Jul 2002 13:56:39 +0100, you wrote:
No, I just tested it myself - if you set a cookie with no expire date it
exists until the browser window is closed.
My code:
?php
if (!isset($_COOKIE['TestCookie']))
{
setcookie (TestCookie, FUD);
echo Just Set a cookie - reload the page;
}
else
{
echo Cookie is :
What version of PHP are you using? Have you got register_globals on? If
they're off you'll need to get the $sort variable by using
$HTTP_GET_VARS['sort'] (or $_GET['sort'] if you're using PHP4.1.0 or later)
You attachched the wrong file (html output instead of PHP source)
You really could do
You need to compile with GD2 if you want to use any of the 2.* functions in
PHP - phpinfo will say 'GD 2.0 or higher'
HTH
Danny.
- Original Message -
From: Kevin Waterson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 11, 2002 1:49 PM
Subject: [PHP] PHP 4.3.0-dev and gd
GD2 does have a compile time option which will re-enable support for writing
GIFs. AFAIK you're only legally allowed to enable it if you live outside of
the US/Canada.
HTH
Danny.
- Original Message -
From: Jason Reid [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Nick Oostveen [EMAIL
ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/
- Original Message -
From: Peter [EMAIL PROTECTED]
To: php_gen [EMAIL PROTECTED]
Sent: Wednesday, July 17, 2002 1:16 AM
Subject: [PHP] mcrypt
Howdy all..
does any one know of another place i can download a win32 ver of mcrypt
other than
I agree - nothing beats a good portfolio.
Danny.
- Original Message -
From: Miguel Cruz [EMAIL PROTECTED]
To: Martin Clifford [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, July 17, 2002 6:55 PM
Subject: Re: [PHP] Of Jobs and Certs
On Wed, 17 Jul 2002, Martin Clifford
Try using just '\n' not '\r\n' as notepad doesn't understand carriage
returns, hence the funny little square.
- Original Message -
From: Vincent Kruger [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 18, 2002 9:11 AM
Subject: Re: [PHP] Re: Binary Files :: They Keep Adding
Try building apache2 and modphp4 using the FreeBSD ports system - that's how
I compiled and it works fine here.
HTH
Danny.
Apache2.0.39/PHP4.2.2/FreeBSD4.6
- Original Message -
From: Chad Day [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 25, 2002 5:38 PM
Subject: [PHP]
Hi,
I recently had this problem and, after hours of hair pulling, found that it
seems to work best if you send
the words Content-Type and Content-Disposition in **lower case**. Not sure
why it has to be like that but it was the only way I found.
HTH,
Danny.
- Original Message -
From:
MySQL (I assume that's the database you're inserting into) requires dates to
be sent in -MM-DD format. You appear to be sending a unix timestamp.
Try:
date(Y-m-d,time()) // Sends a MySQL style date.
or even:
$SQL = INSERT INTO orders (Customer_Id, Order_Date) VALUES($CustID,NOW());
//
A third way could be to append .php onto those files too, giving .inc.php,
.class.php etc.
Danny.
There are two ways to counter this:
1) have the .inc files in a directory outside the scope of the webserver
directory.
2) set the webserver to treat .inc files as php files.
--
PHP
Firstly, I assume you mean Y-m-j H:i:s for the date format.
To get the difference between 2 time strings :
?php
// orginal time strings
$firstTime=2002-04-19 13:49:00;
$lastTime=2002-04-19 14:00:00;
// convert to unix timestamps
$firstTime=strtotime($firstTime);
Hi,
?php
function check_input($user_input, $min=0, $max=0, $text=false,
$number=false, $special=false, $default=)
{
$pattern=;
if ($text) $pattern.='a-zA-Z';
if ($number) $pattern.='0-9';
if ($special)
to represent it in the format of Days,Hours,Minutes,Seconds
how
would that work
Danny Shepherd [EMAIL PROTECTED] wrote in message
020e01c1e7a1$70098eb0$0200a8c0@dannys">news:020e01c1e7a1$70098eb0$0200a8c0@dannys...
Firstly, I assume you mean Y-m-j H:i:s for the date format.
Try:
if (!eregi('^[a-z_\-]{0,}$', $_POST['vpis_ime']))
echo wrong char;
That'll sort it for everything except [ and ], which I can't find any way of
checking for :-( Anyone else have any ideas?
HTH anyway.
Danny.
- Original Message -
From: Gregor Jaksa [EMAIL PROTECTED]
To: [EMAIL
Well, since you fail to mention which versions of PHP you were using before
and after the upgrade it's a little difficult to diagnose your problem.
You should really have checked the change log
(http://www.php.net/ChangeLog-4.php) before upgrading anyway (a lot changed
in the 4.0.x - 4.1.x
- Original Message -
From: David Russell [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 22, 2002 11:19 AM
Subject: [PHP] Database and files
I have a database. It receives from my users files - which could be word
documents, Adobe PDF files, text docs, anything...
I store
- Original Message -
From: Richard Archer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 22, 2002 11:40 AM
Subject: Re: [PHP] Database and files
At 11:25 AM +0100 22/4/02, Danny Shepherd wrote:
If you get multiple requests for files, expect the db to fall over very
Not played with them myself but you might want to take a look at the
system() and shell_exec() functions.
HTH
Danny.
- Original Message -
From: Gilles Nedostoupof [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 22, 2002 12:28 PM
Subject: [PHP] Daemon starting
Hi all,
I don't think the windwos version of PHP supports sockets.
use fsockopen instead. (http://uk.php.net/manual/en/function.fsockopen.php)
HTH
Danny.
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 22, 2002 1:59 PM
Subject: [PHP] Pb with
Hi,
Well you could take care of the backend of the system using PHP and feed the
output to a flash application, which updates every so often by re-requesting
the PHP page (this page is merely returning variables to flash).
Of course, if you know java then you'd probably want to take that
It will be really cool when we can do that (in PHP4.3) but until then you'll
have to make do with cURL (http://www.php.net/manual/en/ref.curl.php)
HTH
Danny.
- Original Message -
From: Bert Buckley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, May 11, 2002 12:07 AM
Subject:
Hi,
Yes, I have both 1.3.24 and 2.0.36 installed - both with the PHP4.2.0 mod
compiled. You simply compile and install both servers and the compile modphp
for each server (i.e. once with --with-apxs and once with --apxs2) abd
that's all there is to it.
I'm running FreeBSD 4.5 btw, but I don't
No, that's not a problem either!
snip from manual
Before ob_gzhandler() actually sends compressed data, it determines what
type of content encoding the browser will accept (gzip, deflate or none
at all) and will return it's output accordingly. All browsers are supported
since it's up to the
Well it works just fine for me :)
PHP 4.2.0 / Apache 2.0.36 / FreeBSD 4.5
DOM/XML enabled
libxml Version 2.4.21
HTML Support enabled
XPath Support enabled
XPointer Support enabled
As you can see, I'm using a later version of libxml than you are - maybe
that's the problem.
I am also forced to
Modem compression will only affect data between the modem and the ISP.
A point you don't appear to have considered is that by compressing at the
server a host can significantly reduce outgoing bandwidth (i.e. the stuff
they pay for) - the less you use, the less you pay. Compressing pages is
very
$_SERVER['HTTP_USER_AGENT']
That's the variable which holds the browser's user agent string (browser
name, version, platform etc);
You may also find this helpful
http://www.php.net/manual/en/function.get-browser.php
HTH
Danny.
- Original Message -
From: Diana Castillo [EMAIL
In my expierence you'll have much greater chance of sucess if you compile
with --with-sybase-ct :)
I just used --with-sybase-ct=/usr/local - I didn't bother with --with-mssql
or --with-sybase
Paticulars:
FreeBSD 4.5
PHP 4.2.0
FreeTDS 0.53
Of course, using this methods means you also have to
I think you're looking for phpMyAdmin and yes, it's very viable and PHP4
compatible.
http://www.phpwizard.net/projects/phpMyAdmin/
HTH
Danny.
- Original Message -
From: Erik Gilchrist [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 16, 2002 1:15 AM
Subject: [PHP]
My guess is that it's something to do with the =shared. In your phpinfo()
output, there should be a table about half way down which says
GetText Support enabled
When I compiled (bsd so it may be different for you) I
used --with-gettext=/usr/local/ the gettext binary is in /usr/local/bin and
Try using:
input type=checkbox id=list1 name=list1[] value=Education
onclick=addList() Education
input type=checkbox id=list1 name=list1[] value=Profession
onclick=addList() Profession
That's what I used when doing something pretty similar to you.
HTH
Danny.
- Original Message -
Checkout this FAQ - http://www.ejip.net/faq/postgresql_win_setup_faq.jsp
HTH
Danny.
- Original Message -
From: 1LT John W. Holmes [EMAIL PROTECTED]
To: Richard Lynch [EMAIL PROTECTED]; Hadi [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, July 29, 2002 2:24 PM
Subject: Re: [PHP]
Ok, here's how I do it:
1. User clicks the lost password page:
2. Email is sent to user's registered email address. Email contains a url to
the newpassword page and has a validation code. This validation code is also
stored in the userinfo table (it's the MD5 of current date + time + random
Hello All,
So, I've been using my own implementation of session handling which is
mainly storing the userinfo in a cookie (an array, serialised and signed)
but I'm starting to come around to the idea of storing this info on the
server and just passing a session key about - but I have a couple of
For release systems, the recommended setup is Apache 1.3.26 + PHP4.2.2
The developer systems, I'd go for (indeed have gone for) Apache 2.0.39 +
PHP4.2.2
HTH
Danny.
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 30, 2002 11:01 AM
Subject: [PHP]
Comments inline
- Original Message -
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: Danny Shepherd [EMAIL PROTECTED]
Cc: PHP-General [EMAIL PROTECTED]
Sent: Tuesday, July 30, 2002 11:24 AM
Subject: Re: [PHP] Sessions - Informed Opinions
Assuming that sessions are stored
- Original Message -
From: [EMAIL PROTECTED]
To: Danny Shepherd [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, July 30, 2002 11:30 AM
Subject: Re: [PHP] apache and php
Danny Shepherd wrote:
For release systems, the recommended setup is Apache 1.3.26 + PHP4.2.2
- Original Message -
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: Danny Shepherd [EMAIL PROTECTED]
Cc: PHP-General [EMAIL PROTECTED]
Sent: Tuesday, July 30, 2002 11:52 AM
Subject: Re: [PHP] Sessions - Informed Opinions
3 How can I get a count of currently active (I.e non expired
Hi,
Is it necessary to perform addslashes() on serialised data before inserting
it into a database?
Thanks,
Danny.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- Original Message -
From: 1LT John W. Holmes [EMAIL PROTECTED]
To: Danny Shepherd [EMAIL PROTECTED]; PHP-General
[EMAIL PROTECTED]
Sent: Tuesday, July 30, 2002 8:18 PM
Subject: Re: [PHP] Serialised Data DBs
Yes, it'd be really smart to. If any of the data in the serialized string
I think your actual error is much further up - the sapi appears because
you're building PHP as an Apache module.
The actual error will have a (kind of) English description - post that along
with your config options and a more detailed description of your setup and
maybe we can help.
Danny.
- Original Message -
From: Tech Support [EMAIL PROTECTED]
To: Danny Shepherd [EMAIL PROTECTED]
Sent: Tuesday, July 30, 2002 6:44 PM
Subject: Re: [PHP] Sessions - Informed Opinions
If you're on a shared system it's very easy for other users on your
machine
to read session data. All
- Original Message -
From: David Freeman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 30, 2002 6:09 AM
Subject: RE: [PHP] Re: Public Scripts in a commercial product
Yes, I am afraid that regarding GPL I have to agree with
Microsoft when they say it is a cancer.
On processing page (I.e the form's action page - where the stuff is entered
into the db) set another session var so that your app knows that the form
has been submitted, data entered etc. The actual form page should have some
extra logic at the top which checks for this extra session var,
This is generally caused by using POST as the form's methods. Try using GET
instead.
Danny.
- Original Message -
From: DonPro [EMAIL PROTECTED]
To: php list [EMAIL PROTECTED]
Sent: Thursday, August 01, 2002 3:57 PM
Subject: [PHP] Form asking to refresh when I hit the back button
Not
I think he means XML WebServices (probably using SOAP)
It's not too difficult, there are a few SOAP classes for PHP now, simply
send your SOAP encoded request to the server, via HTTP, and decode the SOAP
response that you get back.
There's also a SOAP module for PHP (alpha release atm) at
Just base64 encode the mcrypt output if the non printable chars bother you,
though I don't really see what the problem is, unless you're pushing the
output to a web page.
Danny.
- Original Message -
From: Randy Johnson [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, August 01,
Try:
?php
$XML = .?xml version='1.0' encoding='UTF-8'?ProductApple/Product;
echo $XML;
?
HTH
Danny.
- Original Message -
From: Scott Fletcher [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 01, 2002 5:03 PM
Subject: [PHP] Problem with ?xml inside the PHP code, due
Try setting the database field type to 'BLOB'
Danny.
- Original Message -
From: Randy Johnson [EMAIL PROTECTED]
To: Danny Shepherd [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, August 01, 2002 4:51 PM
Subject: Re: [PHP] mcrypt
I found that the some of the high ascii
Take a look at this directive :
http://www.php.net/manual/en/configuration.php#ini.open-basedir
Danny.
- Original Message -
From: Matt Babineau [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 02, 2002 2:04 PM
Subject: [PHP] PHP Hosting
If any PHP hosts are out there I
http://www.php.net/eval
- Original Message -
From: Alawi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, August 03, 2002 11:41 AM
Subject: [PHP] Include php code as variable
How can I Include my php code code as variable and excute it ?
--
PHP General Mailing List
Try,
list($test)=explode(' ',$address);
HTH
Danny
- Original Message -
From: webmaster [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 02, 2002 5:35 PM
Subject: [PHP] string questions
I know there has to be an easy way to do this, but I just can't find the
answer.
http://php.net/die
http://php.net/exit
Both will stop your code. Dead.
Danny.
- Original Message -
From: Ing. Rajesh Kumar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, August 03, 2002 3:50 PM
Subject: [PHP] what is equivalent to Response.End ?
Hi everybody
Can someone
try
\\1
- Original Message -
From: Phil Ewington [EMAIL PROTECTED]
To: PHP General [EMAIL PROTECTED]
Sent: Saturday, August 03, 2002 5:03 PM
Subject: [PHP] RegEx (back referencing)
Hi,
I am am writing a function to color code and indent JavaScript source
using
regular expressions
- not perfect, but a start.
Danny.
- Original Message -
From: Phil Ewington [EMAIL PROTECTED]
To: Danny Shepherd [EMAIL PROTECTED]
Sent: Saturday, August 03, 2002 5:52 PM
Subject: RE: [PHP] RegEx (back referencing)
\\1 outputs nothing at all wrapped in font tags and closing tags \ wrapped
PM
Subject: RE: [PHP] RegEx (back referencing)
Danny,
It still doesn't work, could this be a problem in 4.0.4pl1 ??
-Original Message-
From: Danny Shepherd [mailto:[EMAIL PROTECTED]]
Sent: 03 August 2002 18:11
To: [EMAIL PROTECTED]; PHP-General
Subject: Re: [PHP] RegEx
Ok, a very slightly modified version of your first attempt should work then
$fcontent = eregi_replace((/?)(scr[^]*), «font
color=maroon»\\0«/font», $fcontent);
Note the \\0 instead of \\1
HTH
Danny.
- Original Message -
From: Phil Ewington [EMAIL PROTECTED]
To: Danny Shepherd [EMAIL
So, go write JSP for someone then and stop bugging us.
- Original Message -
From: Acer [EMAIL PROTECTED]
To: Scott [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, August 03, 2002 10:48 PM
Subject: RE: [PHP] Re: Protect PHP coding
Scott wrote:
You're kidding, right? When was
Have you tried it on a non debug build?
Danny
- Original Message -
From: Marcello Lupo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 12, 2002 8:14 PM
Subject: [PHP] In version 4.2.1 ereg_replace break Apache
## A simple function to remove consonant ##
It's a fairly well known problem now but I'm sure we'll all be using (at
least) 64bit integers for storing this sort of stuff by 2038.
FYI, the current 32bit signed int allows for around 68years - a 64bit signed
int will give us a few billion years :)
Danny.
- Original Message -
From:
http://phpbuilder.com/snippet/download.php?type=snippetid=1086 - This one
works pretty well - checks most domain (everything except .tv and such)
HTH
Danny.
- Original Message -
From: David Freeman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 12, 2002 11:32 PM
Subject:
Apache 2 isn't officially supported yet. If you get the latest version of
both then you shouldn't hit to many hurdles but you should know that you'll
get no official support and it isn't recommended for production
environments.
If you need Apache2 then you'll know why - if you don't know what
http://www.amazon.com/exec/obidos/ASIN/1884777694/102-5129419-0804910
- Original Message -
From: EjdeR [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, September 22, 2002 11:12 AM
Subject: [PHP] Elliptic curve cryptology
i cant find any example about Elliptic curve cryptology..
http://www.php.net/manual/en/function.number-format.php
- Original Message -
From: Wilbert Enserink [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 09, 2003 10:44 AM
Subject: [PHP] money
Hi all,
I'm busy making a swebstore. I have troubles with the format of money.
I
Hi,
Where did he say he wanted to use Word to edit PHP files? AFAICT the idea
was to automatically upload Word files, presumably to make them available on
an Intranet for download etc.
As for uploading a file automatically - PHP isn't going to do it. An app
which can map a virtual drive in
It includes the latest CVS build of ZendEngine 2.0 - AFAIK it hasn't even
reached beta status yet, so don't even think about using it for production
work. That said, I didn't have any problems building it and it seems pretty
stable.
A list of changes and features can be found at
Hi,
No, I wouldn't rely on it at all, I couldn't find a browser that *does* have
that mime-type in it's header! - Here's what IE6 sends :
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/msword, */*
Accept-Language: en-gb
Accept-Encoding: gzip, deflate
Flash, along with
Try
$query = SELECT Newsheadline, News, Contact FROM news WHERE Newsid =
{$_GET['id']};
HTH
Danny.
- Original Message -
From: Frank Keessen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 10:50 AM
Subject: [PHP] Question about $_GET
Hi All,
Can you please
Don't make life difficult for yourself :)
SELECT * FROM myTable ORDER BY RAND() LIMIT 0,1
HTH
Danny.
- Original Message -
From: Brian McGarvie [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 16, 2003 9:37 AM
Subject: [PHP] Random Row...
$sql =
select count(*)
$_SERVER['SERVER_ADDR'] gives the address of the server running the php
script
$_SERVER['REMOTE_ADDR'] gives the client address or the proxy address. (be
careful here, storing a proxy's IP is next to useless)
$_SERVER[' HTTP_X_FORWARDED_FOR'] gives the client address if they're behind
a proxy (if
- Original Message -
From: Dominik Wittenbeck [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, January 25, 2003 3:28 PM
Subject: [SOAP] Re: soap post and http 1.1 100 continue
Yep, know that one,
Why it does happen:
although the HTTP 1.1 spec states that a HTTP 100 SHOULD NOT
Why are you opening the file in append mode?
As the manual says: a+' - Open for reading and writing; place the file
pointer at the end of the file.
Try using 'r+' instead or rewind the file pointer before reading.
Danny.
- Original Message -
From: Daniel Page [EMAIL PROTECTED]
To:
Well, Yahoo! have moved/are moving to Smarty and they get a few million
views a day.
The killer part with smarty is that it converts the Smarty tags, in your
template, to real PHP code - that's what makes it so fast. It's also very
easy to extend.
Danny.
- Original Message -
From: John
There is actually an NTLM Auth module available for Apache.
(http://modntlm.sourceforge.net/).
If you really need to do it though PHP I'd suggest running a packet sniffer
to see what headers IIS sends and what to expect back from IE.
HTH
Danny Shepherd.
- Original Message -
From
The latest cvs snapshots for PHP4.3.x and PHP5.0.x can be found at
http://snaps.php.net
Danny.
- Original Message -
From: Leif K-Brooks [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 13, 2003 8:50 PM
Subject: [PHP] What's the scoop on PHP 5?
Anyone know what the
I'd say an even simpler workaround would be to add '[EMAIL PROTECTED]' as
the fifth parameter to the mail function - just as in example 3 of the docs.
Danny.
- Original Message -
From: Scott Fletcher [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 19, 2003 3:43 PM
Hi,
Well it's hardly rocket science - a flick through the manual and I came up
with :
$name=ucwords(strtolower($name));
HTH
Danny.
- Original Message -
From: Geoff Caplan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 10:31 AM
Subject: [PHP] Capitalising
Hello,
It doesn't look like it - a note in the constants manual entry reads:
PHP has no way of recognizing the constant from any other string of
characters within the heredoc block
Danny.
-Original Message-
From: Daniel R. Hansen [mailto:[EMAIL PROTECTED]
Sent: 01 March 2003 15:57
To:
Try:
$strMailServer = {domain.co.uk:110/pop3}INBOX;
As per the manual.
HTH
Danny.
-Original Message-
From: Alec Wallis [mailto:[EMAIL PROTECTED]
Sent: 03 April 2003 18:35
To: [EMAIL PROTECTED]
Hi
I am currently experiencing some problems connecting to POP3 accounts using
imap_open.
Hello,
Adding the following as the first line of overall-load() should solve your
problem.
global $$class;
HTH,
Danny.
- Original Message -
From: Tularis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 14, 2002 8:18 PM
Subject: [PHP] OOP-related question
Hey,
I
;
$$class = new $class;
$this-loaded[$class] = 1;
$$class-setup(); // Run constructor
if(!is_object($$class)){
return false;
}
return true;
}
}
Danny Shepherd wrote:
Hello,
Adding the following as the first line of overall-load() should solve
your
problem.
global $$class;
HTH
1 - 100 of 102 matches
Mail list logo