Re: [PHP] Problems with array_push?

2013-05-07 Thread tamouse mailing lists
On Tue, May 7, 2013 at 9:42 PM, tamouse mailing lists wrote: > On Tue, May 7, 2013 at 4:28 PM, Jay Blanchard > wrote: >> [snip]Globals being used in a function. [/snip] >> >> *smacks forehead* > > > > It bites me all the time, too. (Might be worth a refactor to eliminate globals from this, in fa

Re: [PHP] Problems with array_push?

2013-05-07 Thread tamouse mailing lists
On Tue, May 7, 2013 at 4:28 PM, Jay Blanchard wrote: > [snip]Globals being used in a function. [/snip] > > *smacks forehead* It bites me all the time, too. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems with array_push?

2013-05-07 Thread Jay Blanchard
[snip]Globals being used in a function. [/snip] *smacks forehead* -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems with array_push?

2013-05-07 Thread Larry Martell
On Tue, May 7, 2013 at 3:06 PM, Jay Blanchard wrote: > I know that I must be missing something really ridiculous, but when I > print_r these arrays they are empty. I have confirmed that $arrayElement is > properly formed, it just seems that array_push is not working. I know I have > done this befo

Re: [PHP] Problems with array_push?

2013-05-07 Thread Stuart Dallas
Globals being used in a function. -Stuart On Tue, May 7, 2013 at 11:06 PM, Jay Blanchard wrote: > I know that I must be missing something really ridiculous, but when I > print_r these arrays they are empty. I have confirmed that $arrayElement > is properly formed, it just seems that array_pu

[PHP] Problems with array_push?

2013-05-07 Thread Jay Blanchard
I know that I must be missing something really ridiculous, but when I print_r these arrays they are empty. I have confirmed that $arrayElement is properly formed, it just seems that array_push is not working. I know I have done this before, but I cannot find my older code. Can someone clear the

[PHP] problems in extension development

2012-02-16 Thread Rui Hu
hi, I just started to write a simple PHP extension "hello", but encountered some problems. I followed tutorials step by step: 1. ./ext_skel --extname=hello 2. modified hello.c and php_hello.h, and wrote function hello_world() which simply return a string "hello world". 3. phpize 4. ./configure ; m

Re: [PHP] Problems with CURL using an HTTP Proxy on PHP5

2011-12-21 Thread Matijn Woudt
On Fri, Dec 16, 2011 at 10:09 PM, Francisco M. Marzoa Alonso wrote: > > I know it is NOT a problem with the website, because if I comment out > the line curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, 1) disabling the use > of a proxy, it works fine. > > I know the proxy is working fine, because if I u

[PHP] Problems with CURL using an HTTP Proxy on PHP5

2011-12-16 Thread Francisco M. Marzoa Alonso
Hello, The following code is failing and I do not find the cause (please, note that checkurl value and CURLOPT_PROXY are NOT the real values I'm using, of course): $ch = curl_init(); $checkurl = 'http://mycheckhost.com/'; curl_setopt ($ch, CURLOPT_TIMEOUT, 6000); c

[PHP] Problems with proc_open and getmypid

2011-11-14 Thread Francisco M. Marzoa Alonso
Hello, I'm developing a PHP application that runs on GNU/Linux with php cli. A process must launch another one and store its pid, so I use proc_open and then proc_status to achieve that. The child process must also get its own pid and write it down to a file. After that, the calling process shou

[PHP] Problems with interoperability: MCrypt AES PHP x Java

2011-08-09 Thread robert mena
Hi, I am having problems while trying to decrypt an encrypted string (generated from a java system) in PHP. To take external factors out of the way I decided to make them work first in my local system. So I've created a sample encrypt/decrypt from PHP (using mcrypt's extension) and the java code

[PHP] Problems with pear install

2011-03-13 Thread Alejandro Crosa
Hi     I can`t open the pear set up executing the go-pear.bat file.   Alejandro

[PHP] Problems with PDO and LOB columns in mysql

2011-02-22 Thread Florin Jurcovici
Hi. The code I use to extract the data from a query which was just performed looks like this: $data = array(); $receiverRow = array(); $i = 0; foreach ($columns as $column => $type) $statement->bindColumn($i++

Re: [PHP] Problems w/ goto

2010-12-20 Thread David Harkness
On Mon, Dec 20, 2010 at 7:45 PM, David Hutto wrote: > Is the problem with using the goto convolutedness(as I've seen other > senior programmers in other languages when explaining, or 'showing > off'), or is their an actual functional problem with it? It works perfectly well and is a great solut

Re: [PHP] Problems w/ goto

2010-12-20 Thread David Hutto
On Mon, Dec 20, 2010 at 4:47 PM, David Harkness wrote: > On Fri, Dec 17, 2010 at 10:05 AM, la...@garfieldtech.com < > la...@garfieldtech.com> wrote: > >> What PHP has implemented is "named break statements", as I understand it. >> > > Not exactly. You can jump to arbitrary (labeled) lines within t

Re: [PHP] Problems w/ goto

2010-12-20 Thread David Harkness
On Fri, Dec 17, 2010 at 10:05 AM, la...@garfieldtech.com < la...@garfieldtech.com> wrote: > What PHP has implemented is "named break statements", as I understand it. > Not exactly. You can jump to arbitrary (labeled) lines within the same context (method/function), but you cannot enter loop const

[PHP] Re: [PHP-DB] Re: [PHP] Problems w/ goto

2010-12-20 Thread David Hutto
On Mon, Dec 20, 2010 at 7:37 AM, Daniel Brown wrote: > On Sat, Dec 18, 2010 at 17:02, David Hutto wrote: >> or maybe it's saturday morning and i'm drunk? > >    This seems to be the most likely, and considering how all messages > are permanently and independently archived and propagate throughout

[PHP] Re: [PHP-DB] Re: [PHP] Problems w/ goto

2010-12-20 Thread Daniel Brown
On Sat, Dec 18, 2010 at 17:02, David Hutto wrote: > or maybe it's saturday morning and i'm drunk? This seems to be the most likely, and considering how all messages are permanently and independently archived and propagate throughout the Internet, it might be a good reason not to go nuts in se

Re: [PHP] Problems w/ goto

2010-12-18 Thread David Hutto
check out my new sig. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems w/ goto

2010-12-18 Thread David Hutto
or maybe it's saturday morning and i'm drunk? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems w/ goto

2010-12-18 Thread David Hutto
You approved all of us, no matter the peer review, when you signed up or the list. The accumulation of knowledge, is insurmountable when delivered as a whole, but devourable if you need satiation of appetite. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

Re: [PHP] Problems w/ goto

2010-12-18 Thread David Hutto
offrey > >  _ > > From: Ethan Rosenberg [mailto:eth...@earthlink.net] > Sent: 17 December 2010 06:39 PM > To: php-db-lists.php.net; php-general@lists.php.net > Subject: [PHP] Problems w/ goto > > > > Dear List - > > I am sending this again since it does not seem t

RE: [PHP] Problems w/ goto

2010-12-18 Thread Geoffrey Bernardo Van Wyk
06:39 PM To: php-db-lists.php.net; php-general@lists.php.net Subject: [PHP] Problems w/ goto Dear List - I am sending this again since it does not seem to have posted. Ethan +++ Dear List - Thank you with your excellent help in the past. Here is another puzzler I am trying to

Re: [PHP] Problems w/ goto

2010-12-17 Thread la...@garfieldtech.com
On 12/17/10 11:57 AM, Steve Staples wrote: I had to show the people in my office, and we all got a chuckle from teh XKCD comic in the PHP documentation for GOTO http://ca2.php.net/goto Steve I was one of the people that argued in favour of GOTO on the Internals list a few years ago. GOTO has

Re: [PHP] Problems w/ goto

2010-12-17 Thread Daniel P. Brown
On Fri, Dec 17, 2010 at 12:22, Robert Cummings wrote: > > I was one of the people that argued in favour of GOTO on the Internals list > a few years ago. GOTO has a use, and a very good one at that. It is by far > the most efficient construct when creating parsers or other similar types of > logic

[PHP] Re: [PHP-DB] Re: [PHP] Problems w/ goto

2010-12-17 Thread Daniel Brown
On Fri, Dec 17, 2010 at 12:16, Richard Quadling wrote: > > And have you seen all the sad faces ... > > : { > > on http://docs.php.net/manual/en/control-structures.goto.php#92763 > > Can't be good for them. If only people knew how many hours - literally, hours - it took me to keep that page cl

Re: [PHP] Problems w/ goto

2010-12-17 Thread Steve Staples
On Fri, 2010-12-17 at 12:22 -0500, Robert Cummings wrote: > On 10-12-17 12:08 PM, Steve Staples wrote: > > On Fri, 2010-12-17 at 10:50 -0600, Jay Blanchard wrote: > >> [snip] > >> Thank you with your excellent help in the past. Here is another > >> puzzler > >> > >> I am trying to write a prog

Re: [PHP] Problems w/ goto

2010-12-17 Thread Daniel Brown
On Fri, Dec 17, 2010 at 11:38, Ethan Rosenberg wrote: > > I am trying to write a program that can have two(2) independent forms in one > PHP file.  When I run the code below [from PHP - A Beginner's Guide], to > which I have added a second form, it freezes. [snip!] > What did I do wrong? You

Re: [PHP] Problems w/ goto

2010-12-17 Thread Robert Cummings
On 10-12-17 12:08 PM, Steve Staples wrote: On Fri, 2010-12-17 at 10:50 -0600, Jay Blanchard wrote: [snip] Thank you with your excellent help in the past. Here is another puzzler I am trying to write a program that can have two(2) independent forms in one PHP file. When I run the code belo

Re: [PHP] Problems w/ goto

2010-12-17 Thread Nicholas Kell
On Dec 17, 2010, at 11:08 AM, Steve Staples wrote: [snip /] >> >> >> GOTO should never be used like this. >> >> GOTO should never be used. >> > > Wow... that brought me back to 1990... using basic and batch files... > I honestly didn't even know that the GOTO was still in existence, > espec

Re: [PHP] Problems w/ goto

2010-12-17 Thread Richard Quadling
On 17 December 2010 17:08, Steve Staples wrote: > On Fri, 2010-12-17 at 10:50 -0600, Jay Blanchard wrote: >> [snip] >> Thank you with your excellent help in the past.  Here is another >> puzzler >> >> I am trying to write a program that can have two(2) independent forms >> in one PHP file.  Wh

RE: [PHP] Problems w/ goto

2010-12-17 Thread Steve Staples
On Fri, 2010-12-17 at 10:50 -0600, Jay Blanchard wrote: > [snip] > Thank you with your excellent help in the past. Here is another > puzzler > > I am trying to write a program that can have two(2) independent forms > in one PHP file. When I run the code below [from PHP - A Beginner's > Gui

RE: [PHP] Problems w/ goto

2010-12-17 Thread Jay Blanchard
[snip] Thank you with your excellent help in the past. Here is another puzzler I am trying to write a program that can have two(2) independent forms in one PHP file. When I run the code below [from PHP - A Beginner's Guide], to which I have added a second form, it freezes. Without the go

[PHP] Problems w/ goto

2010-12-17 Thread Ethan Rosenberg
Dear List - I am sending this again since it does not seem to have posted. Ethan +++ Dear List - Thank you with your excellent help in the past. Here is another puzzler I am trying to write a program that can have two(2) independent forms in one PHP file. When I run the code below [

Re: [PHP] Problems converting strings with 0 to integer

2010-11-04 Thread Richard Quadling
On 4 November 2010 15:31, robert mena wrote: > Hi Richard, > I am not top posting.  I am just explaining other symptoms that may point to > the cause since they may be the same and this is happening with the same > file.  I'll try to get approval to release the file. > Meanwhile, In your opinion w

Re: [PHP] Problems converting strings with 0 to integer

2010-11-04 Thread Richard Quadling
On 4 November 2010 15:11, robert mena wrote: > Hi, > The core of the code is simply > $fp = fopen('file.tab', 'rb'); > while(!feof($fp)) > { >    $line = fgets($fp); >    $data = explode("\t", $line); >     ... > } > So I try to manipulate the $data[X].  For example $data[0] is supposed to be > nu

Re: [PHP] Problems converting strings with 0 to integer

2010-11-04 Thread robert mena
Hi, The core of the code is simply $fp = fopen('file.tab', 'rb'); while(!feof($fp)) { $line = fgets($fp); $data = explode("\t", $line); ... } So I try to manipulate the $data[X]. For example $data[0] is supposed to be numeric so I $n = (int) $data[0] One other thing if the second co

Re: [PHP] Problems converting strings with 0 to integer

2010-11-04 Thread Richard Quadling
On 4 November 2010 10:33, Richard Quadling wrote: > // Create test file. > $s_TabbedFilename = './test.tab'; > file_put_contents($s_TabbedFilename, "0\t0002" . PHP_EOL . > "4\t0004" . PHP_EOL); > > // Open test file. > $fp_TabbedFile = fopen($s_TabbedFilename, 'rt') or die("Could not open

Re: [PHP] Problems converting strings with 0 to integer

2010-11-04 Thread Richard Quadling
On 3 November 2010 21:42, Alexander Holodny wrote: > To exclude unexcepted behavior in case of wrongly formated input data, > it would be much better to use such type-casting method: > intval(ltrim(trim($inStr), '0')) > > 2010/11/3, Nicholas Kell : >> >> On Nov 3, 2010, at 4:22 PM, robert mena wro

Re: [PHP] Problems converting strings with 0 to integer

2010-11-03 Thread Nicholas Kell
On Nov 3, 2010, at 4:22 PM, robert mena wrote: > Hi, > > I have a text file (utf-8 encoded) which contains lines with numbers and > text separated by \t. I need to convert the numbers that contains 0 (at > left) to integers. > > For some reason one line that contains 0002 is casted to 0 in

Re: [PHP] Problems converting strings with 0 to integer

2010-11-03 Thread Alexander Holodny
To exclude unexcepted behavior in case of wrongly formated input data, it would be much better to use such type-casting method: intval(ltrim(trim($inStr), '0')) 2010/11/3, Nicholas Kell : > > On Nov 3, 2010, at 4:22 PM, robert mena wrote: > >> Hi, >> >> I have a text file (utf-8 encoded) which con

[PHP] Problems converting strings with 0 to integer

2010-11-03 Thread robert mena
Hi, I have a text file (utf-8 encoded) which contains lines with numbers and text separated by \t. I need to convert the numbers that contains 0 (at left) to integers. For some reason one line that contains 0002 is casted to 0 instead of 2. Bellow the output of the cast (int) $field[0] whe

Re: [PHP] problems with feature '--with-pdo-oci' RPM (spec)

2010-04-14 Thread Kevin Kinsey
Raul da Silva {Sp4wn} wrote: # rpm -qpl /usr/src/linux/RPMS/x86_64/php52-pdo-oci-5.2.12-2.fc11.x86_64.rpm /etc/php.d/pdo_oci.ini /usr/lib64/php/modules/pdo_oci.so # rpm --test -ivh /usr/src/redhat/RPMS/x86_64/php52-pdo-oci-5.2.12-2.fc11.x86_64.rpm error: Failed dependencies: libclntsh.so.10.

[PHP] problems with feature '--with-pdo-oci' RPM (spec)

2010-04-13 Thread Raul da Silva {Sp4wn}
Hi, Good morning for all, I'd like to understand why when i try to install the package 'php52-pdo-oci' generated by 'rpmbuild -ba php52.spec' with feature inside of file , doesn't work and returns the follow error : # rpm -qpl /usr/src/linux/RPMS/x86_64/php52-pdo-oci-5.2.12-2.fc11.x86_64.rpm /et

[PHP] problems with utf-8 conversion

2010-04-05 Thread sudhir patil
I have csv file with special characters, stored in default encoding(ISO-8859-1). I am convert file contents(string) to UTF-8using iconv. This doesn't convert special characters properly, shows broken on fronted. Page encoding & meta tag are properly set to utf-8. Characters are shown properly

Re: [PHP] problems with permissions or getting access to a file

2010-02-11 Thread Richard Quadling
On 11 February 2010 09:31, Pat wrote: > Richard Quadling wrote: >> >> On 10 February 2010 16:31, Pat wrote: >> >>> >>> hi all >>> having trouble here with a site that I am hosting on go-daddy >>> >>> I want to keep my php and my images apart >>> >>> so to do this I have the base directory which c

Re: [PHP] problems with permissions or getting access to a file

2010-02-10 Thread Richard Quadling
On 10 February 2010 16:31, Pat wrote: > hi all > having trouble here with a site that I am hosting on go-daddy > > I want to keep my php and my images apart > > so to do this I have the base directory which contains the php scripts. On > the directory above that I have > my photos stored in /photo

[PHP] problems with permissions or getting access to a file

2010-02-10 Thread Pat
hi all having trouble here with a site that I am hosting on go-daddy I want to keep my php and my images apart so to do this I have the base directory which contains the php scripts. On the directory above that I have my photos stored in /photos when I run my scripts I get the following: tim

[PHP] Problems with unit tests

2009-07-01 Thread Bob McConnell
I am using test-harness.php (PHP TAP Test Harness 1_0_0_BETA) and test-more.php to write some unit tests for several libraries of functions. These tests need to run from a MS-Windows CLI so they can be run on our desktops for now and can be added to the automated build process later. I have writte

Re: [PHP] Problems with an extension

2009-06-28 Thread Eric A. Boney
On Sunday 28 June 2009 11:00:48 you wrote: > On Sun, Jun 28, 2009 at 10:56, Eric A. > > Boney wrote: > > So I am developing a custom extension and I am having a issue. I have a > > header file that I need included in the project. If I #include the header > > file everything compiles and makes just

Re: [PHP] Problems with an extension

2009-06-28 Thread Daniel Brown
On Sun, Jun 28, 2009 at 10:56, Eric A. Boney wrote: > So I am developing a custom extension and I am having a issue. I have a header > file that I need included in the project. If I #include the header file > everything compiles and makes just fine, but after restarting the web server > the extensi

[PHP] Problems with an extension

2009-06-28 Thread Eric A. Boney
So I am developing a custom extension and I am having a issue. I have a header file that I need included in the project. If I #include the header file everything compiles and makes just fine, but after restarting the web server the extension won't load. If I remove or comment out the #include o

Re: [PHP] Problems with APC, possible cache-corruption?

2009-06-22 Thread James McLean
On Tue, Jun 23, 2009 at 6:17 AM, Nathan Nobbe wrote: > hmm, 2 other thoughts i have.. > > . long shot, but do you have apc.php installed on a diff domain than the > moodle app (not sure but i suspect apc.php only shows cached values for the > domain in which its currently running (i know this is so

Re: [PHP] Problems with APC, possible cache-corruption?

2009-06-22 Thread Nathan Nobbe
On Sun, Jun 21, 2009 at 6:17 PM, James McLean wrote: > On Mon, Jun 22, 2009 at 9:40 AM, Nathan Nobbe > wrote: > > On Sun, Jun 21, 2009 at 5:56 PM, James McLean > > wrote: > > did you take a look at the size of the cache you created ? > > Yes. Tried multiple segments and single, with cache size va

Re: [PHP] Problems with APC, possible cache-corruption?

2009-06-21 Thread James McLean
On Mon, Jun 22, 2009 at 10:02 AM, Jonathan Tapicer wrote: > Can you do a phpinfo(); and tell us the value of the setting > apc.filters (or every apc.* if you can)? Just curious, but I've seen > apps set that setting to avoid APC opcode caching. Certainly, however it will have to wait until I am ho

Re: [PHP] Problems with APC, possible cache-corruption?

2009-06-21 Thread Jonathan Tapicer
Can you do a phpinfo(); and tell us the value of the setting apc.filters (or every apc.* if you can)? Just curious, but I've seen apps set that setting to avoid APC opcode caching. Jonathan On Sun, Jun 21, 2009 at 8:56 PM, James McLean wrote: > (Resend from around 1 week ago, because of no respon

Re: [PHP] Problems with APC, possible cache-corruption?

2009-06-21 Thread James McLean
On Mon, Jun 22, 2009 at 9:40 AM, Nathan Nobbe wrote: > On Sun, Jun 21, 2009 at 5:56 PM, James McLean > wrote: > did you take a look at the size of the cache you created ? Yes. Tried multiple segments and single, with cache size values between 128mb and 256mb. Also tried with stat on and off. > a

Re: [PHP] Problems with APC, possible cache-corruption?

2009-06-21 Thread Nathan Nobbe
On Sun, Jun 21, 2009 at 5:56 PM, James McLean wrote: > (Resend from around 1 week ago, because of no responses) > > Hi All, > > Over the weekend I setup a test of APC intending to benchmark a Moodle > installation with various APC settings to see how well I could get it > to perform. I successfull

[PHP] Problems with APC, possible cache-corruption?

2009-06-21 Thread James McLean
(Resend from around 1 week ago, because of no responses) Hi All, Over the weekend I setup a test of APC intending to benchmark a Moodle installation with various APC settings to see how well I could get it to perform. I successfully installed Moodle 1.9 and 2.0 under Apache 2.2.3 (installed via a

Re: [PHP] Problems with apc extension on wamp server.

2009-06-17 Thread Valentinas Bakaitis
Found the problem: must always be before file input in the form. 2009/6/17 Valentinas Bakaitis : > Hi. > > Yes, as it turned out, the extension was not loaded. While following > some tutorial i added only "apc.rfc1867 = 1" to php.ini. Turns out > that this particular line turns on one of apc fu

Re: [PHP] Problems with apc extension on wamp server.

2009-06-17 Thread Valentinas Bakaitis
Hi. Yes, as it turned out, the extension was not loaded. While following some tutorial i added only "apc.rfc1867 = 1" to php.ini. Turns out that this particular line turns on one of apc functions (file tracking), but not the apc itself. However, now when i have apc turned on i still have a proble

Re: [PHP] Problems with apc extension on wamp server.

2009-06-16 Thread Jonathan Tapicer
Hi, Does the extension appear on a phpinfo()? Seems like the extension isn't loaded. Jonathan On Tue, Jun 16, 2009 at 5:20 PM, Valentinas Bakaitis wrote: > Hello! > > I am trying to track file upload progress using APC extension. > However, when trying to use, it gives > > Fatal error: Call to

[PHP] Problems with apc extension on wamp server.

2009-06-16 Thread Valentinas Bakaitis
Hello! I am trying to track file upload progress using APC extension. However, when trying to use, it gives Fatal error: Call to undefined function apc_fetch() in C:\wamp\www\old\getprogress.php on line 3 I am using WAMP 2.0, with php 5.2.8 APC extension appear on extensions list and is enabled.

Re: [PHP] Problems working with HTML using PHP's XML tools (placing mixed text/html into xpath-specified nodes...)

2009-05-21 Thread Michael A. Peters
Weston C wrote: Is there a straightforward way (or, heck, any way) of placing mixed html/text content into xpath-specified nodes using any of PHP's XML tools? So far, I've tried SimpleXML and the DOM and things aren't coming out well. Not sure if it is of any use to you, I don't use XPath at a

[PHP] Problems working with HTML using PHP's XML tools (placing mixed text/html into xpath-specified nodes...)

2009-05-21 Thread Weston C
Is there a straightforward way (or, heck, any way) of placing mixed html/text content into xpath-specified nodes using any of PHP's XML tools? So far, I've tried SimpleXML and the DOM and things aren't coming out well. SimpleXML: /* $filename contains path to valid XML file, $xpathxpr conta

Re: [PHP] Problems with HTTPS and maybe an .htaccess???

2009-05-05 Thread Alex S Kurilo aka Kamazee
No, adding * after the period had no affect at all. Still goes to the live site. Sorry, I misunderstood you. I'm too lazy to read all the message :) http and https may be handled by different virtual hosts. http for http://dev.sitename.com/ seems to be configured properly (Virtual host at por

Re: [PHP] Problems with HTTPS and maybe an .htaccess???

2009-05-05 Thread Skip Evans
Hey all, No, adding * after the period had no affect at all. Still goes to the live site. Any other ideas? I'm stumped, desperate and on the verge of requiring medication. Skip Alex S Kurilo aka Kamazee wrote: RewriteRule . index.php Add an asterisk after the dot: RewriteRule .* index.p

Re: [PHP] Problems with HTTPS and maybe an .htaccess???

2009-05-05 Thread Alex S Kurilo aka Kamazee
RewriteRule . index.php Add an asterisk after the dot: RewriteRule .* index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problems with HTTPS and maybe an .htaccess???

2009-05-05 Thread Skip Evans
Hey all, A while back I asked about forms that take credit card info and https. I have always put such forms behind SSL, but a site I have been asked to do maintenance work on did not, and after responses from the list and at my recommendation they installed an SSL and I modified the code to

Re: [PHP] problems with gnupg extension.

2009-04-21 Thread Ian
On 20 Apr 2009 at 11:37, Ray wrote: > Any suggestions, Anyone? > Ray Hi, I adapted these scripts for my own user and have not had any problems: http://www.theoslogic.com/scripts/php-gpg/ It does not use the gnupg extension at all but popen() or proc_open(). Regards Ian -- -- PHP Gene

Re: [PHP] problems with gnupg extension.

2009-04-20 Thread Ray
On Monday 13 April 2009 10:17:28 Ray wrote: > Hello all, > > I'm trying to use the gnupg extension and I think everything is properly > installed. > > I'm just using test data. I'm encrypting and then immediately decrypting. > But the decryption is failing with a unhelpful error message. > > error

[PHP] problems with gnupg extension.

2009-04-13 Thread Ray
Hello all, I'm trying to use the gnupg extension and I think everything is properly installed. I'm just using test data. I'm encrypting and then immediately decrypting. But the decryption is failing with a unhelpful error message. error message : Warning: gnupg::decrypt() [gnupg.decrypt]: de

Re: [PHP] Problems with exec() on windows

2009-04-12 Thread henrikolsen
I can confirm the presence of the same issue on my installation, 5.2.9-2 on Windows XP. Very annoying bug. -- This message was sent on behalf of henrikol...@gmail.com at openSubscriber.com http://www.opensubscriber.com/message/php-general@lists.php.net/11719414.html -- PHP General Mailing List

[PHP] problems with loaded extensions

2009-04-08 Thread Andres Gonzalez
Hi, I have got an extension loaded in all three of my php config files (in cli, in cgi, and in apache2 directories). The functions in the extension are all accessible when running test scripts from the command line, like: php init.php for example, in the init.php file I have calls to sever

RE: [PHP] Problems with implode

2009-03-26 Thread Andrea Giammarchi
string', $whatever)).'")'Regards > Date: Thu, 26 Mar 2009 21:01:03 +0800 > From: virgilio.quila...@gmail.com > To: t...@ezl-data.dk > CC: php-general@lists.php.net > Subject: Re: [PHP] Problems with implode > > >>> Dunno why you guys started talk ab

Re: [PHP] Problems with implode

2009-03-26 Thread Virgilio Quilario
>>> Dunno why you guys started talk about utf-8 problems, he has a list of >>> ids >>> which should contain only unsigned integers, otherwise I do not get how >>> that >>> query could work with an implode(',', $whatever) rather than 'id in >>> ("'.implode('","', array_map('mysql_real_escape_string'

Re: [PHP] Problems with implode

2009-03-26 Thread Toke Herkild
Tom Worster skrev: On 3/24/09 9:25 AM, "Andrea Giammarchi" wrote: Dunno why you guys started talk about utf-8 problems, he has a list of ids which should contain only unsigned integers, otherwise I do not get how that query could work with an implode(',', $whatever) rather than 'id in ("'.impl

Re: [PHP] Problems with implode

2009-03-25 Thread Tom Worster
On 3/24/09 9:25 AM, "Andrea Giammarchi" wrote: > > Dunno why you guys started talk about utf-8 problems, he has a list of ids > which should contain only unsigned integers, otherwise I do not get how that > query could work with an implode(',', $whatever) rather than 'id in > ("'.implode('","',

Re: [PHP] Problems with implode

2009-03-25 Thread Igor Escobar
th a numeric array: >> $list = array(12300..12800); and see what happens. >> >> regards, >> Toke >> >> Andrea Giammarchi skrev: >> >>> What about MySQL max_allowed_packet setting? is it bigger than produced >>> string? >>> &g

Re: [PHP] Problems with implode

2009-03-25 Thread Toke Herkild
meric array: $list = array(12300..12800); and see what happens. regards, Toke Andrea Giammarchi skrev: What about MySQL max_allowed_packet setting? is it bigger than produced string? To: php-general@lists.php.net Date: Tue, 24 Mar 2009 15:23:20 +0100 From: t...@ezl-data.dk Subject: Re: [PHP] Pro

Re: [PHP] Problems with implode

2009-03-25 Thread Toke Herkild
t happens. regards, Toke Andrea Giammarchi skrev: What about MySQL max_allowed_packet setting? is it bigger than produced string? To: php-general@lists.php.net Date: Tue, 24 Mar 2009 15:23:20 +0100 From: t...@ezl-data.dk Subject: Re: [PHP] Problems with implode Per Jessen skrev: Andrea Giamm

Re: [PHP] Problems with implode

2009-03-25 Thread Toke Herkild
MySQL max_allowed_packet setting? is it bigger than produced string? To: php-general@lists.php.net Date: Tue, 24 Mar 2009 15:23:20 +0100 From: t...@ezl-data.dk Subject: Re: [PHP] Problems with implode Per Jessen skrev: Andrea Giammarchi wrote: Dunno why you guys started talk about utf-8 pro

RE: [PHP] Problems with implode

2009-03-24 Thread Andrea Giammarchi
What about MySQL max_allowed_packet setting? is it bigger than produced string? > To: php-general@lists.php.net > Date: Tue, 24 Mar 2009 15:23:20 +0100 > From: t...@ezl-data.dk > Subject: Re: [PHP] Problems with implode > > Per Jessen skrev: > > Andrea Giammarchi wrote:

Re: [PHP] Problems with implode

2009-03-24 Thread Toke Herkild
Tom Worster skrev: On 3/24/09 9:15 AM, "Per Jessen" wrote: TG wrote: I don't think that would be a problem, the size of the array. I've used implode at least once or twice on fairly large arrays. More likely is something weird with your data. Yeah, like the odd backspace or carriage retur

Re: [PHP] Problems with implode

2009-03-24 Thread Toke Herkild
Per Jessen skrev: Andrea Giammarchi wrote: Dunno why you guys started talk about utf-8 problems, he has a list of ids which should contain only unsigned integers, otherwise I do not get how that query could work with an implode(',', $whatever) Very good point - maybe the OP has not yet teste

RE: [PHP] Problems with implode

2009-03-24 Thread Per Jessen
Andrea Giammarchi wrote: > Dunno why you guys started talk about utf-8 problems, he has a list of > ids which should contain only unsigned integers, otherwise I do not > get how that query could work with an implode(',', $whatever) Very good point - maybe the OP has not yet tested his code that

Re: [PHP] Problems with implode

2009-03-24 Thread Tom Worster
On 3/24/09 9:15 AM, "Per Jessen" wrote: > TG wrote: > >> I don't think that would be a problem, the size of the array. I've >> used implode at least once or twice on fairly large arrays. More >> likely is something weird with your data. > > Yeah, like the odd backspace or carriage return perh

Re: [PHP] Problems with implode

2009-03-24 Thread Jan G.B.
2009/3/24 Toke Herkild : > Hi All, > > I've an array() with approx 1200 items (list of id-mappings) that part works > fine. > > Now I want to add this list to a query: > $where = "id in (".$idList.")"; > > To accomplish that i do an implode: > $idList = implode(',', $TidList); Are all of the Ids

RE: [PHP] Problems with implode

2009-03-24 Thread Andrea Giammarchi
ray_map('mysql_real_escape_string', $whatever)).'")' ... so, the problem could be more about missed ids in the array obtaining ,, ... so, in this case, array_filter before, no? Regards > Date: Tue, 24 Mar 2009 09:19:53 -0400 > From: m...@neimeyer.org > To: php-gener

Re: [PHP] Problems with implode

2009-03-24 Thread Tom Worster
On 3/24/09 8:58 AM, "Per Jessen" wrote: > I can't reproduce that behaviour - I tried with ascii ('klop') and utf8 > ('Köhler') text. neither can i. if the mail systems don't screw it up, here's my test strings: $strs = array( 'Iñtërnâtiônàlizætiøn', 'החמאס: רוצים להשלים את

Re: [PHP] Problems with implode

2009-03-24 Thread Matt Neimeyer
On Tue, Mar 24, 2009 at 9:15 AM, Per Jessen wrote: > TG wrote: > >> I don't think that would be a problem, the size of the array.  I've >> used implode at least once or twice on fairly large arrays.  More >> likely is something weird with your data. > > Yeah, like the odd backspace or carriage ret

Re: [PHP] Problems with implode

2009-03-24 Thread Per Jessen
TG wrote: > I don't think that would be a problem, the size of the array. I've > used implode at least once or twice on fairly large arrays. More > likely is something weird with your data. Yeah, like the odd backspace or carriage return perhaps. /Per -- Per Jessen, Zürich (3.0°C) -- PH

Re: [PHP] Problems with implode

2009-03-24 Thread TG
plode isn't having a problem, but I've never seen any issues with it like you're describing. -TG - Original Message - From: Toke Herkild To: php-general@lists.php.net Date: Tue, 24 Mar 2009 12:14:01 +0100 Subject: [PHP] Problems with implode > Hi All, > > I'

Re: [PHP] Problems with implode

2009-03-24 Thread Per Jessen
Toke Herkild wrote: > Hi All, > > I've an array() with approx 1200 items (list of id-mappings) that part > works fine. > > Now I want to add this list to a query: > $where = "id in (".$idList.")"; > > To accomplish that i do an implode: > $idList = implode(',', $TidList); > > My problem is tha

Re: [PHP] Problems with implode

2009-03-24 Thread Tom Worster
On 3/24/09 7:14 AM, "Toke Herkild" wrote: > I've an array() with approx 1200 items (list of id-mappings) that part > works fine. > > Now I want to add this list to a query: > $where = "id in (".$idList.")"; > > To accomplish that i do an implode: > $idList = implode(',', $TidList); > > My prob

[PHP] Problems with implode

2009-03-24 Thread Toke Herkild
Hi All, I've an array() with approx 1200 items (list of id-mappings) that part works fine. Now I want to add this list to a query: $where = "id in (".$idList.")"; To accomplish that i do an implode: $idList = implode(',', $TidList); My problem is that some of the values gets concenated, othe

Re: [PHP] Problems with exec() on windows

2009-03-19 Thread haliphax
On Thu, Mar 19, 2009 at 9:25 AM, haliphax wrote: > On Thu, Mar 19, 2009 at 9:19 AM, Kyohere Luke wrote: >> Hi, >> I'm trying to use exec to call gammu.exe and send sms on windows XP. >> >> This works from commandline: >> >> C:\path\to\gammu.exe 1 --sendsms EMS 200 -text "test1 test2" >> >> But if

Re: [PHP] Problems with exec() on windows

2009-03-19 Thread haliphax
On Thu, Mar 19, 2009 at 9:19 AM, Kyohere Luke wrote: > Hi, > I'm trying to use exec to call gammu.exe and send sms on windows XP. > > This works from commandline: > > C:\path\to\gammu.exe 1 --sendsms EMS 200 -text "test1 test2" > > But if I run it through php like this: > > $command = "\"C:\path\t

[PHP] Problems with exec() on windows

2009-03-19 Thread Kyohere Luke
Hi, I'm trying to use exec to call gammu.exe and send sms on windows XP. This works from commandline: C:\path\to\gammu.exe 1 --sendsms EMS 200 -text "test1 test2" But if I run it through php like this: $command = "\"C:\path\to\gammu.exe\" --sendsms EMS 200 -text \"test1 test2\"".; @exec($comman

[PHP] Problems with displaying results

2009-03-03 Thread Terion Miller
I have two queries one pulls out which users to use and the second pulls those users orders Looks something like this but is only pulling the first record: $query = "SELECT `UserName`, `AdminID` FROM admin WHERE Key1 = 'YES' "; $result = mysql_query ($query) ; $row = my

  1   2   3   4   5   6   7   8   9   10   >