Re: [PHP] PHP to C interface?

2005-02-21 Thread N Deepak
On Fri, Feb 18, 2005 at 09:20:02AM -0800, Richard Lynch wrote: Is there a way to invoke C functions in a library (.so) from PHP? Like Xs in Perl? By definition, then, all you have to do is learn how to write a PHP extension, which Rasmus tells you how to do in a one-hour lecture at any

[PHP] php request entity body help

2005-02-21 Thread
Dear phpers, I'm trying to get the entity body part from an http request. Is there an API which can do the job? We use post to communicate. But I don't the name of post. Please help! Any help would be appreciated. Thanks in advance. Sincerely, Kun -- PHP General Mailing List

Re: [PHP] [NEWBIE] Confused about usage of $_SERVER['DOCUMENT_ROOT'] [SOLVED]

2005-02-21 Thread Dave
Thank you all for your responses. The problem is now half solved. In the majority of cases, using a period before the directory path ( i.e. ./directory ) will give me the correct path to the directory I specify from the relative path from the web root. However, it still will not work with

[PHP] Maximum number of emails in mail() command

2005-02-21 Thread Dave
PHP General, The Situation: I would like to set up a few newsletters that goes out to people listed in a MySQL database by sending the message from a web form generated by PHP. The mail will be sent out using the mail() command. Most of the newsletters that users can subscribe to are

[PHP] RV: Call to Oracle stored procedure

2005-02-21 Thread Jose Angel Sanchez \(Jone\)
Hi everybody.. I have two servers: LINUX DEBIAN WEB SERVER (apache, php, oracle client) and LINUX REDHAT ADVANCED SERVER (Oracle Database Server) I can execute all kind of basic sql from php to oracle, it works fine except accents and symbol of html's ntilde; (I'm Spanish) But the problem

Re: [PHP] Maximum number of emails in mail() command

2005-02-21 Thread Bostjan Skufca @ domenca.com
Mailserver is the limit. regards, B On Monday 21 February 2005 10:22, Dave wrote: PHP General, The Situation: I would like to set up a few newsletters that goes out to people listed in a MySQL database by sending the message from a web form generated by PHP. The mail will be sent

Re: [PHP] Maximum number of emails in mail() command

2005-02-21 Thread AdamT
I don't know about PHP, but the maximum number of recipients per message is configurable in your mail server's SMTP MTA. Also note that if you send a message to 2,000 people at a foreign domain, their server may reject it if they have their limit set to 2,000. -- AdamT Justify my text? I'm

Re: [PHP] php request entity body help

2005-02-21 Thread Petar Nedyalkov
On Monday 21 February 2005 11:08, wrote: Dear phpers, I'm trying to get the entity body part from an http request. Is there an API which can do the job? We use post to communicate. But I don't the name of post. Do you mean HTTP request or HTTP response? Please help! Any help would be

[PHP] Unable to load extension (was Re: PHP to C interface?)

2005-02-21 Thread N Deepak
On Fri, Feb 18, 2005 at 09:20:02AM -0800, Richard Lynch wrote: N Deepak wrote: Is there a way to invoke C functions in a library (.so) from PHP? Like Xs in Perl? By definition, then, all you have to do is learn how to write a PHP extension, which Rasmus tells you how to do in a

Re: [PHP] Maximum number of emails in mail() command

2005-02-21 Thread Ville Mattila
The Question: I know I can specify multiple email addresses in the BCC field by comma delineating them. But I'm wondering if there is an upper limit to how many email addresses can be attached this way. Is there any upper limit? Are there performance considerations? Is the limit within PHP

[PHP] Can't load extension (was Re: PHP to C interface?)

2005-02-21 Thread N Deepak
On Fri, Feb 18, 2005 at 09:20:02AM -0800, Richard Lynch wrote: N Deepak wrote: Is there a way to invoke C functions in a library (.so) from PHP? Like Xs in Perl? By definition, then, all you have to do is learn how to write a PHP extension, which Rasmus tells you how to do in a

[PHP] pbpBB cannot contact MySQL

2005-02-21 Thread Peter Flynn
I still can't resolve this one. When I go to phpBB's install.php it says Unable to connect to the database. But my 1-line phpinfo() looks OK (MySQL installed and active), and I can access MySQL from the command-line (I did so to set up the phpBB database and username). What's the trick to

[PHP] Fatal error: Maximum execution time

2005-02-21 Thread Stanislav Kuhn
Hi guys, I've got a processing script which takes long time to finish. The script includes several others and is ran from command line(by cron). I've sent phpinfo from inside of processing to my email, here is the important part max_execution_time = 1800 = 0 max_input_time = 120 = 120

[PHP] Windows COM programming.

2005-02-21 Thread Dave Lists
Hi, Anyone got any good pointers to COM programming in PHP under windows? Searching for com in google has been no help to me :-) http://www.zend.com/tips/tips.php?id=262single=1 and http://www.php.net/manual/en/ref.com.php have been quite helpful, but I'm sure there is much more to see. Dave. --

Re: [PHP] [NEWBIE] Cant get $_POST to work

2005-02-21 Thread Jochem Maas
John Nichel wrote: The Disguised Jedi wrote: i think you have to use the ID parameter in the input tag in your HTML Name: input type=text name=name value=your name id=name /br/ Age: input type=text name=age value=your age id=age /br/ try that and see how it goes If I'm not mistaken, ID in a

[PHP] Re: Unable to load extension (was Re: PHP to C interface?)

2005-02-21 Thread Jason Barnett
N Deepak wrote: On Fri, Feb 18, 2005 at 09:20:02AM -0800, Richard Lynch wrote: N Deepak wrote: Is there a way to invoke C functions in a library (.so) from PHP? Like Xs in Perl? By definition, then, all you have to do is learn how to write a PHP extension, which Rasmus tells you how to do

[PHP] Re: Fatal error: Maximum execution time

2005-02-21 Thread Jason Barnett
Stanislav Kuhn wrote: ... PHP Fatal error: Maximum execution time of 30 seconds exceeded in .php on line 130 Has somebody seen something like this or has an idea what's going on there? When I get this error it is often because I found myself running into an infinite loop someplace.

[PHP] Relative URLs

2005-02-21 Thread Pedro Fayolle
Hi, I wanted to gather opinions on what method is best for dealing with relative URLs (i.e. in HTML links) on complex, multi-level directory structures. Here's what I have so far... Goals: 1. Simpliest possible management of relative URLs. 2. Be able to move the entire site from one directory

RE: [PHP] Re: Fatal error: Maximum execution time

2005-02-21 Thread Stanislav Kuhn
Yes, this may cause error like that, but this occours on different places I mean in different included scripts where are not loops at all. Basically there is only one main loop over main data and some small foreach and that can not be infinite. And error happens in different times as well.

Re: [PHP] PHP book recommendations

2005-02-21 Thread Judson Vaughn
I second O'Reilly's PHP Cookbook. Another recommendation is Larry Ullman's books, especially HP Advanced for the World Wide Web. I try to triangulate, using several books that come at the code differently. Jud. Judson Vaughn [EMAIL PROTECTED] | [EMAIL PROTECTED] Seiter Vaughn Communications

RE: [PHP] Re: Fatal error: Maximum execution time

2005-02-21 Thread Jay Blanchard
[snip] Yes, this may cause error like that, but this occours on different places I mean in different included scripts where are not loops at all. Basically there is only one main loop over main data and some small foreach and that can not be infinite. And error happens in different times as well.

Re: [PHP] PHP book recommendations

2005-02-21 Thread M. Sokolewicz
O`Reilly's programming PHP is quite good too :) Judson Vaughn wrote: I second O'Reilly's PHP Cookbook. Another recommendation is Larry Ullman's books, especially HP Advanced for the World Wide Web. I try to triangulate, using several books that come at the code differently. Jud. Judson Vaughn

[PHP] best way todo a case insensitive str_replace

2005-02-21 Thread pmpa
Hi all. What is the best way to do a string insensitive replace? Currently I am doing: $replace = g r; $arr = explode( ,$replace); $text = PHP is GreaT!; for($i=0;icount($arr);$i++){ $text = str_replace(strtolower($arr[$i]),b.strtolower($arr[$i])./b,$text); $text =

Re: [PHP] Fatal error: Maximum execution time

2005-02-21 Thread Bret Hughes
On Mon, 2005-02-21 at 06:52, Stanislav Kuhn wrote: Hi guys, I've got a processing script which takes long time to finish. The script includes several others and is ran from command line(by cron). I've sent phpinfo from inside of processing to my email, here is the important part

Re: [PHP] best way todo a case insensitive str_replace

2005-02-21 Thread Guillermo Rauch
http://ar2.php.net/str_ireplace On Mon, 21 Feb 2005 15:54:33 -, pmpa [EMAIL PROTECTED] wrote: Hi all. What is the best way to do a string insensitive replace? Currently I am doing: $replace = g r; $arr = explode( ,$replace); $text = PHP is GreaT!; for($i=0;icount($arr);$i++){

RE: [PHP] best way todo a case insensitive str_replace

2005-02-21 Thread Jay Blanchard
[snip] What is the best way to do a string insensitive replace? [/snip] http://us2.php.net/manual/en/function.eregi-replace.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] best way todo a case insensitive str_replace

2005-02-21 Thread Ville Mattila
pmpa wrote: What is the best way to do a string insensitive replace? Currently I am doing: I would encourage you to use eregi_replace function that uses regular expressions. $text = eregi_replace(([gr]), b\\1/b, $text); Ville -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] best way todo a case insensitive str_replace

2005-02-21 Thread John Nichel
pmpa wrote: Hi all. What is the best way to do a string insensitive replace? Currently I am doing: $replace = g r; $arr = explode( ,$replace); $text = PHP is GreaT!; for($i=0;icount($arr);$i++){ $text = str_replace(strtolower($arr[$i]),b.strtolower($arr[$i])./b,$text); $text =

[PHP] [NEWBIE] PEAR Help

2005-02-21 Thread Brett Patterson
Hello all. I am new to using PEAR, but not so much to PHP. I was looking for a little help. I'm trying to get my contact script to work with the PEAR::Mail extension. So I followed the tutorial on pear.php.net about using the object = Mail::factory() and then the object::send() method to

Re: [PHP] Windows COM programming.

2005-02-21 Thread tg-php
I might be able to provide a little insight, but all my code that I've done COM work with is at home so I can't send you any samples right this second. I've used PHP and COM to interface with Excel, Outlook and MapPoint. I'm not terribly familiar with using Objects with PHP, but have done a

[PHP] [NEWBIE] PEAR::Mail Help Please

2005-02-21 Thread Brett Patterson
Hello all. I am new to using PEAR, but not so much to PHP. I was looking for a little help. I'm trying to get my contact script to work with the PEAR::Mail extension. So I followed the tutorial on pear.php.net about using the object = Mail::factory() and then the object::send() method to

RE: [PHP] [NEWBIE] PEAR::Mail Help Please

2005-02-21 Thread Jay Blanchard
[snip] require_once('config.php'); Config.php [/snip] Perhaps it is a capitalization issue? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] [NEWBIE] PEAR::Mail Help Please

2005-02-21 Thread Jay Blanchard
[snip] Hello all. I am new to using PEAR, but not so much to PHP. I was looking for a little help. [/snip] Have you tried a PEAR mailing list? http://pear.php.net/support/lists.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [NEWBIE] PEAR::Mail Help Please

2005-02-21 Thread Jason Barnett
Jay Blanchard wrote: [snip] Hello all. I am new to using PEAR, but not so much to PHP. I was looking for a little help. [/snip] Have you tried a PEAR mailing list? http://pear.php.net/support/lists.php Agreed... some of us on this list use PEAR, but PEAR developers will often watch the

[PHP] weird mail function problem

2005-02-21 Thread Ahmed Abdel-Aliem
hi i use this code to send email from mysite but when it sends to some accounts it repeats the body part twice in the same email while to other accounts it sends the body one time only can anyone help in that plz ? if ($email_to != ) { $to = array(); $to =

Re: [PHP] weird mail function problem

2005-02-21 Thread Randy Johnson
You should have this at the top of your for loop $body=; Ahmed Abdel-Aliem wrote: hi i use this code to send email from mysite but when it sends to some accounts it repeats the body part twice in the same email while to other accounts it sends the body one time only can anyone help in that plz ?

RE: [PHP] weird mail function problem

2005-02-21 Thread Brett Patterson
First off, this is not the most efficient way to send mail as it closes reopens connections to the server for each mail. Look into using PEAR. Secondly, I would not loop through everything for each email address. One way to do it would be to say: If($email_to != ){ $to = explode(,,

[PHP] php temporary files

2005-02-21 Thread Péntek Imre
Hi, Now I want to see all my temporary php files in /tmp/php. I made these settings: [EMAIL PROTECTED]:~# cat /etc/php.ini |grep /tmp/php upload_tmp_dir =/tmp/php session.save_path = /tmp/php soap.wsdl_cache_dir=/tmp/php [EMAIL PROTECTED]:~# But when I use gzopen() or gzfile() the temporary

Re: [PHP] php temporary files

2005-02-21 Thread dan
Péntek Imre wrote: Hi, Now I want to see all my temporary php files in /tmp/php. I made these settings: [EMAIL PROTECTED]:~# cat /etc/php.ini |grep /tmp/php upload_tmp_dir =/tmp/php session.save_path = /tmp/php soap.wsdl_cache_dir=/tmp/php [EMAIL PROTECTED]:~# But when I use gzopen() or gzfile()

Re: [PHP] weird mail function problem

2005-02-21 Thread Richard Lynch
Ahmed Abdel-Aliem wrote: hi i use this code to send email from mysite but when it sends to some accounts it repeats the body part twice in the same email while to other accounts it sends the body one time only can anyone help in that plz ? if ($email_to != ) { $to =

Re: [PHP] Fatal error: Maximum execution time

2005-02-21 Thread Richard Lynch
Stanislav Kuhn wrote: I've got a processing script which takes long time to finish. The script includes several others and is ran from command line(by cron). I've sent phpinfo from inside of processing to my email, here is the important part max_execution_time = 1800 = 0 So your php.ini has

Re: [PHP] Can't load extension (was Re: PHP to C interface?)

2005-02-21 Thread Richard Lynch
N Deepak wrote: On Fri, Feb 18, 2005 at 09:20:02AM -0800, Richard Lynch wrote: N Deepak wrote: Is there a way to invoke C functions in a library (.so) from PHP? Like Xs in Perl? By definition, then, all you have to do is learn how to write a PHP extension, which Rasmus tells you

Re: [PHP] php request entity body help

2005-02-21 Thread Richard Lynch
Å£À¤ wrote: I'm trying to get the entity body part from an http request. Is there an API which can do the job? We use post to communicate. But I don't the name of post. Search the http://php.net/ site for HTTP_RAW_POST_DATA I think that will have what you want. -- Like Music?

Re: [PHP] Is there a way I can read full path names of files on the server and enter it into the database ?

2005-02-21 Thread Richard Lynch
Vaibhav Sibal wrote: I wanted to ask whether there is a way whereby a script can read filenames from a particular directory on the server and enter those filenames with the complete path into the MySQL database? I am trying to do this, because I am developing an application where a supervisor

Re: [PHP] php temporary files

2005-02-21 Thread Marek Kilimajer
Péntek Imre wrote: Hi, Now I want to see all my temporary php files in /tmp/php. I made these settings: [EMAIL PROTECTED]:~# cat /etc/php.ini |grep /tmp/php upload_tmp_dir =/tmp/php session.save_path = /tmp/php soap.wsdl_cache_dir=/tmp/php [EMAIL PROTECTED]:~# But when I use gzopen() or gzfile()

[PHP] Re: The length of midi

2005-02-21 Thread Eli
Hi, Bauglir wrote: Does anybody know how to determine the length (in seconds) of midi melody? There's a free library I use to fetch useful data on files such office files, audio, video, image, etc. Look at: http://www.getid3.org Hope that helps... -- PHP General Mailing List

Re: [PHP] Can't load extension (was Re: PHP to C interface?)

2005-02-21 Thread N Deepak
On Mon, Feb 21, 2005 at 02:08:28PM -0800, Richard Lynch wrote: I downloaded php-4.3.10 and tried to create a simple extension. I followed instructions exactly as ext_skel told. I modified config.m4 only in the PHP_ARG_ENABLE() lines. I ran buildconf, configure --with-foo, make and

[PHP] Re: Unable to load extension (was Re: PHP to C interface?)

2005-02-21 Thread N Deepak
Jason Barnett wrote: Now when I say ../sapi/cli/php -f ext/foo/foo.php I get this error: Warning: dl(): Unable to load dynamic library Were you actually trying to dl() the library in your PHP code? If you compiled the extension into PHP this shouldn't be necessary. In fact,

[PHP] Sessions and cookies

2005-02-21 Thread Jacques
When a session object is created - where is it store? (Perhaps on the application server - IIS or Appatche?) Or on a cookking on a user's computer? To destroy the session object (widht all session vairables inside the particluar session object) can I use session_destroy(); What is also the

RE: [PHP] Sessions and cookies

2005-02-21 Thread Brett Patterson
Well, if you look in your phpinfo() file, you will see a SESSION_TIMEOUT or SESSION_LENGTH value that is something like 18... different for each server. If you hold all your session values in the array, then you can use session_destory(); as long as session_start() is previous to that. I am

Re: [PHP] Relative URLs

2005-02-21 Thread Justin French
Pedro, Something has got to give somewhere. You can't have all those requirements without some sort of trade off -- especially if you're dealing with some sort of CMS or with content entered by some non-technical writers. The common solution is to use PHP to write the links for you in some