Re: [PHP] Re: How to upload files up to 40MB with a html post form?

2007-02-14 Thread Sergiu Voicu
Upload limits can be imposed in 2 ways (maybe more, but I know only 2) when it is about Apache+PHP: 1. From apache with LimitRequestBody Directive 2. From php.ini with upload_max_filesize directive If you are in the first case (which I doubt), and the provider allows the use of .htaccess files,

Re: [PHP] Embeded image on mail()

2007-01-22 Thread Sergiu Voicu
There is a nice website with tons of PHP classes: http://www.phpclasses.org Once I have found on it a class that was doing what you need now (send emails with attachements in it). Can't remember the name, but I'm sure that you can find it. Sergiu Bagus Nugroho wrote: Hi All, It was possi

Re: [PHP] PHP Functions as XML or DB

2007-01-21 Thread Sergiu Voicu
Copy&Paste man ;) (Just kidding) Now, seriously, I myself would write a parser for this, fetch some raw data from the pages, and do further processing on those. I didn't checked yet, but I am almost sure that there may be only a few variations of the manual's used html template, and I don't th

Re: [PHP] Get the shortened browser / HTTP_USER_AGENT

2007-01-20 Thread Sergiu Voicu
You have several options: 1. using regular expressions 2. using arrays 3. using substrings Sergiu Wikus Moller wrote: Hi. I want to strip everything after a / in the HTTP_USER_AGENT for example: Opera 9.10/blah/blah would become only Opera 9.10 Lets say $user = $_SERVER["HTTP_USER_AGENT"