RE: [PHP] Upgrading PHP 4.2.3 to PHP 4.3.2

2005-08-17 Thread T.N.Prasad
Hi Torgny All, Thanks for all the responses suggestions. Thanks TNP Professional Services ZUSTEK INDIA -Original Message- From: Torgny Bjers [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 16, 2005 6:51 PM To:

[PHP] Output Buffering Error? 4.3.10??

2005-08-17 Thread Joe Harman
Hello, is anyone here getting an intermittent error like this one while running output buffering? Warning: Unexpected character in input: ' in /*//tpl.page.product.php on line 10 Parse error: parse error, unexpected T_STRING in

[PHP] Re: edit $variable online?

2005-08-17 Thread Mark Rees
Jesús Alain Rodríguez Santos [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have in a php page one ($variable = 85), I woud like to change the value from this variable online, without any data base, for example ussing a form where I can put the new value and it change the value

[PHP] Re: PHP 5 limits readfile to 1.9 MB?

2005-08-17 Thread Catalin Trifu
Hi, I've had a similar problem. The download always stopped at exactly 2.000.000 bytes. You have to work around that with: $fp = fopen($file, 'r'); if($fp) { while(!feof($fp)) { echo fread($fp, 1024768);//see the huge buffer to read into }

Re: [PHP] Anyone on the list using Moodle?

2005-08-17 Thread wayne
On Tue, 2005-08-16 at 17:41 -0400, wayne wrote: Hi, Before I post some of the install script for Moodle I thought that I would ask how $CFG gets instantiated in the install.php script. Thanks. Attach is the first 85 line of the moodle install script.What I would like to know is, if I put

[PHP] Re: access multiple databases

2005-08-17 Thread Mark Rees
Bing Du [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I need to access both MySQL and SQL server 2000 in a PHP script on RHEL 3. In phpinfo(), I noticed 'supported databases' shows 'MySQL ODBC PostgreSQL Microsoft SQL Server FrontBase Oracle 8 (oci8)'. And 'Configure

Re: [PHP] Anyone on the list using Moodle?

2005-08-17 Thread wayne
On Tue, 2005-08-16 at 17:41 -0400, wayne wrote: Hi, Before I post some of the install script for Moodle I thought that I would ask how $CFG gets instantiated in the install.php script. Thanks. Okay, I got a reply from a moodle user pointing me to an archive, apparently someone had the same

Re: [PHP] Anyone on the list using Moodle?

2005-08-17 Thread Jasper Bryant-Greene
wayne wrote: Okay, I got a reply from a moodle user pointing me to an archive, apparently someone had the same question. The answer seems to be that $CFG is an array dressed up as an object.The books that I'm learning from don't show this concept. Could some kind soul give an example. Thanks.

[PHP] PEAR and MSSQL

2005-08-17 Thread Chris Boget
We are using PEAR as our database abstraction layer for connectivity to MSSQL. It seems that, for some inexplicable reason, that our code is losing it's connection to the sql server. We have a section of our site where users can come in and fill out a form to get an insurance quote. Once

Re: [PHP] counting nested array

2005-08-17 Thread Robin Vickery
On 8/17/05, Ing. Josué Aranda [EMAIL PROTECTED] wrote: OK this the little function i made to solve this.. function countNested($array){ foreach($array as $value){ if(is_array($value)) $total=$this-countNested($value)+$total; }else{

Re: [PHP] 'God' has spoken... :-)

2005-08-17 Thread Dotan Cohen
On 8/15/05, Miles Thompson [EMAIL PROTECTED] wrote: The problem with PHP 5 is that the ISP's have to be so conservative. There's no tagging mechanism which says process these files with PHP5, use PHP 4 for everything else. Does anyone here remember that on php 3 the file extensions were

Re: [PHP] Anyone on the list using Moodle?

2005-08-17 Thread wayne
On Wed, 2005-08-17 at 04:47 -0400, wayne wrote: On Tue, 2005-08-16 at 17:41 -0400, wayne wrote: Hi, Before I post some of the install script for Moodle I thought that I would ask how $CFG gets instantiated in the install.php script. Thanks. Okay, I got a reply from a moodle user

Re: [PHP] Anyone on the list using Moodle?

2005-08-17 Thread Jasper Bryant-Greene
wayne wrote: I have one other question that I would like answered. One of the respondents in the archive file to the above question said that in PHP objects don't have to be explicitly instantiated, could someone point me to some docs that explains this.The person never did give an explanation.

[PHP] LDAP, PHP and MS Active Directory

2005-08-17 Thread Mark Rees
Apologies if this turns out to be a cross-post. I sent it to the list @ evolt, but have seen no traffic on that list for two days now. --- Hello I am using PHP v5 to write an intranet. The site is hosted on a windows 2000 server running Apache. I want to

Re: [PHP] php 5.04 register_globals aint acting right.

2005-08-17 Thread Jochem Maas
Daniel Baughman wrote: Its simply a Boolean to indicate whether or not a query should be ran and displayed, and further more its for a small intranet. Register_globals is the directive I meant to say. But your right about globals. Some applications haven't made that change yet... So unless I

Re: [PHP] Be careful! Look at what this spammer did.

2005-08-17 Thread Rory Browne
Can you explain exactly what he tried to do. I should probably be able to figure this out, but I'm not feeling too well today. He modded his message to put different email addresses into the message field using mime headers? On 8/16/05, Dotan Cohen [EMAIL PROTECTED] wrote: I have a form that my

[PHP] UML/OO/Design Pattern book recommendations?

2005-08-17 Thread Alex Gemmell
Hello all! I am readjusting my brain from years of procedural programming and I'm rapidly improving my ability to program object-oriented PHP. I'm no expert but I am keen to get my hands on as much good teaching material as I can. I already have a good appreciation for OO concepts BUT I

[PHP] run remote shell script

2005-08-17 Thread Roger Thomas
My PHP script is in svrA. How do I run a shell script in svrB? svrB does not have PHP and Apache :( Is this at all possible? Please advise. -- Roger --- Sign Up for free Email at http://ureg.home.net.my/

Re: [PHP] counting nested array

2005-08-17 Thread Ing . Josué Aranda
hahaha, thanks robin you save some seconds of mi life... it looks more pro with that if... On 8/17/05, Robin Vickery [EMAIL PROTECTED] wrote: On 8/17/05, Ing. Josué Aranda [EMAIL PROTECTED] wrote: OK this the little function i made to solve this.. function countNested($array){

[PHP] Re: run remote shell script

2005-08-17 Thread Matthew Weier O'Phinney
* Roger Thomas [EMAIL PROTECTED]: My PHP script is in svrA. How do I run a shell script in svrB? svrB does not have PHP and Apache :( Is this at all possible? Please advise. Use ssh. You will have to setup remote key authentication from svrA to svrB (so that a password will not be needed), and

Re: [PHP] UML/OO/Design Pattern book recommendations?

2005-08-17 Thread Marco Tabini
Hello Alex On 8/17/05 9:33 AM, Alex Gemmell [EMAIL PROTECTED] wrote: Can anyone recommend some books that describe: - how to plan OO projects (PHP specific would be good but isn't necessary) http://www.amazon.com/exec/obidos/tg/detail/-/1590593804/qid=1124289801/sr=8

Re: [PHP] PEAR and MSSQL

2005-08-17 Thread tg-php
Without wading through all the code and queries it might be difficult to give you an exact answer, but maybe some of us can point out a 'gotcha' or two that you can check. One that jumps to mind that I had issues with using ADODB (abstraction layer), and it was mostly with speed but I could

[PHP] optional argument when creating a function

2005-08-17 Thread D A GERM
I'm throwing a warning on a function I created. I thought a in front of the argument was supposed to make it optional. Is there something else I need to do make that argument optional? CODE //I simplified the code function doEmail($username, $link) { if (isset($link)) { print $link

Re: [PHP] Re: PHP 5 limits readfile to 1.9 MB?

2005-08-17 Thread Jordan Miller
Catalin, Wow, that worked great, thanks. I'm curious why you set a static buffer of 1024768... why not just do filesize($file), as shown at http://www.php.net/fread ? Is it better for memory usage to have a potentially smaller buffer? Also, you may want an fclose($fp) after the file has

Re: [PHP] UML/OO/Design Pattern book recommendations?

2005-08-17 Thread Alex Gemmell
Blimey! I'm not a regular to these lists so I certainly didn't expect replies from two names I recognise and respect from my years of trawling the internet for valuable PHP and CSS information! The books you both recommend look like exactly what I am after, with the slight caveat that I am

[PHP] How Can I delete an Item of one array

2005-08-17 Thread Tomás Rodriguez Orta
Hi people. How Can I do this. I want to delete an element behind of array?, what function What Can I use? best regards TOMAS - Este correo fue escaneado en busca de virus con el MDaemon Antivirus 2.27 en el dominio de

Re: [PHP] optional argument when creating a function

2005-08-17 Thread John Nichel
D A GERM wrote: I'm throwing a warning on a function I created. I thought a in front of the argument was supposed to make it optional. Is there something else I need to do make that argument optional? The ampersand does not make it optional. It passes it by reference...

Re: [PHP] How Can I delete an Item of one array

2005-08-17 Thread John Nichel
Tomás Rodriguez Orta wrote: Hi people. How Can I do this. I want to delete an element behind of array?, what function What Can I use? The last element in the array? http://us2.php.net/manual/en/function.array-pop.php -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] --

Re: [PHP] UML/OO/Design Pattern book recommendations?

2005-08-17 Thread Marco Tabini
On 8/17/05 11:08 AM, Alex Gemmell [EMAIL PROTECTED] wrote: Blimey! I'm not a regular to these lists so I certainly didn't expect replies from two names I recognise and respect from my years of trawling the internet for valuable PHP and CSS information! :) The books you both recommend

Re: [PHP] How Can I delete an Item of one array

2005-08-17 Thread Raz
I want to delete an element behind of array?, what function What Can I use? Do you mean remove the last member of an array? If so check out array_pop() at www.php.net raz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] optional argument when creating a function

2005-08-17 Thread Jordan Miller
apparently the ampersand means to treat $link as a reference, not as an optional argument: http://www.softwareprojects.org/php-functions-12.htm I think the way to do it would be to set a default value in your function so that if a value is set by the calling statement that would override

Re: [PHP] How Can I delete an Item of one array

2005-08-17 Thread Jordan Miller
you use the unset() function: unset($array[$key]); // http://www.php.net/unset you can reindex the keys if they are numeric with: $reindexedArray = array_values($array); // http://www.php.net/ array_values Jordan On Aug 17, 2005, at 1:12 PM, Tomás Rodriguez Orta wrote: Hi people. How

Re: [PHP] Re: PHP 5 limits readfile to 1.9 MB?

2005-08-17 Thread Catalin Trifu
Hi, Indeed a fclose($fp) is needed (wrote it as an example :)). 1MB is more than enough as a buffer. If you have a 53MB file, what will happen then ? I have no idea if it's a bug or a feature. Either way I did lose some hair over this when I switched from PHP4 to PHP5.

Re: [PHP] Re: PHP 5 limits readfile to 1.9 MB?

2005-08-17 Thread Jordan Miller
Ok, just checking (I am new to the fopen() function). That makes sense. Awesome, thanks! Jordan On Aug 17, 2005, at 10:19 AM, Catalin Trifu wrote: Hi, Indeed a fclose($fp) is needed (wrote it as an example :)). 1MB is more than enough as a buffer. If you have a 53MB file, what

RE: [PHP] PEAR and MSSQL

2005-08-17 Thread Michael Sims
Chris Boget wrote: We are using PEAR as our database abstraction layer for connectivity to MSSQL. It seems that, for some inexplicable reason, that our code is losing it's connection to the sql server. I've had similar problems in the past, only in my situation it was connecting from a Linux

Re: [PHP] Re: PHP 5 limits readfile to 1.9 MB?

2005-08-17 Thread Jordan Miller
turns out it's a known bug, fixed in CVS already... haven't tried the PHP 5.1 beta release yet. http://bugs.php.net/bug.php?id=32970 On Aug 17, 2005, at 10:19 AM, Catalin Trifu wrote: Hi, Indeed a fclose($fp) is needed (wrote it as an example :)). 1MB is more than enough as a

Re: [PHP] Be careful! Look at what this spammer did.

2005-08-17 Thread Dotan Cohen
On 8/17/05, Rory Browne [EMAIL PROTECTED] wrote: Can you explain exactly what he tried to do. I should probably be able to figure this out, but I'm not feeling too well today. He modded his message to put different email addresses into the message field using mime headers? I'll reply soon

[PHP] Re: optional argument when creating a function

2005-08-17 Thread Matthew Weier O'Phinney
* D A GERM [EMAIL PROTECTED]: I'm throwing a warning on a function I created. I thought a in front of the argument was supposed to make it optional. Is there something else I need to do make that argument optional? As others have noted, the ampersand tells the function to grab a reference to

Re: [PHP] Re: edit $variable online?

2005-08-17 Thread André Medeiros
If I were you I'd have a file just to define those kind of values (ie. config.php), wich would be included as needed. On 8/17/05, Mark Rees [EMAIL PROTECTED] wrote: Jesús Alain Rodríguez Santos [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have in a php page one ($variable

[PHP] Help correcting a form mailer problem...

2005-08-17 Thread zedleon
I previously built a sticky form with dynamic checkbox array's. The form works beautifully thanks to help from Jochem Mass and Kathleen Ballard. I now have a slightly different problem...I have built an email form to send the form data. I copied and used the following code which works

Re: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread Joe Wollard
I would first start out by dumping the values of $_POST['gmev'] by using print_r($_POST['gmev']); Sounds to me like you're not getting the data that your expecting from the form for some reason. Maybe $_POST['gmev'] is an array of null values? -Good Luck On Aug 17, 2005, at 12:15 PM,

[PHP] mail()

2005-08-17 Thread George B
Warning: mail() [function.mail]: Failed to connect to mailserver at localhost port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set() I checked php.ini and everything is open [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 ; For Win32 only. sendmail_from

Re: [PHP] mail()

2005-08-17 Thread John Nichel
George B wrote: Warning: mail() [function.mail]: Failed to connect to mailserver at localhost port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set() I checked php.ini and everything is open [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 ; For Win32

Re: [PHP] mail()

2005-08-17 Thread Jordan Miller
Did you install sendmail? http://www.php.net/mail Requirements For the Mail functions to be available, PHP must have access to the sendmail binary on your system during compile time. If you use another mail program, such as qmail or postfix, be sure to use the appropriate sendmail

Re: [PHP] mail()

2005-08-17 Thread André Medeiros
Do you have a mail server running? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail()

2005-08-17 Thread John Nichel
Jordan Miller wrote: Did you install sendmail? No sendmail for Windows. He either has to have a Microsoft MTA running on localhost, or use an upstream SMTP account. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] mail()

2005-08-17 Thread George B
John Nichel wrote: George B wrote: Warning: mail() [function.mail]: Failed to connect to mailserver at localhost port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set() I checked php.ini and everything is open [mail function] ; For Win32 only. SMTP = localhost smtp_port

Re: [PHP] mail()

2005-08-17 Thread George B
André Medeiros wrote: Do you have a mail server running? No, how do I get a mail server running? And does it allow me to receive e-mails, or only send? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail()

2005-08-17 Thread John Nichel
George B wrote: John Nichel wrote: snip Do you have a MTA running on localhost? No,whats an MTA? Mail Transfer Agent. A mail server. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] mail()

2005-08-17 Thread John Nichel
George B wrote: André Medeiros wrote: Do you have a mail server running? No, how do I get a mail server running? And does it allow me to receive e-mails, or only send? That is way beyond the scope of this list. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] --

Re: [PHP] mail()

2005-08-17 Thread George B
John Nichel wrote: Jordan Miller wrote: Did you install sendmail? No sendmail for Windows. He either has to have a Microsoft MTA running on localhost, or use an upstream SMTP account. There is no Microsoft MTA, I searched google couldnt find anything. so. Anyway, im screwed and I cant

[PHP] ob_start changed from php4 to php5?

2005-08-17 Thread Marten Lehmann
Hello, I have a function catching the output of a script: function encodeDomain ($domain) { ob_start(); system(echo '$domain'); $output = ob_get_contents(); ob_end_clean(); } And I have a php-script using this function: ? encodeDomain($domain);

RE: [PHP] mail()

2005-08-17 Thread Shaw, Chris - Accenture
Can you send to a smtp server provided by your isp? -Original Message- From: George B [mailto:[EMAIL PROTECTED] Sent: 17 August 2005 18:11 To: php-general@lists.php.net Subject: Re: [PHP] mail() * This e-mail has been received by the Revenue

Re: [PHP] mail()

2005-08-17 Thread John Nichel
George B wrote: John Nichel wrote: Jordan Miller wrote: Did you install sendmail? No sendmail for Windows. He either has to have a Microsoft MTA running on localhost, or use an upstream SMTP account. There is no Microsoft MTA, I searched google couldnt find anything. so. MTA is a

RE: [PHP] mail()

2005-08-17 Thread Jay Blanchard
[snip] There is no Microsoft MTA, I searched google couldnt find anything. so. [/snip] http://www.google.com/search?hl=enq=windows+mail+transfer+agent Lots of options... http://www.google.com/search?hl=enlr=q=Microsoft+MTA Actually turned up a lot of stuff. -- PHP General Mailing List

Re: [PHP] Be careful! Look at what this spammer did.

2005-08-17 Thread Greg Schnippel
I'll reply soon off list, as I don't think it appropriate to give potential spammers an archive full of new tricks. I don't know -- I think its always better to discuss this in the open if there is a real security risk that people should be aware of. A couple days after your posting to

Re: [PHP] mail()

2005-08-17 Thread George B
Shaw, Chris - Accenture wrote: Can you send to a smtp server provided by your isp? -Original Message- From: George B [mailto:[EMAIL PROTECTED] Sent: 17 August 2005 18:11 To: php-general@lists.php.net Subject: Re: [PHP] mail() * This e-mail has been

RE: [PHP] mail()

2005-08-17 Thread Shaw, Chris - Accenture
snip yeah I can send to the SMTP server of my ISP, but no where else. /snip If you can send to the smtp server then your ISP should deliver the email. If you have not filled in the sendmail_from var in the php.ini correctly, they cannot send back a mail saying there was a problem with the

Re: [PHP] Be careful! Look at what this spammer did.

2005-08-17 Thread Edward Vermillion
Greg Schnippel wrote: I'll reply soon off list, as I don't think it appropriate to give potential spammers an archive full of new tricks. I don't know -- I think its always better to discuss this in the open if there is a real security risk that people should be aware of. I tend to agree

Re: [PHP] Re: optional argument when creating a function

2005-08-17 Thread D A GERM
Thank you everyone for your help. I tried this and it worked with throwing any errors. CODE function doEmail($username, $link = null) /CODE Matthew Weier O'Phinney wrote: * D A GERM [EMAIL PROTECTED]: I'm throwing a warning on a function I created. I thought a in front of the argument

Re: [PHP] ob_start changed from php4 to php5?

2005-08-17 Thread Rory Browne
This doesn't help with your ob problem, but if you simply want to capture the output of the system cmd, then you can use $output = shell_exec($command) instead of system() IIRC. On 8/17/05, Marten Lehmann [EMAIL PROTECTED] wrote: Hello, I have a function catching the output of a script:

Re: [PHP] Re: PHP 5 limits readfile to 1.9 MB?

2005-08-17 Thread Rory Browne
Just for your information there was a topic on this a few months ago. It definately wasn't intentional - Rasmus didn't know about it until then. On 8/17/05, Jordan Miller [EMAIL PROTECTED] wrote: turns out it's a known bug, fixed in CVS already... haven't tried the PHP 5.1 beta release yet.

Re: [PHP] mail()

2005-08-17 Thread George B
Shaw, Chris - Accenture wrote: snip yeah I can send to the SMTP server of my ISP, but no where else. /snip If you can send to the smtp server then your ISP should deliver the email. If you have not filled in the sendmail_from var in the php.ini correctly, they cannot send back a mail saying

Re: [PHP] mail()

2005-08-17 Thread Stephen Johnson
Why not change the email address to be a valid one and receive through your ISP. On 8/17/05 11:28 AM, George B [EMAIL PROTECTED] wrote: Shaw, Chris - Accenture wrote: snip yeah I can send to the SMTP server of my ISP, but no where else. /snip If you can send to the smtp server then your

Re: [PHP] mail()

2005-08-17 Thread John Nichel
George B wrote: snip Ok guys! It has sent the mail succesfully everywhere! Now one more thing. How do I make it so I can receive mail? I am using my ISP's POP server but I dosent send back because my e-mail is [EMAIL PROTECTED] How do I setup my own domain and does it cost money for an e-mail?

RE: [PHP] mail()

2005-08-17 Thread Shaw, Chris - Accenture
snip Ok guys! It has sent the mail succesfully everywhere! Now one more thing. How do I make it so I can receive mail? I am using my ISP's POP server but I dosent send back because my e-mail is [EMAIL PROTECTED] How do I setup my own domain and does it cost money for an e-mail? /snip I suggest

Re: [PHP] mail()

2005-08-17 Thread André Medeiros
If you want to receive e-mails from the outside, yes, you'll have to register a domain, configure an MTA to work on windows and all that jazz. Besides, if you want to manage pop, you might as well start looking at the php4-imap / php5-imap module to be able to work with POP more easily. I might

Re: [PHP] Re: PHP 5 limits readfile to 1.9 MB?

2005-08-17 Thread Catalin Trifu
I know there was ! No one said it was intentional ! Catalin Rory Browne wrote: Just for your information there was a topic on this a few months ago. It definately wasn't intentional - Rasmus didn't know about it until then. On 8/17/05, Jordan Miller [EMAIL PROTECTED] wrote: turns

Re: [PHP] mail()

2005-08-17 Thread George B
André Medeiros wrote: If you want to receive e-mails from the outside, yes, you'll have to register a domain, configure an MTA to work on windows and all that jazz. Besides, if you want to manage pop, you might as well start looking at the php4-imap / php5-imap module to be able to work with

Re: [PHP] Be careful! Look at what this spammer did.

2005-08-17 Thread Dotan Cohen
On 8/17/05, Greg Schnippel [EMAIL PROTECTED] wrote: I'll reply soon off list, as I don't think it appropriate to give potential spammers an archive full of new tricks. I don't know -- I think its always better to discuss this in the open if there is a real security risk that people should

Re: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread zedleon
thanks for the reply... after using the print_r($_POST['gmev']); and selecting all the checkboxes to send to the form the return is Array ( [0] = on [1] = on [2] = on [3] = on ). So the values are missing. don't really know how to proceed at this point. any help is appreciated. Joe Wollard

Re: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread Jordan Miller
wherever you think you are adding data to the gmev array, you are merely adding the on string. I would search your script for the string on and you will find the problem. what you need is the value in the HTML form to be the text you want inserted into the array, such as: input

[PHP] Re: Problem using Metabase

2005-08-17 Thread Manuel Lemos
Hello, on 08/16/2005 10:17 PM Pablo Gosse said the following: [snip] I suspect that the problem is with file permissions. I recall that since Metabase uses include to load class files, the script will not exit when it fails to include a PHP class file. Assuming that is the case, make sure

Re: [PHP] Be careful! Look at what this spammer did.

2005-08-17 Thread Edward Vermillion
I believe that sendmail would send the two emails. How could it know that the headers are not part of a new message? I haven't tested it yet, but to be on the safe side I put up some filters that chech for certain content in the form. If the content is there, then nothing gets sent to mail().

Re: [PHP] mail()

2005-08-17 Thread Jasper Bryant-Greene
George B wrote: Can you send a link to a free MTA server please?? I don't mean to be rude, but this is getting beyond a joke. This is a PHP mailing list, not a PHP-and-MTAs-and-domains-and-everything-in-between mailing list. Google is your friend:

RE: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread php-mail
General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ NOD32 1.1196 (20050817) Information __ This message was checked by NOD32

RE: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread php-mail
(http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ NOD32 1.1196 (20050817) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread Jordan Miller
/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ NOD32 1.1196 (20050817) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- PHP

Re: [PHP] Be careful! Look at what this spammer did.

2005-08-17 Thread Esteamedpw
In a message dated 8/17/2005 1:17:54 P.M. Central Standard Time, [EMAIL PROTECTED] writes: I tend to agree on things like this. If it's a generic problem then I think it does everyone some good to discuss it in the open. Although I can see the point of not discussing specific problems

RE: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread php-mail
__ NOD32 1.1196 (20050817) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net

[PHP] DB access and sessions

2005-08-17 Thread Bret Walker
Hello- I'm developing a web-based system whereby users can edit documents and then e-mail the documents to selected recipients. The documents are comprised of the data from several MySQL fields. I want to make sure that two people don't edit a document at the same time. My users log in via a

Re: [PHP] DB access and sessions

2005-08-17 Thread Tyler Kiley
Since you can't be sure to be notified when a user stops editing a page, whatever solution you choose will probably involve some sort of timeout-based system. (e.g. when someone starts editing a page, set a last_opened time field on the resources, and when someone else tries to edit the same

[PHP] sending HTML (incl. embedded images) to browser

2005-08-17 Thread Jake Sapirstein
Hi List, I am a PHP newbie, pardon the elementary question - I am starting out with using print() to send HTML to the browser to be rendered. All is well with text and tables and other HTML formatting, but when trying to send IMG tags, my images aren't getting displayed. Is there a good

Re: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread Jordan Miller
__ NOD32 1.1196 (20050817) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] sending HTML (incl. embedded images) to browser

2005-08-17 Thread Jordan Miller
Hi Jake, You don't have to do anything special, you just have to have standards compliant HTML output. What is the HTML for the IMG tag output to the browser (i.e. go to the web browser, load the page in question, find the img tag, and send us this text). I think maybe your images are

Re: [PHP] sending HTML (incl. embedded images) to browser

2005-08-17 Thread Jesús Fernández
i think using echo 'img src=url/to/image/'; should display the image. if you want to make that image a link you should use: echo 'a href=your/linkimg src=url/to/image//a'; of course, you can use print or echo to send the output to the browser

Re[2]: [PHP] mail()

2005-08-17 Thread Tom Rogers
Hi, Thursday, August 18, 2005, 3:02:40 AM, you wrote: GB André Medeiros wrote: Do you have a mail server running? GB No, how do I get a mail server running? And does it allow me to receive GB e-mails, or only send? Try this, they have a free version which will do what you want. If you have a

[PHP] Re: sending HTML (incl. embedded images) to browser

2005-08-17 Thread Manuel Lemos
Hello, on 08/17/2005 07:42 PM Jake Sapirstein said the following: I am a PHP newbie, pardon the elementary question - I am starting out with using print() to send HTML to the browser to be rendered. All is well with text and tables and other HTML formatting, but when trying to send IMG tags, my

[PHP] Re: sending HTML (incl. embedded images) to browser

2005-08-17 Thread Manuel Lemos
Hello, on 08/17/2005 07:42 PM Jake Sapirstein said the following: I am a PHP newbie, pardon the elementary question - I am starting out with using print() to send HTML to the browser to be rendered. All is well with text and tables and other HTML formatting, but when trying to send IMG

[PHP] True Upload Max Filesize

2005-08-17 Thread Richard Lynch
Does anybody have a function handy to calculate/compute the True maximum upload filesize -- one that encompasses php.ini limits such as upload_max_filesize and post_max_size, as well as httpd.conf RequestBodyLimit, and maybe even takes an argument for the speed of the network connection to

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] [EMAIL PROTECTED]|%a!%k$7$?7o$G$9(B

2005-08-17 Thread info
http://awg.webchu.com/nanpara/?user1 2$BEYL\$N%a!%k$K0Y$C$F$7$^$$BgJQ?=$7LuM-$j$^$;$s!#(B $B$5$F!@hF|%a!%k$5$;$FD:$$$?!y!z0lK|1_(B(1000$B%]%$%s%H(B)$BJ,%W%l%%s%H!z!y$N7o$G$9$,!(B $Bg$K!Cf9bG/$NCK=w$N$*5RMM!JFC$K4{:'[EMAIL PROTECTED][EMAIL PROTECTED]:$-K\Ev$K6C$$$F$$$^$9!#(B

Re: [PHP] DB access and sessions

2005-08-17 Thread Terence
We use a combination of timeout and user who has locked the record in a form e.g. User A opens the form. A record id is stored in the page and the db record has 3 cols - is_locked (y/n), locked_by (user_id) locked_time (datetime) B then opens the form. If the record is locked more then 5

Re: [PHP] Re: run remote shell script

2005-08-17 Thread Roger Thomas
OK. I am able to setup remote key authentication between svrA and svrB. From svrA I can login to svrB with something like [EMAIL PROTECTED] www]$ ssh [EMAIL PROTECTED] and I can also execute a shell script like [EMAIL PROTECTED] www]$ ssh [EMAIL PROTECTED] /tmp/test.sh On svrA I have a PHP