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
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
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 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
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
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
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
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
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
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
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
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
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
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.
--
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
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
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.
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
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.
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
[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.
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
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 =
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
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++){
[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
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,
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 =
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
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
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
[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
[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
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
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 =
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 ?
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(,,
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
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()
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 =
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
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
Å£À¤ 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?
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
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()
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
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
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,
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
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
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
51 matches
Mail list logo