Re: [PHP] Problem with Square Brackets [was: php+ ajax]

2006-02-21 Thread David Dorward
--- Jochem Maas [EMAIL PROTECTED] wrote: From a php developer point of view there is one big problem with 'follow the standards' mantra as far as square brackets go (with regard to use in the value of name attributes of form fields) ... Nope. The names of form controls MAY contain square

Re: [PHP] Problem with Square Brackets [was: php+ ajax]

2006-02-21 Thread Jochem Maas
David Dorward wrote: --- Jochem Maas [EMAIL PROTECTED] wrote: From a php developer point of view there is one big problem with 'follow the standards' mantra as far as square brackets go (with regard to use in the value of name attributes of form fields) ... Nope. The names of form controls

[PHP] Problem with mail() on Debian

2006-02-21 Thread George Pitcher
Hi, I am in the process of moving from Windows (NT/XP) to Linux. I'm starting with a new small application which I have working on my Windows XP laptop. On my Linux box, I have php.ini saying: sendmail_path /usr/sbin/sendmail That 'sendmail' is a symbolic link to exim4 in the same directory. I

RE: [PHP] Problem with HUGE floating values and fmod

2006-02-18 Thread Marco Almeida
- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: sexta-feira, 17 de Fevereiro de 2006 20:40 To: php-general@lists.php.net; [EMAIL PROTECTED] Subject: Re: [PHP] Problem with HUGE floating values and fmod On Fri, Feb 17, 2006 at 06:48:13PM -, Marco Almeida wrote: Hi there, I'm trying

[PHP] Problem with HUGE floating values and fmod

2006-02-17 Thread Marco Almeida
Hi there, I'm trying to calculate check digits for a payment system, using the ISO 7064 (MOD 97-10) algorithm, wich is, already translated to PHP: $check=98-fmod(($num*100),97); Where $num is a huge number... Example: 90150123123400043211 should have check digit 51 In windows calculator: 98 -

Re: [PHP] Problem with HUGE floating values and fmod

2006-02-17 Thread Curt Zirzow
On Fri, Feb 17, 2006 at 06:48:13PM -, Marco Almeida wrote: Hi there, I'm trying to calculate check digits for a payment system, using the ISO 7064 (MOD 97-10) algorithm, wich is, already translated to PHP: $check=98-fmod(($num*100),97); Where $num is a huge number... Example:

RE: [PHP] Problem with php.ini and include_path

2006-02-15 Thread George Pitcher
. Cheers George -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: 14 February 2006 11:56 pm To: George Pitcher Cc: php-general@lists.php.net Subject: RE: [PHP] Problem with php.ini and include_path http://php.net/set_include_path .htaccess php_value

[PHP] Problem with php.ini and include_path

2006-02-14 Thread George Pitcher
Hi, I have compiled php-5.1.2 with apache on Debian and have a problem with the include_path. My configure was './configure' '--with-mysql' '--with-pear' '--with-apxs' '--with-config-file-path=/usr/local/lib'. php.ini is in '/usr/local/lib' and phpinfo tells me that php.ini is in

Re: [PHP] Problem with php.ini and include_path

2006-02-14 Thread Jochem Maas
George Pitcher wrote: Hi, I have compiled php-5.1.2 with apache on Debian and have a problem with the include_path. My configure was './configure' '--with-mysql' '--with-pear' '--with-apxs' the '--with-apxs' suggest your probably running php as an apache module, if so then you'll need to

RE: [PHP] Problem with php.ini and include_path

2006-02-14 Thread George Pitcher
George Pitcher wrote: Hi, I have compiled php-5.1.2 with apache on Debian and have a problem with the include_path. My configure was './configure' '--with-mysql' '--with-pear' '--with-apxs' the '--with-apxs' suggest your probably running php as an apache module, if so then you'll

Re: [PHP] Problem with php.ini and include_path

2006-02-14 Thread Jochem Maas
George Pitcher wrote: George Pitcher wrote: Hi, I have compiled php-5.1.2 with apache on Debian and have a problem with the include_path. My configure was './configure' '--with-mysql' '--with-pear' '--with-apxs' the '--with-apxs' suggest your probably running php as an apache module,

RE: [PHP] Problem with php.ini and include_path

2006-02-14 Thread Richard Lynch
http://php.net/set_include_path .htaccess php_value include_path .:/whatever/you/want/here Also, you are comparing the output of php CLI which may or may not be the same as --with-apxs compilation, especially if you have an *OLD* CLI php sitting around... From the command line, compare: which

[PHP] problem with code between 4.3.4rc1 upgrading to php 4.4.2

2006-02-09 Thread Brent
Hello, About 2 years ago i setup Apache/1.3.28 (Unix) PHP/4.3.4RC1 mod_ssl/2.8.15 OpenSSL/0.9.7c and mysql on BSD Unix and did up some simple php enabled web pages to add / remove /edit / search entries to a 1 table mysql database to keep track of abuse complaints for my company. This week

Re: [PHP] problem with code between 4.3.4rc1 upgrading to php 4.4.2

2006-02-09 Thread Curt Zirzow
On Thu, Feb 09, 2006 at 04:04:49PM -0500, Brent wrote: Hello, About 2 years ago i setup Apache/1.3.28 (Unix) PHP/4.3.4RC1 mod_ssl/2.8.15 OpenSSL/0.9.7c and mysql on BSD Unix and did up some simple php enabled web pages to add / remove /edit / search entries to a 1 table mysql database to

[PHP] [Problem] - reading file

2006-02-06 Thread Labunski
Hello, The problem is, that script outputs Last line from the file (and not first line, as expected)! 4 hours spent seeking for mistake. Hopeless. The script should read all the filenames in the directory, then open each file to read first line from file and output this line.

Re: [PHP] [Problem] - reading file

2006-02-06 Thread Chris
Hi Roman, This line is your problem. $lines = preg_replace(/\n/, br, $lines); You're replacing your newlines with br tags. Your explode won't find anything because it's looking for \n 's. Labunski wrote: Hello, The problem is, that script outputs Last line from the file (and not first

[PHP] problem with Mail function

2006-02-05 Thread Tariq Dalvi
Hello everyone, I m using php mail function it dose everyting fine besides it prints message twise in the email body can someone please have a look what i m doing wrong the code is as follows : $to = $email; $subject = someting goes here \n\n; $headers = From: [EMAIL PROTECTED] . X-Mailer:

Re: [PHP] problem with Mail function

2006-02-05 Thread sub
it? ~Drew www.drewpydraws.com - Original Message - From: Tariq Dalvi [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Sunday, February 05, 2006 6:55 PM Subject: [PHP] problem with Mail function Hello everyone, I m using php mail function it dose everyting fine besides it prints

Re: [PHP] problem with Mail function

2006-02-05 Thread sunaram patir
Sent: Sunday, February 05, 2006 6:55 PM Subject: [PHP] problem with Mail function Hello everyone, I m using php mail function it dose everyting fine besides it prints message twise in the email body can someone please have a look what i m doing wrong the code is as follows

[PHP] problem with parse_str

2006-01-25 Thread dalini
version: 4.3.2 the example from: http://de2.php.net/manual/en/function.parse-str.php $str = first=valuearr[]=foo+bararr[]=baz; parse_str($str); echo $first; // value echo $arr[0]; // foo bar echo $arr[1]; // baz parse_str($str, $output); echo $output['first']; // value echo $output['arr'][0];

[PHP] Problem with Sessions

2006-01-24 Thread Barry
Hi! I got a very funny problem. I wonder if anyone else encountered that. I start a Session at Shop startpage to keep some arrays and such. Stuff you need for the Cart and so. so fine so good. But when the customer goes through that Page some session vars just get NULL. Not the whole session

Re: [PHP] Problem with Sessions

2006-01-24 Thread Jochem Maas
Barry wrote: Hi! I got a very funny problem. I wonder if anyone else encountered that. I start a Session at Shop startpage to keep some arrays and such. Stuff you need for the Cart and so. so fine so good. But when the customer goes through that Page some session vars just get NULL. are

Re: [PHP] Problem with Sessions

2006-01-24 Thread Richard Lynch
On Tue, January 24, 2006 10:30 am, Barry wrote: I got a very funny problem. I wonder if anyone else encountered that. I start a Session at Shop startpage to keep some arrays and such. Stuff you need for the Cart and so. so fine so good. But when the customer goes through that Page some

Re: [PHP] Problem with Sessions

2006-01-24 Thread Richard Correia
upgrade to 4.4.X 4.2 has known problems in session handling. Thanks, Richard On 1/24/06, Barry [EMAIL PROTECTED] wrote: Hi! I got a very funny problem. I wonder if anyone else encountered that. I start a Session at Shop startpage to keep some arrays and such. Stuff you need for the Cart

[PHP] problem encountered with stristr-based function

2006-01-20 Thread George Pitcher
Hi, I'm having a problem with the following function: function terms($term,$field){ if(strlen($term)0){ if(!stristr($term, $field) === FALSE) { $output = str_replace($term, b.$term./b, $field); } elseif(!stristr(strtolower($term), $field) === FALSE) { $output =

Re: [PHP] problem encountered with stristr-based function

2006-01-20 Thread David Grant
George, George Pitcher wrote: For info, I am trying to highlight search terms in results. If you're searching and replacing within HTML, you ought to be aware of issues if someone's search term happens to be an HTML tag or attribute. For example, Alice might search for href and get the

RE: [PHP] problem encountered with stristr-based function

2006-01-20 Thread George Pitcher
2006 2:54 pm Cc: php-general@lists.php.net Subject: Re: [PHP] problem encountered with stristr-based function George, George Pitcher wrote: For info, I am trying to highlight search terms in results. If you're searching and replacing within HTML, you ought to be aware of issues if someone's

Re: [PHP] problem encountered with stristr-based function

2006-01-20 Thread Richard Lynch
On Fri, January 20, 2006 8:44 am, George Pitcher wrote: function terms($term,$field){ if(strlen($term)0){ if(!stristr($term, $field) === FALSE) { This is quite contorted... And you have the arguments swapped, which is the real problem. if(stristr($field, $term)){ $output =

[PHP] problem with large arrays in php 4.3.2

2006-01-10 Thread Jesse Guardiani
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 ($args[0] as $key1 = $value1) { for ($i =

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

2006-01-10 Thread Jesse Guardiani
of data? Regards, Rodolfo Andrade - Original Message - From: Jesse Guardiani To: php-general@lists.php.net Sent: Tuesday, January 10, 2006 5:07 PM Subject: [PHP] problem with large arrays in php 4.3.2 Hello, I have an old version of php (4.3.2) that is acting rather strangely. I'm

[PHP] Problem with fsockopen and SSL

2006-01-09 Thread Barry
Hi everyone! I want to connect to an SSL server but i can't get the content :( Here is the code i use: $xml = 'xmldataHello!/data/xml'; function PostToHost($host, $path, $referer, $data_to_send) { $fp = fsockopen($host, 443); printf(Open!\n); fputs($fp, POST $path HTTP/1.1\r\n\r\n);

Re: [PHP] Problem with fsockopen and SSL

2006-01-09 Thread David Grant
Hi Barry, I'm not terrible au fait with the workings of SSL, but it strikes me as potentially problematic that you are communicating in plain text over an encrypted protocol. Might that be the problem? David Barry wrote: Hi everyone! I want to connect to an SSL server but i can't get the

[PHP] problem with currency signs

2006-01-09 Thread Angelo Zanetti
Hi guys, Im having problems with the Euro and Pound currency signs and storing them etc... here is my scenario. I have a menu/list of currencies available for selection, HTML below for the signs: $ pound; euro; When listed in the browser they show fine. When I want to save them,

Re: [PHP] problem with currency signs

2006-01-09 Thread Warren Vail
see http://us2.php.net/manual/en/function.htmlspecialchars.php note: I believe the dollar sign will also be translated, could be wrong. Warren At 03:14 AM 1/10/2006, Angelo Zanetti wrote: Hi guys, Im having problems with the Euro and Pound currency signs and storing them etc... here is my

Re: [PHP] problem with currency signs

2006-01-09 Thread tedd
Angelo: Now might be the time to start looking at Unicode characters. Here's a start: http://www1.tip.nl/~t876506/utf8tbl.html There's all sorts of ways to show special characters. For example, the BULLET (Unicode 2022) can be shown by: bull; #149; #8226; -- Note Please note that 8226 is

RE: [PHP] Problem on Instalation ~ several module failed to load

2006-01-04 Thread Bagus Nugroho
Sent: Friday, December 09, 2005 10:31 PM To: php-general@lists.php.net Subject: RE: [PHP] Problem on Instalation ~ several module unable to download here is my last list of module which bale to load and unable to load excerpt php.ini extension=php_mbstring.dll ;extension

Re: [PHP] Problem with fopen and sending POST vars

2005-12-20 Thread Silvio Porcellana [tradeOver]
Barry wrote: Hello everyone! I have a problem sending POST vars via fopen. It was possible for me to send some xml data but that's all. Anyone know how to send POST vars? Big probleme here is also that i have to connect via SSL. cURL can be your friend... http://php.net/curl

[PHP] problem: pgsql (unicode) = php5 = HTML (iso-8859-1)

2005-12-20 Thread Michelle Konzack
Hello, my PostgreSQL stores all data in UNICODE and now if I connect via Webbrowser to my Database my webpages are detected as ISO-8859-1. For each Page I must select View-Character Encoding-Unicode (UTF8). Please can anyone tell me the right META (???) Tag to get Motilla right to UNICODE?

Re: [PHP] problem: pgsql (unicode) = php5 = HTML (iso-8859-1)

2005-12-20 Thread David Grant
Michelle, Michelle Konzack wrote: Please can anyone tell me the right META (???) Tag to get Motilla right to UNICODE? Try: meta http-equiv=Content-Type content=text/html; charset=UTF-8 Cheers, David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] problem: pgsql (unicode) = php5 = HTML (iso-8859-1)

2005-12-20 Thread Jochem Maas
Michelle Konzack wrote: Hello, my PostgreSQL stores all data in UNICODE and now if I connect via Webbrowser to my Database my webpages are detected as ISO-8859-1. For each Page I must select View-Character Encoding-Unicode (UTF8). Please can anyone tell me the right META (???) Tag to get

Re: [PHP] Problem with fopen and sending POST vars

2005-12-20 Thread Barry
Silvio Porcellana [tradeOver] wrote: Barry wrote: I have a problem sending POST vars via fopen. It was possible for me to send some xml data but that's all. Anyone know how to send POST vars? Big probleme here is also that i have to connect via SSL. cURL can be your friend...

Re: [PHP] Problem with fopen and sending POST vars

2005-12-20 Thread tg-php
There are a couple examples of manually sending POST data via fsockopen() on: http://us2.php.net/manual/en/function.fsockopen.php Basically the stucture is the same as URL GET variables but you have to send the header data manually and set content-type to application/x-www-form-urlencoded.

RE: [PHP] Problem on Instalation ~ several module unable to downl oad

2005-12-17 Thread Bagus Nugroho
[mailto:[EMAIL PROTECTED] Sent: Sat 10-Dec-2005 04:14 To: Bagus Nugroho; php-general@lists.php.net Subject: RE: [PHP] Problem on Instalation ~ several module unable to downl oad [snip] Yes, all requested module is put on same folder which module which succesfully load. But, I don't understand

[PHP] Problem: Distortion while saving text file.

2005-12-14 Thread Janne Miettunen
What could be wrong when this is transformed: img src=graphics/auringonlasku2.jpg align=left to this form: img src=\graphics/auringonlasku2.jpg\ align=\left\ The line is saved to text file with this function: function savesite($site, $lang, $contents){ if (check_session()){

Re: [PHP] Problem: Distortion while saving text file.

2005-12-14 Thread David Grant
Could it be the other way around, i.e. Windows is stripping slashes, and Linux is not? How does $contents come to exist in the script? Check for any difference in your ini files for magic_quotes_runtime. Cheers, David Grant Janne Miettunen wrote: What could be wrong when this is transformed:

[PHP] Problem on Instalation ~ several module unable to download

2005-12-09 Thread Bagus Nugroho
Hi All, Previously I always succed to instalation PHP, but currently I have strange problem as several module is unable to download(i.e : php_mysql.dll, php_mysqli.dll), while several other are succesfully download(i.e : mbstring, gd). I have re-installed or copy PHP folder from my succeded

RE: [PHP] Problem on Instalation ~ several module unable to download

2005-12-09 Thread Bagus Nugroho
is on c:\php\ext as others. Any idea how come Thanks From: Bagus Nugroho [mailto:[EMAIL PROTECTED] Sent: Fri 09-Dec-2005 21:06 To: php-general@lists.php.net Subject: [PHP] Problem on Instalation ~ several module unable to download Hi All, Previously I

RE: [PHP] Problem on Instalation ~ several module unable to downl oad

2005-12-09 Thread Jay Blanchard
[snip] here is my last list of module which bale to load and unable to load excerpt php.ini extension=php_mbstring.dll ;extension=php_bz2.dll extension=php_cpdf.dll ;extension=php_curl.dll extension=php_dba.dll extension=php_dbase.dll extension=php_dbx.dll

RE: [PHP] Problem on Instalation ~ several module unable to download

2005-12-09 Thread Bagus Nugroho
From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Fri 09-Dec-2005 22:36 To: Bagus Nugroho; php-general@lists.php.net Subject: RE: [PHP] Problem on Instalation ~ several module unable to download [snip] here is my last list of module which bale to load and unable to load excerpt php.ini

RE: [PHP] Problem on Instalation ~ several module unable to downl oad

2005-12-09 Thread Jay Blanchard
[snip] It's done ... But it was create errror like this PHP Startup: unable to load dynamic library 'c:\php\ext\php_mysqli.dll' - The specified module could not found. I was re-check to ensure php_mysqli.dll is on c:\php\ext and used from same source... [/snip] Any of the modules that you want

RE: [PHP] Problem on Instalation ~ several module unable to download

2005-12-09 Thread Bagus Nugroho
:06 To: Bagus Nugroho; Jay Blanchard; php-general@lists.php.net Subject: RE: [PHP] Problem on Instalation ~ several module unable to download [snip] It's done ... But it was create errror like this PHP Startup: unable to load dynamic library 'c:\php\ext\php_mysqli.dll' - The specified module

RE: [PHP] Problem on Instalation ~ several module unable to downl oad

2005-12-09 Thread Jay Blanchard
[snip] Yes, all requested module is put on same folder which module which succesfully load. But, I don't understand why they say the module is not found? [/snip] What operating system are you using? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Problem on Instalation ~ several module unable to downl oad

2005-12-09 Thread Jay Blanchard
[snip] Yes, all requested module is put on same folder which module which succesfully load. But, I don't understand why they say the module is not found? What operating system are you using? {/snip] Sorry, found the original post. Can you send the snippet for the php.ini where you set the

[PHP] Problem with pdf_show_boxed()

2005-12-04 Thread 張 峰銘
Hello, Sir: I just installed PHP with pdflib : PHP-4.4.1 pdflib PDFlib GmbH Version 6.0.2 pdflib PECL Version 2.0.3 apache 1.3.34 in Liunx FC1.

[PHP] php problem

2005-12-02 Thread Rama
in a huge php page it's happen that some page included in index.php, for some strange reason went write. 2 byte are write on the pages included, and are always the same (FF and FE in hexadecilam) at the start of file. so the file will be FF FE? php blablabla ? i cannot understand why, i don't

Re: [PHP] php problem

2005-12-02 Thread Marco Kaiser
Hi Matteo, can you reduce the code to the smallest one and provide your scripts here to reproduce it? in a huge php page it's happen that some page included in index.php, for some strange reason went write. 2 byte are write on the pages included, and are always the same (FF and FE in

Re: [PHP] php problem

2005-12-02 Thread Jochem Maas
anyone looking for an example of how not to ask a question on a mailing list, this is it: Rama wrote: in a huge php page it's happen that some page included in index.php, for some strange reason went write. 2 byte are write on the pages included, and are always the same (FF and FE in

[PHP] problem in installing php5

2005-11-30 Thread R.Vijay Daniel
Hi, I tried to install php5 in redhat7.2,but i was unable to do so. There was some problem related to libxml2. I even tried down loading the libxml2 rpm and upgraded the package.Even then some other problem occured related to libxml2. is that possible to install php5 in redhat7.2 ?. with

Re: [PHP] Problem with Frames and Sessions

2005-11-29 Thread Brent Baisley
Frames are just nested windows, the server can't tell the difference between a page requested from a frame or a separate window and you should treat them as such. So if your frame was created before a session was created, it's not part of the session. On Nov 28, 2005, at 6:52 PM, Shaun

[PHP] Problem with Frames and Sessions

2005-11-28 Thread Shaun
Hi, I have a frameset with a left column and a main column. I have a login script with a form in the left column. When I log in I get a menu in the left column which targets to the main column. My problem is that when I click on links in the left column nothing appears in the main frame,

[PHP] R: [PHP] Problem with Frames and Sessions

2005-11-28 Thread Sebastian \En3pY\ Zdrojewski
gentilmente comunicazione. Ogni utilizzo improprio è contrario ai principi del D.lgs 196/03 e alla legislazione Europea (Direttiva 2002/58/CE). -Messaggio originale- Da: Shaun [mailto:[EMAIL PROTECTED] Inviato: martedì 29 novembre 2005 0.53 A: php-general@lists.php.net Oggetto: [PHP] Problem

Re: [PHP] Problem with the fwrite function (not as simple as it sounds though)

2005-11-20 Thread Łukasz Hejnak
Hello again, here's some more extra info on my case that came out while Suhas Pharkute was helping me find a resolution: So the safe-mode is off, that's for sure, I turned it off at compile stage. I delete the file after each run of the script, the folder where the script is located has 777

Re: [PHP] Problem with the fwrite function (not as simple as it sounds though)

2005-11-20 Thread Brian V Bonini
On Sun, 2005-11-20 at 05:44, Łukasz Hejnak wrote: Hello again, here's some more extra info on my case that came out while Suhas Pharkute was helping me find a resolution: So the safe-mode is off, that's for sure, I turned it off at compile stage. I delete the file after each run of the

Re: [PHP] Problem with the fwrite function (not as simple as it sounds though)

2005-11-20 Thread Łukasz Hejnak
Brian V Bonini napisał(a): You are saying: From the CLI you can write to a file all day long, no prob. Yes, the shell command php test.php works fine when executed as root (any other user has the same problem as from the web) From the web, if the file does not exist it is created, however, no

Re: [PHP] Problem with the fwrite function (not as simple as it sounds though)

2005-11-20 Thread Curt Zirzow
On Sun, Nov 20, 2005 at 03:38:56PM +0100, ukasz Hejnak wrote: Brian V Bonini napisa�(a): You are saying: From the CLI you can write to a file all day long, no prob. Yes, the shell command php test.php works fine when executed as root (any other user has the same problem as from the web) From

Re: [PHP] Problem with the fwrite function (not as simple as it sounds though)

2005-11-20 Thread Suhas
This is not a disk usage as it works when script is run from terminal as su\ Suhas On 11/20/05, Curt Zirzow [EMAIL PROTECTED] wrote: On Sun, Nov 20, 2005 at 03:38:56PM +0100, ukasz Hejnak wrote: Brian V Bonini napisa�(a): You are saying: From the CLI you can write to a file all day long,

Re: [PHP] Problem with the fwrite function (not as simple as it sounds though)

2005-11-20 Thread Curt Zirzow
On Sun, Nov 20, 2005 at 09:26:15AM -0700, Suhas wrote: This is not a disk usage as it works when script is run from terminal as su\ root can break the 100% barrier, it usually can get around 110%. [EMAIL PROTECTED]:/tmp df -h /tmp Filesystem SizeUsed Avail Capacity Mounted on

Re: [PHP] Problem with the fwrite function (not as simple as it sounds though)

2005-11-20 Thread Suhas
thanks, never thought about that. Suhas On 11/20/05, Curt Zirzow [EMAIL PROTECTED] wrote: On Sun, Nov 20, 2005 at 09:26:15AM -0700, Suhas wrote: This is not a disk usage as it works when script is run from terminal as su\ root can break the 100% barrier, it usually can get around 110%.

Re: [PHP] Problem with the fwrite function (not as simple as it sounds though)

2005-11-20 Thread Brian V Bonini
On Sun, 2005-11-20 at 09:38, Łukasz Hejnak wrote: Brian V Bonini napisał(a): You are saying: From the CLI you can write to a file all day long, no prob. Yes, the shell command php test.php works fine when executed as root (any other user has the same problem as from the web) From the web,

Re: [PHP] Problem with the fwrite function (not as simple as it sounds though)

2005-11-20 Thread Łukasz Hejnak
Brian V Bonini napisał(a): What does 'df -h' say on your system? !!! The simplest of all is the most unforseen.. Wow. that's it ;) I NEVER EVEN Imagined to check for that, in fact that _IS_ the thing. I feel so totaly stupid right now, I checked everything except this, although I think the

[PHP] Problem with the fwrite function (not as simple as it sounds though)

2005-11-19 Thread Łukasz Hejnak
Hello, First of all sorry for my english, trying my best :] The story is: I'm running a small webserver and to monitor the amount of people going trough my pages, I've made a simple counter (storing the data in a text file), no matter the details, the important thing is that it WORKED just

Re: [PHP] Problem with the fwrite function (not as simple as it sounds though)

2005-11-19 Thread Łukasz Hejnak
Hello again, some extra info on my case: the fwrite is completely fine, when fopen is in 'a' mode! Thus leading to a temporary workaround like this: $file = /wwwroot/file $countt = explode(., fread(fopen($file,r), filesize($file))); $count=$countt[1]; $count++; $handle=fopen($file,a);

[PHP] problem in create new diretory..

2005-11-18 Thread ganu ullu
Hello all, I have created a new dir, with php code .. which is like that function mkDirE($dir,$dirmode=777) { if (!empty($dir)) { if (!file_exists(./microsite/.$dir)) { preg_match_all('/([^\/]*)\/?/i', $dir,$atmp); $base=; foreach ($atmp[0] as $key=$val) { $base=$base.$val;

[PHP] Problem with Regexp

2005-10-31 Thread Yannick Mortier
Hello, I have the string: trtdimg src=http://www.runescape.com/img/hiscores/attack.gif; valign=bottom width=16 height=16 //tdtdnbsp;/tdtda href=hiscoreuser.cgi?username=zezimacategory=1 class=cAttack/a/tdtd align=right4/tdtd align=right99/tdtd align=right53,156,556/td/tr and I apply

Re: [PHP] Problem with Regexp

2005-10-31 Thread Richard Heyes
Yannick Mortier wrote: Hello, I have the string: trtdimg src=http://www.runescape.com/img/hiscores/attack.gif; valign=bottom width=16 height=16 //tdtdnbsp;/tdtda href=hiscoreuser.cgi?username=zezimacategory=1 class=cAttack/a/tdtd align=right4/tdtd align=right99/tdtd

Re: [PHP] Problem with Regexp

2005-10-31 Thread Richard Lynch
On Mon, October 31, 2005 9:27 am, Yannick Mortier wrote: trtdimg src=http://www.runescape.com/img/hiscores/attack.gif; valign=bottom width=16 height=16 //tdtdnbsp;/tdtda href=hiscoreuser.cgi?username=zezimacategory=1 class=cAttack/a/tdtd align=right4/tdtd align=right99/tdtd

Re: [PHP] Problem with Regexp

2005-10-31 Thread Yannick Mortier
Richard Heyes schrieb: Yannick Mortier wrote: Hello, I have the string: trtdimg src=http://www.runescape.com/img/hiscores/attack.gif; valign=bottom width=16 height=16 //tdtdnbsp;/tdtda href=hiscoreuser.cgi?username=zezimacategory=1 class=cAttack/a/tdtd align=right4/tdtd

[PHP] Problem upgrading from 5.0.2 and 5.05

2005-10-27 Thread Karlos Zafra
My system was runig apache 2.0.52+php5.0.2 under Windows Xp without any problem. Today i've decided to upgrade to 5.0.5 but after unzipping the files in the C:\php folder where it was installed de .0.2 version Apache complained about not finding php5apache2.dll. The message from the command line:

RE: [PHP] Problem reading SimpleXML array NOT SOLVED but NO LONGER A PROBLEM

2005-10-25 Thread George Pitcher
Subject: Re: [PHP] Problem reading SimpleXML array Richard, I'm guessing you haven't played with simpleXML ... (apologies inadvance for any/all mistakes :-) chances are the var_dump() pointer you gave (which under normal circumstances would be spot on) will probably lead to more confusion

[PHP] Problem reading SimpleXML array

2005-10-24 Thread George Pitcher
Hi, I'm having a problem reading an xml feed. This is my object: SimpleXMLElement Object ( [Header] = SimpleXMLElement Object ( [ID] = FX12GB [Test] = false [Name] = Foreign Exchange United Kingdom Pound Noon Rates

Re: [PHP] Problem reading SimpleXML array

2005-10-24 Thread Richard Lynch
On Mon, October 24, 2005 3:50 am, George Pitcher wrote: Hi, I'm having a problem reading an xml feed. This is my object: SimpleXMLElement Object ( [Header] = SimpleXMLElement Object ( [ID] = FX12GB [Test] = false [Name] = Foreign Exchange

Re: [PHP] Problem reading SimpleXML array

2005-10-24 Thread Jochem Maas
Richard, I'm guessing you haven't played with simpleXML ... (apologies inadvance for any/all mistakes :-) chances are the var_dump() pointer you gave (which under normal circumstances would be spot on) will probably lead to more confusion. to put it lightly SimpleXML doesn't lend itself to

[PHP] Problem returning private member array variables

2005-10-20 Thread Fernando Alvarez
Hi to all, I was wondering if someone out there has had the same problem as I have; fetching from an object a private array variable through a get method. And instead of getting a copy of the array, you get access to the original array, being able to access the object's internal data! I have

[PHP] Problem returning private member array variables

2005-10-20 Thread Fernando Alvarez
Hi to all, I was wondering if someone out there has had the same problem as I have; fetching from an object a private array variable through a get method. And instead of getting a copy of the array, you get access to the original array, being able to access the object's internal data! I have

[PHP] Problem with special chars.

2005-10-14 Thread Erfan Shirazi
Hi all I have some problems when I make a string containing the following Malmö, Asunción to capital letters and then save it to a file. I use the following to make it to capital letters: $msg = mb_strtoupper($msg, HTML-ENTITIES); And this works just fine, everything looks as it should, but

Re: [PHP] Problem with special chars.

2005-10-14 Thread Jochem Maas
Erfan Shirazi wrote: Hi all I have some problems when I make a string containing the following Malmö, Asunción to capital letters and then save it to a file. I use the following to make it to capital letters: $msg = mb_strtoupper($msg, HTML-ENTITIES); ^- you

Re: [PHP] Problem with special chars.

2005-10-14 Thread Erfan Shirazi
The problem is if I don't specify and encoding even an echo() on the string shows strange chars when I have made a mb_strtoupper() on the string. With HTML-ENTITIES at least it looked ok when you made an echo() but when saved in file it looks bad. Does anybody now what I can do in order to

Re: [PHP] Problem with special chars.

2005-10-14 Thread Jochem Maas
Erfan Shirazi wrote: The problem is if I don't specify and encoding even an echo() on the specify a different encoding if you don't want html entities. string shows strange chars when I have made a mb_strtoupper() on the string. With HTML-ENTITIES at least it looked ok when you made an

Re: [PHP] Problem with special chars.

2005-10-14 Thread Erfan Shirazi
I have tried every encoding which could be found in: http://www.php.net/manual/en/ref.mbstring.php But nothing seems to work, I don't have any problems displaying the funny chars in the browsers, there are some encodings which works fine for that, the problem is when I save it to a file using

[PHP] Problem with Javascript:...submit()

2005-10-13 Thread Johan Grobler
while ($row = mysql_fetch_array($sql_result)) { echoForm name=\.$row['LITERATURE_title'].\ action=\searchlit.php\ method=\post\ font face=\arial\ size=\2\ a href=\javascript:.$row['LITERATURE_title']..submit();\ .$row['LITERATURE_title']. - .$row['res_fname']. .$row['res_lname']./a ...

Re: [PHP] Problem with Javascript:...submit()

2005-10-13 Thread Jasper Bryant-Greene
Johan Grobler wrote: while ($row = mysql_fetch_array($sql_result)) { echoForm name=\.$row['LITERATURE_title'].\ action=\searchlit.php\ method=\post\ font face=\arial\ size=\2\ a href=\javascript:.$row['LITERATURE_title']..submit();\ .$row['LITERATURE_title']. - .$row['res_fname'].

Re: [PHP] Problem with Javascript:...submit()

2005-10-13 Thread Minuk Choi
I'm just taking a wild guess... but I'm guessing that if you set a name with spaces, it'll be replaced with _(underscore). A couple of ways around this is to 1) figure out a way to assign a one-word name for all your books(e.g. Code, ID number, etc.) 2) generate a hash code(e.g.

Re: [PHP] Problem with Javascript:...submit()

2005-10-13 Thread Stephen Leaf
On Thursday 13 October 2005 01:13 am, Johan Grobler wrote: while ($row = mysql_fetch_array($sql_result)) { echoForm name=\.$row['LITERATURE_title'].\ action=\searchlit.php\ method=\post\ font face=\arial\ size=\2\ a href=\javascript:.$row['LITERATURE_title']..submit();\

Re: [PHP] Problem with Javascript:...submit()

2005-10-13 Thread Jochem Maas
Stephen Leaf wrote: On Thursday 13 October 2005 01:13 am, Johan Grobler wrote: while ($row = mysql_fetch_array($sql_result)) { echoForm name=\.$row['LITERATURE_title'].\ action=\searchlit.php\ method=\post\ font face=\arial\ size=\2\ a href=\javascript:.$row['LITERATURE_title']..submit();\

Re: [PHP] Problem w/ Hidden Input Fields

2005-10-11 Thread Jochem Maas
Jason Ferguson wrote: Jochem, Thanks for the response. I actually solved the problem a few days ago... I'm suprised this message never went out to the list until today. I actually WANTED one to override the other in this case. The user should be able to choose one of the default radio buttons

RE: [PHP] Problem w/ Hidden Input Fields

2005-10-11 Thread Kim Madsen
Hello -Original Message- From: Jason Ferguson [mailto:[EMAIL PROTECTED] Sent: Sunday, October 09, 2005 5:55 PM To: php-general@lists.php.net Subject: [PHP] Problem w/ Hidden Input Fields I have a input type=hidden field with a value 86 characters long. Here is the entire form

[PHP] Problem w/ Hidden Input Fields

2005-10-10 Thread Jason Ferguson
I have a input type=hidden field with a value 86 characters long. Here is the entire form: form name=frmWizard id=frmWizard method=post action= table tr tdinput type=radio

Re: [PHP] Problem w/ Hidden Input Fields

2005-10-10 Thread Jochem Maas
hi Jason, Jason Ferguson wrote: I have a input type=hidden field with a value 86 characters long. Here is the entire form: form name=frmWizard id=frmWizard method=post action= table tr

[PHP] problem half-solved, however have another

2005-10-01 Thread matt VanDeWalle
hello again I have been battling this mysterious char thats showing up in the buffer when i first log onto my chat, or else try to add new things to the logon function, I am getting the code not to fall through to the next prompt however, using $varname = socket_recv($sock, $read, 1024, 0)

Re: [PHP] Problem with Internet Explorer when downloading / viewing dynamically generated PDF files

2005-09-26 Thread Frank Arensmeier
Hello. For your information: It seems to me that the misbehaviour of Explorer is neither related to the PHP script itself, nor it is related to the PDF file created by the script. The basic problem is that Apache is actually sending a header with a 404 - file not found status code message.

<    4   5   6   7   8   9   10   11   12   13   >