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

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 with a first level basic php

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 one in

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 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 ;) -nathan

[PHP] Problem with output_buffering directive in cli

2008-06-10 Thread Mike Burba
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 the Smarty output is getting truncated at about 10k. Smarty uses output_buffering, so

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 the

RE: [PHP] Re: APC + PHP Problem (apc_fcntl_lock failed: Bad file descriptor)

2008-06-04 Thread Scott McNaught [Synergy 8]
+ PHP Problem (apc_fcntl_lock failed: Bad file descriptor) Scott McNaught [Synergy 8] wrote: Hello, I am running a production server with APC and php. We recently had a crash where APC bombed out. When it does this, the server serves empty, white pages. Here is what the error_log says

[PHP] Re: APC + PHP Problem (apc_fcntl_lock failed: Bad file descriptor)

2008-06-04 Thread Colin Guthrie
Scott McNaught [Synergy 8] wrote: Thanks for your reply. I will try upgrading it. If anyone else has experienced this problem, please let me know. Something else to note, I'm using pthread locking. I read about various things and looked a presentation from Facebook's use of APC and the

[PHP] Problem with script timing out in php 4.4.8

2008-06-04 Thread Arno Kuhl
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 support and was told the problem was with php 4.4.8 which they'd upgraded to, so to confirm I installed 4.4.8 and ran a test - and it seems there is a problem

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 support

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

2008-06-04 Thread Arno Kuhl
-general@lists.php.net Subject: Re: [PHP] Problem with script timing out in php 4.4.8 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

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

[PHP] problem with include directive under XHTML

2008-06-03 Thread Robert Huff
I'm working on a project that involves converting HTML to XHTML. Not strictly sure this is a PHP issue, but testing (so far) has eliminated other possibilities. Can someone offer suggestions why, on the same server (Apache 2.2.8), this works: !DOCTYPE HTML PUBLIC -//W3C//DTD

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 ? and ? 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 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 ? and ? that surrounds your XML. Your php configuration probably has short tags enabled.

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 ? and ? that surrounds your XML. Your php configuration probably has short tags enabled. I have had to use php to output this ?PHP echo ' ?xml version=1.0 encoding=utf-8?' ; ? On Tue, Jun 3, 2008 at 7:25 AM, Robert Huff [EMAIL PROTECTED] wrote:

[PHP] Re: APC + PHP Problem (apc_fcntl_lock failed: Bad file descriptor)

2008-06-02 Thread Colin Guthrie
Scott McNaught [Synergy 8] wrote: Hello, I am running a production server with APC and php. We recently had a crash where APC bombed out. When it does this, the server serves empty, white pages. Here is what the error_log says. I have not yet found a resolution for this. There are no calls

[PHP] APC + PHP Problem (apc_fcntl_lock failed: Bad file descriptor)

2008-06-01 Thread Scott McNaught [Synergy 8]
Hello, I am running a production server with APC and php. We recently had a crash where APC bombed out. When it does this, the server serves empty, white pages. Here is what the error_log says. [Mon Jun 2 11:20:36 2008] [apc-error] apc_fcntl_lock failed: Bad file descriptor [Mon Jun 02

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

2008-05-29 Thread David Moylan
I have a snippet of code like this which works fine in PHP4. $secs = array(); foreach($_GET['sids'] as $sid){ $secs[$sid] = new CustomSecurity(); $secs[$sid]-set(array('customSecurityID' = $sid)); } However, in PHP5 (5.2.4) the array has the proper keys in it but all of the array values

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, David

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

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

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

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 do the

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

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 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.com/ --

[PHP] problem with htmlspecialchars in version5.2.5

2008-05-16 Thread It flance
Hi, this statement: echo nl2br(htmlspecialchars($row['jobdescription'], ENT_QUOTES, 'UTF-8')); works for php4.3.10 but not for php5.2.5 I am wondering if i am missing something. Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] problem with for loop

2008-05-02 Thread Richard Kurth
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 # Connect up $host =domain.com; $port =110; $mailtype = pop3; $mailbox =INBOX; $username =[EMAIL PROTECTED]; $password

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); $multiArray =

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] mailto:[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

[PHP] problem imap_headerinfo

2008-04-30 Thread Richard Kurth
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); if I remove it it works fine what would be casing this I really need to read the header. I am using php version 5.2.5 $conn = @imap_open({ .

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

Re: [PHP] problem imap_headerinfo

2008-04-30 Thread Kalle Sommer Nielsen
: [PHP] problem imap_headerinfo 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); if I remove it it works fine what would be casing this I really need to read the header. I am using php version 5.2.5

[PHP] Problem with DOMElement/Node

2008-04-09 Thread Christoph Boget
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 as follows: ?xml version=1.0 encoding=UTF-8? BranchRoot

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 as

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 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.

[PHP] Problem in a generate password function

2008-03-31 Thread Mário Gamito
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 appreciated. Warm Regards,

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:

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

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

[PHP] problem with sessions config.

2008-03-21 Thread N . Boatswain
Hello guys; i'm having a problem with session behavior; i'm going straight to it, but first some considerations: PHP Version 5.2.5IIF 5.1Running on localhost (XP machine)I start sessions at the top of every page. A the start of a test page, just as example, i do the assignment:

[PHP] problem with this regex to remove img tag...

2008-03-16 Thread Ryan A
Hey All, After searching I found this regex to remove img tags from a post, but running it is giving me an error, being a total noob with regex i have no idea what the heck is wrong heres the whole script as its tiny: ?php $html = hello .'img src=/articles-blog/imgs/paul-fat.jpg alt=

[PHP] Problem with quotes

2008-02-21 Thread Mário Gamito
Hi, Sorry for such a laim question. I have this code: $host = 'http://' . $_SERVER['HTTP_HOST']; foreach($browser as $key = $val){ echo img src=\dcs/ . $key . '.png' . / . ; (...) but it has a bug, I need to add the server domain before the picture, so I did: $host

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['HTTP_HOST

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 img src=\dcs/ . $key . '.png' . / . ; (...) but

[PHP] problem with stream_select and signals

2008-02-18 Thread Marcos Lois Bermúdez
There is any form of detect signal interrupting the stream_select call, some times a signal is not a error and there is other change to get the result, so if *_select tell me if its interruptded by signal. in socket_select i can determine if a signal interrupted the socket_select, but streams

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 ?php phpinfo();? 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

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 application using php5

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! -- /Dan Daniel P. Brown Senior Unix Geek ? while(1) { $me = $mind--;

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

2008-02-07 Thread Legolas wood
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* when line 28 and its surrounding lines are: ##

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

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 imagefontwidth() in

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: *Fatal

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 =

[PHP] Problem with ocasional blank value

2008-01-18 Thread Joey
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['DOCUMENT_ROOT'] .

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 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 =

[PHP] Problem with sessions.

2008-01-13 Thread Balasubramanyam A
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 control move to if block?

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

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

2008-01-05 Thread Miren Urkixo
, January 05, 2008 12:08 AM Subject: Re: [PHP] problem sending emamil across one postfix server 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

[PHP] Problem viewing phtml files

2008-01-05 Thread A.smith
Hi, I'm having a problem getting .phtml files to display in a web browser. I can successfully display a test.php page as per PHP install instructions but the phtml files show up blank (in firefox or IE). I have added these entries to my apache httpd.conf: LoadModule php5_module

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: php-general@lists.php.net Sent: Saturday, January 05, 2008 12:08 AM Subject: Re: [PHP] problem sending emamil across one postfix server Miren

[PHP] problem sending emamil across one postfix server

2008-01-04 Thread Miren Urkixo
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:28:55 server

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:28:55

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
PROTECTED] | MSN Chat: [EMAIL PROTECTED] | SKYPE: bestplace | Web: http://www.bestplace.biz | Web: http://www.seo-diy.com -Original Message- From: Samuel Vogel [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 27, 2007 6:13 PM To: php-general Subject: [PHP] problem with url_fopen on free

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:

[PHP] problem with url_fopen on free hosting environment

2007-11-27 Thread Samuel Vogel
Hey guys, I am running an free hosting environment and do have some trouble with allow_url_fopen. Right now we prohibit this, but it's requested by many of our users. The problem is something like to following script, which calls itself over and over again, being run on our server: ?php

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

2007-11-27 Thread Andrés Robinet
: Samuel Vogel [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 27, 2007 6:13 PM To: php-general Subject: [PHP] problem with url_fopen on free hosting environment Hey guys, I am running an free hosting environment and do have some trouble with allow_url_fopen. Right now we prohibit

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 [2]

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 [city_arr] = Array

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 when I do this: [mls]

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] = HIGLEY [4]

[PHP] Problem retrieving $_POST values

2007-11-12 Thread Jon Westcot
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])) {

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])) {

[PHP] Problem with input name, how can i use . (dot) in a name of a input type text?

2007-11-05 Thread Jônata Tyska Carvalho
Hi Im having a big problem because the name of one input type text that is ' table.name' in my html, becomes 'table_name' in php, it is a kind of bug?? =S form method=post input type=text nametable.name /form in PHP we have: $_POST[table_name] instead of $_POST[table.name] someone knows

Re: [PHP] Problem with input name, how can i use . (dot) in a name of a input type text?

2007-11-05 Thread Stut
Jônata Tyska Carvalho wrote: Im having a big problem because the name of one input type text that is ' table.name' in my html, becomes 'table_name' in php, it is a kind of bug?? =S form method=post input type=text nametable.name /form in PHP we have: $_POST[table_name] instead of

Re: [PHP] Problem with input name, how can i use . (dot) in a name of a input type text?

2007-11-05 Thread Jochem Maas
Stut wrote: Jônata Tyska Carvalho wrote: Im having a big problem because the name of one input type text that is ' table.name' in my html, becomes 'table_name' in php, it is a kind of bug?? =S form method=post input type=text nametable.name /form in PHP we have: $_POST[table_name]

Re: [PHP] Problem with input name, how can i use . (dot) in a name of a input type text?

2007-11-05 Thread Stut
Jochem Maas wrote: Stut wrote: Jônata Tyska Carvalho wrote: Im having a big problem because the name of one input type text that is ' table.name' in my html, becomes 'table_name' in php, it is a kind of bug?? =S form method=post input type=text nametable.name /form in PHP we have:

Re: [PHP] Problem with input name, how can i use . (dot) in a name of a input type text?

2007-11-05 Thread Jochem Maas
Jônata Tyska Carvalho wrote: Well if i cant, i cant! But dont say i dont need why not? Im working with a framework that works in that way. Need to put the name of the column of please name the framework - I like to know what to avoid :-) my database like the name of the input. And i

Re: [PHP] Problem with input name, how can i use . (dot) in a name of a input type text?

2007-11-05 Thread Jônata Tyska Carvalho
with regard to things not to do, don't f'ing reply off-list (unless asked), etiquette asks that you keep the conversation on the mailing list. if you wAnt to call me an ass because you don't like the way I tried to help that's fine but please do it in public :-) sorry but i thought when im

Re: [PHP] Problem with input name, how can i use . (dot) in a name of a input type text?

2007-11-05 Thread Jochem Maas
Jônata Tyska Carvalho wrote: with regard to things not to do, don't f'ing reply off-list (unless asked), etiquette asks that you keep the conversation on the mailing list. if you wAnt to call me an ass because you don't like the way I tried to help that's fine but please do it in public :-)

[PHP] problem with bind_param

2007-10-29 Thread Hulf
Hi, I am still having poblems with the php5 functions. I have 4 variables in each. What is the problem? Warning: mysqli_stmt::bind_param() [function.mysqli-stmt-bind-param]: Number of elements in type definition string doesn't match number of bind variables in on line 21 $prep =

Re: [PHP] problem with bind_param

2007-10-29 Thread Jeremy Mcentire
The PHP docs show: $stmt = $mysqli-prepare(INSERT INTO CountryLanguage VALUES (?, ?, ?, ?)); $stmt-bind_param('sssd', $code, $language, $official, $percent); for usage. Your $prep-bind_param() doesn't seem to include the definitions. 'sssd' in the above example, string, string, string,

Re: [PHP] problem with foreach

2007-10-23 Thread tedd
At 12:01 PM -0500 10/22/07, Adam Williams wrote: I have an html page with checkboxes: form action=mailform2.php method=POST input type=checkbox name=option[] value=Modern MississippiModern Mississippibr input type=checkbox name=option[] value=Civil RightsCivil Rightsbr input type=checkbox

Re: [PHP] problem with foreach

2007-10-23 Thread Andrew Ballard
On 10/23/07, tedd [EMAIL PROTECTED] wrote: At 12:01 PM -0500 10/22/07, Adam Williams wrote: I have an html page with checkboxes: form action=mailform2.php method=POST input type=checkbox name=option[] value=Modern MississippiModern Mississippibr input type=checkbox name=option[]

[PHP] problem with foreach

2007-10-22 Thread Adam Williams
I have an html page with checkboxes: form action=mailform2.php method=POST input type=checkbox name=option[] value=Modern MississippiModern Mississippibr input type=checkbox name=option[] value=Civil RightsCivil Rightsbr input type=checkbox name=option[] value=Military

Re: [PHP] problem with foreach

2007-10-22 Thread Jason Pruim
On Oct 22, 2007, at 1:01 PM, Adam Williams wrote: I have an html page with checkboxes: form action=mailform2.php method=POST input type=checkbox name=option[] value=Modern MississippiModern Mississippibr input type=checkbox name=option[] value=Civil RightsCivil Rightsbr input

Re: [PHP] problem with foreach

2007-10-22 Thread Stut
Adam Williams wrote: I have an html page with checkboxes: form action=mailform2.php method=POST input type=checkbox name=option[] value=Modern MississippiModern Mississippibr input type=checkbox name=option[] value=Civil RightsCivil Rightsbr input type=checkbox name=option[] value=Military

Re: [PHP] problem with foreach

2007-10-22 Thread Andrew Ballard
On 10/22/07, Adam Williams [EMAIL PROTECTED] wrote: I have an html page with checkboxes: form action=mailform2.php method=POST input type=checkbox name=option[] value=Modern MississippiModern Mississippibr input type=checkbox name=option[] value=Civil RightsCivil Rightsbr input

Re: [PHP] problem with foreach

2007-10-22 Thread Robert Cummings
On Mon, 2007-10-22 at 18:07 +0100, Stut wrote: Adam Williams wrote: I have an html page with checkboxes: form action=mailform2.php method=POST input type=checkbox name=option[] value=Modern MississippiModern Mississippibr input type=checkbox name=option[] value=Civil RightsCivil

Re: [PHP] problem with foreach

2007-10-22 Thread Adam Williams
Robert Cummings wrote: On Mon, 2007-10-22 at 18:07 +0100, Stut wrote: Adam Williams wrote: I have an html page with checkboxes: form action=mailform2.php method=POST input type=checkbox name=option[] value=Modern MississippiModern Mississippibr input type=checkbox name=option[]

RE: [PHP] problem with foreach

2007-10-22 Thread Jay Blanchard
[snip] print_r($_POST['option']); it prints nothing. [/snip] Try resetting the array first, you may be at the end of the array; reset($_POST); print_r($_POST); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem with foreach

2007-10-22 Thread Robert Cummings
On Mon, 2007-10-22 at 12:20 -0500, Adam Williams wrote: Yeah, thats the problem I'm having for some reason. When I do: print_r($_POST['option']); it prints nothing. It's usually more informative to see everything that was posted so you might have more of an idea what may have went

Re: [PHP] problem with foreach

2007-10-22 Thread Ludovic André
Adam Williams a écrit : I have an html page with checkboxes: [...] but I'm getting the error: you selected: *Warning*: Invalid argument supplied for foreach() in */var/www/sites/mdah-test/museum/mmhsurvey/mailform2.php* on line *81* I googled some checkbox/foreach pages on google, but I

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