[PHP] Strange url session behavior after upgrade to 4.3

2013-08-30 Thread Tobiah
I have a page that needs to get another page on the fly, using the same session. I figured out how to stop my session and set the cookie on the CURL handler, and everything was cool. The curled page had my same session available as the calling page. Life was good. Now something has changed afte

[PHP] strange concatenation behavior with some currency symbols

2013-04-14 Thread Rafnews
Hi, i almost finish my currency format displaying function, however i'm facing a strange displaying format behavior. here is an example in UTF-8: 1234.56 د.ج / 1234.56 DZD <-- that's wrong it should be 1234.56 د.ج / 1234.56 DZD 1234.56 € / 1234.56 EUR <-- that's OK 1234.56 ¥ / 1234.56 JPY <--

Re: [PHP] Strange Error calling method of wsdl based SOAP client

2013-03-06 Thread tamouse mailing lists
On Wed, Mar 6, 2013 at 1:36 PM, Tobiah wrote: > I'm talking to the Membersuite SOAP api. They have a Get() method > and a Save() method for objects. I call Get(), and get an object > back representing an individual. I pass it back to Save() and I > get this: > > Fatal error: Uncaught SoapFault

[PHP] Strange Error calling method of wsdl based SOAP client

2013-03-06 Thread Tobiah
I'm talking to the Membersuite SOAP api. They have a Get() method and a Save() method for objects. I call Get(), and get an object back representing an individual. I pass it back to Save() and I get this: Fatal error: Uncaught SoapFault exception: [a:DeserializationFailed] The formatter threw

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-22 Thread Stefan Wixfort
On 22.12.2012 00:31, Bastien wrote: On 2012-12-21, at 5:05 PM, Ken Robinson wrote: A much easier way to do this would be to use a temporary array and then explode: $tmp = array(); while($row = mysql_fetch_array($result)) // pulling stuff from a database {

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-22 Thread Bastien
Bastien Koert On 2012-12-22, at 11:50 AM, Tedd Sperling wrote: > On Dec 22, 2012, at 7:58 AM, tamouse mailing lists > wrote: > >> A bit of an example to shed a little light? >> -snip- >> Not knowing IE really at all, nor it's JS engine, it's entirely >> possible that a null character in a s

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-22 Thread Tedd Sperling
On Dec 22, 2012, at 7:58 AM, tamouse mailing lists wrote: > A bit of an example to shed a little light? > -snip- > Not knowing IE really at all, nor it's JS engine, it's entirely > possible that a null character in a string causes it to have problems. That's the explanation I was looking for --

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-22 Thread Tedd Sperling
On Dec 21, 2012, at 8:06 PM, Jim Giner wrote: >> That actually makes sense tho. Afterall, a string is truly only one memory >> allocation whereas array elements are basically multiple vars having the >> same name. So - how can you unset one char in a string? It depends upon the language -- wh

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-22 Thread Tedd Sperling
On Dec 21, 2012, at 5:27 PM, Jim Giner wrote: > From what I do know, there shouldn't be an a[4]. > In any case, let's assume that there is a bug in the string logic that you're > using. Why not just use substr? > > $topic = substr($topic,0,-1); and On Dec 21, 2012, at 6:10 PM, Nathan Nobbe w

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-22 Thread Jim Giner
On 12/22/2012 11:29 AM, Tedd Sperling wrote: On Dec 21, 2012, at 5:20 PM, Volmar Machado wrote: What is the result in FF? And on IE? (the echoed string) That's the problem, it's different. If the last char in a string is set to null, then it causes JavaScript routines running under IE to b

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-22 Thread Tedd Sperling
On Dec 21, 2012, at 5:20 PM, Volmar Machado wrote: > What is the result in FF? And on IE? (the echoed string) That's the problem, it's different. If the last char in a string is set to null, then it causes JavaScript routines running under IE to behave differently than the exact same JavaScrip

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-22 Thread tamouse mailing lists
On Fri, Dec 21, 2012 at 7:06 PM, Jim Giner wrote: > That actually makes sense tho. Afterall, a string is truly only one memory > allocation whereas array elements are basically multiple vars having the > same name. So - how can you unset one char in a string? That actually depends on what you m

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-21 Thread Jim Giner
On 12/21/2012 7:59 PM, Nathan Nobbe wrote: On Fri, Dec 21, 2012 at 4:10 PM, Nathan Nobbe wrote: On Fri, Dec 21, 2012 at 3:27 PM, Jim Giner wrote: On 12/21/2012 5:16 PM, Tedd Sperling wrote: On Dec 21, 2012, at 4:58 PM, Jim Giner wrote: Never realized that you could address a string

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-21 Thread Nathan Nobbe
On Fri, Dec 21, 2012 at 4:10 PM, Nathan Nobbe wrote: > > > On Fri, Dec 21, 2012 at 3:27 PM, Jim Giner > wrote: > >> On 12/21/2012 5:16 PM, Tedd Sperling wrote: >> >>> On Dec 21, 2012, at 4:58 PM, Jim Giner >>> wrote: >>> > Never realized that you could address a string as an array of c

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-21 Thread Bastien
On 2012-12-21, at 5:05 PM, Ken Robinson wrote: > A much easier way to do this would be to use a temporary array and then > explode: > > $tmp = array(); >while($row = mysql_fetch_array($result)) // pulling stuff from a > database >{ >$tmp[] = $row['categ

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-21 Thread Louis Colman
Think that PHP inherited this from the C-language. The C-language inherited this from good old assembler :-) Index of the array is the offset from the starting-address of the string. Suppose the "$a" starts at address 1000 than $a[0] is at 1000 + 0, $a[1] is at 1000 + 1 $a[2] is at 1000 + 2 etc..

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-21 Thread Jim Giner
On 12/21/2012 6:10 PM, Nathan Nobbe wrote: On Fri, Dec 21, 2012 at 3:27 PM, Jim Giner wrote: Neat idea Tedd, but judging by a quick test, I don't think changing the value of the string is entirely supported though that notation. php > $str = 'blah'; php > $str[3] = ''; php > echo $str . PHP_

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-21 Thread Nathan Nobbe
On Fri, Dec 21, 2012 at 3:27 PM, Jim Giner wrote: > On 12/21/2012 5:16 PM, Tedd Sperling wrote: > >> On Dec 21, 2012, at 4:58 PM, Jim Giner >> wrote: >> >>> Never realized that you could address a string as an array of chars, >>> which you are doing. Could that be the issue? Or did I lear

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-21 Thread Jim Giner
On 12/21/2012 5:16 PM, Tedd Sperling wrote: On Dec 21, 2012, at 4:58 PM, Jim Giner wrote: Never realized that you could address a string as an array of chars, which you are doing. Could that be the issue? Or did I learn something new? Or should you have used substr to remove that last ch

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-21 Thread Ken Robinson
Can you post the javascript that's causing the problem? And, yes, it's IE, what did you expect... :-) Ken At 05:10 PM 12/21/2012, Tedd Sperling wrote: On Dec 21, 2012, at 5:05 PM, Ken Robinson wrote > A much easier way to do this would be to use a temporary array and then explode: > > $tmp

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-21 Thread Tedd Sperling
On Dec 21, 2012, at 4:58 PM, Jim Giner wrote: >> > Never realized that you could address a string as an array of chars, which > you are doing. Could that be the issue? Or did I learn something new? Or > should you have used substr to remove that last char? Jim: I guess you learned somethin

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-21 Thread Tedd Sperling
On Dec 21, 2012, at 5:05 PM, Ken Robinson wrote > A much easier way to do this would be to use a temporary array and then > explode: > > $tmp = array(); >while($row = mysql_fetch_array($result)) // pulling stuff from a > database >{ >$tmp[] = $row['catego

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-21 Thread Ken Robinson
A much easier way to do this would be to use a temporary array and then explode: $tmp = array(); while($row = mysql_fetch_array($result)) // pulling stuff from a database { $tmp[] = $row['category']; } $topic = explode('~',$t

[PHP] Strange string stuff -- maybe everything is ending...

2012-12-21 Thread Tedd Sperling
Hi gang; I just ran into something I have never had a problem with before. Here's the code: --- start of code $topic = ''; while($row = mysql_fetch_array($result)) // pulling stuff from a database { $topic .= $row['category'] . '~'; // add

Re: [PHP] Strange foreach reference issue

2012-01-09 Thread Tim Behrendsen
On 1/9/2012 10:35 AM, David Harkness wrote: On Sat, Jan 7, 2012 at 5:01 PM, Tim Behrendsen > wrote: The first loop is leaving a reference to the final element. But then the second foreach is doing a straight assignment to the $row variable, but $row is a r

Re: [PHP] Strange foreach reference issue

2012-01-09 Thread David Harkness
On Sat, Jan 7, 2012 at 5:01 PM, Tim Behrendsen wrote: > The first loop is leaving a reference to the final element. But then the > second foreach is doing a straight assignment to the $row variable, but > $row is a reference to the final element. So the foreach is assigning its > iterated value t

Re: [PHP] Strange foreach reference issue

2012-01-08 Thread Adi Mutu
t: Re: [PHP] Strange foreach reference issue On 1/7/2012 4:44 PM, Stephen wrote: > On 12-01-07 07:30 PM, Tim Behrendsen wrote: >> >> When you use an ampersand on the variable, that creates a reference to the >> array elements, allowing you to potentially change the array elem

Re: [PHP] Strange foreach reference issue

2012-01-07 Thread Tim Behrendsen
On 1/7/2012 4:44 PM, Stephen wrote: On 12-01-07 07:30 PM, Tim Behrendsen wrote: When you use an ampersand on the variable, that creates a reference to the array elements, allowing you to potentially change the array elements themselves (which I'm not doing here). http://www.php.net/manual/e

Re: [PHP] Strange foreach reference issue

2012-01-07 Thread Stephen
On 12-01-07 07:30 PM, Tim Behrendsen wrote: When you use an ampersand on the variable, that creates a reference to the array elements, allowing you to potentially change the array elements themselves (which I'm not doing here). http://www.php.net/manual/en/control-structures.foreach.php I d

Re: [PHP] Strange foreach reference issue

2012-01-07 Thread Tim Behrendsen
On 1/7/2012 4:18 PM, Matijn Woudt wrote: On Sun, Jan 8, 2012 at 12:29 AM, Tim Behrendsen wrote: Hello, This sure looks like a bug, but maybe there's some subtlety going on that I don't understand, so I would appreciate some insight. After much debugging, I tracked down a bug in my code to this

Re: [PHP] Strange foreach reference issue

2012-01-07 Thread Matijn Woudt
On Sun, Jan 8, 2012 at 12:29 AM, Tim Behrendsen wrote: > Hello, > > This sure looks like a bug, but maybe there's some subtlety going on that I > don't understand, so I would appreciate some insight. After much debugging, > I tracked down a bug in my code to this test program. My PHP version is >

Re: [PHP] Strange foreach reference issue

2012-01-07 Thread Stephen
I cut and pasted your code and got the same result. I flipped the two foreach blocks and got the expected results. I deleted the first block and copied the second, then updated the string. I got this. I can't explain. 'Title #1', ), array( 'Title' => 'Title #2',

[PHP] Strange foreach reference issue

2012-01-07 Thread Tim Behrendsen
Hello, This sure looks like a bug, but maybe there's some subtlety going on that I don't understand, so I would appreciate some insight. After much debugging, I tracked down a bug in my code to this test program. My PHP version is 5.3.3, running under Fedora Linux. 'Title #1', ),

[PHP] Re: [PHP-DB] Re: [PHP] Strange Query Error...

2010-11-27 Thread Karl DeSaulniers
On Nov 27, 2010, at 1:24 PM, Don Wieland wrote: On Nov 27, 2010, at 10:44 AM, Daniel P. Brown wrote: Note how you keep changing case here. For example, m.aucciim_id vs. m.AUCCIIM_ID. Also note that all of this is cAsE-sEnSiTiVe. You are right. But it still chokes in PHP: select m.* fr

Re: [PHP] Strange Query Error...

2010-11-27 Thread Don Wieland
On Nov 27, 2010, at 12:09 PM, Daniel P. Brown wrote: At this point, can you just send the whole related snippet? The cases keep changing and there's a lot of other suggestions that you said you've tried. Just doing that on my local machine works without error, so it's likely the result of anot

Re: [PHP] Strange Query Error...

2010-11-27 Thread Daniel P. Brown
On Sat, Nov 27, 2010 at 14:45, Don Wieland wrote: > Pretty please - I just want to get this working and move on ;-) At this point, can you just send the whole related snippet? The cases keep changing and there's a lot of other suggestions that you said you've tried. Just doing that on my lo

Re: [PHP] Strange Query Error...

2010-11-27 Thread Don Wieland
On Nov 27, 2010, at 11:35 AM, Daniel P. Brown wrote: Strange... I have no idea what to do. I got to run it via PHP. Don, on which table is the column `member_year` located? Is that on `Members`? it is "Member_Years". I thought of that. I change the query: select m.* from Members m inn

Re: [PHP] Strange Query Error...

2010-11-27 Thread Daniel P. Brown
On Sat, Nov 27, 2010 at 14:30, Don Wieland wrote: > > Strange...  I have no idea what to do. I got to run it via PHP. Don, on which table is the column `member_year` located? Is that on `Members`? -- Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://

Re: [PHP] Strange Query Error...

2010-11-27 Thread Don Wieland
On Nov 27, 2010, at 10:39 AM, Tommy Pham wrote: Don, Have you tried to run the query in either MySQL workbench or the command line to ensure that query is SQL syntax error free? From the error message, it sounds more like a SQL syntax error. If you're able to run the query fine in the w

Re: [PHP] Strange Query Error...

2010-11-27 Thread Don Wieland
On Nov 27, 2010, at 10:44 AM, Daniel P. Brown wrote: Note how you keep changing case here. For example, m.aucciim_id vs. m.AUCCIIM_ID. Also note that all of this is cAsE-sEnSiTiVe. You are right. But it still chokes in PHP: select m.* from Members m inner join Member_Years my on m.AUCCII

Re: [PHP] Strange Query Error...

2010-11-27 Thread Daniel P. Brown
On Sat, Nov 27, 2010 at 13:18, Don Wieland wrote: > On Nov 27, 2010, at 10:07 AM, Bastien wrote: > >> Try removing the backticks around the table names. If you do use them, >> then all values (field names and table names) need it. > > I tried that and still chokes... > > select m.* from Members m

RE: [PHP] Strange Query Error...

2010-11-27 Thread Tommy Pham
> -Original Message- > From: Don Wieland [mailto:d...@dwdataconcepts.com] > Sent: Saturday, November 27, 2010 10:18 AM > To: Bastien > Cc: php-general@lists.php.net > Subject: Re: [PHP] Strange Query Error... > > On Nov 27, 2010, at 10:07 AM, Bastien wrote:

Re: [PHP] Strange Query Error...

2010-11-27 Thread Don Wieland
On Nov 27, 2010, at 10:08 AM, Daniel P. Brown wrote: one primary question: are you using the mysql_* family, mysqli_* family, or another method of interfacing with MySQL? mysql_ $results = mysql_query($query) or die(mysql_error()); Don -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] Strange Query Error...

2010-11-27 Thread Don Wieland
On Nov 27, 2010, at 10:07 AM, Bastien wrote: Try removing the backticks around the table names. If you do use them, then all values (field names and table names) need it. I tried that and still chokes... select m.* from Members m inner join Member_Years my on m.aucciim_id = my.member_id wh

Re: [PHP] Strange Query Error...

2010-11-27 Thread Daniel P. Brown
On Sat, Nov 27, 2010 at 12:30, Don Wieland wrote: > Hi gang, > > I am executing a query via PHP that gives me a PHP error: > > You have an error in your SQL syntax; check the manual that corresponds to > your MySQL server version for the right syntax to use near 'AND > m.`Preferred_First_Name` LIK

Re: [PHP] Strange Query Error...

2010-11-27 Thread Bastien
On 2010-11-27, at 12:30 PM, Don Wieland wrote: > Hi gang, > > I am executing a query via PHP that gives me a PHP error: > > You have an error in your SQL syntax; check the manual that corresponds to > your MySQL server version for the right syntax to use near 'AND > m.`Preferred_First_Name`

[PHP] Strange Query Error...

2010-11-27 Thread Don Wieland
Hi gang, I am executing a query via PHP that gives me a PHP error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND m.`Preferred_First_Name` LIKE 'Don' AND m.`Preferred_Last_Name` LIKE 'Wielan' at lin

Re: [PHP] strange problem of mysql_query

2010-06-02 Thread Jim Lucas
I am on the top of the world! Borlange University wrote: hey, i have a sql string like below: select szs_content from szs_gy_ca where szs_shengchanhao='09-s525' and szs_guige='48B32/14-1 1/8"' and szs_tuhao='48B32 1 1/8' the problem is that using mysql_query to run this sql string returns nothin

Re: [PHP] strange problem of mysql_query

2010-06-02 Thread Ashley Sheridan
On Wed, 2010-06-02 at 17:36 +0800, I am on the top of the world! Borlange University wrote: > hey, i have a sql string like below: > select szs_content from szs_gy_ca where szs_shengchanhao='09-s525' and > szs_guige='48B32/14-1 1/8"' and szs_tuhao='48B32 1 1/8' > > the problem is that using mysql

[PHP] strange problem of mysql_query

2010-06-02 Thread I am on the top of the world! Borlange University
hey, i have a sql string like below: select szs_content from szs_gy_ca where szs_shengchanhao='09-s525' and szs_guige='48B32/14-1 1/8"' and szs_tuhao='48B32 1 1/8' the problem is that using mysql_query to run this sql string returns nothing,however, i can get one record through mysql query tool.

Re: [PHP] Strange behaviour with str_ireplace()

2010-01-26 Thread Angus Mann
Grrr...please ignore. After battling with this for a while I now can't reproduce the problem. Apologies for an un-necessary post. - Original Message - From: "Angus Mann" To: "PHP-General" Sent: Wednesday, January 27, 2010 9:02 AM Subject: [PHP] Strange be

[PHP] Strange behaviour with str_ireplace()

2010-01-26 Thread Angus Mann
Hi all. I found some unexpected behaviour with str_ireplace. To summarize, if the $replace term is a number, but formatted as currency with trailing zero's (34.50) the function drops the trailing zero. Example : $price=34.5; $message="You owe me #amount#."; $message1 = str_ireplace("#amount#,sp

Re: [PHP] Strange MySQL Problem

2009-12-14 Thread tedd
At 1:12 PM +0330 12/14/09, Parham Doustdar wrote: Thank you, everyone. All fixed. Really?!? I think you would be well advised to sanitize the values coming into from a public $_POST. That habit allows MySQL injection problems. Cheers, tedd -- --- http://sperling.com http://ancientst

Re: [PHP] Strange MySQL Problem

2009-12-14 Thread Floyd Resler
You're missing a tick in the query. There should be a tick before the $_POST[ISBN]. Take care, Floyd On Dec 14, 2009, at 3:41 AM, Parham Doustdar wrote: > Hello there, > Here's a short PHP script a friend has written, and given to me to test. > However, I am getting a MySQL error saying that t

Re: [PHP] Strange MySQL Problem

2009-12-14 Thread Parham Doustdar
Thank you, everyone. All fixed. "metastable" wrote in message news:4b260641.80...@metastable-services.net... > Parham Doustdar wrote: >> Hi there, >> Does it differ? I thought when in quotations, variables like that would >> be >> automatically interpreted? >> Also, the MySQL is meant to connect

Re: [PHP] Strange MySQL Problem

2009-12-14 Thread metastable
Parham Doustdar wrote: > Hi there, > Does it differ? I thought when in quotations, variables like that would be > automatically interpreted? > Also, the MySQL is meant to connect to localhost. I had emptied it for > testing purposes. With or without it, I get the same error. > "Jochen Schultz" w

Re: [PHP] Strange MySQL Problem

2009-12-14 Thread shahrzad khorrami
Salaaam $sql = "INSERT INTO BOOK(bookname, authorsname, ISBN) VALUES ('".$_POST[bookname]."'' , '".$_POST[authorsname]."',''".$_POST[ISBN]."')"; above line is correct, your code is wrong ,$_POST[ISBN]')"; and add $host = 'localhost'; $con = mysql_connect($host, $username, $password); you ca

Re: [PHP] Strange MySQL Problem

2009-12-14 Thread Parham Doustdar
Hi there, Does it differ? I thought when in quotations, variables like that would be automatically interpreted? Also, the MySQL is meant to connect to localhost. I had emptied it for testing purposes. With or without it, I get the same error. "Jochen Schultz" wrote in message news:4b25fb8e.3040

Re: [PHP] Strange MySQL Problem

2009-12-14 Thread Jochen Schultz
Hello Parham, i think you should change this: $sql = "INSERT INTO BOOK(bookname, authorsname, ISBN) VALUES ('$_POST[bookname]', '$_POST[authorsname]', $_POST[ISBN]')"; to this: $sql = "INSERT INTO BOOK(bookname, authorsname, ISBN) VALUES ('".$_POST[bookname]."', '".$_POST[authorsname]."', '".

[PHP] Strange MySQL Problem

2009-12-14 Thread Parham Doustdar
Hello there, Here's a short PHP script a friend has written, and given to me to test. However, I am getting a MySQL error saying that the syntax error, on the line that contains mysql_connect(); is wrong, near '')' (note that it is not a PHP error, but a MySQL error.) Here's the code: [code] [/co

Re: [PHP] Strange behaviour with uploaded files .. XAMPP on Windows

2009-10-27 Thread Ashley Sheridan
On Tue, 2009-10-27 at 11:31 +1000, Angus Mann wrote: > Hi all. I'm not sure if this is really a PHP question or specific to XAMPP, > or windows in general... > > I have XAMPP including PHP 4.29 running on a Vista machine. > > When I use a form to upload a file, using $_FILES['uploadedfile']['na

Re: [PHP] Strange behaviour with uploaded files .. XAMPP on Windows

2009-10-26 Thread Angus Mann
Yep, you were right. When I look, now I see that the permissions for the file are different to locally created files. Thanks for that ! Yeah, definitely sounds like a permissions issue. I'm not much of a windows admin, but this looks like it might help: http://www.mydigitallife.info/2007

Re: [PHP] Strange behaviour with uploaded files .. XAMPP on Windows

2009-10-26 Thread Brady Mitchell
On Mon, Oct 26, 2009 at 6:31 PM, Angus Mann wrote: > When I use a form to upload a file, using $_FILES['uploadedfile']['name'] > and move_uploaded-file($_FILES['uploadedfile']['name'], $targetpath) strange > effects happen. > > The file is uploaded to the target directory just as it should. > > Bu

[PHP] Strange behaviour with uploaded files .. XAMPP on Windows

2009-10-26 Thread Angus Mann
Hi all. I'm not sure if this is really a PHP question or specific to XAMPP, or windows in general... I have XAMPP including PHP 4.29 running on a Vista machine. When I use a form to upload a file, using $_FILES['uploadedfile']['name'] and move_uploaded-file($_FILES['uploadedfile']['name'], $ta

[PHP] strange issue with PHP $basename, first character in filename missing (FreeBSD)

2009-10-25 Thread Per olof Ljungmark
Sorry for the long post but this problem have plagued us for a few months and we suspect that this is a OS-specific issue with FreeBSD/PHP, AFAICS it has not been reported from the Linux camp. I'm posting here in the hope that someone on this list might have a clue. In brief, intermittently, the

Re: [PHP] Strange PHP/Python problem

2009-06-09 Thread Robert Cummings
Adrian Price-Whelan wrote: Hey all- Something strange is happening with a python script I am executing from a php page: I am executing this by doing $output = `python blahblah.py arg1 arg2 arg3` Say my Python code looks like this: import sys import os thisPID = os.getpid() print thisPID pri

[PHP] Strange PHP/Python problem

2009-06-08 Thread Adrian Price-Whelan
Hey all- Something strange is happening with a python script I am executing from a php page: I am executing this by doing $output = `python blahblah.py arg1 arg2 arg3` Say my Python code looks like this: import sys import os thisPID = os.getpid() print thisPID print "1" RADeg = float(sys

[PHP] Strange result, 1 shows up

2009-04-16 Thread Gary
When I insert this code into a page, I get a 1 show up. Can anyone explain that and tell me how to get rid of it? Thanks for your help. Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Strange charecters

2009-03-05 Thread David Robley
Ashley Sheridan wrote: > On Wed, 2009-03-04 at 08:02 -0500, Bastien Koert wrote: >> On Wed, Mar 4, 2009 at 2:10 AM, Paul Scott wrote: >> >> > On Wed, 2009-03-04 at 10:09 +0530, Chetan Rane wrote: >> > > I am using ob_start() in my application. However I am getting this >> > > error about headers

Re: [PHP] Strange charecters

2009-03-04 Thread Ashley Sheridan
On Wed, 2009-03-04 at 08:02 -0500, Bastien Koert wrote: > On Wed, Mar 4, 2009 at 2:10 AM, Paul Scott wrote: > > > On Wed, 2009-03-04 at 10:09 +0530, Chetan Rane wrote: > > > I am using ob_start() in my application. However I am getting this error > > > about headers already sent. > > > > > > > _A

Re: [PHP] Strange charecters

2009-03-04 Thread Bastien Koert
On Wed, Mar 4, 2009 at 2:10 AM, Paul Scott wrote: > On Wed, 2009-03-04 at 10:09 +0530, Chetan Rane wrote: > > I am using ob_start() in my application. However I am getting this error > > about headers already sent. > > > > _Any_ output will set that error off. Check for Notices, Warnings, > echo'

Re: [PHP] Strange charecters

2009-03-03 Thread Paul Scott
On Wed, 2009-03-04 at 10:09 +0530, Chetan Rane wrote: > I am using ob_start() in my application. However I am getting this error > about headers already sent. > _Any_ output will set that error off. Check for Notices, Warnings, echo's, prints and var_dumps in your code. -- Paul -- PHP General

[PHP] Strange charecters

2009-03-03 Thread Chetan Rane
Hi gang I am using ob_start() in my application. However I am getting this error about headers already sent. I have put ob_start at the beginning of the script. I think this has to do something with Unicode. Can anyone explain why this happens. And whats the solution for this Chetan Dat

Re: [PHP] Strange results

2008-11-13 Thread Jochem Maas
Craige Leeder schreef: > Micah Gersten wrote: >> >> I think you meant this: >> echo "-" & $fpType & "- is equal to " & self::mciInput & ""; >> to be >> echo "-" . $fpType . "- is equal to " . self::mciInput . ""; >> > And this is how you know you've been doing too much ASP, lol yeah, I'm with I

Re: [PHP] Strange results

2008-11-13 Thread Craige Leeder
Micah Gersten wrote: I think you meant this: echo "-" & $fpType & "- is equal to " & self::mciInput & ""; to be echo "-" . $fpType . "- is equal to " . self::mciInput . ""; And this is how you know you've been doing too much ASP, lol Thanks Micah! -- PHP General Mailing List (http://www.ph

Re: [PHP] Strange results

2008-11-13 Thread Micah Gersten
Craige Leeder wrote: > > So, I have this class which contains a method LoadIO. I was doing some > debugging as to why a condition wouldn't pass like I thought it would, > and It's starting to piss me off. > > The three echo's near the bottom are not printing what it should. The > middle echo is not

[PHP] Strange results

2008-11-13 Thread Craige Leeder
So, I have this class which contains a method LoadIO. I was doing some debugging as to why a condition wouldn't pass like I thought it would, and It's starting to piss me off. The three echo's near the bottom are not printing what it should. The middle echo is not even printing static text.

Re: [PHP] strange string evaluation

2008-07-31 Thread brian
Marten Lehmann wrote: Hello, with PHP 5.0.x this two lines of code returned "{TEST}": $var = "TEST"; print "\{$var}"; But with PHP 5.2.x, the same code returns "\{TEST}" If I remove the backslash: $var = "TEST"; print "{$var}"; then just "TEST" is return (without any brackets). What is the

Re: [PHP] strange string evaluation

2008-07-31 Thread Robert Cummings
On Thu, 2008-07-31 at 17:54 +0200, Marten Lehmann wrote: > Hello, > > with PHP 5.0.x this two lines of code returned "{TEST}": > > $var = "TEST"; > print "\{$var}"; > > But with PHP 5.2.x, the same code returns "\{TEST}" > > If I remove the backslash: > > $var = "TEST"; > print "{$var}"; > >

[PHP] strange string evaluation

2008-07-31 Thread Marten Lehmann
Hello, with PHP 5.0.x this two lines of code returned "{TEST}": $var = "TEST"; print "\{$var}"; But with PHP 5.2.x, the same code returns "\{TEST}" If I remove the backslash: $var = "TEST"; print "{$var}"; then just "TEST" is return (without any brackets). What is the recommended way for PH

RES: [PHP] strange behavior, when converting float to int

2008-05-06 Thread Thiago Pojda
oftwares Financeiros -Mensagem original- De: Philip Thompson [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 6 de maio de 2008 11:34 Para: PHP-General List Assunto: Re: [PHP] strange behavior, when converting float to int On May 6, 2008, at 1:38 AM, Maxim Antonov wrote: > Hi,

Re: [PHP] strange behavior, when converting float to int

2008-05-06 Thread Paul Scott
On Tue, 2008-05-06 at 09:34 -0500, Philip Thompson wrote: > I got the same results. I'm not exactly sure what's happening, but > I'd > be curious to see if there's anyone else who can shed some light. > > PHP Version 5.2.4. Is this not coming from the underlying C libs that directly use the F

Re: [PHP] strange behavior, when converting float to int

2008-05-06 Thread Philip Thompson
On May 6, 2008, at 1:38 AM, Maxim Antonov wrote: Hi, all! Is this a bug? [EMAIL PROTECTED]:~$ /usr/bin/php 1.php 45 45 float(46) [EMAIL PROTECTED]:~$ /usr/bin/php -v PHP 5.3.0-dev (cli) (built: Apr 4 2008 11:37:33) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998

[PHP] strange behavior, when converting float to int

2008-05-05 Thread Maxim Antonov
Hi, all! Is this a bug? [EMAIL PROTECTED]:~$ /usr/bin/php 1.php 45 45 float(46) [EMAIL PROTECTED]:~$ /usr/bin/php -v PHP 5.3.0-dev (cli) (built: Apr 4 2008 11:37:33) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2008 Zend Technologies [EMAIL PROTECTED]:~$ cat

Re: [PHP] strange list behavior when replying to message on list

2008-03-23 Thread Daniel Brown
On Sun, Mar 23, 2008 at 5:22 AM, Nilesh Govindrajan <[EMAIL PROTECTED]> wrote: > > It is not possible. This is one of the major drawbacks of mailing lists > / news groups. It's unnecessary, but it's certainly possible. It's all in the configuration of the mailing list software (mailman, in t

Re: [PHP] strange list behavior when replying to message on list

2008-03-23 Thread Daniel Brown
On Sun, Mar 23, 2008 at 1:48 AM, Mark Weaver <[EMAIL PROTECTED]> wrote: > > by the way... I thought everyone would be rather interested to know that > because of the way the list is setup and running at the moment and "not" > hiding the senders email address, it's extremely easy to harvest > ad

Re: [PHP] strange list behavior when replying to message on list

2008-03-23 Thread Jason Pruim
On Mar 23, 2008, at 2:48 AM, Mark Weaver wrote: Nilesh Govindrajan wrote: Shawn McKenzie wrote: Mark Weaver wrote: Andrew Ballard wrote: On Sat, Mar 22, 2008 at 11:13 AM, Mark Weaver <[EMAIL PROTECTED]> wrote: Hi all, I'm wondering if anyone else happens to be using Mozilla Thunderbir

Re: [PHP] strange list behavior when replying to message on list

2008-03-23 Thread Nilesh Govindrajan
Mark Weaver wrote: Nilesh Govindrajan wrote: Shawn McKenzie wrote: Mark Weaver wrote: Andrew Ballard wrote: On Sat, Mar 22, 2008 at 11:13 AM, Mark Weaver <[EMAIL PROTECTED]> wrote: Hi all, I'm wondering if anyone else happens to be using Mozilla Thunderbird and seeing this behavior, and a

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Mark Weaver
Nilesh Govindrajan wrote: Shawn McKenzie wrote: Mark Weaver wrote: Andrew Ballard wrote: On Sat, Mar 22, 2008 at 11:13 AM, Mark Weaver <[EMAIL PROTECTED]> wrote: Hi all, I'm wondering if anyone else happens to be using Mozilla Thunderbird and seeing this behavior, and also if this behavior

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Nilesh Govindrajan
Shawn McKenzie wrote: Mark Weaver wrote: Andrew Ballard wrote: On Sat, Mar 22, 2008 at 11:13 AM, Mark Weaver <[EMAIL PROTECTED]> wrote: Hi all, I'm wondering if anyone else happens to be using Mozilla Thunderbird and seeing this behavior, and also if this behavior is a feature or a bug. W

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Shawn McKenzie
Mark Weaver wrote: > Andrew Ballard wrote: >> On Sat, Mar 22, 2008 at 11:13 AM, Mark Weaver <[EMAIL PROTECTED]> >> wrote: >>> Hi all, >>> >>> I'm wondering if anyone else happens to be using Mozilla Thunderbird >>> and >>> seeing this behavior, and also if this behavior is a feature or a bug. >>>

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Mark Weaver
tedd wrote: At 11:22 AM -0400 3/22/08, Greg Bowser wrote: Yeah. I always forget to reply to all. I always reply to all and then cut out everything that isn't [EMAIL PROTECTED] I know, there's probably a better way, but that's what I do. Cheers, tedd That's what I've been doing as well

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Mark Weaver
Andrew Ballard wrote: On Sat, Mar 22, 2008 at 11:13 AM, Mark Weaver <[EMAIL PROTECTED]> wrote: Hi all, I'm wondering if anyone else happens to be using Mozilla Thunderbird and seeing this behavior, and also if this behavior is a feature or a bug. When I hit the reply button to respond to a

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread tedd
At 11:22 AM -0400 3/22/08, Greg Bowser wrote: Yeah. I always forget to reply to all. I always reply to all and then cut out everything that isn't [EMAIL PROTECTED] I know, there's probably a better way, but that's what I do. Cheers, tedd -- --- http://sperling.com http://ancientstone

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Andrew Ballard
On Sat, Mar 22, 2008 at 11:13 AM, Mark Weaver <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm wondering if anyone else happens to be using Mozilla Thunderbird and > seeing this behavior, and also if this behavior is a feature or a bug. > > When I hit the reply button to respond to a message most of

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Mark Weaver
Nilesh Govindrajan wrote: The list admin, if uses a program called ezlm (or something similar), it adds the List-Id or the Newsgroups header which also helps. They must have it. hmmm... I wonder if Sylpheed for Windows will handle this? I'll have to take a look. -- Mark "If you have fo

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Mark Weaver
Brandon Orther wrote: I just signed back up to the list recently, but it was like this 5 years ago when I was still on it. I have always wondered why they didn't have that. It seems like they are pushing people to submit their solutions to the person with the question. Kind Regards, Brandon Ort

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Nilesh Govindrajan
andon Orther -Original Message- From: Mark Weaver [mailto:[EMAIL PROTECTED] Sent: Saturday, March 22, 2008 10:57 AM To: php-general@lists.php.net Subject: Re: [PHP] strange list behavior when replying to message on list Nilesh Govindrajan wrote: Greg Bowser wrote: Yeah. I always forg

RE: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Brandon Orther
ginal Message- From: Mark Weaver [mailto:[EMAIL PROTECTED] Sent: Saturday, March 22, 2008 10:57 AM To: php-general@lists.php.net Subject: Re: [PHP] strange list behavior when replying to message on list Nilesh Govindrajan wrote: > Greg Bowser wrote: >> Yeah. I always forget to reply to

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Mark Weaver
Nilesh Govindrajan wrote: Greg Bowser wrote: Yeah. I always forget to reply to all. The problem is with the headers. Whereas other lists have a reply-to: in the email headers, this list does not. It annoys the hell out of me. Why in the bloody hell doesn't the list admin simply "add" t

  1   2   3   4   5   6   7   8   >