Re: [PHP] PHP Ajax progress bar

2008-03-12 Thread Sn!per
Quoting Shelley [EMAIL PROTECTED]: I don't think it works. I tried. The screen always said 0%, 0 of 0 byte until the file is uploaded. Is that what you mean progress bar? -- Regards, Shelley (http://phparch.cn) It work fine. And that's what we meant by progress bar. -- Roger

[PHP] base64 encode question

2008-04-03 Thread Sn!per
Hi all, I have a short script that I want to store the last login time and the host IP number (harcoded for the moment). Those two variables are stored in $last_login, which is an array. [EMAIL PROTECTED] test]# cat lt.php ? $last_login = array('time' = time(), 'host' = 192.168.10.100);

[PHP] Testing a URL with regex

2009-01-07 Thread Sn!per
Let's say I have these URLs http://example.com/index.php?q=gallery http://example.com/index.php?q=galleryg2_itemId=81 http://example.com/index.php?q=galleryg2_itemId=100 I want to have a line of code that will extract just the http://example.com/index.php?q=gallery; part of the URL. I am

Re: [PHP] Testing a URL with regex

2009-01-07 Thread Sn!per
Then Ashley Sheridan a...@ashleysheridan.co.uk said: Why do you need a regex here? All the URL's have the same foremost component, which is exactly 38 characters in length. Do you perchance need a regualr expression to parse other URL's? If you just need to extract everything before the first

[PHP] File Manager

2009-02-04 Thread Sn!per
What would you guys recommend as a good and free opensource file management system? TIA. -- Sign Up for free Email at http://ureg.home.net.my/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] size of submitted textarea field in bytes

2003-08-14 Thread Sn!per
i have a textarea where ppl will enter their bio. after they submit the form, i need to compute the size of their bio in bytes _without_ creating any file. is this at all possible ? please advise. sample script: ? if ($_POST['submit']) { print you have submitted xyz bytes; } else { ? form

Re: [PHP] LAST DAY OF MONTH

2003-08-15 Thread Sn!per
? print date(t) ? rgds. Quoting Ralph Guzman [EMAIL PROTECTED]: How can I get the last day for the current month? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- Sign

RE: [PHP] LAST DAY OF MONTH

2003-08-15 Thread Sn!per
. Quoting Ralph Guzman [EMAIL PROTECTED]: wow. I missed that one in the manual. I guess it's time for me to call it a night. Thanks. -Original Message- From: Sn!per [mailto:[EMAIL PROTECTED] Sent: Friday, August 15, 2003 1:21 AM To: Ralph Guzman Cc: PHP General Mailing List

[PHP] saving mail attachment to another server

2003-08-15 Thread Sn!per
i am using Horde's IMP. i am playing with the idea of saving mail attachment(s) into another server. the mail server is like mail.example.com on server-A and the 2nd server is like photos.example.com on server-B. is this _normally_ done with cURL and/or snoopy ? appreciate some guidelines.

Re: [PHP] Problem with mktime, need to add 30 days to current date

2003-08-20 Thread Sn!per
print date('Y-m-d',mktime(0,0,0,date('m'),date('d')+30,date('Y'))); Quoting James Johnson [EMAIL PROTECTED]: Sorry about the previous post. Hi, I need to make a date that is 30 days from the current date, and, am having problems with mktime Here's what I've tried:

[PHP] help needed with this mcal script

2003-08-21 Thread Sn!per
the output of this short mcal-php script is 0. and the no /var/calendar/[EMAIL PROTECTED] mcal file was created. appreciate some advise. ?php $year = 2003; $month = 8; $day = 21; $description = the description; $category = 2; $title = the title; $stream=mcal_open({/mstore}[EMAIL

Re: [PHP] Creating a Calender

2003-09-08 Thread Sn!per
PEAR Date Calc is your friend. rgds. -- Quoting CPT John W. Holmes [EMAIL PROTECTED]: From: Dan Anderson [EMAIL PROTECTED] Does anybody know how to generate calendars easily? (i.e. print out complete calenders from the current month on) I'd check out PEAR or phpclasses.org. I'm

[PHP] tv programme lineup

2003-09-08 Thread Sn!per
nebody know where i can find a script that does something like: (the admin module) - add/edit/delete tv programme lineup daily/weekly/monthly - lineup will include things like programme title, episode, time, synopsis etc (the public portion) - can perform search - calendar - hilights - etc pls

[PHP] ACL howto

2003-06-15 Thread Sn!per
I have several admin modules for my portal. And I have also several admin users who are supposed to have access only to certain modules. Say, the superadmin can access ALL modules (modA, modB, modC, modD) and admin-A can only access modA and modB admin-B can only access modA and modD ... ...

Re: [PHP] Best way to store data.

2003-12-18 Thread Sn!per
Quoting Justin French [EMAIL PROTECTED]: Theory 3: For more complex transformations (I have a library which performs heaps of transformations for paragraphs, headings, line breaks, ol and ul lists, and heaps more), ... and where can we find that library ? --

[PHP] Enabling LDAP on Plesk 8

2007-05-21 Thread Sn!per
Am currently running Plesk 8.0.1 . A php script with phpinfo() will give: ... ... '--with-kerberos' '--with-ldap=shared' '--with-mysql=shared, ... ... But am not able to locate the LDAP section that normally looks like: LDAP Supportenabled RCS Version $Id: ldap.c,v 1.130.2.11 2005/01/19