[PHP] limit on the mail function

2006-02-13 Thread spamdetect
Hello! I would like to know whether some limits on the mail function could be set. We host a lot of virtual hosts and some of our users send a lot of messages by the mail() function. However I would like to implement a limit such as max. 512 emails per virtualhost per hour. Is it possible with

[PHP] Re: limit on the mail function

2006-02-13 Thread Barry
[EMAIL PROTECTED] wrote: Hello! I would like to know whether some limits on the mail function could be set. We host a lot of virtual hosts and some of our users send a lot of messages by the mail() function. However I would like to implement a limit such as max. 512 emails per virtualhost per

Re: [PHP] Re: limit on the mail function

2006-02-13 Thread Paul Scott
On Mon, 2006-02-13 at 10:07 +0100, Barry wrote: > No, but you can configure the virtual hosts that PHP uses POP3 logins to > send mail. > Then you can configure your mail server like that. > Or you could update and increment a file/dbtable or something every mail sent. That way you could disable

[PHP] doubt in mail function

2006-02-13 Thread suresh kumar
hello everybody, i am having one doubt in sending mail in php.in my company our mail server is in windows,but my php code for mail function in linux,i set the code as if(@mail('[EMAIL PROTECTED]','hi suresh','this is test','From:[EMAIL PROTECTED]')): both from and to addr

Re: [PHP] doubt in mail function

2006-02-13 Thread Paul Scott
On Mon, 2006-02-13 at 10:05 +, suresh kumar wrote: > both from and to address are valid but mail > is not receiving to [EMAIL PROTECTED], > The PHP mail() function will use sendmail/postfix/etc (your hosts MTA), if you plan on using a mail relay i.e. an SMTP server to send mail, you

[PHP] Re: doubt in mail function

2006-02-13 Thread Barry
suresh kumar wrote: hello everybody, i am having one doubt in sending mail in php.in my company our mail server is in windows,but my php code for mail function in linux,i set the code as if(@mail('[EMAIL PROTECTED]','hi suresh','this is test','From:[EMAIL PROTECTED]')):

[PHP] Re: PHP Session

2006-02-13 Thread Jochem Maas
he Kurt, Given the question you ask is very much a beginners question I assume that you are not working for LCMG as a programmer? nothing wrong with that, per se ... BUT working for a large IT company you are expected to realise that the whole internet community is not just there to answer you y

Re: [PHP] scope of classes in PHP

2006-02-13 Thread Jochem Maas
Stuart Bailey wrote: Hi I'm developing an app to administer LDAP (phpLdapAdmin is too complex for the customer). I have created an LDAP class, in a file class_ldap.php. It include methods for connecting to the server, binding a DN (effectively login), and adding posix groups. I have an index

Re: [PHP] Re: Clone of the concurrent users limit of Zend Encoder 4.0 ?

2006-02-13 Thread HoWang Wang
Curt Zirzow wrote: On Sun, Feb 12, 2006 at 10:32:27AM -0500, Mark Charette wrote: Let me give an example: on fileplanet.com, they have something so called "download slot" and "lines". They limit the number of concurrent downloads. If there are too many users, they will disallow new user to dow

[PHP] phpinfo returns a permission error

2006-02-13 Thread Dave M G
PHP list, I wanted to adjust my register global settings in my php.ini file. I found instructions on this page: http://www.dmcinsights.com/phpmysql/phpini.php The first thing it says to do is take a look at the results of phpinfo(); to see where the php.ini file actually is. So

Re: [PHP] phpinfo returns a permission error

2006-02-13 Thread Kevin Kinsey
Dave M G wrote: PHP list, I wanted to adjust my register global settings in my php.ini file. I found instructions on this page: http://www.dmcinsights.com/phpmysql/phpini.php The first thing it says to do is take a look at the results of phpinfo(); to see where the php.ini file actual

RE: [PHP] phpinfo returns a permission error

2006-02-13 Thread Jay Blanchard
[snip] I wanted to adjust my register global settings in my php.ini file. I found instructions on this page: http://www.dmcinsights.com/phpmysql/phpini.php The first thing it says to do is take a look at the results of phpinfo(); to see where the php.ini file actually is. So I c

[PHP] safe_mode + move_upload_file

2006-02-13 Thread fjug
Hi, I try to use move_upload_file function with safe_mode (with PHP 4.3.10). When I turn the safe_mode off, the function works fine, but when I turn it back to on, the function doesn't work (with no error message). When I read the documentation about safe_mode, I do not see any restriction conce

RE: [PHP] safe_mode + move_upload_file

2006-02-13 Thread Jay Blanchard
[snip] I try to use move_upload_file function with safe_mode (with PHP 4.3.10). When I turn the safe_mode off, the function works fine, but when I turn it back to on, the function doesn't work (with no error message). When I read the documentation about safe_mode, I do not see any restriction con

[PHP] Converting piped data from stdin to phpcgi

2006-02-13 Thread zedleon
I am using php as a cgi. The data from my html is piped through stdin using this code: The result I am getting looks like this: (which is correct) sender_name=zedleon&[EMAIL PROTECTED]&sender_msg=This+is+a +test&Submit=Submit What I need to do now is to convert the piped string into the individu

[PHP] RE: safe_mode + move_upload_file

2006-02-13 Thread fjug
Le Mon, 13 Feb 2006 09:09:54 -0600, Jay Blanchard a écrit : > From TFM > > http://us2.php.net/manual/en/function.move-uploaded-file.php > > "Note: move_uploaded_file() is both safe mode and open_basedir aware. > However, restrictions are placed only on the destination path as to allow > the movi

RE: [PHP] Converting piped data from stdin to phpcgi

2006-02-13 Thread Jay Blanchard
[snip] I am using php as a cgi. The data from my html is piped through stdin using this code: The result I am getting looks like this: (which is correct) sender_name=zedleon&[EMAIL PROTECTED]&sender_msg=This+is+a +test&Submit=Submit What I need to do now is to convert the piped string into the i

[PHP] Converting piped data to values from html to phpcgi

2006-02-13 Thread zedleon
I am using php as a cgi. The data from my html is piped through stdin using this code: The result I am getting looks like this: (which is correct) sender_name=zedleon&[EMAIL PROTECTED]&sender_msg=This+is+a +test&Submit=Submit What I need to do now is to convert the piped string into the individu

[PHP] GPG on Safe Mode - Other Options

2006-02-13 Thread Mike Pogue
Hi all, I'm trying to use GPG encryption on a server with Safe Mode on so exec, system ... do not work. Also I can not load any pecl modules. Is any other way I can encrypt/decrypt from PHP using the public/secret key model? Many Thanks, Mike

RE: [PHP] Converting piped data to values from html to phpcgi

2006-02-13 Thread Dan Parry
This works for me: ' . $arr['sender_name']; ?> That routine should create variables with the names of the arguments as well as an associative array of the string HTH Dan -Original Message- From: zedleon [mailto:[EMAIL PROTECTED] Sent: 13 February 2006 14:38 To: php-general@lists.php.n

Re: [PHP] Converting piped data to values from html to phpcgi

2006-02-13 Thread Jochem Maas
also check out these 2 funcs: http://php.net/parse_str http://php.net/parse_url Dan Parry wrote: This works for me: $temp = 'sender_name=zedleon&[EMAIL PROTECTED]& sender_msg=This+is+a+test&Submit=Submit'; $arr = array(); foreach (explode('&', $temp) as $v) { $split = explode('=', $v)

RE: [PHP] unsupported binary characters in database,

2006-02-13 Thread Mark Steudel
I found another way to deal with this. And that's to run the encrypted string through base64_encode before inserting into database and running base64_decode when pulling it out of the database. Mark -Original Message- From: Mark Steudel [mailto:[EMAIL PROTECTED] Sent: Sunday, February 1

[PHP] doubt in mail() in php

2006-02-13 Thread suresh kumar
this is my code if(@mail('[EMAIL PROTECTED]','subject','hai this is the test','[EMAIL PROTECTED]')): print "mail sent succesfully"; else: print "mail can send"; endif; i dont know whether there is any problem with my coding or server problem.both from

Re: [PHP] doubt in mail function

2006-02-13 Thread Jochem Maas
suresh kumar wrote: hello everybody, i am having one doubt in sending mail the way I read it you don't have a 'doubt' but a 'problem' ... (an example of the proper use of the word would be: "I doubt whether you bothered to research your problem at all before

Re: [PHP] doubt in mail() in php

2006-02-13 Thread Jochem Maas
suresh kumar wrote: this is my code if(@mail('[EMAIL PROTECTED]','subject','hai this is the test','[EMAIL PROTECTED]')): print "mail sent succesfully"; else: print "mail can send"; endif; i dont know whether there is any problem with my coding or se

RE: [PHP] Converting piped data to values from html to phpcgi

2006-02-13 Thread Ford, Mike
On 13 February 2006 14:38, zedleon wrote: > I am using php as a cgi. The data from my html is piped through stdin > using this code: > $fp=popen("cat","r"); > $str=fgets($fp); > print $str; > > > > The result I am getting looks like this: (which is correct) > sender_name=zedleon&[EMAIL PROTECTE

[PHP] Problems with IIS6

2006-02-13 Thread Anders Norrbring
Hiya all! I'm trying to set up PHP 5.1 with a Win 2003 server running IIS6, but all I can out of it is a page saying: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. I doubt this is anything new, but I can't find any decent solution for i

[PHP] [HS] IDE PHP on Linux...

2006-02-13 Thread David BERCOT
Hi, I'm looking for a good IDE on Linux to code my php files... I'd like auto-completion (in php and html) and a file explorer... I've tested Eclipse (with PHP Eclipse) and Komodo but I couldn't have auto-completion on php commands !!! Do you have any idea ? Thank you very much. David. signatu

RE: [PHP] [HS] IDE PHP on Linux...

2006-02-13 Thread Shaunak Kashyap
Assuming you are open to commercial (non-freeware) IDEs and are looking for a GUI IDE, I would strongly suggest Zend Studio. It's JAVA-based so it works across multiple OSes, including Linux. It supports auto-completion and has a file explorer in addition to other nifty features. Shaunak Kashyap

RE: [PHP] [HS] IDE PHP on Linux...

2006-02-13 Thread Richard Lynch
On Mon, February 13, 2006 2:33 pm, Shaunak Kashyap wrote: > I've tested Eclipse (with PHP Eclipse) and Komodo but I couldn't have > auto-completion on php commands !!! When I saw Komodo demo-ed years and years ago, it had PHP auto-completion... It's difficult to believe that there isn't some kind

[PHP] testing text body emails

2006-02-13 Thread Mark Steudel
Im using phpmailer to send emails, with htmlbody and an alternate textbody. Any suggestions on how to test the text only body? Thanks, Mark

RE: [PHP] testing text body emails

2006-02-13 Thread Brady Mitchell
If you have a linux box, use mutt or pine. Also, most Windows mail clients allow you to turn off HTML mail. Check your client documentation / help files. Brady > -Original Message- > From: Mark Steudel [mailto:[EMAIL PROTECTED] > Sent: Monday, February 13, 2006 1:40 PM > To: php-genera

Re: [PHP] testing text body emails

2006-02-13 Thread Kevin Kinsey
Mark Steudel wrote: Im using phpmailer to send emails, with htmlbody and an alternate textbody. Any suggestions on how to test the text only body? Thanks, Mark Sure. Use a text-only MUA?* But, seriously, most 'Nix gurus have access to text only mail if they care to. If you've a friend

RE: [PHP] [HS] IDE PHP on Linux...

2006-02-13 Thread Jay Blanchard
[snip] I'm looking for a good IDE on Linux to code my php files... I'd like auto-completion (in php and html) and a file explorer... I've tested Eclipse (with PHP Eclipse) and Komodo but I couldn't have auto-completion on php commands !!! Do you have any idea ? [/snip] Are you sure that you have E

[PHP] What's a Blog?

2006-02-13 Thread Sam Smith
I have a client who wants to blog or he wants a blog on his website. I don't know anything about these blogs except it's sort of a fad I think. Isn't a blog just a simple web form with a big textarea on the blogger's side writing to a database and then the data is displayed in chronological orde

RE: [PHP] What's a Blog?

2006-02-13 Thread Jay Blanchard
[snip] I have a client who wants to blog or he wants a blog on his website. I don't know anything about these blogs except it's sort of a fad I think. Isn't a blog just a simple web form with a big textarea on the blogger's side writing to a database and then the data is displayed in chronological

Re: [PHP] What's a Blog?

2006-02-13 Thread Dan McCullough
Wordpress is free and easy to setup. On 2/13/06, Sam Smith <[EMAIL PROTECTED]> wrote: > > > I have a client who wants to blog or he wants a blog on his website. I don't > know anything about these blogs except it's sort of a fad I think. > > Isn't a blog just a simple web form with a big textarea

RE: [PHP] [HS] IDE PHP on Linux...

2006-02-13 Thread David BERCOT
Finally, I discovered that I need to have PHP and Apache on my computer in order than Eclipse may give me auto-complete... I'll install them tomorrow !!! Thank you. David. Le lundi 13 février 2006 à 15:42 -0600, Jay Blanchard a écrit : > [snip] > I'm looking for a good IDE on Linux to code my ph

[PHP] Downloading very large files

2006-02-13 Thread Jonathan Duncan
I have an application that delivers files to the client browser. These files a very large video files. 250mb+ each. I have two options: 1) I could have PHP deliver the file with "fread", or 2) I could have PHP present a link to the file. However, for security purposes, I would rather not h

Re: [PHP] Downloading very large files

2006-02-13 Thread Rory Browne
I've seen this problem many times before, but I'm not sure what solution was found. Possible solutions: Encrypt the file, make it publicly available, and then give the right people the encryption key. Put it behind a .htaccess file allowing only the IP of the correct person - remove the .htacces

Re: [PHP] RE: safe_mode + move_upload_file

2006-02-13 Thread Chris
http://us2.php.net/manual/en/function.move-uploaded-file.php "Note: move_uploaded_file() is both safe mode and open_basedir aware. However, restrictions are placed only on the destination path as to allow the moving of uploaded files in which filename may conflict with such restrictions. move_u

Re: [PHP] Class/functions question

2006-02-13 Thread Paul Goepfert
I was able to get part of my page to load when I created the Validation class and put a call to the validation class within my table. When I did that the page loaded up until the php code to call the method and then it does not load the rest of the page.Can anyone help me with this? By the w

RE: [PHP] [HS] IDE PHP on Linux...

2006-02-13 Thread Björn Bartels
Hi there... i simply prefer using kde's quanta ... it even got some "dynamic" autocompletion... cheers bb >Finally, I discovered that I need to have PHP and Apache on my computer >in order than Eclipse may give me auto-complete... >I'll install them tomorrow !!! > >Thank you. > >David. > >Le lu

Re: [PHP] Downloading very large files

2006-02-13 Thread Jonathan Duncan
Thank you for the input. For now we are just using PHP to create symbolic links to the video files and the links are removed when they are done viewing the video. We are open to other suggest still, but for now, this fills our needs and bypasses putting so much stress on PHP as to put hundred

Re: [PHP] Downloading very large files

2006-02-13 Thread Joe Wollard
Jonathan, Not sure how you're using fread, but here's a slightly modified version of what's in the manual that might help: If my understanding of this code is correct you won't be trying to load the entire file into memory and you're not trying to store the file in a variable. All that this sho

[PHP] Re: PHP multi-threading ?

2006-02-13 Thread Oliver Grätz
Eli schrieb: > Is PHP gonna support multi-threading (not multi-processing) capabilities > in the future? Not in the near future, sorry. Depending on what you are trying to implement: Ruby has multithreading. OLLi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] [HS] IDE PHP on Linux...

2006-02-13 Thread Steve Brown
> Finally, I discovered that I need to have PHP and Apache on my computer > in order than Eclipse may give me auto-complete... No you don't. Eclipse does code completion out-of-the-box w/out installing additional software. Check your Preferences. -- PHP General Mailing List (http://www.php.net/

[PHP] Complications when sending HTML email

2006-02-13 Thread Peter Lauri
Best group member, I am sending HTML email with PHP. I use the example code in the manual to try, and the email is sent. However, it is not decoded correctly in my Outlook. I checked thru webmail clients, and then it work. I thought it was my Outlook that was not correct, but I am receiving HTML e

[PHP] PHPUnit2 and TDD

2006-02-13 Thread Paul Scott
I am busy porting/rewriting our framework (http://avoir.uwc.ac.za/projects/nextgen & http://kngforge.uwc.ac.za) from PHP4 to PHP5, and would like to know if there are any additional mailing lists that anyone knows of that are specifically focused around this topic. If there are none, I would like t

Re: [PHP] Problems with IIS6

2006-02-13 Thread Anders Norrbring
Anders Norrbring skrev: Hiya all! I'm trying to set up PHP 5.1 with a Win 2003 server running IIS6, but all I can out of it is a page saying: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. I doubt this is anything new, but I can't find a

Re: [PHP] how to learn php

2006-02-13 Thread Ligaya Turmelle
http://www.unf.edu/~rita0001/eresources/php_tutorials/index.htm LOL - I remember going to school with Albert. Never knew he got into PHP after I left. -- life is a game... so have fun. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems with IIS6

2006-02-13 Thread Anders Norrbring
Anders Norrbring skrev: Anders Norrbring skrev: Hiya all! I'm trying to set up PHP 5.1 with a Win 2003 server running IIS6, but all I can out of it is a page saying: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. I doubt this is anythin