php-general Digest 13 Jan 2006 02:25:04 -0000 Issue 3902

2006-01-12 Thread php-general-digest-help
php-general Digest 13 Jan 2006 02:25:04 - Issue 3902 Topics (messages 228524 through 228550): Informix webdtablade and php functions 228524 by: HENCHOZ Daniel 228525 by: Jochem Maas 228535 by: HENCHOZ Daniel Re: private, public, protected in 4.3.11 228526

Re: [PHP] Re: Sending mail with php-

2006-01-12 Thread Sameer N Ingole
James Benson wrote: alter the sendmail configuration file: /etc/mail/local-host-names If that dont work you need to setup DNS for your machine. James Benson wrote: You need a domain name pointing to your IP address for a start, then you either need to configure php.ini to use the correct

[PHP] More newsgroup problems

2006-01-12 Thread Lester Caine
This is more a test, I have been trying to look at the lists on the newserver, but I am getting an error - you are on a blocking list, connection refused So if this gets through via eMail where do I go next to get php.db and php.pecl.dev working again on news? -- Lester Caine

[PHP] Re: array of checkbox values

2006-01-12 Thread Sjef
Interesting way to solve the problem. I thought about checking whether the keys are present (if not the checkbox is set to N.) I wil definitily try this option as well. Thxs all! Sjef Al [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED] Sjef Janssen wrote: Hallo, I have a form with

Re: [PHP] private, public, protected in 4.3.11

2006-01-12 Thread Aaron Koning
exception, final, php_user_filter, interface, implements, extends, public, private, protected, abstract, clone, try, catch, throw where not introduced until PHP 5 (http://ca3.php.net/reserved). Therefore, var is the only way to define member variables prior to PHP 5. Aaron On 1/11/06, Peter

Re: [PHP] Sending mail with php-

2006-01-12 Thread Jochem Maas
Richard Heyes wrote: and phpmailer - thats also be known to help me from myself (when it comes to make a pig's ear of using the mail() function) - 3 cheers for Richard Heyes (you just know a class rocks when you can actually name the author by heart! :-). Actually it's HTMLMimeMail -

Re: [PHP] javascript in php page to use window.open()

2006-01-12 Thread Rodolfo Andrade
Hi Olga, Your Javascript window.open() is missing one argument, the name of the pop-up window: window.open(\add.html\,\MyWindowName\,\resizable=no,width=400,height=20 0\); Best Regards, Rodolfo Andrade - Original Message - From: Olga Urban To: php-general@lists.php.net Sent: Thursday,

[PHP] transferring db info

2006-01-12 Thread Ross
I am thinking about buying a vps for a year of so until a client of mine updates their dodgy server. Can you just export the mysql? Will the pdfs be exported as binary data? Will I have to re-upload them? (there are hundereds). R. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] transferring db info

2006-01-12 Thread David Grant
Ross, Ross wrote: Can you just export the mysql? Will the pdfs be exported as binary data? Will I have to re-upload them? (there are hundereds). Try using mysqldump to pull the data into a flat file full of SQL statements. You can then use the mysql command to reinsert the data. David --

Re: [PHP] php + mysql - timstamp - calculate hours remaining

2006-01-12 Thread Gregory Machin
Many Thanks for the help. OP 2 worked a treat.. now i need to run it at midnight, I was going to write a php script and call it vai crontab, but how could I iplament this a triger and stored procedure ? On 1/10/06, M. Sokolewicz [EMAIL PROTECTED] wrote: David Grant wrote:

RE: [PHP] transferring db info

2006-01-12 Thread Albert
David Grant wrote: Ross wrote: Can you just export the mysql? Will the pdfs be exported as binary data? Will I have to re-upload them? (there are hundereds). Try using mysqldump to pull the data into a flat file full of SQL statements. You can then use the mysql command to reinsert the

[PHP] Informix webdtablade and php functions

2006-01-12 Thread HENCHOZ Daniel
Hello, I've installed a SUN server under Solaris 9 with Apache 2.0.55, PHP 5.1.1, Informix 9.40.UC6, Informix Client SDK 2.90.UC3, Informix Webdatablade 4.13.UC3. Now I try to get information from the Informix database via a PHP ifx_connect function and on the same apache server using the

Re: [PHP] Informix webdtablade and php functions

2006-01-12 Thread Jochem Maas
is it possible that you are only allowing a single connection (or a number of them) and that when apache comes up it's child processes eat up all the [persistent?] connections so that there are none left for any other process? HENCHOZ Daniel wrote: Hello, I've installed a SUN server under

Re: [PHP] private, public, protected in 4.3.11

2006-01-12 Thread Zareef Ahmed
Hi Peter, Code you are using is for php version 5. That is one in only reason. You need to install PHP version 5 to run this code or just do it as simple $var type declaration. Zareef Ahmed - Original Message - From: Peter Lauri [EMAIL PROTECTED] To: php-general@lists.php.net

[PHP] preg_replace - I don't have a clue

2006-01-12 Thread Frank Bax
As I understand the docs for preg_replace(), I can enclose an PCRE expression in parenthesis and use a backreference in the replace string; but it's not working! Data coming from another system contains a lot of data in one text record which I must parse. Individual elements in the record

[PHP] input validation?

2006-01-12 Thread William Stokes
Hello, I need to check that user input text is less than 300 characters long. How? Thanks -Will -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] input validation?

2006-01-12 Thread Jay Blanchard
[snip] I need to check that user input text is less than 300 characters long. How? [/snip] string length, it's in the manual. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] input validation?

2006-01-12 Thread Silvio Porcellana
William Stokes wrote: Hello, I need to check that user input text is less than 300 characters long. How? Thanks -Will Try with strlen: http://php.net/strlen Silvio -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] input validation?

2006-01-12 Thread Larry E. Ullman
I need to check that user input text is less than 300 characters long. How? if (strlen($_POST['input']) 300) { ... You may want to also apply trim() to the input text to get rid of extraneous white space at the beginning and end of the input. Larry -- PHP General Mailing List

Re: [PHP] input validation?

2006-01-12 Thread Austin Denyer
On Thu, 12 Jan 2006 16:56:43 +0200 William Stokes [EMAIL PROTECTED] wrote: Hello, I need to check that user input text is less than 300 characters long. How? if(strlen($UserInputText) 300){ echo(Too long); } See http://www.php.net/manual/en/print/function.strlen.php Regards,

Re: [PHP] text size

2006-01-12 Thread tedd
Hi, I have a variable called $text_size which can be small, medium or large. The value is submitted by a text link a href=? $_SERVER['PHP_SELF']; ??text_size=small class=size1A/a a href=? $_SERVER['PHP_SELF']; ??text_size=medium class=size2A/a a href=? $_SERVER['PHP_SELF']; ??text_size=large

Re: [PHP] Informix webdtablade and php functions

2006-01-12 Thread HENCHOZ Daniel
No, actually there is no limitation for the number of connection to the database ... Thanks Daniel Jochem Maas wrote: is it possible that you are only allowing a single connection (or a number of them) and that when apache comes up it's child processes eat up all the [persistent?]

Re: [PHP] input validation?

2006-01-12 Thread tg-php
Hmm.. I didn't see anyone ask before or after the user clicks SUBMIT? If it's before, then you should use javascript to check the form element prior to submitting (you can check realtime with the onkeydown, onkeyup events... check after a user moves off of the form element with onchange or

Re: [PHP] Re: Sending mail with php-

2006-01-12 Thread Dotan Cohen
On 1/12/06, Sameer N Ingole [EMAIL PROTECTED] wrote: James Benson wrote: Do you get this message for all the domains you send the mail to? or you get this message from some specific domains? Did mails went to thses domains without problems earlier? When you send mail to gmail.com address

Re: [PHP] input validation?

2006-01-12 Thread Stut
[EMAIL PROTECTED] wrote: Hmm.. I didn't see anyone ask before or after the user clicks SUBMIT? Probably because this is a PHP list and nothing that happens on the client side is a) controllable by PHP or b) guaranteed. Whatever you do on the client side you should always validate

Re: [PHP] input validation?

2006-01-12 Thread Stut
[EMAIL PROTECTED] wrote: I disagree... PHP frequently involves interacting with or outright using alternative technologies to accomplish your goal. This includes HTML, XML, databases, etc. To effectively use PHP you need to understand your options and the pros/cons in using the other

Re: [PHP] input validation?

2006-01-12 Thread John Meyer
Stut wrote: Ok, you're clearly missing my point and while I don't want this to degrade into the usual pissing contest I do feel I need to clarify what I was saying. I completely agree that in this case Javascript should be used to provide the user with feedback as to how close to the limit

[PHP] Suggestions for the PHP team?

2006-01-12 Thread tatsudoshi
Hello newsgroup. I was just woundering where do a php coder send his suggestions regarding PHP? tatsudoshi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Suggestions for the PHP team?

2006-01-12 Thread Jay Blanchard
[snip] I was just woundering where do a php coder send his suggestions regarding PHP? [/snip] There is a PHP-DEV mailing list which would probably be the best place. See http://www.php.net/mailinglists -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Help for ISPs rolling out PHP

2006-01-12 Thread Ben Rockwood
I'm working with a medium sized ISP to start rolling out PHP and MySQL services to customers. I've been looking around for best practices or help with such a roll out but not found anything. I'm confident I can roll out the services but with so many other ISPs currently running PHP it seems like

Re: [PHP] Help for ISPs rolling out PHP

2006-01-12 Thread Timothy Brier
Ben Rockwood wrote: I'm working with a medium sized ISP to start rolling out PHP and MySQL services to customers. I've been looking around for best practices or help with such a roll out but not found anything. I'm confident I can roll out the services but with so many other ISPs currently

Re: [PHP] question about compositing objects

2006-01-12 Thread Tim Boring
Hi, Jonathan! On Thu, 2006-01-12 at 14:13 -0800, jonathan wrote: I have a class which creates another class within it such as: class Loc{ public function outputInfo() { $map=new Map(); $map-setKey(); } } In my main page can I access the

[PHP] Re: question about compositing objects

2006-01-12 Thread Mark
jonathan wrote: I have a class which creates another class within it such as: class Loc{ public function outputInfo() { $map=new Map(); $map-setKey(); } } In my main page can I access the $map object like this: $loc=new Loc(); $loc-map-publicMapFunction(); I

[PHP] XML-Request

2006-01-12 Thread Ron Eggler (Paykiosks)
Hi, I gotta send an XML request to a server. In the doc it's defined as follows: [request] xs:request xmlns:xs='urn:pinXpressSchema' version='1.5' langCode='en' DEALERinfo aspName=‘XXX’ dealerName='' posName='1234' posPassword='1234' userName='' userPassword='1234' / purchasePINs

Re: [PHP] question about compositing objects

2006-01-12 Thread comex
$map=new Map(); $this-map = new Map(); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] question about compositing objects

2006-01-12 Thread Aaron Koning
$map is not a member variable of the Loc class in your code... Instead do this: class Loc { // Defines a member variable var $map; // Constructor function Loc() { $this-map = new Map(); // Create map object and save to Loc object $this-map-setKey(); } } $loc = new Loc();

[PHP] PHP for Mac

2006-01-12 Thread Richard Correia
Hi, I want to install PHP5 on Mac powerbook G4. Can someone please let me know where I can find it and it's related module? I am mainly looking for GD and mingswf module on Mac. Thanks Richard

[PHP] Greetings

2006-01-12 Thread Pop Mihai Sergiu
Greetings, The scope of this document is to file a complain related to privacy of our offices e-mail address published all over the internet. If you would care to query google for the e-mail : [EMAIL PROTECTED] you would easily see what im talking about ! A while ago i`we send one or two