Re: [PHP] problems with regex

2006-05-27 Thread Jochem Maas
Merlin wrote: Hi there, I am somehow lost when it comes to regex. I am trying to remove ! and ? characters from a string. Could somebody please help me to get a working regex running for that? I tried: $str = preg_replace('/\!\?\./', ' ', $str); $s = ?!help!?; echo

Re: [PHP] problems with regex

2006-05-27 Thread Merlin
thank you, that worked excellent! Merlin Dave Goodchild schrieb: On 27/05/06, Merlin [EMAIL PROTECTED] wrote: Hi there, I am somehow lost when it comes to regex. I am trying to remove ! and ? characters from a string. Could somebody please help me to get a working regex running for that? I

[PHP] problems with xml parser

2006-05-25 Thread Merlin
Hi there, I am having some trouble in parsing some XML. No idea where I have that xml parser for php from, but I believe it worked ok in the past. Now I do have a file to parse with following structure: SEARCHRESULTS RESULTSET DATABASE RESULT POS=1 TITLEI want

Re: [PHP] problems with xml parser

2006-05-25 Thread Chris
Merlin wrote: Hi there, I am having some trouble in parsing some XML. No idea where I have that xml parser for php from, but I believe it worked ok in the past. Now I do have a file to parse with following structure: SEARCHRESULTS RESULTSET DATABASE RESULT POS=1 TITLEI want

[PHP] Problems Posting - PLEASE IGNORE!

2006-04-23 Thread Porpoise
Been having problems posting. If this gets through OK please ignore -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems creating images

2006-04-13 Thread Richard Lynch
On Wed, April 5, 2006 2:42 pm, Age Bosma wrote: *confirm_image.php:* Your browser and webserver see confirm_image.php in the URL. Header(Content-type: image/jpeg); REAL browsers like Mozilla and Firefox etc trust this. Microsoft, however, in its infinite wisdom, ignores

Re: Re[2]: [PHP] Problems creating images

2006-04-13 Thread Richard Lynch
On Thu, April 6, 2006 5:24 pm, Tom Rogers wrote: put error_reporting( E_ALL); at the top of the script and see if any error messages show up. The fact that the mime type is text seems to indicate some output has gone to the client before your header call. That could be any white space

Re: [PHP] Problems with Arrays and print and echo

2006-04-09 Thread Michael Felt
John Wells wrote: echo $this-name[5]\n; echo $this-ID[5]\n; $a1 = $this-name; $a2 = $this-ID; echo \n$a1[5] $a2[5]\n; use curly brackets to help PHP understand what you're after: echo {$this-name[5]}\n; When you're in a string like this, PHP has a hard time knowing when you're wanting to

Re: [PHP] Problems with Arrays and print and echo

2006-04-08 Thread chris smith
On 4/7/06, Michael Felt [EMAIL PROTECTED] wrote: Slowly I am getting the output I want. Trying to use dynamic arrays, does creat the array I want, but getting the info is sometimes surprising. I notice a difference between arrays used locally in a function, and arrays used as a 'var' in a

Re: [PHP] Problems with Arrays and print and echo

2006-04-08 Thread Michael Felt
chris smith wrote: On 4/7/06, Michael Felt [EMAIL PROTECTED] wrote: Slowly I am getting the output I want. Trying to use dynamic arrays, does creat the array I want, but getting the info is sometimes surprising. I notice a difference between arrays used locally in a function, and arrays used

Re: [PHP] Problems with Arrays and print and echo

2006-04-08 Thread Michael Felt
Michael Felt wrote: OK . a rewrite, bit shorter... 1. A class construct with two arrays: var $name; var $ID; function init($id) { $this-name = array(); $this-ID = array(); # firther in code assignment done from a mysql database: while ($max--)

Re: [PHP] Problems with Arrays and print and echo

2006-04-08 Thread Michael Felt
Michael Felt wrote: echo \n. $this-name[5] . . $this-ID[5]. \n; This give the same output as: $a1 = $this-name; $a2 = $this-ID; echo \n$a1[5] $a2[5]\n; Looks like I may need to use the '.' constructor more often Who can explain this (please)? Michael Felt wrote: OK . a rewrite, bit

Re: [PHP] Problems with Arrays and print and echo

2006-04-08 Thread John Wells
echo $this-name[5]\n; echo $this-ID[5]\n; $a1 = $this-name; $a2 = $this-ID; echo \n$a1[5] $a2[5]\n; use curly brackets to help PHP understand what you're after: echo {$this-name[5]}\n; When you're in a string like this, PHP has a hard time knowing when you're wanting to access a

[PHP] Problems with Arrays and print and echo

2006-04-07 Thread Michael Felt
Slowly I am getting the output I want. Trying to use dynamic arrays, does creat the array I want, but getting the info is sometimes surprising. I notice a difference between arrays used locally in a function, and arrays used as a 'var' in a class function (all in PHP 4 atm). Code snippet:

Re: [PHP] Problems creating images

2006-04-06 Thread Age Bosma
Tom Rogers wrote: Make sure you don't have any blank lines before the ?php There isn't. I've got the suspicion it's got to do with the UTF-8 character encoding because of the characters '', I've seen this before with HTML pages. Because of this I asked the person who's having the

Re[2]: [PHP] Problems creating images

2006-04-06 Thread Tom Rogers
Hi, Friday, April 7, 2006, 6:20:41 AM, you wrote: AB Tom Rogers wrote: AB There isn't. I've got the suspicion it's got to do with the UTF-8 AB character encoding because of the characters '', I've seen this AB before with HTML pages. Because of this I asked the person who's having AB the

Re: [PHP] Problems creating images

2006-04-05 Thread Philip Hallstrom
I added image confirmation to a guestbook and even though it works greate for most people, some people have problem and I can't seem to figure out why this happens. Note that I'm not talking about the same guestbook on one server but the guestbook is on people's own hosting server. The php

[PHP] Problems creating images

2006-04-05 Thread Age Bosma
Hi, I added image confirmation to a guestbook and even though it works greate for most people, some people have problem and I can't seem to figure out why this happens. Note that I'm not talking about the same guestbook on one server but the guestbook is on people's own hosting server. The

Re: [PHP] Problems creating images

2006-04-05 Thread Tom Rogers
Hi, Thursday, April 6, 2006, 5:42:05 AM, you wrote: AB Hi, AB I added image confirmation to a guestbook and even though it works AB greate for most people, some people have problem and I can't seem to AB figure out why this happens. Note that I'm not talking about the same AB guestbook on one

Re: [PHP] Problems with SSI, Apache PHP!

2006-03-16 Thread Alberto Ferrer
I got only a test.shtml with this: html body !--#include virtual=test.php -- /body /html and a test.php with: ? echo 'Hello World'; ? PHP 4.4.2 , Apache 1.3.34 , nothing weird, Compiled Options: './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--prefix=/usr/local' '--with-xml'

[PHP] Problems with SSI, Apache PHP!

2006-03-15 Thread Alberto Ferrer
i get segmentation fault with apache 1.3.34 , like this bug: http://bugs.php.net/bug.php?id=35029 , only change the apache version. The error is: [Thu Mar 16 03:33:07 2006] [notice] child pid 2121 exit signal Segmentation fault (11) [Thu Mar 16 03:33:08 2006] [notice] child pid 2120 exit signal

Re: [PHP] Problems with SSI, Apache PHP!

2006-03-15 Thread Chris
Alberto Ferrer wrote: i get segmentation fault with apache 1.3.34 , like this bug: http://bugs.php.net/bug.php?id=35029 , only change the apache version. The error is: [Thu Mar 16 03:33:07 2006] [notice] child pid 2121 exit signal Segmentation fault (11) [Thu Mar 16 03:33:08 2006] [notice]

[PHP] Problems with file()

2006-03-02 Thread Julius Hacker
Hi, I've some problems with the file()-function: I call the function with the argument http://www.azubo.de/api/csv.cfm?PartnerID=17PartnerPass=28O2NGC3result=end,auctionid,url,title,cat,price,bids,currency,image; and only get an array of empty strings. With other addresses as argument it works

Re: [PHP] Problems with file()

2006-03-02 Thread Chris
Julius Hacker wrote: Hi, I've some problems with the file()-function: I call the function with the argument http://www.azubo.de/api/csv.cfm?PartnerID=17PartnerPass=28O2NGC3result=end,auctionid,url,title,cat,price,bids,currency,image; and only get an array of empty strings. With other addresses

[PHP] Problems with imap_open()

2006-02-14 Thread PJ
Hello everybody, I have problem with imap_open(). I've tried google - so I know, that many people have problem with this function - but I think that my problem is a little bit different or I haven't found any working answer :o( So I'm tring this forum... Please help me, if you can. My

Re: [PHP] Problems with imap_open()

2006-02-14 Thread Richard Lynch
On Tue, February 14, 2006 2:13 am, PJ wrote: Hello everybody, I have problem with imap_open(). I've tried google - so I know, that many people have problem with this function - but I think that my problem is a little bit different or I haven't found any working answer :o( So I'm tring this

Re: [PHP] Problems with imap_open()

2006-02-14 Thread PJ
Richard Lynch napsal(a): On Tue, February 14, 2006 2:13 am, PJ wrote: Hello everybody, I have problem with imap_open(). I've tried google - so I know, that many people have problem with this function - but I think that my problem is a little bit different or I haven't found any working answer

[PHP] Problems with IIS6

2006-02-13 Thread Anders Norrbring
Hiya all! I'm trying to set up PHP 5.1 with a Win 2003 server running IIS6, but all I can out of it is a page saying: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. I doubt this is anything new, but I can't find any decent solution for

Re: [PHP] Problems with IIS6

2006-02-13 Thread Anders Norrbring
Anders Norrbring skrev: Hiya all! I'm trying to set up PHP 5.1 with a Win 2003 server running IIS6, but all I can out of it is a page saying: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. I doubt this is anything new, but I can't find

Re: [PHP] Problems with IIS6

2006-02-13 Thread Anders Norrbring
Anders Norrbring skrev: Anders Norrbring skrev: Hiya all! I'm trying to set up PHP 5.1 with a Win 2003 server running IIS6, but all I can out of it is a page saying: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. I doubt this is

[PHP] Problems with realpath()

2006-01-31 Thread Ron King
Hi, My hosting isp just upgraded from 4.3.1 to 4.4.1, and some of the tools I use (from InterAKT) no longer work. After doing quite a bit of research, I've seen a few bugs regarding realpath(), but none related to 4.4.1. When I try the following: ?php echo phpversion() . \n; echo

[PHP] Problems with GZIPped content in some cases?!?

2006-01-31 Thread Olaf Greve
Hi all, Firstly, I'm new to this list, so I'm hoping I'm not flogging a dead horse with this question, and I also hope I'm not inadvertently breaking any list etiquete in any way... Should this be the case, I apologise in advance. :P Alright, with that out of the way, I'll post my actual

Re: [PHP] Problems with realpath()

2006-01-31 Thread Richard Correia
I think the DOCUMENT_ROOT is changed for new php implementation. Thanks Rich On 1/31/06, Ron King [EMAIL PROTECTED] wrote: Hi, My hosting isp just upgraded from 4.3.1 to 4.4.1, and some of the tools I use (from InterAKT) no longer work. After doing quite a bit of research, I've seen a

Re: [PHP] Problems with GZIPped content in some cases?!?

2006-01-31 Thread Richard Lynch
On Tue, January 31, 2006 8:15 am, Olaf Greve wrote: header(Content-Encoding: .$Encoding); echo \x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xFF; I don't know diddly about gzip-encoding and browsers, but this line looks pretty hinky to me... echo

[PHP] Problems requesting page

2006-01-03 Thread PHP Superman
Hey everyone, i'm on a windows box with PHP 5 on Apache 2 and I have a strange problem. When i try to access a page it seems to be blank, before it always worked but now it sudenly stopped. I am not a big computer techy but i cleared IE's cache and it still doesen't work. Source Code in IE for

Re: [PHP] Problems requesting page

2006-01-03 Thread M
PHP Superman wrote: Hey everyone, i'm on a windows box with PHP 5 on Apache 2 and I have a strange problem. When i try to access a page it seems to be blank, before it always worked but now it sudenly stopped. I am not a big computer techy but i cleared IE's cache and it still doesen't work.

[PHP] Problems with session data.

2006-01-03 Thread Duffy, Scott E
I thought I was using session data and variables correctly, but I am having some issues. I am using it to create a login but if I have another user on a different machine my session data gets changed to who last logged in. I had changed so it used https but changed it back and it still seems to be

[PHP] Problems with sessions .. qualified/non-qualified domain names

2006-01-03 Thread Kall, Bruce A.
I have diagnosed a problem with sessions I am having. I'm don't believe it's necessarily a PHP problem, but I thought someone must have seen this before. The first thing I do is a session_start() and then determine if (using session variables) whether the user has logged in successfully

[PHP] Problems getting the nodeName with DomDocument

2005-12-22 Thread Kenneth Andresen
I am having problems with the following functions where my return simply is #text Joe #text Smith #text unknown, it should have read firstname Joe lastname Smith address unknown What am I doing wrong? ?php $xmlstring =

[PHP] Problems downloading e-mail

2005-12-13 Thread Oli Howson
I've used the IMAP functions to connect to my pop3 server. I want to download the emails. I can fetch headers, or fetch the body, but I don't seem to be able to download the entire e-mail as one raw file. This is so I can pass it to the PEAR mail mime class for parsing, as well as for storage.

Re: [PHP] Problems downloading e-mail

2005-12-13 Thread Jochem Maas
Oli Howson wrote: I've used the IMAP functions to connect to my pop3 server. I want to download the emails. I can fetch headers, or fetch the body, but I don't seem to be able to download the entire e-mail as one raw file. This is so I can pass it to the PEAR mail mime class for parsing, as

[PHP] Problems with PHP and Apache 2.x 404 ErrorDocument handlers

2005-12-01 Thread Jason Z
I used to have a number of sites direct 404 errors towards PHP scripts for error handling and the such. Recently I upgraded my PHP installs to 4.4.1(from 4.3.11) with the configure parameters listed below. Now, none of my PHP handlers are functioning. They are all returning 0 size responses.

Re: [PHP] Problems with PHP5 phpMyAdmin

2005-11-22 Thread Russ F
Curt Zirzow wrote: On Fri, Nov 18, 2005 at 12:07:00PM -0800, Russ F wrote: I've reinstalled Apache2, PHP5, phpMyAdmin and MYSQl several times. I still get the same error when i try to use phpmyadmin Can not load mysql extensions. I checked the path it is correct, the extensions exist in

Re: [PHP] Problems with PHP5 phpMyAdmin

2005-11-22 Thread Russ F
Curt Zirzow wrote: On Fri, Nov 18, 2005 at 12:07:00PM -0800, Russ F wrote: I've reinstalled Apache2, PHP5, phpMyAdmin and MYSQl several times. I still get the same error when i try to use phpmyadmin Can not load mysql extensions. I checked the path it is correct, the extensions exist in

Re: [PHP] Problems with PHP5 phpMyAdmin

2005-11-20 Thread Curt Zirzow
On Fri, Nov 18, 2005 at 12:07:00PM -0800, Russ F wrote: I've reinstalled Apache2, PHP5, phpMyAdmin and MYSQl several times. I still get the same error when i try to use phpmyadmin Can not load mysql extensions. I checked the path it is correct, the extensions exist in /etc/php5/extensions but

[PHP] Problems with PHP5 phpMyAdmin

2005-11-18 Thread Russ F
I've reinstalled Apache2, PHP5, phpMyAdmin and MYSQl several times. I still get the same error when i try to use phpmyadmin Can not load mysql extensions. I checked the path it is correct, the extensions exist in /etc/php5/extensions but they do not have a .so after them. The php.ini file and

[PHP] Problems with new PHP install

2005-09-29 Thread Chris Boget
Since I was having so much difficulty getting PHP (with libxml2) installed on RH9, I decided to take the advice given by several people and use Fedora Core 4 instead, which I get installed w/o difficulty. So next is Apache/PHP and I download Apache version 2.0.54 and PHP version 5.0.5.

RE: [PHP] Problems with new PHP install

2005-09-29 Thread Jay Blanchard
[snip] Then I modify the httpd.conf file as instructed at the above page by adding the LoadModule and AddType and then create a 'hello world' php script to make sure php is working. [/snip] Did you restart the Apache server after making the changes to httpd.conf ? I know it is basic, I just have

Re: [PHP] Problems with new PHP install

2005-09-29 Thread Chris Boget
[snip] Then I modify the httpd.conf file as instructed at the above page by adding the LoadModule and AddType and then create a 'hello world' php script to make sure php is working. [/snip] Did you restart the Apache server after making the changes to httpd.conf ? I know it is basic, I just

Re: [PHP] Problems with new PHP install

2005-09-29 Thread John Nichel
Chris Boget wrote: Since I was having so much difficulty getting PHP (with libxml2) installed on RH9, I decided to take the advice given by several people and use Fedora Core 4 instead, which I get installed w/o difficulty. So next is Apache/PHP and I download Apache version 2.0.54 and PHP

Re: [PHP] Problems with new PHP install

2005-09-29 Thread John Nichel
Chris Boget wrote: snip My test script looks like this: script language=php echo PHP Works!!; /script br ? echo PHP Works??; And that is exactly what is getting output by the browser. The br isn't even getting interpreted as a break...? Yeah, looks like you need the AddType entry.

Re: [PHP] Problems with new PHP install

2005-09-29 Thread Chris Boget
And that is exactly what is getting output by the browser. The br isn't even getting interpreted as a break...? Is there a line like this in your httpd.conf...? AddType application/x-httpd-php .php [snip] Yeah, looks like you need the AddType entry. Apache doesn't know what *.php is, so

RE: [PHP] Problems with new PHP install

2005-09-29 Thread Jay Blanchard
[snip] Step 15 of the php installation (as listed in the link in my OP) has you add the following to the httpd.conf: AddType application/x-httpd-php .php .phtml I also went ahead and added the following as well AddType application/x-httpd-php-source .phps The filename of my test script,

Re: [PHP] Problems with new PHP install

2005-09-29 Thread Chris Boget
Step 15 of the php installation (as listed in the link in my OP) has you add the following to the httpd.conf: Ok, color me retarded. Pretty please. :) It turns out I modified the wrong httpd.conf file. duh. Sorry about that. Everyone can move along. Nothing to see here but some blathering

Re: [PHP] Problems with new PHP install

2005-09-29 Thread John Nichel
Chris Boget wrote: Step 15 of the php installation (as listed in the link in my OP) has you add the following to the httpd.conf: Ok, color me retarded. That happens when Jay gets involved. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing

RE: [PHP] Problems with new PHP install

2005-09-29 Thread Jay Blanchard
[snip] duh. [/snip] You have now officially obtained a lifetime membership to the club. Your t-shirt should arrive in the mail soon. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems with headers

2005-09-22 Thread Rasmus Lerdorf
Graham Anderson wrote: ?php $quote = \; $xml = ''; $xml .= '?xml version=1.0?'.\n; $xml .= '?quicktime type=application/x-qtskin?'.\n; $xml .= 'skin'.\n; $xml .= 'movie src=' . $quote. ../../fonovisa.mov . $quote. '/'.\n; $xml .= 'contentregion src=' .$quote. ../images/mask.gif .

Re: [PHP] Problems with headers

2005-09-22 Thread Stephen Leaf
On Thursday 22 September 2005 12:10 am, David Robley wrote: Not sure if you can attach files however to make 100% sure I'm attaching a working copy of your script. I did modify it just a bit. However the code that you gave us initially worked flawlessly under CLI PHP. Graham Anderson wrote:

Re: [PHP] Problems with headers

2005-09-22 Thread Graham Anderson
Thanks Rasmus :) that is an incredibly cool tip: EOB Surprised I did not see you at the Digital Rights [hollywood digital] conference in LA early this week. Upside: Free sushi and an ocean view. Downside: Lots of 'agency' types and sales folk when I access a straight movie file with no

Re: [PHP] Problems with headers

2005-09-22 Thread Rasmus Lerdorf
Graham Anderson wrote: Thanks Rasmus :) that is an incredibly cool tip: EOB Surprised I did not see you at the Digital Rights [hollywood digital] conference in LA early this week. Upside: Free sushi and an ocean view. Downside: Lots of 'agency' types and sales folk when I access a

Re: [PHP] Problems with headers

2005-09-22 Thread Graham Anderson
Ok, I think I figured it out . I had to convert my BBedit text editor file to plain text and then copy/paste that text directly into a new server text file So, I guess my $100+ text editor is screwing up the file ? Is there some way to prevent this ? My text encoding is in UTF-8 because I

Re: [PHP] Problems with headers

2005-09-22 Thread Rasmus Lerdorf
Graham Anderson wrote: Ok, I think I figured it out . I had to convert my BBedit text editor file to plain text and then copy/paste that text directly into a new server text file So, I guess my $100+ text editor is screwing up the file ? Is there some way to prevent this ? Tell your

Re: [PHP] Problems with headers

2005-09-22 Thread Jim Jagielski
Set BBEdit to use Mac OS Roman. From the main window, choose the file icon (5th from left). Graham Anderson wrote: --Apple-Mail-15-928383921 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Ok, I think I figured it out . I had to

Re: [PHP] Problems with headers

2005-09-22 Thread Graham Anderson
thanks guys :) encoding in utf-8 NO BOM seems to do the trick g On Sep 22, 2005, at 11:05 AM, Jim Jagielski wrote: Set BBEdit to use Mac OS Roman. From the main window, choose the file icon (5th from left). Graham Anderson wrote: --Apple-Mail-15-928383921 Content-Transfer-Encoding:

[PHP] Problems with headers

2005-09-21 Thread Graham Anderson
I am trying to get headers to output properly Even though I am defining Content-type as 'video/quicktime' , the output is still text/html Also, Content-Length is not outputting properly either :( On the positive side, It appears to be outputting the $xml string correctly, but screws up

Re: [PHP] Problems with headers

2005-09-21 Thread Chris Shiflett
Graham Anderson wrote: Even though I am defining Content-type as 'video/quicktime', the output is still text/html Also, Content-Length is not outputting properly either :( [snip] header('Content-Type: video/quicktime'); header (Content-Length:.strlen($xml)); You have a superfluous space

Re: [PHP] Problems with headers

2005-09-21 Thread Graham Anderson
thanks Chris :) I changed the spaces but am still getting the same output errors: bWarning/b: Cannot modify header information - headers already sent by (output started at /home/www/siren/siren/fonovisa/skintest/Library/php/ fonovisa_simple.php:1) in

Re: [PHP] Problems with headers

2005-09-21 Thread Stephen Leaf
On Wednesday 21 September 2005 09:34 pm, Graham Anderson wrote: it doesn't look like there is anything wrong with your code. what you might check however is, is there a space or a newline before ?php _nothing_ should come before ?php thanks Chris :) I changed the spaces but am still getting

Re: [PHP] Problems with headers

2005-09-21 Thread Graham Anderson
I checked that too :( No spaces in the ?php line I am running PHP Version 4.4.0 Out of curiosity, I removed the line: $xml .= '?quicktime type=application/x-qtskin?'.\n; and got the same error message Is this one of those situations for ob_start ? Kind of bizarre to my Newbie mind ?php $quote

Re: [PHP] Problems with headers

2005-09-21 Thread Chris Shiflett
Graham Anderson wrote: No spaces in the ?php line I think the problem is a line before the ?php line: bWarning/b: Cannot modify header information - headers already sent by (output started at /home/www/siren/siren/fonovisa/skintest/Library/php/ fonovisa_simple.php:1) in

Re: [PHP] Problems with headers

2005-09-21 Thread David Robley
Graham Anderson wrote: I checked that too :( No spaces in the ?php line I am running PHP Version 4.4.0 Out of curiosity, I removed the line: $xml .= '?quicktime type=application/x-qtskin?'.\n; and got the same error message Is this one of those situations for ob_start ? Kind of

[PHP] Problems with PHP after MySQL Upgrade

2005-09-19 Thread Nathan
Here's the issue. I use MySQL as my database backend. I used to have php running fine and I used phpMyAdmin to do any admin functions I needed to on MySQL. I recently upgraded to MySQL 5.x and ever since I've gotten the following error messages. When I try to use extension=php_mysqli.dll This

Re: [PHP] Problems with PHP after MySQL Upgrade

2005-09-19 Thread Joe Wollard
On Sep 19, 2005, at 4:36 PM, Nathan wrote: Here's the issue. I use MySQL as my database backend. I used to have php running fine and I used phpMyAdmin to do any admin functions I needed to on MySQL. I recently upgraded to MySQL 5.x and ever since I've gotten the following error

Re: [PHP] Problems with strings being handled like numbers

2005-09-15 Thread J B
On 9/14/05, Richard Lynch [EMAIL PROTECTED] wrote: mssql_* and PHP know that the data is supposed to be integer But the largest integer that PHP can store is 0x. So when PHP tries to accept the integer from mssql_fetch_row, it's got no room to store it as integer, and HAS to

Re: [PHP] Problems with strings being handled like numbers

2005-09-14 Thread Richard Lynch
On Tue, September 13, 2005 7:48 pm, J B wrote: On 9/13/05, Chris [EMAIL PROTECTED] wrote: Are you sure you're getting the number as you need it from the query? PHP won't (though I guess there could be a bug) automatically convert a numerical string into it's numerical equivalent. If the

[PHP] Problems with strings being handled like numbers

2005-09-13 Thread J B
I suspect I'm far from the first person to have this problem, but I can't seem to find the right search terms to locate the solution. Basically, I'm doing a database query and dumping the results into an array. Then, later, when I try to display the contents of the array, I run into problems.

Re: [PHP] Problems with strings being handled like numbers

2005-09-13 Thread Chris
Are you sure you're getting the number as you need it from the query? PHP won't (though I guess there could be a bug) automatically convert a numerical string into it's numerical equivalent. If the code you posted produces this problem, then the only possiblities I see are that the mssql

Re: [PHP] Problems with strings being handled like numbers

2005-09-13 Thread J B
On 9/13/05, Chris [EMAIL PROTECTED] wrote: Are you sure you're getting the number as you need it from the query? PHP won't (though I guess there could be a bug) automatically convert a numerical string into it's numerical equivalent. If the code you posted produces this problem, then the

Re: [PHP] Problems with strings being handled like numbers

2005-09-13 Thread Jasper Bryant-Greene
J B wrote: I've been playing with it and it looks like mssql_fetch_row may be the problem. Right after this line: $line = mssql_fetch_row($result); ...I inserted this line: var_dump($line[0]); ...and this is what I got back: string(20) 3.67124100206018e+17 The actual contents of that

[PHP] problems with overloading in php 5.

2005-07-28 Thread Gordon Heydon
Hi, I have an interesting problem that I cannot explain with using the __set() and __get() when playing with arrays. Basically with a normal object if you store an array as a property you can manipulate it like an array. eg. $obj-prop[5] = 'apple'; In this example if $obj-prop is an array then

Re: [PHP] problems with self referential sticky forms

2005-07-20 Thread Mark Rees
eoghan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 20 Jul 2005, at 02:22, Linda H wrote: fahreheit is here: ? $fahr = $_GET['fahrenheit']; if (is_null($fahr)){ echo 'fahr is null';} $ The error was on the line: $fahr = $_GET['fahrenheit']; try: input

[PHP] problems with self referential sticky forms

2005-07-19 Thread Linda H
Hi, I'm trying to code a form that will call itself. The first time it is called (by a link), it should display the empty form. If it was called by a submit to itself, it will validate and then process or re-display the form if it didn't pass validation. In Programing PHP I found a

Re: [PHP] problems with self referential sticky forms

2005-07-19 Thread eoghan
On 20 Jul 2005, at 02:01, Linda H wrote: But when execute the code above I get an error: Notice: Undefined index: fahrenheit in C:\Program Files\Apache Group\Apache2\htdocs \. Where is fahrenheit? change the input name... Eoghan -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] problems with self referential sticky forms

2005-07-19 Thread Linda H
Where is fahrenheit? change the input name... fahreheit is here: ? $fahr = $_GET['fahrenheit']; if (is_null($fahr)){ echo 'fahr is null';} $ The error was on the line: $fahr = $_GET['fahrenheit']; Linda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] problems with self referential sticky forms

2005-07-19 Thread Linda H
Where is fahrenheit? change the input name... fahreheit is here: ? $fahr = $_GET['fahrenheit']; if (is_null($fahr)){ echo 'fahr is null';} $ The error was on the line: $fahr = $_GET['fahrenheit']; Linda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] problems with self referential sticky forms

2005-07-19 Thread Mikey
Linda H wrote: Where is fahrenheit? change the input name... fahreheit is here: ? $fahr = $_GET['fahrenheit']; if (is_null($fahr)){ echo 'fahr is null';} $ The error was on the line: $fahr = $_GET['fahrenheit']; Linda Have you checked that the name is spelt correctly in your HTML

Re: [PHP] problems with self referential sticky forms

2005-07-19 Thread eoghan
On 20 Jul 2005, at 02:22, Linda H wrote: fahreheit is here: ? $fahr = $_GET['fahrenheit']; if (is_null($fahr)){ echo 'fahr is null';} $ The error was on the line: $fahr = $_GET['fahrenheit']; try: input name=fahrenheit type=text value=?php echo $fahr; ? / -- PHP General Mailing List

[PHP] Problems with the ZLIB

2005-07-07 Thread Murilo Opsfelder Araújo
Hi all, I'm trying compile the PHP for work with Oracle Server. When I try the comand: # rpm -ba php.spec I get the following error message: checking if the location of ZLIB install directory is defined... no configure: error: Cannot find libz Have anyone any suggestions? --

Re: [PHP] Problems with the ZLIB

2005-07-07 Thread Richard Lynch
On Thu, July 7, 2005 7:13 am, Murilo Opsfelder Araújo said: Hi all, I'm trying compile the PHP for work with Oracle Server. When I try the comand: # rpm -ba php.spec I get the following error message: checking if the location of ZLIB install directory is defined... no configure: error:

[PHP] Problems with MMCache

2005-06-25 Thread Merlin
Hi there, I just steped over mmcache: http://turck-mmcache.sourceforge.net/index_old.html#install After installing it, I can not see a real performance gain at all. The system is installed corectly and mmcache.php tells me it is active and running. Now I saw that there is a mmcache API.

Re: [PHP] Problems with header()

2005-06-18 Thread Martín Marqués
El Sb 18 Jun 2005 01:38, Tom Rogers escribi: Here is a script I use to send pdfs which also handles caching information. It may just be you are missing the content-length header? [snip] header(Accept-Ranges: bytes); header('Cache-Control: no-cache, must-revalidate'); header(Content-type:

[PHP] Problems with header()

2005-06-17 Thread =?iso-8859-1?q?Mart=EDn_Marqu=E9s?=
I have to send a PDF file after a submit on a form. The PDF is well created, and I'm sending it to the client with this: $fpdfName = /tmp/ . session_id() . .pdf; // Vamos a mandar el PDF header('Content-type: application/pdf'); // El archivo se va a llamar libreDeuda.pdf

Re: [PHP] Problems with header()

2005-06-17 Thread Tom Rogers
Hi, Saturday, June 18, 2005, 7:55:10 AM, you wrote: MM I have to send a PDF file after a submit on a form. The PDF is well created, MM and I'm sending it to the client with this: MM $fpdfName = /tmp/ . session_id() . .pdf; MM // Vamos a mandar el PDF MM header('Content-type: application/pdf');

[PHP] Problems escaping apostrophe, please help

2005-06-10 Thread Leila Lappin
Hello all, I hope this hasn’t been answered a zillion times already, I've tried everything I know and nothing has worked. The following is the PHP statement and the HTML rendering. The apostrophe is displayed as is and breaks the browser. May be I am wrong but I was under the impression that

[PHP] Problems escaping apostrophe, please help

2005-06-10 Thread Leila Lappin
Hello all, I hope this hasn’t been answered a zillion times already, I've tried everything I know and nothing has worked. The following is the PHP statement and the HTML rendering. The apostrophe is displayed as is and breaks the browser. May be I am wrong but I was under the impression that

RE: [PHP] Problems escaping apostrophe, please help

2005-06-10 Thread Chris W. Parker
Leila Lappin mailto:[EMAIL PROTECTED] on Thursday, June 09, 2005 7:46 AM said: == This is the rendering === == (note the heart's apostrophe breaks IE and firefox) === li a href=# onclick='document.form1.how.value=Pulmonary edema is a condition in which fluid accumulates

Re: [PHP] Problems escaping apostrophe, please help

2005-06-10 Thread Tom Rogers
Hi, Friday, June 10, 2005, 12:05:48 AM, you wrote: LL Hello all, LL I hope this hasn’t been answered a zillion times already, I've tried LL everything I know and nothing has worked. The following is the PHP statement LL and the HTML rendering. The apostrophe is displayed as is and breaks the LL

Re[2]: [PHP] Problems escaping apostrophe, please help

2005-06-10 Thread Tom Rogers
Hi, TR What I do to overcome this is in PHP do: TR $content = rawurlencode($content); TR and in the html javascript: TR unescape($content); I didn't do that very well, your code would look something like: li a href=# onclick='document.form1.how.value=unescape(?php

RE: Re[2]: [PHP] Problems escaping apostrophe, please help

2005-06-10 Thread Leila Lappin
: Re[2]: [PHP] Problems escaping apostrophe, please help Hi, TR What I do to overcome this is in PHP do: TR $content = rawurlencode($content); TR and in the html javascript: TR unescape($content); I didn't do that very well, your code would look something like: li a href=# onclick

[PHP] Problems with multiple arrays

2005-05-23 Thread virtualsoftware
Hi all, I have 3 arrays: $array _ids = (id_1, id_2, id_3, id_4) $array_names = (name_1, name_2, name_3, name_4) $array_emails = (email_1, email_2, email_3, email_4) I want to create an array that contains all this arrays and then to print the array. Something like that: foreach

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