an excerpt from php man pages says that:
"This function requires the imap_stream to have been opened as the mail
administrator account. It will not work if opened as any other user.
...
...
$mbox = imap_open ("{your.imap.host:143}", "mailadmin", "password");
"
my question is, where do i set this
dear all,
i have 2 servers that were *given* to me to setup and implement webmail
solution for our client. i have done some groundwork in terms of the backend
applications that are needed to do this.
what i wanted to know is, how best can i distribute the backend applications
between those 2 serve
i am referring to imap_get_quota manpages at
http://www.php.net/manual/en/function.imap-get-quota.php
it gave a short script (see bottom).
question: in a qmail-ldap/courier-imap environment, who is that mailadmin ?
-- script start --
$mbox = imap_open("{your.imap.host}","mailadmin","password",O
php-4.3
libmcal-0.5 (i intend to use Horde's Kronolith and the README said it cannot
work with libmcal-0.6)
configure gave this error:
checking for MCAL support... yes
configure: error: Unable to locate your libmcal header files - cal_misc.h
should be in the directory you specify or in the include
is it possible to retrieve a bunch of records from an ldap tree and do a
next-prev navigation on those records ? example script pls.
--
__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
--
PHP General
is it possible to retrieve a bunch of records from an ldap tree and do a
next-prev navigation on those records ? example script pls.
--
roger
__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
--
PHP Gen
on the php.net manpage for imap_get_quota,
http://www.php.net/manual/en/function.imap-get-quota.php , the imap stream is
opened as:
$mbox = imap_open("{your.imap.host}","mailadmin","password",OP_HALFOPEN)
or die("can't connect: ".imap_last_error());
i am really confused as to how to setup th
for an application, i would like to have the temporary upload file directory
under the webroot of this application.
how can i override the php.ini directive of upload_tmp_dir ?
--
roger
__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Mad
i used the same techniqu a while back when i worked with Fast Template.
scenario:
- present a user with a form to input
- there are several text fields and several select options
- if there is/are error(s) upon form submission, we will call the same template
file and insert proper error messages a
i have these arrays:
$A_fruit_list = array('A1' => 'Fruit A1',
'A2' => 'Fruit A2',
);
$B_fruit_list = array('B1' => 'Fruit B1',
'B2' => 'Fruit B2',
);
then i do these:
$var = "B";
$var_list = $var."_fruit_lis
i presented my visitor to fill up some description about themselves via HTML's
textarea FORM element.
how do i block them from entering unwanted HTML tags into the textarea field?
--
roger
__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
i wrote an ecard script and added 'send at a future date' feature.
this feature is implemented via cron that runs daily at 1200 hours
$> crontab -l looks like:
00 00 * * * wget http://ecard.domain.com/futuresend.php 2&1> /dev/null
it works great but everyday there will be a file being written to
mixed up together.
>
> Just a friendly reminder. Please don't do it again.
>
> Jc
>
> Roger Thomas wrote:
> > i wrote an ecard script and added 'send at a future date' feature.
> > this feature is implemented via cron that runs daily at 1200 hours
> >
built: php-4.2.2 with openldap 2.0.25
i tried using the ldap_rename function to modify the dn of my ldap db but
nothing seems to happen. the record was not change at all. i have followed
closely the code-snippet that was given by Mr Stig Venaas at:
http://marc.theaimsgroup.com/?l=php-general&m=10
--- Stig Venaas <[EMAIL PROTECTED]> wrote:
>
> But you're not doing what I wrote...
:) or else i won't be asking hehehe
>
> The third parameter should be the new rdn (which is the same as the old),
> and the fourth should be new parent. So it should look like this:
>
> $r=ldap_rename($ds,
>
wonder if anyone has developed a wrapper around captcha.
or is there an alternative way ?
--
roger
__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
php-4.2.2
Linux rh7.1
I run this on my browser
... and I get:
Fatal error: Call to undefined function: imap_get_quota() in
/home/httpd/vhost/home/horde/q.php on line 5
I quickly look inside php-4.2.2/ext/imap/php_imap.c and can see that the
function name is there. What's wrong with *me* ?
--
Dear all,
I have a cgi script that create cookie with the cookie path set to /cgi-bin/
How do I access the value of that cookie from a php-script ?
I have tried $_COOKIE["cookiename"] but the value is blank. From my NS cookie
manager, I know that there is value associated with that cookie.
Pleas
try this (noticed that I've changed $foo to $_POST["foo"]. after all we're
livin in globals off rite? )
";
for($i=0;$i";
}
}
else {
?>
" method="post">
One
Two
Three
--
roger
--- "John W. Holmes" <[EMAIL PROTECTED]> wrote:
> > dear all,
> > i ran my code below on ie and it w
i have something like
$str = "sometext sometext [emoticon01] sometext [emoticon23] sometext";
i would like to use regex to replace those codes into:
sometext sometext /images/emot/01.gif sometext /images/emot/23.gif sometext
all numerics after the code "emoticon" consisted of exactly 2 digits;
e("/\[emoticon(\d\d)\]/", "/image/emot/\\1.gif",
> $str);
>
> print $new_str;
>
> Seems to work?
>
> Rgds
>
> John
>
> - Original Message -
> From: "Roger Thomas" <[EMAIL PROTECTED]>
> To: <[EMAIL PROT
just would like to confirm here whether thumbnail images that i generated
dynamically with gd is cached by browsers.
a) i have a html frontend to call the php script that does that thumbnail. this
html file, say, view.htm contains these lines:
b) the thumbnailing works perfectly. but is thi
What's the most popular/usable captcha library that is currently available. I frequent
PEAR website but couldnt find any. Pls advise.
--
roger
---
Sign Up for free Email at http://ureg.home.net.my/
-
Quoting Manuel Lemos <[EMAIL PROTECTED]>:
> Just let me know which OS and local mailer (Sendmail, qmail, postfix,
> exim, MS IIS, Exchange, etc..) do you use so I can advise.
What do you recommend for Linux and qmail combination ?
Please advise.
--
roger
-
Quoting Manuel Lemos <[EMAIL PROTECTED]>:
> You may just need to tune qmail to maximize the number of simultaneous deliveries
> according to the available bandwidth.
How do I tune qmail in that manner ? If the answer is too long and complicated, pls
flame me softly as this is already OT.
> Fo
I have this short script (below) that does checking whether a userid has an associated
jpegPhoto in an LDAP database. The script is working fine but gave a 'Notice' msg bcos
I made error_reporting to report all errors.
Notice: Undefined index: jpegphoto in test.php on line 34
Question: How do I
in PHP.
Just to satisfy your curiosity, I have changed that to your advise with running the
script produces identical result.
--
roger
Quoting zareef ahmed <[EMAIL PROTECTED]>:
>
> --- Roger Thomas <[EMAIL PROTECTED]> wrote:
>
> > I have this short script
I have been serving my community with Invision Power Board (IPB) v1.3.1 Final.
Things are working well with PHP 4.3.8 and Apache 1.3.29.
Yesterday I just upgraded to PHP4.4.4 and I have problems with Excel and Word
attachments with IPB. Whenever I click on those attachments, I will get all
sort
I have a short script to parse my XML file. The parsing produces no error and
all output looks good EXCEPT url-links were truncated IF it contain the '&'
characters.
My XML file looks like this:
--- start of XML ---
Test News .Net - Newspapers on the Net
Small News Network.com
http://www.exam
> characterData() will be called 5 times:
>
> http://feeds.example.com/?rid=318045f7e13e0b66
> &
> cat=48cba686fe041718
> &
> f=1
>
> Solution is inlined below
>
> Roger Thomas wrote:
> > I have a short script to parse my XML file. The parsing pr
I want to filter IP addresses. I noticed that my script catches IP addresses
that looks like they came from the internal LAN, ie 192.x.x.x and 10.x.x.x
My script catched those IPs by $_SERVER['REMOTE_ADDR']. Am I not being able to
catch IPs from transparent proxies that a user's ISP might use? W
I have an already working LDAP server. One of my user's ldif looks like:
...
...
sn: Roger Thomas
givenName: Roger Thomas
objectClass: top
objectClass: person
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: qmailUser
objectClass: hordePerson
o: example.com
ou: p
Are there are PHP projects that focuses on Single Signon/Signoff like
Pubcookie, CAS, Cosign etc? Please advise. TIA.
--roger
---
Sign Up for free Email at http://ureg.home.net.my/
---
--
PHP Gener
I would like to install PEAR Calendar module and did a
[EMAIL PROTECTED] apps]# pear install Calendar
but got these:
No release with state equal to: 'stable' found for 'Calendar'
Please advise.
--
roger
---
Sign Up for free Email at http://ureg.
Thanks Greg. Got it installed now.
--
roger
Quoting Greg Beaver <[EMAIL PROTECTED]>:
> $ pear install Calendar-beta
>
> or
>
> $ pear install --force Calendar.
>
> Greg
---
Sign Up for free Email at http://ureg.home.net.my/
--
I would like to do some sort of facilities reservation system. Suppose this is for
booking , say, a meeting room.
Booking detail to be stored in db:
- name or id of person
- meeting room number
- date and time (when room will be used)
- number of hours to be allocated
Now say Peter booked room R
Great! Thanks Murray.
--
roger
Quoting "Murray @ PlanetThoughtful" <[EMAIL PROTECTED]>:
>
> > How will a PHP script perform such checking to prevent that sort of
> > overlapping in reservation ? Or could it be that my database design is bad
> > that's blocking ideas into my head ?
>
> Hi Roge
Yes. I flipped thru the manpages and found:
expr BETWEEN min AND max
If expr is greater than or equal to min and expr is less than or equal to max,
BETWEEN returns 1, otherwise it returns 0. This is equivalent to the expression (min
<= expr AND expr <= max) if all the arguments are of the sam
I want to convert negative number to its positive equivalent.
$num = -40;
printf("Unsigned value is %u", $num);
output is: Unsigned value is 4294967256
I have checked the manpages and %u seems the right format. Pls advise.
--
roger
---
Sign Up
Hi,
Am looking for opensource blogging engine that does per user per blog with PHP
and mySQL and authenticates user thru LDAP.
Best rgds,
Roger
---
Sign Up for free Email at http://ureg.home.net.my/
I am required to write a user registration script that captures the basics like
name, phone number etc etc. I would also have to write to mySQL database a
number that is associated with that user.
At this point of writing, the start of that number is unknown. But the number
will be incremented
ld empty makes it automatically increase it. The beauty
> is
> that you can have 400 people registering at once, and their number
> gets
> assigned as the query is run against the database, no matter what order they
> hit
> it in, the system will take it as they come.
Quoting Jim Moseby <[EMAIL PROTECTED]>:
> I'd repost the link for you, but I've already deleted it. Sorry. Look back
> through the archives.
>
> JM
>
I searched for 'Jim Moseby calendar' in the general and Dev mailing list but no
go. Anty clue?
--
Roger
-
I am trying to find a suitable opensource Knowledge Management System to be
used in my organisation; at least with document management, project management
group collaboration capabilities, like http://cortexpro.com/
Any clues ?
--
Roger
---
Si
OK thanks Rory. I will certainly evaluate it.
--
Roger
Quoting Rory McKinley <[EMAIL PROTECTED]>:
> Roger Thomas wrote:
> > I am trying to find a suitable opensource Knowledge Management System to be
> used in my organisation; at least with document management, project
Am looking for code snippet to download file. It should be able to detect
mime-types. Thanks.
--
Roger
---
Sign Up for free Email at http://ureg.home.net.my/
---
--
PHP General Mailing List (http:/
My PHP script is in svrA. How do I run a shell script in svrB?
svrB does not have PHP and Apache :(
Is this at all possible? Please advise.
--
Roger
---
Sign Up for free Email at http://ureg.home.net.my/
the actual situation, I need to execute a shell script in svrB (from browser
served by Apache on svrA) that only root can run. Please advise. I am getting
very worried.
--
Roger
Quoting Matthew Weier O'Phinney <[EMAIL PROTECTED]>:
> * Roger Thomas <[EMAIL PROTECTED]>:
>
Quoting Richard Lynch <[EMAIL PROTECTED]>:
> If 'www' can do it in a shell, then PHP, running as 'www' can usually do do it
www is a Limux system user on both svrA and svrB.
On svrA, Apache runs as user nobody. I mean, this is the httpd user, where we
defined it in httpd.conf:
User nobody
Group
Thanks for your great explaination. I really appreciate that. I will try out
the things that you have outlined and will be back if I land into trouble :)
--
Roger
Quoting Richard Lynch <[EMAIL PROTECTED]>:
> On Thu, August 18, 2005 12:22 am, Roger Thomas wrote:
> > Quotin
Thanks Matthew. You and Richard have been very helpful. I should be able to
carry on. Thank you again.
--
Roger
Quoting Matthew Weier O'Phinney <[EMAIL PROTECTED]>:
> First off, Roger, Thomas, not sure which is your given name --
> please
> use a mail or news agent that
On server-1 I have my photogallery working. On another box, server-2, I have my
postcard script also working great. Users can send postcards using ready
inhouse designs or upload their own (max 100K). Both have been serving our
community for the past 2 years or so.
Current requirement:
When I
I have had difficulty going to zend.com to download Zend Optimizer for
php-4.4.2 since last week. Anybody that have a copy of Zend Optimizer, I would
appreciate if you could provide me with a link to your server that I can
download a copy. TIA.
--roger
---
Quoting Chris <[EMAIL PROTECTED]>:
> Roger Thomas wrote:
> > I have had difficulty going to zend.com to download Zend Optimizer
> for php-4.4.2 since last week.
>
> Have you contacted zend and told them you were having a problem ?
>
> I'm sure they have an ea
I am currently testing HN CAPTCHA and noticed that the range of alphabets that
were produced ranges from A..F only. My PHP skill is quite limited to change
that to A..Z so if ppl here have any experience with that class, appreciate
your thoughts. TIA.
HN CAPTCHA: http://www.phpclasses.org/brows
Quoting J_K9 <[EMAIL PROTECTED]>:
> How about sending us the code so that we can have a look? If not we
> have
> to register there...
>
> Cheers,
>
> J_K9
>
OK. Attached.
--roger
---
Sign Up for free Email at http://ureg.home.net.my/
--
Quoting Curt Zirzow <[EMAIL PROTECTED]>:
> On Thu, Feb 16, 2006 at 09:44:33AM +0800, Roger Thomas wrote:
> > I am currently testing HN CAPTCHA and noticed that the range of
> alphabets that were produced ranges from A..F only. My PHP skill is
> quite limited to change that t
Quoting Kim Christensen <[EMAIL PROTECTED]>:
> To solve your problem, replace the generate_private() function in
> hn_captcha.class.php - starting at row 756 - with this code:
>
>function generate_private($public="")
>{
> $letters = "1234567890abcdefghijklmnopqrstuvwxyz";
> $
58 matches
Mail list logo