Re: [PHP] problem with register globals on new server

2006-12-02 Thread Richard Lynch
On Sat, December 2, 2006 5:31 am, Tony Marston wrote: If you site administrator thinks that using an htaccess file is a security issue then he is very much mistaken. The directives in an htaccess file DO NOT enable you to access any one else's data on a shared server. All they do is apply

Re: [PHP] problem with register globals on new server

2006-12-01 Thread afan
[EMAIL PROTECTED] wrote: hi, I had to move my osComerce store to new hosting company. new server runs on php5/mysql5. got this error: FATAL ERROR: register_globals is disabled in php.ini, please enable it! since evenon old server globals was Off I was adding ifModule mod_php4.c

Re: [PHP] problem with register globals on new server

2006-12-01 Thread Youri LACAN-BARTLEY
[EMAIL PROTECTED] wrote: yup! that was the problem. snip btw, any free cart that is well supported in php5/mysql5/apache2 and register globals off etc. to recomend? thanks. -afan Well I would really be tempted to say, MINE ! Although it's still in a sick state alpha version right now ...

[PHP] problem with register globals on new server

2006-11-30 Thread afan
hi, I had to move my osComerce store to new hosting company. new server runs on php5/mysql5. got this error: FATAL ERROR: register_globals is disabled in php.ini, please enable it! since evenon old server globals was Off I was adding ifModule mod_php4.c php_value register_globals 1 /ifModule

Re: [PHP] problem with register globals on new server

2006-11-30 Thread Chris
[EMAIL PROTECTED] wrote: hi, I had to move my osComerce store to new hosting company. new server runs on php5/mysql5. got this error: FATAL ERROR: register_globals is disabled in php.ini, please enable it! since evenon old server globals was Off I was adding ifModule mod_php4.c php_value

Re: [PHP] problem using imagejpeg function all

2006-11-22 Thread Richard Lynch
On Tue, November 21, 2006 10:31 pm, Tom wrote: I’m trying to use the imagejpeg function call in a php script and I can’t quite seem to get it working properly. Can you clarify working properly into something a bit more concrete? Right now, we're left guessing from the most likely

[PHP] problem using imagejpeg function all

2006-11-21 Thread Tom
Hello, I’m trying to use the imagejpeg function call in a php script and I can’t quite seem to get it working properly. Here is my gd dump. 'GD Version' = 'bundled (2.0.28 compatible)' (length=27) 'FreeType Support' = true 'FreeType Linkage' = 'with freetype' (length=13)

Re: [PHP] problem using imagejpeg function all

2006-11-21 Thread Robert Cummings
On Tue, 2006-11-21 at 23:31 -0500, Tom wrote: ?php $image = imagecreate(200, 200); $colorRed = imagecolorallocate($image, 255, 0, 0); imagefill($image, 0, 0, $colorRed); //send image //header(Content-type: image/jpeg); imagejpeg($image); ? Works for me with the header line

RE: [PHP] problem using imagejpeg function all

2006-11-21 Thread Tom
To: Tom Cc: php-general@lists.php.net Subject: Re: [PHP] problem using imagejpeg function all On Tue, 2006-11-21 at 23:31 -0500, Tom wrote: ?php $image = imagecreate(200, 200); $colorRed = imagecolorallocate($image, 255, 0, 0); imagefill($image, 0, 0, $colorRed); //send image //header

RE: [PHP] problem using imagejpeg function all

2006-11-21 Thread Robert Cummings
On Tue, 2006-11-21 at 23:42 -0500, Tom wrote: Can you show me what your gd dump looks like? ?php var_dump(gd_info()); ? Is that way I got mine. Also, what php version are you using? I'm using 5.1.6. PHP 4.4.4 and PHP 5.2.0 both compiled from source. This is my PHP 5.2.0

[PHP] Problem with wanting something NOT to round

2006-11-17 Thread George Pitcher
Hi, As part of a result from a web-service call, I get a price in dollars and cents as a decimal number eg.160.44 (the example I am working on. This price is for permission to re-use some published material and for each additional separate pagerange, $3 needs to be added afterwards. So I have

Re: [PHP] Problem with wanting something NOT to round

2006-11-17 Thread Stut
George Pitcher wrote: As part of a result from a web-service call, I get a price in dollars and cents as a decimal number eg.160.44 (the example I am working on. This price is for permission to re-use some published material and for each additional separate pagerange, $3 needs to be added

Re: [PHP] Problem with wanting something NOT to round

2006-11-17 Thread Stut
George Pitcher wrote: Are you sure the web service is giving you 160.44? I get it displayed as expected... http://dev.stut.net/php/pitcher.php Yes, I am echoing the 160.44 ok. I'm just not getting the 44c in my display price. I'm on Windows NT - could that be a factor? I'm not sure

RE: [PHP] Problem with wanting something NOT to round

2006-11-17 Thread George Pitcher
George Pitcher wrote: As part of a result from a web-service call, I get a price in dollars and cents as a decimal number eg.160.44 (the example I am working on. This price is for permission to re-use some published material and for each additional separate pagerange, $3 needs to be

RE: [PHP] Problem with wanting something NOT to round

2006-11-17 Thread George Pitcher
George Pitcher wrote: Are you sure the web service is giving you 160.44? I get it displayed as expected... http://dev.stut.net/php/pitcher.php Yes, I am echoing the 160.44 ok. I'm just not getting the 44c in my display price. I'm on Windows NT - could that be a factor? I'm

Re: [PHP] Problem with wanting something NOT to round

2006-11-17 Thread Stut
George Pitcher wrote: I am using PHP5.1 with Smarty templates on my page (but not on the standalone page). Smarty doesn't offer anything other than the sprintf() options for string formatting of decimal numbers, and I'm already doing that. Do you think Smarty could be so unsmart as to undo the

[PHP] Problem with PHP 5.2.0

2006-11-13 Thread [EMAIL PROTECTED]
Hi. I just installed PHP 5.2.0 and I'm running into some strange problems. I have a rather large program which uses sockets, pcntl, posix, pdo (mysql), and is fully object oriented. The program is rather large and is about 75,000 lines of code. When I run the application with PHP 5.1.6, I can

Re: [PHP] Problem with PHP 5.2.0

2006-11-13 Thread Kevin Waterson
This one time, at band camp, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi. I just installed PHP 5.2.0 and I'm running into some strange problems. xdebug Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. -- PHP

Re: [PHP] problem with php[4,5] (horde 2/3)

2006-11-13 Thread Chris
Norbert Ehart wrote: hello, i have some problem with horde, after my isp have upgraded php on my vps! i only get some error massages. Notice: Only variable references should be returned by reference in /usr/share/horde3/lib/Horde/Perms.php on line 343 Notice: Only variable references

[PHP] problem with php[4,5] (horde 2/3)

2006-11-10 Thread Norbert Ehart
hello, i have some problem with horde, after my isp have upgraded php on my vps! i only get some error massages. Notice: Only variable references should be returned by reference in /usr/share/horde3/lib/Horde/Perms.php on line 343 Notice: Only variable references should be returned by

[PHP] problem with imagestring()

2006-11-09 Thread Piotr Sulecki
Ave! I have a problem with imagestring() function. It is supposed to put a string onto an image. The problem is, it's working has been silently changed, and I don't know when or why, or how I can get the old behaviour back. I'm trying to put an ISO 8859-2 string onto the image, but I get an ISO

[PHP] Problem with manual running PHP script

2006-10-27 Thread Rosen
Hi, I have scheduled php script, which runs with c:\php\php.exe php test.php, i.e. without browser. I give working dir the directory of the script. When I start it from the browser all is ok. But when I start manualy sctipt with c:\php\php.exe text.php ll.txt the script gives me an error( in

Re: [PHP] Problem with manual running PHP script

2006-10-27 Thread Dotan Cohen
On 27/10/06, Rosen [EMAIL PROTECTED] wrote: Hi, I have scheduled php script, which runs with c:\php\php.exe php test.php, i.e. without browser. I give working dir the directory of the script. When I start it from the browser all is ok. But when I start manualy sctipt with c:\php\php.exe text.php

Re: [PHP] Problem with manual running PHP script

2006-10-27 Thread Dave Goodchild
No, it's running otherwise he wouldn't even see the function error message. I run php scripts on Fedora all the time - all -q does is suppress HTTP headers. The Oracle extension may not be installed?

Re: [PHP] Problem with manual running PHP script

2006-10-27 Thread Dotan Cohen
On 27/10/06, Dave Goodchild [EMAIL PROTECTED] wrote: No, it's running otherwise he wouldn't even see the function error message. I run php scripts on Fedora all the time - all -q does is suppress HTTP headers. The Oracle extension may not be installed? It's most likely installed as he doesn't

Re: [PHP] Problem with manual running PHP script

2006-10-27 Thread Miles Thompson
At 08:22 AM 10/27/2006, Rosen wrote: Hi, I have scheduled php script, which runs with c:\php\php.exe php test.php, i.e. without browser. I give working dir the directory of the script. When I start it from the browser all is ok. But when I start manualy sctipt with c:\php\php.exe text.php

Re: [PHP] Problem with manual running PHP script

2006-10-27 Thread Jochem Maas
Rosen wrote: Hi, I have scheduled php script, which runs with c:\php\php.exe php test.php, i.e. without browser. I give working dir the directory of the script. When I start it from the browser all is ok. But when I start manualy sctipt with c:\php\php.exe text.php ll.txt the script gives

Re: [PHP] Problem with manual running PHP script

2006-10-27 Thread Richard Lynch
On Fri, October 27, 2006 6:22 am, Rosen wrote: I have scheduled php script, which runs with c:\php\php.exe php test.php, i.e. without browser. I give working dir the directory of the script. When I start it from the browser all is ok. But when I start manualy sctipt with c:\php\php.exe

Re: [PHP] Problem with EXEC and PASSTHRU

2006-10-26 Thread Richard Lynch
http://php.net/flush may be of interest. On Wed, October 25, 2006 2:35 am, 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

[PHP] Problem compiling PHP 4.4.2 with mcrypt

2006-10-26 Thread Tom Ray [Lists]
I have to get a temporary server in place under a tight time frame and am using a pre-existing server that wasn't configured really for hosting websites. I've upgraded all the services on it like going from Apache 1.3.x to Apache 2.0.59 and PHP from it's old version to 4.4.2 however I need to

Re: [PHP] Problem compiling PHP 4.4.2 with mcrypt

2006-10-26 Thread Chris
Tom Ray [Lists] wrote: I have to get a temporary server in place under a tight time frame and am using a pre-existing server that wasn't configured really for hosting websites. I've upgraded all the services on it like going from Apache 1.3.x to Apache 2.0.59 and PHP from it's old version to

[PHP] Problem with EXEC and PASSTHRU

2006-10-25 Thread Matt Beechey
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 SUDO and giving the

Re: [PHP] Problem with EXEC and PASSTHRU

2006-10-25 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-10-25 20:35:29 +1300: 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

[PHP] Problem receiving POSTed data

2006-10-06 Thread Andy Hultgren
Hi everyone, So, I'm trying to receive POSTed data which is being sent from Flash structured as a nested array pictured (conceptually): id contains (a, b, c) a contains (prop1 = a1, prop2 = a2, ...) b contains (prop1 = b1, prop2 = b2, ...) c contains (prop1 = c1, prop2 = c2, ...) where a1, a2,

Re: [PHP] Problem receiving POSTed data

2006-10-06 Thread Andy Hultgren
Hang on - my php code may be working fine. It might be a problem with my actionscript code - particularly that the LoadVars object I'm using to send the data might not be able to take multidimensional data (though it definitely does not say that *anywhere* in the documentation!!). Stupid

Re: [PHP] Problem receiving POSTed data

2006-10-06 Thread Richard Lynch
On Fri, October 6, 2006 4:01 pm, Andy Hultgren wrote: /*/ $data = $_POST; $stuff = \n \n Post contains:; foreach($data as $prop = $val) { $stuff .= \n {$prop}: {$val}; } /*/ pre?php var_dump($_POST);?/pre PHP

Re: [PHP] Problem receiving POSTed data

2006-10-06 Thread Andy Hultgren
Am working on #2 right now... On 10/6/06, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, October 6, 2006 4:01 pm, Andy Hultgren wrote: /*/ $data = $_POST; $stuff = \n \n Post contains:; foreach($data as $prop = $val) { $stuff .= \n {$prop}:

Re: [PHP] Problem receiving POSTed data

2006-10-06 Thread Andy Hultgren
Problem solved: it was indeed that the flash object did not like multidimensional data. I didn't change my PHP code one little bit. But I changed my my ActionScript code to write the data in a 1-dimensional form as follows: /*/ for(var i in _level0) {

Re: [PHP] problem with email characters

2006-09-29 Thread Richard Lynch
On Thu, September 28, 2006 12:27 pm, Ross wrote: Is there a function that sorts out all the dodgy characters in an email... Maybe. Sometimes those dodgy characters are UTF-8, Unicode, or some sort of codepage in some language other than the one your server is configured to use (which is

[PHP] problem with email characters

2006-09-28 Thread Ross
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 organisations playing their part in supporting positive social networks -

Re: [PHP] Problem Creating a New SSL Cert in Apache2

2006-08-13 Thread Chris
Mike wrote: Windows Server Apache2 OpenSSL I am new to working with SSL Certs so I am sure I did something wrong somewhere. Where I have no idea! We needed an SSL Cert for our website. I created the CSR using openssl req -new -out uwm.csr answered all of the questions, went to GoDaddy

Re: [PHP] problem with Firefox print preview?

2006-08-12 Thread Richard Lynch
On Fri, August 11, 2006 7:58 am, Angelo Zanetti wrote: 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

[PHP] problem with Firefox print preview?

2006-08-11 Thread Angelo Zanetti
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 page) doesnt print the

Re: [PHP] problem with Firefox print preview?

2006-08-11 Thread gustav
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 page) doesnt print

[PHP] Problem Creating a New SSL Cert in Apache2

2006-08-11 Thread Mike
Windows Server Apache2 OpenSSL I am new to working with SSL Certs so I am sure I did something wrong somewhere. Where I have no idea! We needed an SSL Cert for our website. I created the CSR using openssl req -new -out uwm.csr answered all of the questions, went to GoDaddy and did a copy

Re: [PHP] problem with Firefox print preview?

2006-08-11 Thread Paul Scott
On Fri, 2006-08-11 at 14:58 +0200, Angelo Zanetti wrote: The print preview (and printed page) doesnt print the first few rows but instead just prints blank then only prints the last line of the table on a new page. The table is embedded inside a fieldset component. Im not sure if its a

[PHP] Problem Loading Extension

2006-08-11 Thread Ray Hauge
Hello everyone, I successfully compiled PHP 4.4.3 and PHP 5.1.4 today. I'm having a problem with loading the PDFLib extension (pdflib_php.so). It works fine in PHP 4, but PHP5 is not loading it. I do know that I have the file in the correct location (same as the mysql.so file), and when I

Re: [PHP] Problem Loading Extension

2006-08-11 Thread Michael B Allen
On Fri, 11 Aug 2006 17:50:12 -0500 Ray Hauge [EMAIL PROTECTED] wrote: Hello everyone, I successfully compiled PHP 4.4.3 and PHP 5.1.4 today. I'm having a problem with loading the PDFLib extension (pdflib_php.so). It works fine in PHP 4, but PHP5 is not loading it. I do know that I have

Re: [PHP] Problem Loading Extension

2006-08-11 Thread Ray Hauge
On Friday 11 August 2006 18:15, Michael B Allen wrote: On Fri, 11 Aug 2006 17:50:12 -0500 Ray Hauge [EMAIL PROTECTED] wrote: Hello everyone, I successfully compiled PHP 4.4.3 and PHP 5.1.4 today. I'm having a problem with loading the PDFLib extension (pdflib_php.so). It works fine

Re: [PHP] problem with quotes (single and double) in forms

2006-08-10 Thread Ivo F.A.C. Fokkema
In case anyone's interested, here's the function I use in the open source project LOVD to undo Magic Quoting on all GPC arrays: function lovd_magicUnquote ($var = '') { if (!$var) { if (count($_GET)) { lovd_magicUnquote( $_GET); } if (count($_POST)) {

Re: [PHP] problem with quotes (single and double) in forms

2006-08-10 Thread afan
hm. good idea. actually, it's, at least, the most safe way. :) thanks. -afan [EMAIL PROTECTED] wrote: Hi to all. Have a web site on server where magic quote is turned On. Because of problems with quotes within forms, I was thinking to turn it Off. I wonder how much work I'll have to

Re: [PHP] problem with quotes (single and double) in forms

2006-08-10 Thread afan
This is what I found and started to use: created magic_quotes_off.php if (get_magic_quotes_gpc()) { function stripslashes_deep($value) { $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value);

Re: [PHP] problem with quotes (single and double) in forms

2006-08-10 Thread Richard Lynch
On Wed, August 9, 2006 9:07 am, [EMAIL PROTECTED] wrote: Have a web site on server where magic quote is turned On. Because of problems with quotes within forms, I was thinking to turn it Off. I wonder how much work I'll have to change code to accept new setting? Are we talking about major

Re: [PHP] problem with quotes (single and double) in forms

2006-08-10 Thread afan
good idea! :) thanks richard! -afan On Wed, August 9, 2006 9:07 am, [EMAIL PROTECTED] wrote: Have a web site on server where magic quote is turned On. Because of problems with quotes within forms, I was thinking to turn it Off. I wonder how much work I'll have to change code to accept new

Re: [PHP] problem with quotes (single and double) in forms

2006-08-10 Thread Richard Lynch
On Thu, August 10, 2006 7:54 am, [EMAIL PROTECTED] wrote: This is what I found and started to use: created magic_quotes_off.php if (get_magic_quotes_gpc()) { function stripslashes_deep($value) { $value = is_array($value) ?

Re: [PHP] problem with quotes (single and double) in forms

2006-08-10 Thread afan
My thought was to use this until I do all changes. Once the changes are done - turn off magic_quote_gpc in php.ini. but, agree, redo whole site on separate place (under 'new' or on other box) is much better solution. -afan On Thu, August 10, 2006 7:54 am, [EMAIL PROTECTED] wrote: This is

[PHP] problem with quotes (single and double) in forms

2006-08-09 Thread afan
Hi to all. Have a web site on server where magic quote is turned On. Because of problems with quotes within forms, I was thinking to turn it Off. I wonder how much work I'll have to change code to accept new setting? Are we talking about major changes or something that could be done in day or two

Re: [PHP] problem with quotes (single and double) in forms

2006-08-09 Thread Chris
[EMAIL PROTECTED] wrote: Hi to all. Have a web site on server where magic quote is turned On. Because of problems with quotes within forms, I was thinking to turn it Off. I wonder how much work I'll have to change code to accept new setting? Are we talking about major changes or something that

Re: [PHP] problem with quotes (single and double) in forms

2006-08-09 Thread J R
try to use this few lines of code. function stripMagicQuotes($var) { if (get_magic_quotes_gpc()) { $var= stripslashes($var); } return $var; } this way you don't really have to worry if magic quotes is on or off. ** On 8/10/06, Chris [EMAIL PROTECTED] wrote: [EMAIL

Re: [PHP] problem with quotes (single and double) in forms

2006-08-09 Thread Chris
J R wrote: try to use this few lines of code. function stripMagicQuotes($var) { if (get_magic_quotes_gpc()) { $var= stripslashes($var); } return $var; } this way you don't really have to worry if magic quotes is on or off. Then he has to modify all the code to call that

Re: [PHP] problem with quotes (single and double) in forms

2006-08-09 Thread Chris
Chris wrote: J R wrote: try to use this few lines of code. function stripMagicQuotes($var) { if (get_magic_quotes_gpc()) { $var= stripslashes($var); } return $var; } this way you don't really have to worry if magic quotes is on or off. Then he has to modify all the code

Re: [PHP] problem with quotes (single and double) in forms

2006-08-09 Thread J R
here's an improvement jwith recursion: function stripMagicQuotes($var) { if (get_magic_quotes_gpc()) { if(!is_array($var)) { $var= stripslashes($var); } else { array_walk($var, stripMagicQuotes); } } return $var; } hth, john On 8/10/06,

Re: [PHP] problem with quotes (single and double) in forms

2006-08-09 Thread Chris
Chris wrote: Chris wrote: J R wrote: try to use this few lines of code. function stripMagicQuotes($var) { if (get_magic_quotes_gpc()) { $var= stripslashes($var); } return $var; } this way you don't really have to worry if magic quotes is on or off. Then he has to modify

Re: [PHP] Problem with wrapper script for Tidy

2006-08-05 Thread Frank Arensmeier
Thank you Richard. I will test that (piping the output). Regarding my concerns about rubbing security by not validating the included code, I actually meant that the script does not validate where the included PHP script is coming from. Could someone set the environmental variable

[PHP] Problem with wrapper script for Tidy

2006-08-04 Thread Frank Arensmeier
Hello. Since my ISP does not provide the tidy module for Apache, I tested writing a wrapper script for a locally installed tidy binary. In general, the script is triggered by a modification to the .htaccess file like so: AddHandler server-parsed .php Action server-parsed

Re: [PHP] Problem with wrapper script for Tidy

2006-08-04 Thread Richard Lynch
Did you try to use - as the file and pipe the output?... That might work... As far as the Tidy not validating the included PHP, I'm not sure what you mean, but I don't see this making the PHP code any less secure than it was before you wrapped Tidy around it... On Fri, August 4, 2006 6:21 am,

Re: [PHP] problem using

2006-08-04 Thread Richard Lynch
On Wed, July 26, 2006 8:40 am, Jochem Maas wrote: How did you know that he had an extra space in $u? Actually... Since he's getting them from a file, and since fread() and friends INCLUDE the newline at the end, I would now suggest that the extra character is a single newline, and not a space.

Re: [PHP] problem using

2006-08-03 Thread Richard Lynch
echo $out[0][1] and see if it's what you think it is... On Wed, July 26, 2006 6:13 am, [EMAIL PROTECTED] wrote: Hi I am reading a username and password from a file. For the moment I am trying to test if the username and password are the same as user inputted username/password. My code

[PHP] Problem with rawurlencode and euro sign.

2006-07-27 Thread Mathijs
Hello there, I have a problem with rawurlencode(). I want to have the euro sign € to be sent by post. To do this, first rawurlencode() encodes all the chars. But for some reason rawurlencode encodes it to %3F or %A4. Which i think is logical becouse that is the right position in the charset.

Re: [PHP] Problem with rawurlencode and euro sign.

2006-07-27 Thread Mathijs van Veluw
Thx for that website :). It helped. I Think the server i am sending to is on windows, and i changed the encoding to windows-1252 and that has it on %80. Going to contact the company to ask this :). Thx for the link. Jochem Maas wrote: likely to be something to do with the fact that the euro

Re: [PHP] Problem with rawurlencode and euro sign.

2006-07-27 Thread Jochem Maas
likely to be something to do with the fact that the euro character does not exist in ISO8859-1. maybe this page helps: http://www.gar.no/html/euro.htm Mathijs wrote: Hello there, I have a problem with rawurlencode(). I want to have the euro sign € to be sent by post. To do this,

Re: [PHP] Problem with rawurlencode and euro sign.

2006-07-27 Thread Satyam
At: http://es2.php.net/manual/en/function.htmlentities.php it says that ISO-8859-15 adds the Euro sign - Original Message - From: Jochem Maas [EMAIL PROTECTED] To: Mathijs [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Thursday, July 27, 2006 12:39 PM Subject: Re: [PHP

[PHP] problem using

2006-07-26 Thread php
Hi I am reading a username and password from a file. For the moment I am trying to test if the username and password are the same as user inputted username/password. My code snippet is as follows: if( $out[0][0] == $u $out[0][1] == $p ) { $error = Login successful!;

Re: [PHP] problem using

2006-07-26 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Hi I am reading a username and password from a file. For the moment I am trying to test if the username and password are the same as user inputted username/password. My code snippet is as follows: if( $out[0][0] == $u $out[0][1] == $p ) {

Re: [PHP] problem using

2006-07-26 Thread Sameer N Ingole
[EMAIL PROTECTED] wrote: if( $out[0][0] == $u $out[0][1] == $p ) { $error = Login successful!; } else { $error = Invalid username/password. Try again; } If I just test if( $out[0][1] == $u ) it works.

Re: [PHP] problem using

2006-07-26 Thread Jochem Maas
[EMAIL PROTECTED] wrote: On Wed, 26 Jul 2006 13:22:02 +0200, Jochem Maas [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Hi I am reading a username and password from a file. For the moment I am trying to test if the username and password are the same as user inputted username/password.

Re: [PHP] problem using

2006-07-26 Thread Sameer N Ingole
Dear Eoghan, May be you should'n just hit Reply/Reply All button. -- Sameer N. Ingole http://weblogic.noroot.org/gallery2/v/travel/lonar/ --- Better to light one candle than to curse the darkness. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] problem using

2006-07-26 Thread php
On Wed, 26 Jul 2006 13:54:15 +0200, Jochem Maas [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: On Wed, 26 Jul 2006 13:22:02 +0200, Jochem Maas [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Hi I am reading a username and password from a file. For the moment I am trying to

Re: [PHP] problem using

2006-07-26 Thread php
On Wed, 26 Jul 2006 13:54:15 +0200, Jochem Maas [EMAIL PROTECTED] wrote: var_dump($out, $u, $p, ( user == user)); Jochem Thank you, var_dump showed me i had an extra space at the end of the password. I trimmed the vales from the file and it works fine now. Eoghan -- PHP General

Re: [PHP] problem using

2006-07-26 Thread Jochem Maas
[EMAIL PROTECTED] wrote: On Wed, 26 Jul 2006 13:54:15 +0200, Jochem Maas [EMAIL PROTECTED] wrote: var_dump($out, $u, $p, ( user == user)); Jochem Thank you, var_dump showed me i had an extra space at the end of the password. I trimmed the vales from the file and it works fine now. LOL

Re: [PHP] problem using

2006-07-26 Thread Jochem Maas
tedd wrote: [EMAIL PROTECTED] wrote: On Wed, 26 Jul 2006 13:54:15 +0200, Jochem Maas [EMAIL PROTECTED] wrote: var_dump($out, $u, $p, ( user == user)); Jochem Thank you, var_dump showed me i had an extra space at the end of the password. I trimmed the vales from the file and it works

Re: [PHP] problem using

2006-07-26 Thread php
On Wed, 26 Jul 2006 14:53:34 +0200, Jochem Maas [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: On Wed, 26 Jul 2006 13:54:15 +0200, Jochem Maas [EMAIL PROTECTED] wrote: var_dump($out, $u, $p, ( user == user)); Jochem Thank you, var_dump showed me i had an extra space at the

Re: [PHP] problem using

2006-07-26 Thread Jochem Maas
[EMAIL PROTECTED] wrote: On Wed, 26 Jul 2006 14:53:34 +0200, Jochem Maas [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: On Wed, 26 Jul 2006 13:54:15 +0200, Jochem Maas [EMAIL PROTECTED] wrote: var_dump($out, $u, $p, ( user == user)); Jochem Thank you, var_dump showed me i had an

Re: [PHP] problem using

2006-07-26 Thread php
On Wed, 26 Jul 2006 17:01:51 +0200, Jochem Maas [EMAIL PROTECTED] wrote: I sure wont. On the topic of my array, what would be an efficient way of checking my username/passwordd pairs match the user input form my login form. The text file contains username and passwords in the following

[PHP] Problem With Cookies

2006-07-19 Thread Prathaban Mookiah
I have run into a wierd problem with cookies. I am trying to set a cookie as usual: $COOKIE_EXPIRES = 3600; $COOKIE_VALID_PATH = /mydirectory/; $COOKIE_DOMAIN = .myhost.com setcookie(mycookie1, somevalue, time()+$COOKIE_EXPIRES, $COOKIE_VALID_PATH, $COOKIE_DOMAIN, 0) I want this cookie to be

Re: [PHP] Problem With Cookies

2006-07-19 Thread Prathaban Mookiah
: Prathaban Mookiah [EMAIL PROTECTED] To: PHP Mailing Lists php-general@lists.php.net Sent: Wed, 19 Jul 2006 23:01:29 +0600 Subject: [PHP] Problem With Cookies I have run into a wierd problem with cookies. I am trying to set a cookie as usual: $COOKIE_EXPIRES = 3600; $COOKIE_VALID_PATH

[PHP] Problem installing php

2006-07-11 Thread Ruben Rubio Rey
I have a problem when installing php. I have tried with different versions of apache (2.0.55 and 2.0.58) and php (5.1.4 and 5.1.2). The problem still there (Same error in different versions)!!! Note that I had installed apache 2.0.58 and php 5.1.4 before on this server. Problems began when

[Fwd: [PHP] Problem installing php] - SOLVED

2006-07-11 Thread Ruben Rubio Rey
Solved installing csv version. Is it officially stable? Do anyone know when is it going to be stable? Original Message Subject:[PHP] Problem installing php Date: Tue, 11 Jul 2006 12:04:18 +0200 From: Ruben Rubio Rey [EMAIL PROTECTED] To: php-general

Re: [PHP] PROBLEM WITH MAIL FUNCTION

2006-07-09 Thread Ligaya Turmelle
Juanjo Pascual wrote: Hello, I have a problem with the mail function when I send a mail with acents or Ñ in the subject. When I receive the mail this caracters have been replaced by X. I'm using the mail function in this way: mail([EMAIL PROTECTED], 'Consulta Señalítica desde la página

Re: [PHP] PROBLEM WITH MAIL FUNCTION

2006-07-09 Thread Manuel Lemos
Hello, Juanjo Pascual wrote: I have a problem with the mail function when I send a mail with acents or Ñ in the subject. When I receive the mail this caracters have been replaced by X. I'm using the mail function in this way: mail([EMAIL PROTECTED], 'Consulta Señalítica desde la página

Re: [PHP] Problem using fgetcsv()

2006-07-07 Thread Richard Lynch
On Thu, July 6, 2006 11:54 am, Don wrote: 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

[PHP] PROBLEM WITH MAIL FUNCTION

2006-07-06 Thread Juanjo Pascual
Hello, I have a problem with the mail function when I send a mail with acents or Ñ in the subject. When I receive the mail this caracters have been replaced by X. I'm using the mail function in this way: mail([EMAIL PROTECTED], 'Consulta Señalítica desde la página web', 'strongHola, esto

Re: [PHP] PROBLEM WITH MAIL FUNCTION

2006-07-06 Thread Martin Marques
On Thu, 6 Jul 2006, Juanjo Pascual wrote: Hello, I have a problem with the mail function when I send a mail with acents or Ñ in the subject. When I receive the mail this caracters have been replaced by X. I'm using the mail function in this way: mail([EMAIL PROTECTED], 'Consulta

[PHP] Problem using fgetcsv()

2006-07-06 Thread Don
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 character in

RE: [PHP] Problem using fgetcsv()

2006-07-06 Thread KermodeBear
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 character in the data which fgetcsv() cannot parse properly. I don;t see anyway around this

[PHP] Problem with resources and php 5 objects

2006-06-28 Thread Mathieu Dumoulin
I created a php class in charge of doing mysql queries and when this query is called it returns an object of the type myddl_result, this second object is passed the resource of type mysql_result and if i debug the whole thing i seems allright until the __construct is complete, after that, the

Re: [PHP] Problem Displaying Images

2006-06-26 Thread Prathaban Mookiah
--- From: Chris [EMAIL PROTECTED] To: Prathaban Mookiah [EMAIL PROTECTED] Cc: php-general@lists.php.net php-general@lists.php.net Sent: Mon, 26 Jun 2006 14:52:39 +1000 Subject: Re: [PHP] Problem Displaying Images Prathaban Mookiah wrote: I wish it would work. But id doesn't. But this time I

Re: [PHP] Problem Displaying Images

2006-06-26 Thread Chris
Prathaban Mookiah wrote: Yes, turning off the magic_quotes_runtime directive makes a difference. But the image is still distorted. All three magic_quotes directives are now set to the same value in both the servers. Are there any other settings I should look out for? Try a CTRL+F5 to make

[PHP] Problem Displaying Images

2006-06-25 Thread Prathaban Mookiah
I am trying to manage images with a web database application. It works fine with MySQL 5.0.17 and PHP 5.1.1. But when I port it to another machine that runs MySQL 3.23.54 and PHP 4.2.2, I have problems viewing the images retrieved from the database in the browser. The relevant part of the

Re: [PHP] Problem Displaying Images

2006-06-25 Thread Chris
Prathaban Mookiah wrote: I am trying to manage images with a web database application. It works fine with MySQL 5.0.17 and PHP 5.1.1. But when I port it to another machine that runs MySQL 3.23.54 and PHP 4.2.2, I have problems viewing the images retrieved from the database in the browser.

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