[PHP] Re: Problem with variables

2013-06-25 Thread Jim Giner
On 6/25/2013 5:46 PM, Fernando A wrote: Hello, I am working with php and codeigniter, but I have not yet experienced. I need create a variable that is available throughout system. This variable contains the number of company and can change. as I can handle this? Thank you, very much! Ferd

[PHP] Re: problem with my login script

2012-10-02 Thread Tim Streater
On 02 Oct 2012 at 12:07, Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: On 02-10-2012 11:59, Bálint Horváth wrote: The problem was already solved. I forgot to send a copy to the list... Rodrigo, break!? Ohh man, it's a crazy idea... A developer DOES NOT use break at all (in a loop)...

RES: [PHP] Re: problem with my login script

2012-10-02 Thread Samuel Lopes Grigolato
] Re: problem with my login script On 02 Oct 2012 at 12:07, Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: On 02-10-2012 11:59, Bálint Horváth wrote: The problem was already solved. I forgot to send a copy to the list... Rodrigo, break!? Ohh man, it's a crazy idea... A developer DOES

Re: RES: [PHP] Re: problem with my login script

2012-10-02 Thread ma...@behnke.biz
...@clothears.org.uk] Enviada em: terça-feira, 2 de outubro de 2012 08:37 Para: PHP General List Assunto: [PHP] Re: problem with my login script On 02 Oct 2012 at 12:07, Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: On 02-10-2012 11:59, Bálint Horváth wrote: The problem was already solved. I forgot

Re: RES: [PHP] Re: problem with my login script

2012-10-02 Thread Thomas Conrad
My problem was solved no need to argue. I don't see why use a while loop with a count variable when it produces the same result as a foreach loop. As for using a break in the loop, I could add it but the loop is gonna stop anyway as soon as it hits the end of the array. I also didn't see the point

Re: [PHP] Re: problem with my login script

2012-10-02 Thread Rodrigo Silva dos Santos
To break or not to break? that's the question... All that fight makes me (and, I think that Thomas too) learn a bit more about all of this. And for finish with all of it. I think that if something is not deprecated, is because it's is a good idea to use it somewhere. If the Language

[PHP] Re: Problem of load balance among php-cgi process

2011-10-20 Thread sean chen
It's cause by eaccelerator module, when I remove this module, the php-cgi works well. Is there some compatible issue between eaccelerator and php? Regards Sean 2011/10/19 Sean Chen s...@coovan.com Hi, ** ** I’ve got a problem when running PHP with nginx, there are several php-cgi

Re: [PHP] Re: Problem of load balance among php-cgi process

2011-10-20 Thread Jim Lucas
On 10/20/2011 5:20 AM, sean chen wrote: The red one is busy My email client is color blind. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com/ C - (541) 408-5189 O - (541) 323-9113 H - (541) 323-4219 -- PHP General Mailing List

[PHP] 答复: [PHP] Re: Problem of load balance among php-cgi process

2011-10-20 Thread Sean Chen
lol. The last one: 500 23880 0.0 0.0 209136 10832 ?S21:23 0:01 /usr/local/websrv/php/bin/php-cgi --fpm --fpm-config /usr/local/websrv/php/etc/php-fpm.conf 500 27195 15.0 0.1 210196 12644 ?S23:02 0:02 /usr/local/websrv/php/bin/php-cgi --fpm --fpm-config

[PHP] Re: problem with session_write_close

2011-07-14 Thread Tamara Temple
I'm having a problem with a brand new installation of pmwiki. I've not encountered this before so I'm unsure why this is happening. The following two warnings are presented at the top of each page: Warning: session_write_close() [function.session-write-close]: open(/

[PHP] Re: problem with passing-by-reference

2010-05-14 Thread Rene Veerman
changed all function-definitions to include a before their name, no change in behavior though.. On Fri, May 14, 2010 at 10:09 AM, Rene Veerman rene7...@gmail.com wrote: Hi. I'm doing the 5.3-strict thing, and am removing all my passing-by-reference muck from a script of mine. But i've run

[PHP] Re: problem with passing-by-reference

2010-05-14 Thread Rene Veerman
On Fri, May 14, 2010 at 10:09 AM, Rene Veerman rene7...@gmail.com wrote: Hi. I'm doing the 5.3-strict thing, and am removing all my passing-by-reference muck from a script of mine. But i've run into a problem; I use the following construct to push new values fairly deeply inside an array

[PHP] Re: Problem: Writing into Files?

2009-08-03 Thread Ollisso
On Sun, 02 Aug 2009 13:14:42 +0300, Parham Doustdar parha...@gmail.com wrote: Now this one always sets the file to one for some reason. I'll reiterate just in case there's been a misunderstanding on my part: [code] $fp = fopen($f, r+); while (!flock($fp, LOCK_EX)) sleep(1); $count =

Re: [PHP] Re: Problem: Writing into Files?

2009-08-03 Thread Richard Heyes
Hi The thing with this method is that it's just like the previous one; it opens then adds something. I'm assuming if again two visitors visit at the same time, this'd reset to zero. No, the a mode (IIRC) handles file locking for you. Even if it doesn't, the file won't be truncated, so you

Re: [PHP] Re: Problem: Writing into Files?

2009-08-02 Thread Richard Heyes
Hi, ... You can write a single byte to the file to increment the counter, then to read the count just use filesize(). I believe the a fopen() mode will handle locking for you. It will result in a slowly growing file, but space isn't exactly at a premium nowadays, and when the file gets to a

[PHP] Re: Problem: Writing into Files?

2009-08-02 Thread Ollisso
On Sun, 02 Aug 2009 07:11:27 +0300, Parham Doustdar parha...@gmail.com wrote: Dear Ollisso, I tried it with FLock() but it still didn't work. This is what I did: [code] $fp = fopen($f, r); $count =fgets($fp, 1024); fclose($fp); $fw = fopen($f, w); while (!flock($fw, LOCK_EX)) sleep(1); $cnew

[PHP] Re: Problem: Writing into Files?

2009-08-02 Thread Parham Doustdar
Now this one always sets the file to one for some reason. I'll reiterate just in case there's been a misunderstanding on my part: [code] $fp = fopen($f, r+); while (!flock($fp, LOCK_EX)) sleep(1); $count = fgets($fp,filesize($fp)); ftruncate($fp, 0); fwrite($fp, ($count+1)); flock($fp, LOCK_UN);

Re: [PHP] Re: Problem: Writing into Files?

2009-08-02 Thread Parham Doustdar
Dear Richard, I don't quite know how I can write a bite into a file. I also looked into a manual and couldn't find a mention of FLock-ing in the explaination for FOpen parameters. Thanks a lot for your help. -- --- Contact info: Skype: parham-d MSN: fire_lizard16 at hotmail dot com email:

Re: [PHP] Re: Problem: Writing into Files?

2009-08-02 Thread Richard Heyes
I don't quite know how I can write a bite into a file. I also looked into a manual and couldn't find a mention of FLock-ing in the explaination for FOpen parameters. Ok, from memory: ?php fwrite(fopen('/tmp/counter', 'a'), '1'); ? The 1 could be any single byte character I guess. --

[PHP] Re: Problem: Writing into Files?

2009-08-01 Thread Ollisso
On Sat, 01 Aug 2009 08:20:23 +0300, Parham Doustdar parha...@gmail.com wrote: Hi there, I've written a counter for my blog, which keeps the count of visitors in a file. However, when the visitors get too many, it resets to zero. Why? Here's the piece of code: [code] $f = $dir .

[PHP] Re: Problem: Writing into Files?

2009-08-01 Thread Parham Doustdar
Dear Ollisso, I tried it with FLock() but it still didn't work. This is what I did: [code] $fp = fopen($f, r); $count =fgets($fp, 1024); fclose($fp); $fw = fopen($f, w); while (!flock($fw, LOCK_EX)) sleep(1); $cnew = $count + 1; $countnew = fputs($fw, $count + 1); flock($fw, LOCK_UN); fclose($fw);

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

2008-12-29 Thread Michelle Konzack
Am 2008-12-28 16:11:15, schrieb Nathan Nobbe: OK. i would stop right there and ask yourself why.. there are tons of stable, working solutions out there that already do this, most notably for php5, PDO, http://us.php.net/manual/en/pdo.drivers.php which btw, is written in C ;) I have

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

2008-12-29 Thread Larry Garfield
On Monday 29 December 2008 2:26:46 am Michelle Konzack wrote: Am 2008-12-28 16:11:15, schrieb Nathan Nobbe: OK. i would stop right there and ask yourself why.. there are tons of stable, working solutions out there that already do this, most notably for php5, PDO,

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

2008-12-29 Thread Michelle Konzack
Am 2008-12-29 22:09:16, schrieb chris smith: So, PostgreSQL catch the array by name pg_fetch_array($db_query, null, PGSQL_ASSOC) and MySQL use the position mysql_fetch_array($db_query, MYSQL_NUM) Why? http://www.php.net/mysql_fetch_array Use MYSQL_ASSOC as the 2nd

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

2008-12-29 Thread Eric Butera
On Mon, Dec 29, 2008 at 7:57 AM, Michelle Konzack linux4miche...@tamay-dogan.net wrote: Am 2008-12-29 22:09:16, schrieb chris smith: So, PostgreSQL catch the array by name pg_fetch_array($db_query, null, PGSQL_ASSOC) and MySQL use the position mysql_fetch_array($db_query,

Re: [PHP] Re: Problem changing file encoding

2008-10-23 Thread Thodoris
Thodoris wrote: Hi guys, I am developing a project and I wrote an interface to import contracts in it. The problem is that when the user uploads the file I don't know what is the encoding it has. So I decided that a good idea is to make the user tell me the encoding from a drop down before

[PHP] Re: Problem changing file encoding

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

Re: [PHP] Re: Problem with memory management

2008-10-11 Thread Richard Heyes
Problem with memory management I sure know that feeling... :-/ -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.rgraph.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Problem with memory management

2008-10-11 Thread Alan Boudreault
Richard Heyes wrote: Problem with memory management I sure know that feeling... :-/ So, there is no other choice that waiting a new PHP release ? -- Alan Boudreault Mapgears http://www.mapgears.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: Problem with memory management

2008-10-11 Thread Eric Butera
On Sat, Oct 11, 2008 at 1:58 PM, Alan Boudreault [EMAIL PROTECTED] wrote: Richard Heyes wrote: Problem with memory management I sure know that feeling... :-/ So, there is no other choice that waiting a new PHP release ? -- Alan Boudreault Mapgears http://www.mapgears.com/ -- PHP

Re: [PHP] Re: Problem with memory management

2008-10-11 Thread Alan Boudreault
Eric Butera wrote: On Sat, Oct 11, 2008 at 1:58 PM, Alan Boudreault [EMAIL PROTECTED] wrote: Richard Heyes wrote: Problem with memory management I sure know that feeling... :-/ So, there is no other choice that waiting a new PHP release ? -- Alan Boudreault

[PHP] Re: Problem with memory management

2008-10-10 Thread Nathan Rixham
Alan Boudreault wrote: Hi all, I'm wondering why PHP doesn't free my memory with this test code. The memory usage is always the same even if i unset my object. The Garbage collector seems to only free the memory at the end of the script. Here's the php Scripts that i use for testing: ?php

Re: [PHP] Re: Problem with memory management

2008-10-10 Thread Eric Butera
On Fri, Oct 10, 2008 at 3:32 PM, Nathan Rixham [EMAIL PROTECTED] wrote: Alan Boudreault wrote: Hi all, I'm wondering why PHP doesn't free my memory with this test code. The memory usage is always the same even if i unset my object. The Garbage collector seems to only free the memory at the

Re: [PHP] Re: Problem with memory management

2008-10-10 Thread Nathan Rixham
Eric Butera wrote: On Fri, Oct 10, 2008 at 3:32 PM, Nathan Rixham [EMAIL PROTECTED] wrote: Alan Boudreault wrote: Hi all, I'm wondering why PHP doesn't free my memory with this test code. The memory usage is always the same even if i unset my object. The Garbage collector seems to only free

[PHP] Re: problem with slash / characters

2008-10-01 Thread Al
Tanner Postert wrote: ignore previous. sorry. I'm trying to display values from a database, the values come from the database like this: [0] = Array ( [id] = 5 [order_id] = 10 [key] = ship_to_name [value] = John Anderson ) [1] = Array ( [id] = 6 [order_id] = 10 [key] =

Re: [PHP] Re: problem with slash / characters

2008-10-01 Thread Tanner Postert
very, strange. if I change it to c / o Company XYZ ( with spaces between each character) it becomes: c 1 o Company XYZ. if I change it to c#o Company XYZ it becomes c1o Company XYZ On Wed, Oct 1, 2008 at 12:16 PM, Al [EMAIL PROTECTED] wrote: Tanner Postert wrote: ignore previous. sorry.

Re: [PHP] Re: problem with slash / characters

2008-10-01 Thread Tanner Postert
just did some further testing, and even if I remove the special characters, the 3rd character in that string becomes a 1. I change it to Company XYZ, and it looks right when its assigned to the array the first time, and on the next iteration of the loop. but after that, it looks lke Co1pany XYZ.

Re: [PHP] Re: problem with slash / characters

2008-10-01 Thread Tanner Postert
figured it out. later on in the code theres some formatting for a specific values that the address_2 field was accidentally falling into. On Wed, Oct 1, 2008 at 12:24 PM, Tanner Postert [EMAIL PROTECTED]wrote: just did some further testing, and even if I remove the special characters, the 3rd

Re: [PHP] Re: Problem with sorting

2008-09-22 Thread Philip Thompson
On Sep 21, 2008, at 2:24 PM, Eric Butera wrote: On Sun, Sep 21, 2008 at 3:26 PM, Ashley Sheridan [EMAIL PROTECTED] wrote: On Sun, 2008-09-21 at 15:21 -0400, Eric Butera wrote: On Sun, Sep 21, 2008 at 3:17 PM, Ashley Sheridan [EMAIL PROTECTED] wrote: On Sun, 2008-09-21 at 14:34 -0400, Eric

Re: [PHP] Re: Problem with sorting

2008-09-22 Thread Eric Butera
On Mon, Sep 22, 2008 at 10:42 AM, Philip Thompson [EMAIL PROTECTED] wrote: LOL! ~Phil PS... This was read and replied to on a Monday. =P *golf clap* -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Problem with sorting

2008-09-21 Thread Nathan Rixham
Michelle Konzack wrote: * Do not Cc: me, because I READ THIS LIST, if I write here * *Keine Cc: am mich, ich LESE DIESE LISTE wenn ich hier schreibe*

Re: [PHP] Re: Problem with sorting

2008-09-21 Thread Eric Butera
On Sun, Sep 21, 2008 at 1:19 PM, Nathan Rixham [EMAIL PROTECTED] wrote: Michelle Konzack wrote: * Do not Cc: me, because I READ THIS LIST, if I write here * *Keine Cc: am mich, ich LESE DIESE LISTE wenn

Re: [PHP] Re: Problem with sorting

2008-09-21 Thread Ashley Sheridan
On Sun, 2008-09-21 at 14:34 -0400, Eric Butera wrote: Michelle Konzack wrote: * Do not Cc: me, because I READ THIS LIST, if I write here * *Keine Cc: am mich, ich LESE DIESE LISTE wenn ich hier schreibe

Re: [PHP] Re: Problem with sorting

2008-09-21 Thread Eric Butera
On Sun, Sep 21, 2008 at 3:17 PM, Ashley Sheridan [EMAIL PROTECTED] wrote: On Sun, 2008-09-21 at 14:34 -0400, Eric Butera wrote: Michelle Konzack wrote: * Do not Cc: me, because I READ THIS LIST, if I write here

Re: [PHP] Re: Problem with sorting

2008-09-21 Thread Ashley Sheridan
On Sun, 2008-09-21 at 15:21 -0400, Eric Butera wrote: On Sun, Sep 21, 2008 at 3:17 PM, Ashley Sheridan [EMAIL PROTECTED] wrote: On Sun, 2008-09-21 at 14:34 -0400, Eric Butera wrote: Michelle Konzack wrote: *

Re: [PHP] Re: Problem with sorting

2008-09-21 Thread Eric Butera
On Sun, Sep 21, 2008 at 3:26 PM, Ashley Sheridan [EMAIL PROTECTED] wrote: On Sun, 2008-09-21 at 15:21 -0400, Eric Butera wrote: On Sun, Sep 21, 2008 at 3:17 PM, Ashley Sheridan [EMAIL PROTECTED] wrote: On Sun, 2008-09-21 at 14:34 -0400, Eric Butera wrote: Michelle Konzack wrote:

Re: [PHP] Re: Problem with sorting

2008-09-21 Thread Ashley Sheridan
On Sun, 2008-09-21 at 15:24 -0400, Eric Butera wrote: On Sun, Sep 21, 2008 at 3:26 PM, Ashley Sheridan [EMAIL PROTECTED] wrote: On Sun, 2008-09-21 at 15:21 -0400, Eric Butera wrote: On Sun, Sep 21, 2008 at 3:17 PM, Ashley Sheridan [EMAIL PROTECTED] wrote: On Sun, 2008-09-21 at 14:34

[PHP] Re: Problem with function

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

Re: [PHP] Re: Problem with function

2008-09-12 Thread Jason Pruim
On Sep 12, 2008, at 8:53 AM, Nathan Rixham wrote: Jason Pruim wrote: nothing obvious to me.. so debug more! ?PHP function notify_email($Record, $salesRepID) { echo in notify_email . PHP_EOL; require(defaults.php); echo already loaded and required defaults loaded

Re: [PHP] Re: Problem with function

2008-09-12 Thread Jason Pruim
On Sep 12, 2008, at 9:21 AM, Jason Pruim wrote: On Sep 12, 2008, at 8:53 AM, Nathan Rixham wrote: Jason Pruim wrote: nothing obvious to me.. so debug more! ?PHP function notify_email($Record, $salesRepID) { echo in notify_email . PHP_EOL; require(defaults.php);

Re: [PHP] Re: Problem with function

2008-09-12 Thread Nathan Rixham
Jason Pruim wrote: On Sep 12, 2008, at 8:53 AM, Nathan Rixham wrote: Jason Pruim wrote: nothing obvious to me.. so debug more! ?PHP function notify_email($Record, $salesRepID) { echo in notify_email . PHP_EOL; require(defaults.php); echo already loaded and required

Re: [PHP] Re: Problem with function

2008-09-12 Thread Nathan Rixham
Nathan Rixham wrote: Jason Pruim wrote: On Sep 12, 2008, at 8:53 AM, Nathan Rixham wrote: Jason Pruim wrote: nothing obvious to me.. so debug more! [snip snip snip] have to say this: error_reporting( E_ALL ); at the top would help; + display_errors on in php.ini and problem is

Re: [PHP] Re: Problem with function

2008-09-12 Thread Jason Pruim
On Sep 12, 2008, at 9:34 AM, Nathan Rixham wrote: Nathan Rixham wrote: Jason Pruim wrote: On Sep 12, 2008, at 8:53 AM, Nathan Rixham wrote: Jason Pruim wrote: nothing obvious to me.. so debug more! [snip snip snip] have to say this: error_reporting( E_ALL ); at the top would help; +

Re: [PHP] Re: Problem with function

2008-09-12 Thread Jochem Maas
Jason Pruim schreef: On Sep 12, 2008, at 9:34 AM, Nathan Rixham wrote: Nathan Rixham wrote: Jason Pruim wrote: On Sep 12, 2008, at 8:53 AM, Nathan Rixham wrote: Jason Pruim wrote: nothing obvious to me.. so debug more! [snip snip snip] have to say this: error_reporting( E_ALL ); at

Re: [PHP] Re: Problem with function

2008-09-12 Thread Jason Pruim
On Sep 12, 2008, at 9:46 AM, Jochem Maas wrote: Jason Pruim schreef: On Sep 12, 2008, at 9:34 AM, Nathan Rixham wrote: Nathan Rixham wrote: Jason Pruim wrote: On Sep 12, 2008, at 8:53 AM, Nathan Rixham wrote: Jason Pruim wrote: nothing obvious to me.. so debug more! [snip snip snip]

Re: [PHP] Re: Problem with function

2008-09-12 Thread Nathan Rixham
Jochem Maas wrote: Jason Pruim schreef: On Sep 12, 2008, at 9:34 AM, Nathan Rixham wrote: Nathan Rixham wrote: Jason Pruim wrote: On Sep 12, 2008, at 8:53 AM, Nathan Rixham wrote: Jason Pruim wrote: nothing obvious to me.. so debug more! [snip snip snip] have to say this:

[PHP] Re: problem with include directive under XHTML

2008-06-03 Thread Michael Kelly
Robert Huff wrote: 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

[PHP] Re: problem with for loop

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

[PHP] Re: problem with for loop

2008-05-02 Thread Craige Leeder
I think Peter is probably right. In the case he is not however, can you post a print_r of $multiArray. - Craige On Fri, May 2, 2008 at 7:24 AM, Peter Ford [EMAIL PROTECTED] wrote: Richard Kurth wrote: Way does my for loop not complete the task if there are 4 emails it only

[PHP] Re: problem with sessions config.

2008-03-22 Thread Nilesh Govindrajan
N . Boatswain wrote: 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

RE: [PHP] Re: problem with sessions config.

2008-03-22 Thread N . Boatswain
From: [EMAIL PROTECTED] Subject: [PHP] Re: problem with sessions config. N . Boatswain wrote: 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

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

2008-03-18 Thread David Giragosian
On 3/16/08, Ryan A [EMAIL PROTECTED] wrote: Now that thats over... can anybody recommend a good starting point to learn regex in baby steps? Cheers! R Mastering Regular Expressions, by Jeffrey Friedl ISBN 0-596-00289-0 -- -David. When the power of love overcomes the love of power, the

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

2008-03-18 Thread Daniel Brown
2008/3/17 Jonathan Crawford [EMAIL PROTECTED]: http://www.regular-expressions.info/php.html I second http://www.regular-expressions.info/. -- /Daniel P. Brown Forensic Services, Senior Unix Engineer 1+ (570-) 362-0283 -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

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

2008-03-16 Thread M. Sokolewicz
Ryan A wrote: 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

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

2008-03-16 Thread Jim Lucas
M. Sokolewicz wrote: Ryan A wrote: 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

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

2008-03-16 Thread M. Sokolewicz
Jim Lucas wrote: M. Sokolewicz wrote: Ryan A wrote: 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 =

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

2008-03-16 Thread Ryan A
Thanks guys! This (From Tul/Sokolewicz): $html = preg_replace('#([/]?img.*)#U', '', $html); worked perfectly! I'm just learning this stuff so its extremly hard for me... i have been messing around with PHP for years but rarely even dipped my toes into the REGEX part as I think it would be

[PHP] Re: problem with download script on safari and ie 7

2007-10-08 Thread Hulf
I changes it now so it is... header('Content-Type: application/octet-stream'); header(Content-Disposition: attachment; filename=$file_name); echo $content; exit; Which works on ie7 but safari still downloads the .php R. Hulf [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The

RE: [PHP] Re: problem with install php 5.2.3 on apache 2.2.4 in windows xp sp2

2007-07-24 Thread Anton C. Swartz IV
God. Don't let sin keep ruling your lives.You are ruled by God's Kindness and not by the law. Romans 6:12-14 -Original Message- From: Ryan Lao [mailto:[EMAIL PROTECTED] Sent: Monday, July 23, 2007 10:36 PM To: php-general@lists.php.net Subject: [PHP] Re: problem with install php 5.2.3

[PHP] Re: Problem compile 5.2.3 souce under SUSE 10.1

2007-07-23 Thread M. Sokolewicz
Jeff Lanzarotta wrote: Hello, I am not sure if this is the right mailing list or not, but here goes... I am attempting to compile php 5.2.3 from source under SUSE 10.1. The compile is fine, it is the 'make test' that is failing... When I run 'make test' I am getting:

Re: [PHP] Re: Problem compile 5.2.3 souce under SUSE 10.1

2007-07-23 Thread Jeff Lanzarotta
Oh, OK, thanks. - Original Message From: M. Sokolewicz [EMAIL PROTECTED] To: Jeff Lanzarotta [EMAIL PROTECTED] Cc: PHP General List php-general@lists.php.net Sent: Monday, July 23, 2007 11:32:17 AM Subject: [PHP] Re: Problem compile 5.2.3 souce under SUSE 10.1 Jeff Lanzarotta wrote

[PHP] Re: problem with install php 5.2.3 on apache 2.2.4 in windows xp sp2

2007-07-23 Thread Ryan Lao
Arvin, You inserted the codes ?php phpinfo(); ? to your index.html file? arvin lee [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] system: windows xp sp 2 apache: apache_2.2.4-win32-x86-no_ssl PHP: php-5.2.3-win32-installer.msi i try to install php on my computer so that i

[PHP] Re: problem with pcode function

2007-07-18 Thread Darren Whitlen
Ross wrote: I have this postcode selector working on my localhost but remotely it gives a parse error. It should only call the function when the postcode is submitted. Any ideas? The error is: Parse error: parse error, unexpected T_NEW in

[PHP] Re: problem with array

2007-07-15 Thread Al
Do a print_r($result); and you'll see the problem. Ross wrote: I am using postcode anywhere for a 'where's my nearest' function. All the geographical info is contained in an array, which when dumped looks like this var_dump ($result); array(1) { [0]= array(13) { [origin_postcode]=

[PHP] Re: Problem extending mysqli - No database connected

2007-06-29 Thread Lee PHP
Actually, the post by hans at lintoo dot dk (22-Mar-2005 11:33) @ http://theserverpages.com/php/manual/en/ref.mysqli.php show why. Weird. On 6/29/07, Lee PHP [EMAIL PROTECTED] wrote: Hi, I have a class that extends msyqli that AFAIK can connect to the database, but gives me an error when I

[PHP] Re: problem with string floats in PHP

2007-05-15 Thread Emil Ivanov
?php$var = '5.812E-08';var_dump($var);$var = (float)$var;var_dump($var);var_dump($var + 2);?Outputs:string(9) 5.812E-08 float(5.812E-8) float(2.0005812) All you need is to cast it (float) to float, (int) to int. Regards, Emil Ivanov Pablo Luque [EMAIL PROTECTED] wrote in message

[PHP] Re: Problem with timeout

2007-05-04 Thread Emmanuel Raulo-Kumagai
Frank Arensmeier a écrit : Hello. I am currently working on a script that parses a given http adress by looking for anchor tags, background images and so on - a crawler if you like. The downloaded content is temporarily stored on the server (Mac OS X Server 10.4.9 with PHP 5) and, when the

Re: [PHP] Re: Problem with timeout

2007-05-04 Thread Frank Arensmeier
// sorry for posting my answer off list... // 4 maj 2007 kl. 17.35 skrev Emmanuel Raulo-Kumagai: Frank Arensmeier a écrit : Hello. I am currently working on a script that parses a given http adress by looking for anchor tags, background images and so on - a crawler if you like. The

[PHP] Re: problem with shared object file

2007-04-26 Thread Colin Guthrie
Marten Lehmann wrote: Hello, I'm trying to include a shared object file with the function dl(). But I always get: Warning: dl() [function.dl]: Unable to load dynamic library '/homepages/xyz/util.so' - /homepages/xyz/util.so: cannot open shared object file: No such file or directory in

[PHP] Re: problem with shared object file

2007-04-26 Thread Colin Guthrie
Marten Lehmann wrote: Hello, I'm trying to include a shared object file with the function dl(). But I always get: Warning: dl() [function.dl]: Unable to load dynamic library '/homepages/xyz/util.so' - /homepages/xyz/util.so: cannot open shared object file: No such file or directory in

[PHP] Re: problem with shared object file

2007-04-26 Thread Colin Guthrie
Marten Lehmann wrote: Hello, I'm trying to include a shared object file with the function dl(). But I always get: Warning: dl() [function.dl]: Unable to load dynamic library '/homepages/xyz/util.so' - /homepages/xyz/util.so: cannot open shared object file: No such file or directory in

[PHP] Re: Problem with XSLT importStyleSheet

2007-03-28 Thread Timothy Murphy
posted mailed Tijnema ! wrote: I've been trying to use PHP/XSLT on my desktop, running Fedora-6 Linux (with all current updates). The function importStyleSheet() seems to cause a Segmentation Violation, Thanks for your response. I have no problem with testing, i'm running home-made linux

[PHP] Re: Problem with APC

2007-03-08 Thread steve
No one else having problems? On 3/7/07, steve [EMAIL PROTECTED] wrote: Hi, I upgraded to PHP 4.4.6 and APC 3.0.13 at the same time. Every day at some point, it starts having a problem and the load on that machine styrockets. It does not happen with the opcode cache in Zend Platform for PHP

[PHP] Re: Problem with file reading

2007-01-05 Thread Fahad Pervaiz
===ORIGINAL=== Hi, I'm a beginner and i'm still learning PHP and I got a problem: $file = http://localhost/test_folder/test1.txt;;http://localhost/test_folder/test1.txt//I have also tried test_folder/test1.txt and text1.txt $fh = fopen($file, r) or die(Could not open file!); $data =

[PHP] Re: problem with mysql_real_escape_string()

2006-12-28 Thread Chris
You need to have established a database connection before using that function, see manual. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi to all! I moved my website from one php4/mysql4 based server to new hosting company and php5/mysq5 based server. Everything worked fine

[PHP] Re: problem with imagestring()

2006-11-13 Thread Piotr Sulecki
Ave! Forget it. It turned out that the culprit was Debian-specific patch of libgd2. Sorry for bothering you. Regards, Piotr Sulecki. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Problem compiling PHP 4.4.2 with mcrypt

2006-10-27 Thread Myron Turner
Found this on Google: http://marc2.theaimsgroup.com/?l=php-installm=108030891925096w=2 Then Goto: http://mcrypt.hellug.gr/mcrypt/index.html where it says: The 2.6.x versions of mcrypt do not include Libmcrypt The 2.6.x versions of mcrypt need Libmhash 0.8.15 or newer It has a download

Re: [PHP] Re: Problem with EXEC and PASSTHRU

2006-10-26 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-10-26 08:46:27 +1300: I'm LOVING php now - its a very simple language limited only by your imagination as to how you use it! My knowledge seems to be lacking more in HTML and Browser server relationships - I'm basing things on my background in Basic programming as a

[PHP] Re: Problem with EXEC and PASSTHRU

2006-10-25 Thread Ivo F.A.C. Fokkema
On Wed, 25 Oct 2006 20:35:29 +1300, Matt Beechey wrote: I am writing a php website for users to edit a global whitelist for Spam Assassin - all is going fairly well considering I hadn't ever used php until a couple of days ago. My problem is I need to restart AMAVISD-NEW after the user saves

[PHP] Re: Problem with EXEC and PASSTHRU

2006-10-25 Thread Myron Turner
Matt Beechey wrote: I am writing a php website for users to edit a global whitelist for Spam Assassin - all is going fairly well considering I hadn't ever used php until a couple of days ago. My problem is I need to restart AMAVISD-NEW after the user saves the changes. I've acheived this using

[PHP] Re: Problem with EXEC and PASSTHRU

2006-10-25 Thread Matt Beechey
Ok - This is a reply to ALL - Thanks for the great help - I now understand why it wasn't displaying - it was all due to caching of data at the client end before displaying in blocks. With some help in the comments of the php manual for flush() I found a nice script that uses echo

[PHP] Re: problem with email characters

2006-09-28 Thread Ross
Actually I think it is a carriage return! Ross Ross [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Is there a function that sorts out all the dodgy characters in an email... e.g. ? An update on Scottish Social Networks Forum ? A summary of the conference Social Networks -

[PHP] Re: problem with email characters

2006-09-28 Thread Manuel Lemos
Hello, on 09/28/2006 02:27 PM Ross said the following: Is there a function that sorts out all the dodgy characters in an email... e.g. ? An update on Scottish Social Networks Forum ? A summary of the conference Social Networks - Evidence and Potential ? Information on two

[PHP] Re: problem with Firefox print preview?

2006-08-11 Thread Al
Angelo Zanetti wrote: Hi all, I've developed this site in PHP and its basically finished, now I have a problem with the printing and print preview. I have a dynamic table that can span various pages depending on the number of records pulled from the database. The print preview (and printed

[PHP] Re: Problem using fgetcsv()

2006-07-06 Thread Al
Don wrote: Hi, I have a CSV file, comma delimited with the data enclosed by double quotes. I am using the fgetcsv() function to read and into an array and update a database. It works great except for the odd record. After investigating, I have ascertained that it is due to a backslash

Re: [PHP] Re: problem with mktime

2006-04-30 Thread chris smith
On 4/30/06, Ross [EMAIL PROTECTED] wrote: soted it ! Thanks. please enlighten us in case someone else has the same sort of issue... Ross [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am using this to compare todays date with dates retieved from a database. The problem is it

[PHP] Re: problem with greek language

2006-04-04 Thread David Dorward
Rosen wrote: I have one very big problem: I create website with english and greek language. I use iso-8859-1 encoding for my website. I show the greek language text with encoded chars like tau;eta;lambda;epsilon;#972;rho;alpha;si; Representing such characters as HTML entities is fine. On

[PHP] Re: Problem

2006-03-16 Thread Bikram Suri
Thanks for all your replies. I have changed the include_path settings in php.ini which is in c:\wamp\php but still it takes the include path as c:\php5\PEAR Please help regards Bikram Bikram Suri [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I do phpinfo(); and I see the

[PHP] Re: problem with large arrays in php 4.3.2

2006-01-22 Thread Jesse Guardiani
Jesse Guardiani jesse at wingnet.net writes: Hello, I have an old version of php (4.3.2) that is acting rather strangely. I'm searching two large arrays (approx 22,000 records in each) using array_diff_key() from the PEAR PHP_Compat library: $result = $args[0]; foreach

[PHP] Re: problem with large arrays in php 4.3.2

2006-01-11 Thread James Benson
Their should be no problem with what your trying to do, try the following function, should act pretty much like array_diff(); if(!function_exists('array_diff')) { function array_diff($array1, $array2) { $difference = array(); foreach($array1 as $key = $value)

  1   2   3   4   >