Re: [PHP] Problem with passing and Area in a $_POST

2009-03-15 Thread tedd
At 6:31 PM -0700 3/14/09, Richard Kurth wrote: I have a script that is passing a area in a $_POST and it does not pass the data. When I try to look at the data with $_POST['fieldorder'] it its empty but when I look at it with $_REQUEST['fieldorder'] the data is there. This seams very strange to m

Re: [PHP] Problem with mysql_real_escape_string

2009-03-05 Thread haliphax
On Thu, Mar 5, 2009 at 2:11 PM, Eric Butera wrote: > On Thu, Mar 5, 2009 at 3:07 PM, haliphax wrote: >> Sadly, my company is throwing PHP out the window in favor of ASP.NET, >> as they have an irrational fear of Open Source software. Don't get me >> wrong--.NET is pretty darn cool--but I literall

Re: [PHP] Problem with mysql_real_escape_string

2009-03-05 Thread Eric Butera
On Thu, Mar 5, 2009 at 3:29 PM, Nigel Green wrote: > On 05/03/09, Eric Butera wrote: > >> Make sure to always pass your active database connection into the >> second parameter of mysql_real_escape_string.  There could be >> character set differences between your two servers too that might be >> ca

Re: [PHP] Problem with mysql_real_escape_string

2009-03-05 Thread Nigel Green
On 05/03/09, Eric Butera wrote: Make sure to always pass your active database connection into the second parameter of mysql_real_escape_string. There could be character set differences between your two servers too that might be causing issues for you. If at all possible I would recommend upgra

Re: [PHP] Problem with mysql_real_escape_string

2009-03-05 Thread Eric Butera
On Thu, Mar 5, 2009 at 3:07 PM, haliphax wrote: > Sadly, my company is throwing PHP out the window in favor of ASP.NET, > as they have an irrational fear of Open Source software. Don't get me > wrong--.NET is pretty darn cool--but I literally enjoy working in PHP. > The fact that I don't need an I

Re: [PHP] Problem with mysql_real_escape_string

2009-03-05 Thread haliphax
On Thu, Mar 5, 2009 at 2:00 PM, Eric Butera wrote: > On Thu, Mar 5, 2009 at 1:47 PM, haliphax wrote: >> On Thu, Mar 5, 2009 at 11:41 AM, Eric Butera wrote: >>> On Thu, Mar 5, 2009 at 12:21 PM, haliphax wrote: On Thu, Mar 5, 2009 at 11:08 AM, Eric Butera wrote: > On Thu, Mar 5, 2009 at

Re: [PHP] Problem with mysql_real_escape_string

2009-03-05 Thread Eric Butera
On Thu, Mar 5, 2009 at 1:47 PM, haliphax wrote: > On Thu, Mar 5, 2009 at 11:41 AM, Eric Butera wrote: >> On Thu, Mar 5, 2009 at 12:21 PM, haliphax wrote: >>> On Thu, Mar 5, 2009 at 11:08 AM, Eric Butera wrote: On Thu, Mar 5, 2009 at 12:00 PM, haliphax wrote: > On Thu, Mar 5, 2009 at 1

Re: [PHP] Problem with mysql_real_escape_string

2009-03-05 Thread haliphax
On Thu, Mar 5, 2009 at 11:41 AM, Eric Butera wrote: > On Thu, Mar 5, 2009 at 12:21 PM, haliphax wrote: >> On Thu, Mar 5, 2009 at 11:08 AM, Eric Butera wrote: >>> On Thu, Mar 5, 2009 at 12:00 PM, haliphax wrote: On Thu, Mar 5, 2009 at 10:52 AM, Eric Butera wrote: > Make sure to always

Re: [PHP] Problem with mysql_real_escape_string

2009-03-05 Thread Eric Butera
On Thu, Mar 5, 2009 at 12:21 PM, haliphax wrote: > On Thu, Mar 5, 2009 at 11:08 AM, Eric Butera wrote: >> On Thu, Mar 5, 2009 at 12:00 PM, haliphax wrote: >>> On Thu, Mar 5, 2009 at 10:52 AM, Eric Butera wrote: On Thu, Mar 5, 2009 at 11:16 AM, Nigel Green wrote: > Hi all, > >

Re: [PHP] Problem with mysql_real_escape_string

2009-03-05 Thread haliphax
On Thu, Mar 5, 2009 at 11:08 AM, Eric Butera wrote: > On Thu, Mar 5, 2009 at 12:00 PM, haliphax wrote: >> On Thu, Mar 5, 2009 at 10:52 AM, Eric Butera wrote: >>> On Thu, Mar 5, 2009 at 11:16 AM, Nigel Green wrote: Hi all, This is my first post to the list. Have been observing for

Re: [PHP] Problem with mysql_real_escape_string

2009-03-05 Thread Eric Butera
On Thu, Mar 5, 2009 at 12:00 PM, haliphax wrote: > On Thu, Mar 5, 2009 at 10:52 AM, Eric Butera wrote: >> On Thu, Mar 5, 2009 at 11:16 AM, Nigel Green wrote: >>> Hi all, >>> >>> This is my first post to the list. Have been observing for a few weeks and >>> have learnt a lot. >>> >>> I am having

Re: [PHP] Problem with mysql_real_escape_string

2009-03-05 Thread haliphax
On Thu, Mar 5, 2009 at 10:52 AM, Eric Butera wrote: > On Thu, Mar 5, 2009 at 11:16 AM, Nigel Green wrote: >> Hi all, >> >> This is my first post to the list. Have been observing for a few weeks and >> have learnt a lot. >> >> I am having an issue in one of my scripts where using the >> mysql_real

Re: [PHP] Problem with mysql_real_escape_string

2009-03-05 Thread Eric Butera
On Thu, Mar 5, 2009 at 11:16 AM, Nigel Green wrote: > Hi all, > > This is my first post to the list. Have been observing for a few weeks and > have learnt a lot. > > I am having an issue in one of my scripts where using the > mysql_real_escape_string function is stripping content out of my input d

Re: [PHP] problem with sending data

2009-02-09 Thread Chris
Mousa Masri wrote: Dear I have problem with writing large data (large text) in the database or any file . If we try to do, the field in the DB or the file will be empty . (We lose the data) . I mean by large data more them 60 Kbyte . But if we try to write small text (less then 60K) , the text

Re: [PHP] problem using crypt() without a salt

2009-01-14 Thread port23user
I figured out that I was running an older version of Suhosin. Apparently this bug is fixed in Suhosin version 0.9.23 . I upgraded and everything works great now. Thanks for the help. Thodoris wrote: > > > If no salt is provided, PHP will auto-generate a standard two character > salt by defa

Re: [PHP] problem using crypt() without a salt

2009-01-14 Thread Thodoris
I have a problem with using crypt(), passing only one parameter (ie, no salt). When I do that, I get an empty string. When I do use a salt, it returns the expected value. Does anybody have any ideas what might be causing my problem? It only happens when I run it on my linux server, but not w

Re: [PHP] Problem with fetching values...

2008-12-29 Thread chris smith
> So, PostgreSQL catch the array by "name" > >pg_fetch_array($db_query, null, PGSQL_ASSOC) > > and MySQL use the "position" > >mysql_fetch_array($db_query, MYSQL_NUM) Why? http://www.php.net/mysql_fetch_array Use MYSQL_ASSOC as the 2nd param, or leave it out and by default it uses BOTH.

Re: [PHP] Problem with fetching values...

2008-12-28 Thread Nathan Nobbe
On Sun, Dec 28, 2008 at 10:41 AM, Michelle Konzack < linux4miche...@tamay-dogan.net> wrote: > Hello, > > I have to code a compatibility layer under PHP5 for PostgreSQl and > MySQL, which mean, I have to code something like db_query() which then > can be used with mysql_query() and pg_query

Re: [PHP] Problem changing file encoding

2008-10-22 Thread Thodoris
On 22 Oct 2008 at 14:39, Thodoris wrote: Hi guys, I am developing a project and I wrote an interface to import contracts in it. The problem is that when the user uploads the file I don't know what is the encoding it has. So I decided that a good idea is to make the user tell me the encod

Re: [PHP] Problem changing file encoding

2008-10-22 Thread Yeti
A neat way to transcode between different encodings is htmlentities and html_entity_decode [1, 2] EXAMPLE: There was a user with a similar problem at phpbuilder forums [3]. Have a closer look at it. [1] http://us2.php.net/manual/en/function.htmlentities.php [2] http://us2.php.net/manual/en/fun

Re: [PHP] Problem changing file encoding

2008-10-22 Thread Ian
On 22 Oct 2008 at 14:39, Thodoris wrote: > Hi guys, > I am developing a project and I wrote an interface to import contracts > in it. The problem is that when the user uploads the file I don't know > what is the encoding it has. So I decided that a good idea is to make > the user tell me the en

Re: [PHP] problem with slash / characters

2008-10-01 Thread Ashley Sheridan
On Wed, 2008-10-01 at 12:02 -0700, Tanner Postert wrote: > ignore previous. sorry. > > I'm trying to display values from a database, the values come from the > database like this: > > [0] => Array > ( >[id] => 5 >[order_id] => 10 >[key] => ship_to_name >[value] => John Anderson >

Re: [PHP] problem with slash / characters

2008-10-01 Thread Ashley Sheridan
On Wed, 2008-10-01 at 11:40 -0700, Tanner Postert wrote: > I'm pulling a value from a database, and adding it to an array. > > The values come from the database like this: > > [0] Erm... I think you may need to repost this question! Ash www.ashleysheridan.co.uk

Re: [PHP] Problem with install lybrary GD

2008-09-26 Thread Thodoris
Hi forum I try install library GD on Centos 5 I download the gd-2.0.35.tar with the next sentece ./configure --prefix=/usr/local --with=/usr/local --with-jpeg=/usr/local make make install Here all ok. And next install the php-5.2.6 ./configure (... n parameter...) --with-gd=/usr/local/lib

RE: [PHP] Problem with install lybrary GD

2008-09-24 Thread Richard Lynch
Did you change php.ini to load in the php_gd.so file? Is this in Apache, and did you restart apache, which only reads php.ini on startup? > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 24, 2008 3:35 PM > To: php-general@lists.php.net

Re: [PHP] Problem with sorting

2008-09-22 Thread Jochem Maas
Michelle Konzack schreef: * Do not Cc: me, because I READ THIS LIST, if I write here * *Keine Cc: am mich, ich LESE DIESE LISTE wenn ich hier schreibe*

Re: [PHP] Problem with function

2008-09-12 Thread Brady Mitchell
On Sep 12, 2008, at 544AM, Jochem Maas wrote: the current error_reporting/display_errors settings. and learn about error_log() and how to 'tail' the error log (fuck knows how you go about that on windows ... then there are reasons I have a Mac ;-)) The ability to tail error logs is one of t

Re: [PHP] Problem with function

2008-09-12 Thread Jochem Maas
Jason Pruim schreef: my guess is you never reach this line. I don't think notify_email() is called, find out what is dying before you get to this line. note you'll get 'echo '10';' before you get 'echo '1';' notify_email($Record, $salesRepID); $stmt = mysqli_stmt_init($link);

Re: [PHP] Problem with function

2008-09-12 Thread Jason Pruim
On Sep 12, 2008, at 8:44 AM, Jochem Maas wrote: Jason Pruim schreef: So, I am fighting with a problem function... I have used this function on a previous project and it worked just fine, so I'm not sure what changed... The only difference is that on this site, I'm using mod_rewrite to wri

Re: [PHP] Problem with function

2008-09-12 Thread Jochem Maas
Jason Pruim schreef: So, I am fighting with a problem function... I have used this function on a previous project and it worked just fine, so I'm not sure what changed... The only difference is that on this site, I'm using mod_rewrite to write all non-existent folder requests into a php file

Re: [PHP] Problem using APC

2008-09-10 Thread David Park
Hi Nathan, Thanks for the advice. I don't think that cache getting too full is the problem because the system cache only got less than 10% full at the most. On another note, thanks for letting me know about the PECL dev list. I didn't realize that that list exists. I just sent my email to the

Re: [PHP] Problem using APC

2008-09-10 Thread Nathan Nobbe
On Wed, Sep 10, 2008 at 11:38 PM, David Park <[EMAIL PROTECTED]> wrote: > Hi All, > > I just installed APC on my server that is running PHP and the APC appears > to > be randomly crashing. Below are the symptoms that my server is > experiencing > and the configuration of my system. Has anyone se

Re: [PHP] Problem of Connection Character Sets and Collations

2008-09-09 Thread Eric Butera
On Sat, Sep 6, 2008 at 10:41 AM, <[EMAIL PROTECTED]> wrote: > php : > Which command line is right ? > 1, mysql_query("SET NAMES utf8"); > 2, mysql_query("SET NAMES utf-8"); > > Many thank for your help ! > > Edward. On the php side look at this: http://us3.php.net/manual/en/function.mysql-set-ch

Re: [PHP] Problem of Connection Character Sets and Collations

2008-09-08 Thread edwardspl
Boyd, Todd M. wrote: >>-Original Message- >>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >>Sent: Saturday, September 06, 2008 9:41 AM >>To: [EMAIL PROTECTED] >>Cc: php >>Subject: [PHP] Problem of Connection Character Sets and Collations >> >>Dear All, >> >>For displaying with unicode

RE: [PHP] Problem of Connection Character Sets and Collations

2008-09-08 Thread Boyd, Todd M.
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Saturday, September 06, 2008 9:41 AM > To: [EMAIL PROTECTED] > Cc: php > Subject: [PHP] Problem of Connection Character Sets and Collations > > Dear All, > > For displaying with unicode Character Sets problem

Re: [PHP] Problem with HTML special characters

2008-08-29 Thread Jochem Maas
Michelle Konzack schreef: * Do not Cc: me, because I READ THIS LIST, if I write here * *Keine Cc: am mich, ich LESE DIESE LISTE wenn ich hier schreibe*

Re: [PHP] Problem with HTML special characters

2008-08-28 Thread Yeti
I'm wondering why you are using ü. If you had your site in UTF-8 it would not be necessary. Even google is using UTF-8 these days. I guess your browser automaticly converts the ü in your textarea into the namespace-proper "ü". You could try using htmlentities to convert the & into & or use a diffe

Re: [PHP] Problem with using array_diff and array_combine

2008-07-28 Thread Chris
Richard Kurth wrote: > I hope I can explain what I am trying to do. > I have two tables the first one has the custom form elements > > > elements_id elements_field_type elements_field_caption members_id > 35 text test8 > 36 text

Re: [PHP] problem with DOMDocument

2008-07-18 Thread Andrew Ballard
On Fri, Jul 18, 2008 at 6:51 AM, Christoph Kappestein <[EMAIL PROTECTED]> wrote: > hi > > I have trouble while creating an DOMDocument. When I make $test = new > DomDocument('1.0'); > php tells me a warning error like: > > Entity: line 1: parser error : Start tag expected, '<' not found ... > > Bec

Re: [PHP] Problem with special characters - PHP & AJAX

2008-07-07 Thread Jason Norwood-Young
On Mon, 2008-07-07 at 19:35 +0930, Michael Kubler wrote: > Are the messages being sent as UTF-8 or something else? Is the server > sending the headers as something different to that listed in the header? > Actually, looking at it, you don't have a valid DOC-TYPE >

Re: [PHP] Problem with special characters - PHP & AJAX

2008-07-07 Thread Michael Kubler
Are the messages being sent as UTF-8 or something else? Is the server sending the headers as something different to that listed in the header? Actually, looking at it, you don't have a valid DOC-TYPE

RE: [PHP] Problem with IE 6.0

2008-06-25 Thread Edward Kay
> I have a problem with the cache in Internet Explorer version 6.0 > > When I put these lines in the page > > header ("Expires: Mon, 1 Jan 1997 01:00:00 GMT"); > header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); > header ("Cache-Control: no-cache, must-revalidate"); > header ("Pragma:

Re: [PHP] Problem with php execution and variables

2008-06-13 Thread SenTnel
Thanks! :handshake: Shawn McKenzie wrote: > > SenTnel wrote: >> Thank you Shawn! >> >> Just to make sure, "the long way" IS the correct way? >> >> Thanks again! >> >> >> >> Shawn McKenzie wrote: >>> SenTnel wrote: Hello! Im new to programing and this is the situation I have

Re: [PHP] Problem with php execution and variables

2008-06-13 Thread Shawn McKenzie
SenTnel wrote: Thank you Shawn! Just to make sure, "the long way" IS the correct way? Thanks again! Shawn McKenzie wrote: SenTnel wrote: Hello! Im new to programing and this is the situation I have with a first level basic php tutorial: One of the samples uses a simple order form that sub

Re: [PHP] Problem with php execution and variables

2008-06-13 Thread SenTnel
Thank you Shawn! Just to make sure, "the long way" IS the correct way? Thanks again! Shawn McKenzie wrote: > > SenTnel wrote: >> Hello! >> >> Im new to programing and this is the situation I have with a first level >> basic php tutorial: One of the samples uses a simple order form that >> s

Re: [PHP] Problem with php execution and variables

2008-06-13 Thread Shawn McKenzie
SenTnel wrote: Hello! Im new to programing and this is the situation I have with a first level basic php tutorial: One of the samples uses a simple order form that submits to this page and is supposed to return the values entered on that form. This is the code not working: Your order"; // Star

Re: [PHP] Problem with output_buffering directive in cli

2008-06-11 Thread Nathan Nobbe
On Wed, Jun 11, 2008 at 4:35 AM, Mike Burba <[EMAIL PROTECTED]> wrote: > I think I solved this issue by using the -d option on the commandline. > > When I use: > php -d output_buffering=On ./filename.php > > the local value / active value of output_buffering is correct. kudos, and nice find ;)

Re: [PHP] Problem with output_buffering directive in cli

2008-06-11 Thread Mike Burba
I think I solved this issue by using the -d option on the commandline. When I use: php -d output_buffering=On ./filename.php the local value / active value of output_buffering is correct. MKB On Wed, Jun 11, 2008 at 5:54 AM, Mike Burba <[EMAIL PROTECTED]> wrote: > Thanks for ideas, Nathan. > >>

Re: [PHP] Problem with output_buffering directive in cli

2008-06-11 Thread Mike Burba
Thanks for ideas, Nathan. > dunno if this was a typo on your part, but shouldnt it be, > ini_get("output_buffering") ? > yes...was getting tired last night. but it is correct in the code. > you might not be getting your settings from the ini file you think you are, > or there could be another on

Re: [PHP] Problem with output_buffering directive in cli

2008-06-10 Thread Nathan Nobbe
On Tue, Jun 10, 2008 at 10:27 PM, Mike Burba <[EMAIL PROTECTED]> wrote: > I am using Smarty templates to format HTML emails from the command > line (using cli). My typical command is: > php filename.php > > However, and I am struggling with templates that are greater than 10k. > It looks like th

Re: [PHP] problem with "include" directive under XHTML

2008-06-04 Thread Robert Huff
Uh, guys? Nevermind. To quote someone's .sig: "The truth was out there, but the lies were in my mind." I cleared out a couple of mis-conceptions, and the problem went away. Sorry for the noise. Robert Huff -- PHP General Mai

RE: [PHP] Problem with script timing out in php 4.4.8

2008-06-04 Thread Arno Kuhl
tion_time").""; echo "sleeping ".date('h:i:s').""; sleep($t); echo "stop sleeping ".date('h:i:s'); ?> ?> Same result, $t=59 works but $t=70 times out Cheers Arno -Original Message- From: Ólafur Waage [mailto:[EMAIL PROTEC

Re: [PHP] Problem with script timing out in php 4.4.8

2008-06-04 Thread Ólafur Waage
Could you try setting the max_execution_time with ini_set and confirming the status of it with ini_get ? - Waage 2008/6/4 Arno Kuhl <[EMAIL PROTECTED]>: > I recently picked up an issue when I upgraded my IDE, where the browser > window timed out while I was debugging the code. I checked with supp

Re: [PHP] problem with "include" directive under XHTML

2008-06-03 Thread Robbert van Andel
I've had this problem. It's because of the that surrounds your XML. Your php configuration probably has short tags enabled. I have had to use php to output this ' ; ?> On Tue, Jun 3, 2008 at 7:25 AM, Robert Huff <[EMAIL PROTECTED]> wrote: > >I'm working on a project that involves co

Re: [PHP] problem with "include" directive under XHTML

2008-06-03 Thread Robbert van Andel
What is the error message you are getting? On Tue, Jun 3, 2008 at 11:37 AM, Robert Huff <[EMAIL PROTECTED]> wrote: > Robbert van Andel writes: > > > I've had this problem. It's because of the that > > surrounds your XML. Your php configuration probably has short > > tags enabled. > >

Re: [PHP] problem with "include" directive under XHTML

2008-06-03 Thread Robert Huff
Robbert van Andel writes: > I've had this problem. It's because of the that > surrounds your XML. Your php configuration probably has short > tags enabled. Negative, Prior research found this problem, and the short tags setting, which was promptly set to "OFF",

Re: [PHP] Problem with Object references in an array via for loop

2008-05-29 Thread David Moylan
Also, for the record: Referring to the objects in the array directly works fine. So, syntax like $secs[$sid] = new CustomSecurity(); $secs[$sid]->load($sid); is fine, as I would expect. Don't have to define it to a simple variable like $obj in the code below. Further, if I then do $sec =

Re: [PHP] Problem with Object references in an array via for loop

2008-05-29 Thread David Moylan
Solved this. I tried setting a class variable directly and didn't have the same issue (should have tried that long ago). So that told me that my error was somewhere in some lower level code when I initialize my objects. I tracked it down to a problem where I wasn't cloning properly when I ne

Re: [PHP] Problem with Object references in an array via for loop

2008-05-29 Thread Robert Cummings
On Thu, 2008-05-29 at 14:01 -0300, Gabriel Sosa wrote: > try doing this > > $secs = array(); > foreach($_GET['sids'] as $sid){ > $obj = null; > $obj = new CustomSecurity(); > $obj->set(array('customSecurityID' => $sid)); > $secs[] = $obj; > } No, no, no. If it's a reference issue you need to

Re: [PHP] Problem with Object references in an array via for loop

2008-05-29 Thread David Moylan
Well, I did that except I'm providing the key explicitly. However, I've tried it now without the key and it's the same except for the key value. Very frustrating. Dave Gabriel Sosa wrote: I thought this line it may help, not actually the null $secs[] = $obj; i will still researching about

Re: [PHP] Problem with Object references in an array via for loop

2008-05-29 Thread Gabriel Sosa
I thought this line it may help, not actually the null $secs[] = $obj; i will still researching about this On Thu, May 29, 2008 at 2:08 PM, David Moylan <[EMAIL PROTECTED]> wrote: > Nope. Same performance. I originally had something like this (minus the > assigment to null) but I thought the c

Re: [PHP] Problem with Object references in an array via for loop

2008-05-29 Thread David Moylan
Nope. Same performance. I originally had something like this (minus the assigment to null) but I thought the confusion was in the variable assignment so I went directly to the array. I've tried your code exactly and get the same thing, assignment to null doesn't help. Dave Gabriel Sosa wro

Re: [PHP] Problem with Object references in an array via for loop

2008-05-29 Thread Gabriel Sosa
try doing this $secs = array(); foreach($_GET['sids'] as $sid){ $obj = null; $obj = new CustomSecurity(); $obj->set(array('customSecurityID' => $sid)); $secs[] = $obj; } i just don't know if the operator -> it's working wll over object arrays saludos On Thu, May 29, 2008 at 1:31 PM, Davi

Re: [PHP] problem with htmlspecialchars in version5.2.5

2008-05-19 Thread Sanjeev N
which special characters dint converted? this function converts only few special characters. try to use htmlentities function instead -- Regards, Sanjeev http://www.sanchanworld.com | http://webdirectory.sanchanworld.com - submit your site On 5/17/08, It flance <[EMAIL PROTECTED]> wrote: > > Hi

Re: [PHP] problem with htmlspecialchars in version5.2.5

2008-05-18 Thread Chris
It flance wrote: > Hi, > > this statement: > echo nl2br(htmlspecialchars($row['jobdescription'], ENT_QUOTES, 'UTF-8')); > > works for php4.3.10 but not for php5.2.5 What "doesn't work" exactly? What's the output in php4 compared to php5? -- Postgresql & php tutorials http://www.designmagick.co

Re: [PHP] problem with for loop

2008-05-02 Thread Richard Kurth
Nathan Nobbe wrote: On Fri, May 2, 2008 at 1:20 AM, Richard Kurth <[EMAIL PROTECTED] > wrote: Way does my for loop not complete the task if there are 4 emails it only process 3 emails through the foreach loop if there is 3 it only process 2 $file=file_

Re: [PHP] problem with for loop

2008-05-02 Thread Nathan Nobbe
On Fri, May 2, 2008 at 1:20 AM, Richard Kurth <[EMAIL PROTECTED]> wrote: > Way does my for loop not complete the task if there are 4 emails it only > process 3 emails through the foreach loop if there is 3 it only process 2 > > $file=file_get_contents("C:\web\bouncehandler\eml\em$i"); > $multiArra

Re: [PHP] problem imap_headerinfo

2008-04-30 Thread Kalle Sommer Nielsen
Hi Richard Like Chris replied, then the returned value of imap_headerinfo() is an stdClass object. You can iterate though all the object properties like this: $header = ''; foreach($mail_head as $headerbit => $value) { if(empty($value)) { continue; } $header .= $headerbit .

Re: [PHP] problem imap_headerinfo

2008-04-30 Thread Chris
Richard Kurth wrote: > I get a *Catchable fatal error*: Object of class stdClass could not be > converted to string on this line $mail_head = imap_headerinfo($conn, $i); RTM. http://www.php.net/imap_headerinfo It's an object, not a string. print_r($mail_head); -- PHP General Mailing List (h

Re: [PHP] Problem with DOMElement/Node

2008-04-09 Thread Andrew Ballard
On Wed, Apr 9, 2008 at 10:17 AM, Christoph Boget <[EMAIL PROTECTED]> wrote: > > DOM Nodes are specific to the document in which they were created, so > > you can't just append a node from one document into another document. > > The importNode function does what you want. > > http://us2.php.n

Re: [PHP] Problem with DOMElement/Node

2008-04-09 Thread Christoph Boget
> DOM Nodes are specific to the document in which they were created, so > you can't just append a node from one document into another document. > The importNode function does what you want. > http://us2.php.net/manual/en/function.dom-domdocument-importnode.php Interesting. Why is that, out of

Re: [PHP] Problem with DOMElement/Node

2008-04-09 Thread Andrew Ballard
On Wed, Apr 9, 2008 at 9:35 AM, Christoph Boget <[EMAIL PROTECTED]> wrote: > Could someone explain to me what I'm doing wrong? > > I'm trying to get an element from one DOMDocument and append it to a > different DOMDocument. The (simplified) output of saveXML() from the > first DOMDocument is a

Re: [PHP] Problem in a generate password function

2008-03-31 Thread tedd
At 12:20 PM -0700 3/31/08, Jim Lucas wrote: I have a very similar routine, but for the previous line, since you can reference a string as an array, I do this: $char = $possible[mt_rand(0, strlen($possible)-1)]; In this example, it would save ten function calls, if not more. just a suggestion

Re: [PHP] Problem in a generate password function

2008-03-31 Thread Jim Lucas
Mário Gamito wrote: Hi, I have the code of a function to generate a random 10 character long password following my signature. To test it i do: $clearpass = create_pass(); print('Clear: ' . $clearpass); die(); But the output is only "Clear:" Why isn't it working ? Any help would be appreciat

Re: [PHP] Problem in a generate password function

2008-03-31 Thread Stut
Mário Gamito wrote: I have the code of a function to generate a random 10 character long password following my signature. To test it i do: $clearpass = create_pass(); print('Clear: ' . $clearpass); die(); But the output is only "Clear:" Why isn't it working ? Works fine here: http://dev.stu

Re: [PHP] Problem with quotes

2008-02-21 Thread Casey
On Thu, Feb 21, 2008 at 8:04 PM, Mário Gamito <[EMAIL PROTECTED]> wrote: > Hi, > > Sorry for such a laim question. > > > > I have this code: > > $host = 'http://' . $_SERVER['HTTP_HOST']; > > "foreach($browser as $key => $val){ > echo "" . " "; > (...) " > > > but it has a bu

RE: [PHP] Problem with quotes

2008-02-21 Thread Andrés Robinet
> -Original Message- > From: Mário Gamito [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 21, 2008 11:04 PM > To: php-general@lists.php.net > Subject: [PHP] Problem with quotes > > Hi, > > Sorry for such a laim question. > > > > I have this code: > > $host = 'http://' . $_SERVER[

Re: [PHP] problem with imagefontwidth function, It looks to be unavailable...

2008-02-08 Thread Daniel Brown
On Feb 8, 2008 2:50 PM, Børge Holen <[EMAIL PROTECTED]> wrote: > am I readin an comercial but wait, there's more! Order within the next 6.3 seconds and you'll receive a cloned version of my first born, ABSOLUTELY FREE! -- Daniel P. Brown Senior Unix Geek -- PHP General Mailing List

Re: [PHP] problem with imagefontwidth function, It looks to be unavailable...

2008-02-08 Thread Børge Holen
On Thursday 07 February 2008 17:17:30 David Giragosian wrote: > On 2/7/08, Daniel Brown <[EMAIL PROTECTED]> wrote: > > On Feb 7, 2008 8:23 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > > > Legolas wood schreef: > > > > Hi > > > > Thank you for reading my post > > > > I am trying to run a php based a

Re: [PHP] problem with imagefontwidth function, It looks to be unavailable...

2008-02-08 Thread Richard Lynch
You probably do not have GD installed... Does list "GD" as one of your extensions? If not, install it. On Thu, February 7, 2008 6:57 am, Legolas wood wrote: > Hi > Thank you for reading my post > I am trying to run a php based application using php5 and apache. > but I receive an error like: >

Re: [PHP] problem with imagefontwidth function, It looks to be unavailable...

2008-02-07 Thread David Giragosian
On 2/7/08, Daniel Brown <[EMAIL PROTECTED]> wrote: > > On Feb 7, 2008 8:23 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > > Legolas wood schreef: > > > Hi > > > Thank you for reading my post > > > I am trying to run a php based application using php5 and apache. > > > but I receive an error like: > >

Re: [PHP] problem with imagefontwidth function, It looks to be unavailable...

2008-02-07 Thread Daniel Brown
On Feb 7, 2008 8:23 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Legolas wood schreef: > > Hi > > Thank you for reading my post > > I am trying to run a php based application using php5 and apache. > > but I receive an error like: > > > > > > *Fatal error*: Call to undefined function imagefontwidt

Re: [PHP] problem with imagefontwidth function, It looks to be unavailable...

2008-02-07 Thread Jochem Maas
Legolas wood schreef: Hi Thank you for reading my post I am trying to run a php based application using php5 and apache. but I receive an error like: *Fatal error*: Call to undefined function imagefontwidth() in */var/www/v603/includes/functions.php* on line *28* that would tend to indicate

Re: [PHP] Problem with ocasional blank value

2008-01-18 Thread Richard Lynch
On Fri, January 18, 2008 9:12 am, Joey wrote: > I have a problem that the below code which is supposed to display a > random > image and on occasion it shows NO image. > > I'm not sure what is happening. This is running on linux just in case > that > makes any difference. > > <% > > $image_folder

Re: [PHP] Problem with ocasional blank value

2008-01-18 Thread Jim Lucas
Joey wrote: Hi All, I have a problem that the below code which is supposed to display a random image and on occasion it shows NO image. I'm not sure what is happening. This is running on linux just in case that makes any difference. <% $image_folder = "new_random/"; $dir = $_SERVER[

Re: [PHP] Problem with ocasional blank value

2008-01-18 Thread Jochem Maas
Joey schreef: Hi All, I have a problem that the below code which is supposed to display a random image and on occasion it shows NO image. I'm not sure what is happening. This is running on linux just in case that makes any difference. <% $image_folder = "new_random/"; $dir = $_SERVE

Re: [PHP] Problem with ocasional blank value

2008-01-18 Thread Eric Butera
On Jan 18, 2008 10:12 AM, Joey <[EMAIL PROTECTED]> wrote: > Hi All, > > > > I have a problem that the below code which is supposed to display a random > image and on occasion it shows NO image. > > I'm not sure what is happening. This is running on linux just in case that > makes any difference. >

Re: [PHP] Problem with sessions.

2008-01-13 Thread Jochem Maas
Balasubramanyam A schreef: Could someone help with this code? It is a search and delete program. I'm executing bunch of code within if-else statement. After searching the records in else block the code is redirecting to if block. I'm not able delete the records in else block. How do avoid the con

Re: [PHP] problem sending emamil across one postfix server

2008-01-05 Thread Miren Urkixo
rig_to=<[EMAIL PROTECTED]>, relay=none, delay=0, status=deferred (delivery temporarily suspended: transport is unavailable) - Original Message - From: "Jim Lucas" <[EMAIL PROTECTED]> To: "Miren Urkixo" <[EMAIL PROTECTED]> Cc: Sent: Saturday, Jan

Re: [PHP] problem sending emamil across one postfix server

2008-01-04 Thread Miren Urkixo
But how can i make it? thanks, a lot of thanks - Original Message - From: "Jim Lucas" <[EMAIL PROTECTED]> To: "Miren Urkixo" <[EMAIL PROTECTED]> Cc: Sent: Saturday, January 05, 2008 12:08 AM Subject: Re: [PHP] problem sending emamil across one post

Re: [PHP] problem sending emamil across one postfix server

2008-01-04 Thread Jim Lucas
Miren Urkixo wrote: > Hello i want from one php page to send emails but i have one great problem. > The server is one postfix into one suse and the php pages are into the same > server with apache 2 and php 5. > it doesn't sent the messages and into the email server logs appears this: > Jan 3 16:2

Re: [PHP] problem with url_fopen on free hosting environment

2007-11-29 Thread Samuel Vogel
Ok, I did find a solution by accident. I just blocked all tcp requests on port 80 and 443 comming from my own outside IP. Since I have a couple of servers, I just dropped the following into rc.local on all of them: # Blocking url_fopen requests ownip=`curl -s http://checkip.dyndns.org | awk '{

Re: [PHP] problem with url_fopen on free hosting environment

2007-11-28 Thread Samuel Vogel
Thanks for the infos. I read through the very interesting post, but I did not find it to be a solution for my problem. I tried to limit connections with iptables, but it did not work out. I'm not an expert at this, I tried like it is described here: http://www.linux-noob.com/forums/index.php?sh

Re: [PHP] problem with url_fopen on free hosting environment

2007-11-28 Thread Samuel Vogel
I know that the same is possible using curl, but with url_fopen on it's just way easier. We also allready use the suhosin patch & extension, but there is no directive to limit fopen, you can just limit include directives. We also have a limited number of requests, but that's not the point. The

RE: [PHP] problem with url_fopen on free hosting environment

2007-11-27 Thread Andrés Robinet
I might be wrong but I think your problem goes beyond allowing URLs in fopen. A user could just as well use cURL to build a self-calling script. You might need to put a filter on apache on the number of requests (what's the version of apache?). The usual problem with allowing URLs in fopen and in

Re: [PHP] Problem retrieving $_POST values

2007-11-13 Thread Jon Westcot
Hi Chris, et al.: > > Here's a section of what comes back when I do this: > > > > [mls] => 1234567 > > [property_address] => Main St > > [city_arr] => Array > > ( > > [0] => CHNDHT > > [1] => CHNDLR > > [2] => GILBER > > [3] =

Re: [PHP] Problem retrieving $_POST values

2007-11-13 Thread Philip Thompson
On Nov 13, 2007 7:01 AM, chris smith <[EMAIL PROTECTED]> wrote: > On Nov 13, 2007 7:10 PM, Jon Westcot <[EMAIL PROTECTED]> wrote: > > Hi Chris: > > > > > Exactly as you have there. > > > > > > print_r($_POST); > > > > > > will show you everything. > > > > Here's a section of what comes back wh

Re: [PHP] Problem retrieving $_POST values

2007-11-13 Thread chris smith
On Nov 13, 2007 7:10 PM, Jon Westcot <[EMAIL PROTECTED]> wrote: > Hi Chris: > > > Exactly as you have there. > > > > print_r($_POST); > > > > will show you everything. > > Here's a section of what comes back when I do this: > > [mls] => 1234567 > [property_address] => Main St > [cit

Re: [PHP] Problem retrieving $_POST values

2007-11-13 Thread Jon Westcot
Hi Chris: > Exactly as you have there. > > print_r($_POST); > > will show you everything. Here's a section of what comes back when I do this: [mls] => 1234567 [property_address] => Main St [city_arr] => Array ( [0] => CHNDHT [1] => CHNDLR

Re: [PHP] Problem retrieving $_POST values

2007-11-12 Thread Chris
Jon Westcot wrote: Hi all: I'm having problems retrieving an array value that should be in a $_POST setting. In fact, I'm having trouble with the code hanging with no warnings or errors whatsoever, so I've got no clue why it's not working. Working code: if(isset($_POST["mls"]))

<    1   2   3   4   5   6   7   8   9   10   >