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,
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
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
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
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 th
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 -
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
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
- 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 S
$_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 t
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 c
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 pl
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 a
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
http://www.php.net
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 Window
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 mone
Actually, GD2 can be compiled (after a patch) to read/write GIFs with LZW
compression (the LZW algorithm is the root of the legal iffyness), but
(AFAIK) you're only legally allowed to enable it if you live outside the US
& Canada. AFAIK only FreeBSD's ports system does this atm.
- Original Me
In short - looks as if your version of Apache 2 is out of date.
You're using a version from 28th June, the PHP dll was built against a
version from 3rd September.
Danny.
- Original Message -
From: "Horst Gassner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 16, 20
96
>
> code:
> function load(&$class){
> global $$class;
>
> $$class = new $class;
> $this->loaded[$class] = 1;
>
> $$class->setup(); // Run constructor
>
> if(!is_object($$class)){
> return false;
> }
> return true;
> }
> }
> Danny
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
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 cryptol
Mod_ssl is part of the standard Apache2 distro now.
- Original Message -
From: "Jesse Cablek" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 20, 2002 4:22 PM
Subject: RE: [PHP] Why isn't there much info on apache2?
> "Adam Williams" <[EMAIL PROTECTED]> wrote in me
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 the
http://phpbuilder.com/snippet/download.php?type=snippet&id=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
Sub
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: "
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 ##
> $temp="th
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, righ
lt;/div>
> <div style=\"font-family:courier new, mono; font-size:x-small;
> background-color:#EE; padding:10px; border:1px #00
> solid;\">$fcontent</div>
> </div>";
>
> ?>
>
> The output looks as follows (so far)...
>
TECTED]>
Sent: Saturday, August 03, 2002 6:23 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
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 fo
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 e
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 som
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
> an
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 Mailin
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 ther
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: [P
Try:
Apple";
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 "" inside the PHP code, due to "?"
> Anyone know the workaround with the situation here?
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
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
http:/
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
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, redirect
- 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
- 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
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: "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
>
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: "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
> &g
- 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 recom
<< 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] S
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]
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
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
chars
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
Try using:
Education
Profession
That's what I used when doing something pretty similar to you.
HTH
Danny.
- Original Message -
From: "Sheni R. Meledath" <[EMAIL PROTECTED]>
To: "PHP Masters" <[EMAIL PROTECTED]>
Sent: Monday, July 29, 2002 4:11 PM
Subject: [PHP] Array variable in Ja
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: [P
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 Addi
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 Clif
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 t
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
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
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 wit
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:
Close the window then return
and the cookie should be gone";
}
?>
HTH
Danny.
- Original Message -
From: "vins" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent
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
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: <[
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: "Mi
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 f
- 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
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 (obviousl
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, J
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: <[E
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'];
$_SERV
You just knew there was a regexp version on the way, didn't you :)
Danny.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Try this:
There's bound to be a way to do this much more neatly using a regexp but
this was quick to write and it works :)
HTH
Danny.
- Original Message -
From: "vins" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 08, 2002 4:02 PM
Subject: [PHP] Time to Calculate Ti
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!
Not really a PHP question - more an FTP protocol question - try reading the
FTP RFC at http://www.ietf.org/rfc/rfc959.txt
However, in a nutshell, to get all of the files in a directory -
1. get a listing of that directory (read the RFC for instructions) and store
the filenames in an array.
2. go
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.
- Origi
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
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 PROTECT
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: http://www.php.net
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 i
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
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 differ
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
the
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] phpm
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 us
$_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 PROTE
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
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 us
No, that's not a problem either!
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 browser to send t
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 se
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
Subje
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 route.
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 socket_s
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 al
- 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
- 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...
>
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 relea
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: <[
een two dates
> If I wanted 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...
Hi,
\?\,\.
\/';
$regexp='^['.$pattern.']{'.$min.','.$max.'}$';
if (ereg($regexp,$user_input))
return $user_input;
else
return $default;
}
?>
That should take care of everything except the square brackets - not sure
how to go about getting them (
1 - 100 of 104 matches
Mail list logo