Re: [PHP] sending email

2003-05-29 Thread daniel
add this in the header section Content-Type: text/html; charset=\"iso-8859-1 also for html body use this $message = chunk_split(base64_encode($message)); > hi > > i want to send html format type of emails > using mail( ); function? > > is there a how to where can i start learning > that type of

Re: [PHP] sending email

2003-05-29 Thread Dan Anderson
HTML E-mail is just HTML code embedded in the e-mail. Pick up a book on HTML code. Even easier, make a web page using your favorite editor (note ms word and open office allow you to save as web page) and cut and paste the code. I think there /might/ be an extra line or two you might have to add

Re: [PHP] Search Engines and Last-Modified Header

2003-05-29 Thread Manuel Lemos
Hello, On 05/28/2003 11:48 PM, Olinux wrote: To make sure that google re-indexes every month. I have thought of sending a last modified header using year/month/day of article and a random hour/minute/second. but if this random hour/month/second is "earlier" than the one already indexed it does not

[PHP] Re: sending email

2003-05-29 Thread Manuel Lemos
Hello, On 05/29/2003 12:32 AM, Aris Santillan wrote: i want to send html format type of emails using mail( ); function? is there a how to where can i start learning that type of encoding You may want to try this class that is able to compose and send HTML messages properly: http://www.phpclasses

[PHP] run extension library as different uid/gid?

2003-05-29 Thread Joe Wong
Hi, I have created an extension library for my own use. This library needs to access a storage area needs specific user ID to operate. If I start Apache as normal ( using User Apache, Group Apache in httpd.conf ), my PHP script fails to run. I try to setuid / setguid on the PHP script ( this script

[PHP] Re: Biding Arrays from Oracle Stored Procedure to PHP Variables

2003-05-29 Thread Lang Sharpe
Have a look at this paper, in particular the collections section at the end http://www.phpconference.de/2001/slides/arntzen_ocipaper.txt I've never used them myself, because they look a bit dodgy. But it may be the only way to do what you're trying to do. Lang Gregory Watson wrote: > Hi guys.

Re: [PHP] Parsing html to extract images

2003-05-29 Thread David Grant
Hidrahyl wrote: Hi, anyone can help me parsing html files in order to get all the images containing a file? Thanks, Simon. 1. Use fopen() to grab the HTML file you're after. 2. Read in each line to an array using file(); 3. Loop through the array, and apply the following reg. exp.: preg_match("/\

[PHP] vpopmail what is it???

2003-05-29 Thread Haseeb Iqbal
hi, can anyone direct me.i want information about vpopmail and what is does . a tutorial or something will work thanx in advance. i searched google but got only manual pages of php. but there isn't any info there. Creativity is inventing, experimenting, growing, taking risks, breaking rules, ma

Re: [PHP] vpopmail what is it???

2003-05-29 Thread David Grant
Haseeb Iqbal wrote: hi, can anyone direct me.i want information about vpopmail and what is does . a tutorial or something will work thanx in advance. i searched google but got only manual pages of php. but there isn't any info there. Try this: http://www.pscs.co.uk/products/vpop3/index.html -

[PHP] PHP redirect

2003-05-29 Thread Angelo Zanetti
Hi guys what is the function in PHP for directing a php page?? thanx in advance Angelo

Re: [PHP] PHP redirect

2003-05-29 Thread Awlad Hussain
Try this header("LOCATION: page2go.php"); - Original Message - From: "Angelo Zanetti" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 29, 2003 9:46 AM Subject: [PHP] PHP redirect Hi guys what is the function in PHP for directing a php page?? thanx in advance Angelo -

RE: [PHP] PHP redirect

2003-05-29 Thread Ralph
Use the header function: http://www.php.net/manual/en/function.header.php -Original Message- From: Angelo Zanetti [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 1:46 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP redirect Hi guys what is the function in PHP for directing a php pag

Re: [PHP] PHP redirect

2003-05-29 Thread David Grant
Awlad Hussain wrote: Try this header("LOCATION: page2go.php"); I'm not normally so pedantic, however, the HTTP specification defines the above header as "Location", not "LOCATION". It might also be an idea to give the filename as a path relative to the root directory, e.g. header("Location: /fo

[PHP] caller function identification

2003-05-29 Thread Christopher D. Jarecki
Hi, Is there a way to find out which function (or which script) called the function that is currently being executed? I mean something like perl's caller_function(). Regards, -- Christopher D. Jarecki Senior Application Developer Implix.com -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Decrypting data with GnuPG

2003-05-29 Thread Evan Nemerson
GnuPG doesn't use stdin to read the password, which is where you're sending it. It uses a more low-level interface (check out the below link if you're interested) where they interact directly with the virtual console. Try piping to your command- that won't work either echo $PASSPHRASE | \ /usr/bi

RE: [PHP] id & name when identifying html elements

2003-05-29 Thread Ford, Mike [LSS]
> -Original Message- > From: Roland Tarver [mailto:[EMAIL PROTECTED] > Sent: 28 May 2003 10:07 > > I've got a question about about naming html components (text fields, > select boxes etc) when submitting a form to a php page. > First I tried identifying an element using the "id" attribute

RE: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread Ford, Mike [LSS]
> -Original Message- > From: David Grant [mailto:[EMAIL PROTECTED] > Sent: 28 May 2003 12:47 > To: Leif K-Brooks > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] Variables don't pass... *sniff* > > > Leif K-Brooks wrote: > > > To maintain absolute compatibility, just use $

Re: [PHP] PHP redirect

2003-05-29 Thread Leif K-Brooks
Actually, the standards require an absolute URL, e.g. header("Location: http://foo.com/bar/baz/something.php";); David Grant wrote: It might also be an idea to give the filename as a path relative to the root directory, e.g. header("Location: /foo/bar/index.php"); -- The above message is enc

RE: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread Ford, Mike [LSS]
> -Original Message- > From: Wendell Brown [mailto:[EMAIL PROTECTED] > Sent: 28 May 2003 15:02 > > On Wed, 28 May 2003 12:46:50 +0100, David Grant wrote: > > >I would've thought that $HTTP_*_VARS will be deprecated > sometime in the > >future. It might be an idea to write your own acce

[PHP] Netbilling PHP Script

2003-05-29 Thread Ralph
I have to setup credit card verification/processing with Netbilling.com, does anybody know of a PHP based Netbilling gateway script or class? Thanks in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] vpopmail what is it???

2003-05-29 Thread Jason Wong
On Friday 30 May 2003 04:16, Haseeb Iqbal wrote: > can anyone direct me.i want information about vpopmail and what is does . > a tutorial or something will work thanx in advance. i searched google but > got only manual pages of php. but there isn't any info there. If you don't already know what

Re: [PHP] Netbilling PHP Script

2003-05-29 Thread Jason Wong
On Thursday 29 May 2003 17:36, Ralph wrote: > I have to setup credit card verification/processing with Netbilling.com, > does anybody know of a PHP based Netbilling gateway script or class? Have you searched google? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Sy

Re: [PHP] daily availability chart array

2003-05-29 Thread Marek Kilimajer
for($day=0; $day<7;$day++) { // $day[0] is mon; $day[1] is tues; ... foreach($avail[$day] as $av) { //do your calculation here } } Jason Dulberg wrote: Thank you for the response. I am not quite sure how that works, can you please give an example? Thanks. Jason -Original Me

Re: [PHP] caller function identification

2003-05-29 Thread Marek Kilimajer
Nope Christopher D. Jarecki wrote: Hi, Is there a way to find out which function (or which script) called the function that is currently being executed? I mean something like perl's caller_function(). Regards, -- Christopher D. Jarecki Senior Application Developer Implix.com -- PHP Gene

RE: [PHP] Will Pay for Netbilling PHP Script

2003-05-29 Thread Ralph
Yeah. But no luck. Only in PERL. I'm pushed for time and I'm still working on other modules that I need for my client. Anybody interested in helping me out? I will gladly pay for help. Just give me quote. Here is Netbilling's API manual for anybody that is interested: http://netbilling.com/dire

Re: [PHP] run extension library as different uid/gid?

2003-05-29 Thread Marek Kilimajer
You can make a wraper setuid script and execute it, or chown /dev/your_storage Joe Wong wrote: Hi, I have created an extension library for my own use. This library needs to access a storage area needs specific user ID to operate. If I start Apache as normal ( using User Apache, Group Apache in h

Re: [PHP] Help with eval()

2003-05-29 Thread Marek Kilimajer
for ($i = $aNum; eval ('return $i ' . $do . ' $bNum'); ) zavaboy wrote: Hey, I'm having problems with the eval() function... if ($Sort == "Up") { $do="<="; } else { $do=">="; } for ($i = $aNum; eval ('$i ' . $do . ' $bNum'); ) //So.. the above line acts like: //for ($i = $aNum; $i <= $bNum; )

Re: [PHP] replacing register_shutdown_function

2003-05-29 Thread Marek Kilimajer
Put an & in: exec("/dealnews/myscript.php &"); The script will run in background. Brian Moon wrote: Hi all, Ever since register_shutdown_function was changed to no longer happen after the connection was closed, several things on our site have started to suck. Not the main, public site, but our

Re: [PHP] Triggers & events with objects

2003-05-29 Thread Marek Kilimajer
You need to modify Testclass::someMethod to call the event handler directly Axel Tietje wrote: Hi, I would like to do the following When an objects method is called like this: $test= new Testclass; $test->someMethod ($someArgument); I'd like to have an event handler outside Testclass to log th

Re: [PHP] greater than question

2003-05-29 Thread Marek Kilimajer
Create a function, then func_get_args will return you an array. Then continue as others sugested. You can call the function as functionName($a, $b, ) - any number of parameters you need Steve Buehler wrote: Hopefully someone has done this and has an easy answer. I know that I can do what I

Re: [PHP] creating thumbnails from .BMP files

2003-05-29 Thread Marek Kilimajer
image_bmp class at www.phpclasses.org can create bmp files, you might be able to write a class that will read it and return raw data. Artoo Smith wrote: Hey, How do you create thumbnails from .BMP files? Is there a function like there is for JPG (ImageJPEG)? Thanks -- PHP General Maili

Re: [PHP] vpopmail what is it???

2003-05-29 Thread Haseeb Iqbal
Actually i know what vpopmail is but to be abs clear i want to read more. i have a few questions in my mind. that i want to be clear about.i want to make a script that would create new users on a qmail server.i want to be sure this is what i want. now any suggestions welcome Creativity is inventi

[PHP] Re: Matching titles from distinct data sources

2003-05-29 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hello > > Does anyone know of an algorithm or program for matching pieces of text > (such as film titles) that are conceptually the same, but which may be > written/spelled differently? > > eg. I need something which will identify a (li

RE: [PHP] How can I change the timezone?

2003-05-29 Thread Jay Blanchard
[snip] > [snip] > I am in Hong Kong and the server is in US. > I can't change the server setting. > [/snip] > > How about getting the server time and then adding or subtracting from > that to get the appropriate time? > > http://us2.php.net/manual/en/function.time.php That doesn't really accoun

[PHP] RE: creating thumbnails from .BMP files

2003-05-29 Thread Robert
John W. Holmes wrote: >> How do you create thumbnails from .BMP files? Is there a function > like >> there is for JPG (ImageJPEG)? > > Probably need to use an external program that understands that format > and an exec() call. > > ---John W. Holmes... > > Amazon Wishlist: http://www.amazon.com

RE: [PHP] PHP OOP x Procedural Performance

2003-05-29 Thread Jay Blanchard
[snip] It is a known issue that function calls are expensive for the processor. The OOP let us better organize the code but, thinking in function (or method) calls it may be more expensive than in the procedural form. My question is, has anyone made any tests regarding the performance of OO

[PHP] Date question

2003-05-29 Thread Shaun
Hi, For a given date, how can i find out the date of the day of the begining of that week? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Socket problem

2003-05-29 Thread Adrian Zaharia
Hi, I try to make a script which runs 24/7 and which connects to a socket based news feed and fetches some data whenever the server sends it. The problem is that if i disconnect the client machine from the network, the program is not making any difference between receiving nothing cause server

RE: [PHP] Date question

2003-05-29 Thread Jay Blanchard
Have you checked the date functions at http://www.php.net ? -Original Message- From: Shaun [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 6:39 AM To: [EMAIL PROTECTED] Subject: [PHP] Date question Hi, For a given date, how can i find out the date of the day of the begining of t

[PHP] upload problem, urgent plz guy

2003-05-29 Thread fr r
i'm trying to do a very simple thing: upload image but it keep giving me this error although i gave permession on folder: Warning: open_basedir restriction in effect. File is in wrong directory in /var/www/vhosts/negoumelshasha.com/httpdocs/test4.php on line 9 and here is my code:

[PHP] upload problem, urgent plz guy

2003-05-29 Thread fr r
i'm trying to do a very simple thing: upload image but it keep giving me this error although i gave permession on folder: Warning: open_basedir restriction in effect. File is in wrong directory in /var/www/vhosts/negoumelshasha.com/httpdocs/test4.php on line 9 and here is my code:

[PHP] upload problem, urgent plz guy

2003-05-29 Thread fr r
i'm trying to do a very simple thing: upload image but it keep giving me this error although i gave permession on folder: Warning: open_basedir restriction in effect. File is in wrong directory in /var/www/vhosts/negoumelshasha.com/httpdocs/test4.php on line 9 and here is my code:

RE: [PHP] upload problem, urgent plz guy

2003-05-29 Thread Jay Blanchard
[snip] i'm trying to do a very simple thing: upload image but it keep giving me this error although i gave permession on folder: Warning: open_basedir restriction in effect. File is in wrong directory in /var/www/vhosts/negoumelshasha.com/httpdocs/test4.php on line 9 [/snip] Have you read and tr

Re: [PHP] upload problem, urgent plz guy

2003-05-29 Thread Marek Kilimajer
Use move_uploaded_file() instead of copy() fr r wrote: i'm trying to do a very simple thing: upload image but it keep giving me this error although i gave permession on folder: Warning: open_basedir restriction in effect. File is in wrong directory in /var/www/vhosts/negoumelshasha.com/httpdocs/t

[PHP] PHP 4.3.2 released

2003-05-29 Thread Jani Taskinen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 After a lengthy QA process, PHP 4.3.2 is finally out! This maintenance release solves a lot of bugs found in earlier PHP versions and is a *strongly* recommended upgrade for all PHP users. PHP 4.3.2 contains, among others, following importan

php-general Digest 29 May 2003 12:05:40 -0000 Issue 2085

2003-05-29 Thread php-general-digest-help
php-general Digest 29 May 2003 12:05:40 - Issue 2085 Topics (messages 149331 through 149389): Help with eval() 149331 by: zavaboy 149371 by: Marek Kilimajer Re: detect proxy 149332 by: sonjaya Re: Create Links on the fly? 149333 by: Justin French Re: How ca

Re: [PHP] Decrypting data with GnuPG

2003-05-29 Thread Pierre-Luc Soucy
Hi, Does that mean that there is no way to achieve this with PHP and that I should rather use the --passphrase-fd argument? Thanks, Pierre-Luc Evan Nemerson wrote: GnuPG doesn't use stdin to read the password, which is where you're sending it. It uses a more low-level interface (check out the

[PHP] PHP and Flash

2003-05-29 Thread César Aracena
Hi all, I just made a pretty little flash banner with buttons and everything... Does anyone knows if I can make the flash buttons links with dynamic content? I need to fetch cartain common pages but with different variables. Thanks in advanced, --- Cesar Aracena [EMAIL PROTEC

[PHP] Re: corrupt images

2003-05-29 Thread Al
Check that you are using the correct MIME type. There is a note on this in the User Contributed Notes under the function definition. Jason Jacobs wrote: Hi all. I've been struggling with getting images to upload cleanly. I'm using php 4.2.2. When I look at the uploaded file info, it gives

Re: [PHP] strip_tags() Quandry....

2003-05-29 Thread CF High
Hey Justin. Sorry for the late reply -- got totally wrapped up in utilizing that highly useful bit of reg exp code. Thanks for the heads up; it certainly solved the problem. Unfortunately, or fortunately, new problems have arisen -- time to dive into learning some reg exp syntax Thanks

Re: [PHP] Netbilling PHP Script

2003-05-29 Thread Mike Morton
I have to get this off my chest, and I tried to send it directly to Jason off list, but the email bounces back. Why? Probably because he gets a lot of these emails. Don't like what I have to say? Tough luck, I am sick of unconstructive emails hitting the list putting people down. If you cannot

[PHP] making sense of time(), date() and strtotime()

2003-05-29 Thread Justin French
I have $_POST['day'] (1-31), $_POST['month'] (1-12), $_POST['year'] (2003-2004). I store all dates as unix (epoch) timestamps, and generate the timestamp for the event with: strtotime('{$_POST['month']}/{$_POST['day']}/{$_POST['day']}'); Everything works fine on my LAN (Australia), but when I up

<    1   2