php-general Digest 16 Sep 2006 10:25:02 -0000 Issue 4350

2006-09-16 Thread php-general-digest-help
php-general Digest 16 Sep 2006 10:25:02 - Issue 4350 Topics (messages 241841 through 241858): Re: Question on explode and join. 241841 by: Richard Lynch readdir 241842 by: Toby Osbourn 241844 by: Brad Fuller 241850 by: Richard Lynch 241855 by: Larry

[PHP] php and session issues continued...

2006-09-16 Thread Dave Goodchild
Hi all. I have a session issue and wondered if anyone else has encountered this: I have an app where a user fills out 3 forms. In each case, after validation and cleaning the form data is passed into session variables and after the final submission the data is entered into the database. I am

[PHP] Re: Please tell me I dont know regex

2006-09-16 Thread Tom Atkinson
See http://uk.php.net/manual/en/function.eregi.php#57824 Basically you don't need to escape the dash, just place it somewhere where it cannot be interpreted as indicating a range. It will then be treated literally. They do work the same using preg_match() which requires escaping.

[PHP] Re: php and session issues continued...

2006-09-16 Thread Tom Atkinson
How are you setting the location? If the user starts at www.yoursite.com and you redirect to yoursite.com after the first form then you'll lose the session since it's a different domain. Dave Goodchild wrote: Hi all. I have a session issue and wondered if anyone else has encountered this:

[PHP] how to get page count when uploading files

2006-09-16 Thread Jian Fu
I really need help and after going through the help page, I don't know where I can post my question. When I upload a file (word or pdf), how can I know the page counts of that file immediately? Thank you, Jian

Re: [PHP] Odd PHP memory issue

2006-09-16 Thread Matthew H. North
On 9/15/06, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, September 15, 2006 10:42 am, Matthew H. North wrote: We're developing a web application that involves traversal of a hierarchical database structure (MySQL, PEAR::DB, and PEAR::DB::DataObject). Currently that traversal is done

Re: [PHP] how to get page count when uploading files

2006-09-16 Thread Stefan van der Linden
I really need help and after going through the help page, I don't know where I can post my question. When I upload a file (word or pdf), how can I know the page counts of that file immediately? Thank you, Jian There's no function in the PDF library to READ the file. And about Word

[PHP] getting base domain and sub domains from url?

2006-09-16 Thread Kenneth Andresen
Hello all, I am trying to extract base domains and sub domains from url's, and expect there to exist something to do this already. I used the parse_url($url) to get the host variable. My thought is to use $domain_elements[]=array_reverse(explode('.',$url)); then simply check $domain_element[0]

Re: [PHP] getting base domain and sub domains from url?

2006-09-16 Thread Stut
Kenneth Andresen wrote: What I would like to know is if there are some lists of all these base domains, or maybe some function already doing what I would like to do? A full list of gTLDs and ccTLDs can be found here: http://www.iana.org/domain-names.htm -Stut -- PHP General Mailing List

Re: [PHP] getting base domain and sub domains from url?

2006-09-16 Thread Kenneth Andresen
Thank you, Stut, It gives the top level ones, but I can't seem to find the lower specifications covering such as .co.uk .com.mx etc. I am also starting to realize some countries may two levels of top domains - in Norway for example you may get a .no domain, but there may also be lower level

Re: [PHP] getting base domain and sub domains from url?

2006-09-16 Thread Google Kreme
On 16 Sep 2006, at 16:26 , Kenneth Andresen wrote: It gives the top level ones, but I can't seem to find the lower specifications covering such as .co.uk .com.mx etc. There is no lower 'specification' because each one is unique. .mx is administered, for example, by www.nic.mx (I believe),

Re: [PHP] getting base domain and sub domains from url?

2006-09-16 Thread tedd
At 5:26 PM -0500 9/16/06, Kenneth Andresen wrote: Thank you, Stut, It gives the top level ones, but I can't seem to find the lower specifications covering such as .co.uk .com.mx etc. I am also starting to realize some countries may two levels of top domains - in Norway for example you may

RE: [PHP] how to get page count when uploading files

2006-09-16 Thread Jian Fu
Oh, btw, I use PHP ftp function to upload the file, but there is no information in $_FILES to tell me the total page for Word or PDF file. Really appreciated your time and help! Thank you very much! Jian -Original Message- From: Stefan van der Linden [mailto:[EMAIL PROTECTED] Sent: