Re: [PHP] Problem with Redirect

2007-02-16 Thread David Blanco
Hi! Ashish Rizal escribió: Hi friends, I am having problem with following code. I have actually made the whole code on same page (login.php) and the functions that i used in this code are in functions.php. Now this time it is showing the warning : Warning: Cannot modify header information

Re: [PHP] Problem Directing the Page with header

2007-02-16 Thread Martin Marques
On Thu, 15 Feb 2007, Ashish Rizal wrote: ?php session_start(); require_once 'functions.php'; $UserName = $_POST['UserName']; $Password = $_POST['Password']; $error = login_check($_POST); $adminAddress = getAbsolutePath().'adminlogin.php'; $userAddress = getAbsolutePath().'userlogin.php';

Re: [PHP] Problem Directing the Page with header

2007-02-15 Thread Jim Lucas
Ashish Rizal wrote: Hi, I am having problem with redirecting the page in user authenication page . I am working on my windows machine as a localhost with PHP Version 5.2.0. Everything is working good in local machine (in Windows) but now when i tried to upload the same code to the server which

Re: [PHP] Problem with Redirect

2007-02-15 Thread Richard Lynch
[Didn't I see this thread before?...] On Thu, February 15, 2007 7:39 pm, Ashish Rizal wrote: Hi friends, I am having problem with following code. I have actually made the whole code on same page (login.php) and the functions that i used in this code are in functions.php. Now this time it is

Re: [PHP] Problem with file reading

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

Re: [PHP] Problem with file reading

2007-01-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-05 16:34:41 +: Delta Storm wrote: I'm a beginner and i'm still learning PHP and I got a problem: $file = http://localhost/test_folder/test1.txt;; //I have also tried test_folder/test1.txt and text1.txt $fh = fopen($file, r) or

Re: [PHP] Problem with file reading

2007-01-05 Thread Stut
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-05 16:34:41 +: Delta Storm wrote: I'm a beginner and i'm still learning PHP and I got a problem: $file = http://localhost/test_folder/test1.txt;; //I have also tried test_folder/test1.txt and text1.txt $fh

Re: [PHP] Problem with file reading

2007-01-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-05 17:17:46 +: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-05 16:34:41 +: Delta Storm wrote: I'm a beginner and i'm still learning PHP and I got a problem: $file = http://localhost/test_folder/test1.txt;; //I have also tried

Re: [PHP] Problem with file reading

2007-01-05 Thread Stut
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-05 17:17:46 +: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-05 16:34:41 +: Delta Storm wrote: I'm a beginner and i'm still learning PHP and I got a problem: $file =

Re: [PHP] Problem with file reading

2007-01-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-05 17:40:49 +: Using mod_php with Apache will make the current directory the directory that contains the script being requested. I am assuming that the OP is trying to access the file from the script that is being requested and not an included file in a

Re: [PHP] Problem with copy() function

2007-01-05 Thread Jochem Maas
R B wrote: Hi, I'm trying to copy a file like this: copy(home/xxx/public_html/yyy/zzz/index.php, home/xxx/public_html/yyy/www/index.php) ^ -- your missing a slash (although that shouldn't be the problem) and have this error: *Warning*: Wrong parameter count for copy() in

Re: [PHP] Problem with copy() function

2007-01-05 Thread Richard Lynch
On Fri, January 5, 2007 5:01 pm, R B wrote: I'm trying to copy a file like this: copy(home/xxx/public_html/yyy/zzz/index.php, home/xxx/public_html/yyy/www/index.php) and have this error: *Warning*: Wrong parameter count for copy() in */home/.* Someone can help me please? You are

Re: [PHP] Problem with displaying image

2007-01-05 Thread Jim Lucas
Budi Setiawan wrote: hi, im Budi, recently i have some problems here with displaying jpeg image in firefox browser. at first, when i tested my web page using IE it jsut works fine, but when i decided to test it using Firefox 2 the problem occurs. some of my images left undisplayed. but the

Re: [PHP] Problem with displaying image

2007-01-05 Thread Budi Setiawan
do you have an example/page that we can look at? here is one of them : http://10.126.11.246/schematics2007/main_logic.php and the image URL : http://10.126.11.246/schematics2007/image/banner/mainlog.jpg all will be be displayed in an unusual manner in FFox.. thanks

Re: [PHP] Problem with displaying image

2007-01-05 Thread Jim Lucas
Budi Setiawan wrote: do you have an example/page that we can look at? here is one of them : http://10.126.11.246/schematics2007/main_logic.php and the image URL : http://10.126.11.246/schematics2007/image/banner/mainlog.jpg all will be be displayed in an unusual manner in FFox.. thanks

Re: [PHP] Problem using PHP with Apache (probably something silly)

2007-01-04 Thread Stut
Douglas Temple wrote: First off, I hope everyone had Happy New Year. Onto business, I am trying to install PHP 5.2.0 on a WinXP computer, using Apache 2.2.3 as the web server with MySQL enabled extension. My problem is that when I start up Apache with the edited httpd.conf file including the

Re: [PHP] Problem using PHP with Apache (probably something silly)

2007-01-04 Thread Jochem Maas
like stut said - your probably have some old .dll(s) hanging around that windows is loading in preference to the ones it should be (when cleaning up all existing installations also check that there is nothing lurking in the system32 directory. if that doesn't give you any joy - you might consider

Re: [PHP] problem with mysql_real_escape_string()

2006-12-28 Thread Stut
[EMAIL PROTECTED] wrote: I moved my website from one php4/mysql4 based server to new hosting company and php5/mysq5 based server. Everything worked fine on old server, though now, on one page after I submit new record, I'll get this error: Warning: mysql_real_escape_string()

Re: [PHP] problem with mysql_real_escape_string()

2006-12-28 Thread afan
A little bit lower on php.net/manual I found explanation too. I'm sorry for bothering - wasn't check whole page before posting. The Warning was strange for me because never got it before :) Thanks for your help. -afan [EMAIL PROTECTED] wrote: I moved my website from one php4/mysql4 based

Re: [PHP] problem loading phpinfo

2006-12-19 Thread Richard Lynch
On Tue, December 19, 2006 2:42 am, [EMAIL PROTECTED] wrote: I am very grateful that you had the time to reply also your reply was very quick, this is the kind support you don't get from most other open source. In regard to the problem with phpinfo, I had same problem, but it is not because

Re: [PHP] problem with imagecreate on new webserver

2006-12-18 Thread Richard Lynch
On Sat, December 16, 2006 2:53 pm, [EMAIL PROTECTED] wrote: i am moving my webserver from a windows box to a linux box with php ver 5.2.0 and noticed i am having a problem with a php file(code below). i thought it was a module i was missing but looking at the php config file all the same

Re: [PHP] problem loading phpinfo

2006-12-18 Thread Richard Lynch
You didn't actually install PHP correctly. Check your httpd error.log file -- You may need to restart Apache and check the log to get the error messages it spews out at start up if you've had it going with a bunch of other messages clogging up the log (e.g., Missing robots.txt, missing

Re: [PHP] problem loading phpinfo

2006-12-17 Thread Casey Chu
You probably didn't install PHP correctly. On 12/16/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Please, Could you tell me if this problem has been resolved: I am using php-5.2X and has this problem, I also had this problem when I was using php-5.1.X. My Apache is httpd-2.2.3. Here is the

Re: [PHP] problem with imagecreate on new webserver

2006-12-17 Thread Chris
[EMAIL PROTECTED] wrote: i am moving my webserver from a windows box to a linux box with php ver 5.2.0 and noticed i am having a problem with a php file(code below). i thought it was a module i was missing but looking at the php config file all the same modules are loaded. allow_url_fopen is

Re: [PHP] problem with ob_start() and header() in osCommerce cart

2006-12-14 Thread afan
[EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Hi, even it's problem with osCommerce cart I think it's still php question: there is a code in application_top.php file (this file is includeed in login.php page, all the way on the top of the login.php file wich means is the first

Re: [PHP] problem with ob_start() and header() in osCommerce cart

2006-12-13 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Hi, even it's problem with osCommerce cart I think it's still php question: there is a code in application_top.php file (this file is includeed in login.php page, all the way on the top of the login.php file wich means is the first one) // Check if the browser

Re: [PHP] problem with ob_start() and header() in osCommerce cart

2006-12-13 Thread afan
[EMAIL PROTECTED] wrote: Hi, even it's problem with osCommerce cart I think it's still php question: there is a code in application_top.php file (this file is includeed in login.php page, all the way on the top of the login.php file wich means is the first one) // Check if the browser

Re: [PHP] problem with ob_start() and header() in osCommerce cart

2006-12-13 Thread Youri LACAN-BARTLEY
[EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Hi, even it's problem with osCommerce cart I think it's still php question: there is a code in application_top.php file (this file is includeed in login.php page, all the way on the top of the login.php file wich means is the first one)

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

2006-12-05 Thread Richard Lynch
On Mon, December 4, 2006 4:53 am, Tony Marston wrote: No, otherwise I would have quoted them. Generally speaking when people say that X is inefficient or bad for performance all they can prove is that if something extra is done then it takes extra processing time to perform that extra work,

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

2006-12-04 Thread Tony Marston
Richard Lynch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Sun, December 3, 2006 5:22 am, Tony Marston wrote: Richard Lynch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Sat, December 2, 2006 5:31 am, Tony Marston wrote: I think it is quite possible for a

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

2006-12-04 Thread Chris
Tony Marston wrote: Richard Lynch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Sun, December 3, 2006 5:22 am, Tony Marston wrote: Richard Lynch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Sat, December 2, 2006 5:31 am, Tony Marston wrote: I think it is quite

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

2006-12-03 Thread Tony Marston
Richard Lynch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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

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

2006-12-03 Thread Richard Lynch
On Sun, December 3, 2006 5:22 am, Tony Marston wrote: Richard Lynch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Sat, December 2, 2006 5:31 am, Tony Marston wrote: I think it is quite possible for a sysAdmin to configure AllowOverride and .htaccess in such a way that too

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

2006-12-02 Thread Tony Marston
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [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

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 ...

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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