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 wa
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 u
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 def
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
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
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 (http://www.php.net/
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
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 supervis
Å£À¤ 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?
http://l-i
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 Rasm
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
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 != "") {
>
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,
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 f
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(",", $e
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 ?
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
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 wa
[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
[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
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 s
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 ton
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 s
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;i".strtolower($arr[$i])."",$text);
$text =
str_replace(strtoupper($arr[$i]),"".strtoupper($arr[$i])."",$text);
}
Works
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])", "\\1", $text);
Ville
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visi
[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
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;i $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
> max_ex
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;i".strtolower($arr[$i])."",$text);
$text =
str_replace(strtoupper($arr[$i]),"".strtoupper($arr[$i])."",$text);
}
Works except f
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
[
[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.
[
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
12
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.
-
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 t
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
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 te
John Nichel wrote:
The Disguised Jedi wrote:
i think you have to use the ID parameter in the input tag in your HTML
Name:
Age:
try that and see how it goes
If I'm not mistaken, ID in a form element will assign it a 'style', much
the same way as 'class' does. It's been a while since I've do
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=262&single=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.
--
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
memory_l
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 getti
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 or
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
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 woul
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 so
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
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 ñ (I'm Spanish)
But the problem comes when
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 unl
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
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 (http://www.php.n
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
51 matches
Mail list logo