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
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';
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
[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
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,
# [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
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
# [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
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 =
# [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
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
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
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
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
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
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
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
[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()
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
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
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
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
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
[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
[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
[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
[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
[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)
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,
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
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
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
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
[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
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
[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
[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 ...
[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
On Tue, November 21, 2006 10:31 pm, Tom wrote:
Im trying to use the imagejpeg function call in a php script and
I
cant 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
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
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
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
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
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
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
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
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
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
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
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
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?
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
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
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
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
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
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
# [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
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
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
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}:
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) {
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
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
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
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
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
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
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
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)) {
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
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);
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
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
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) ?
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
[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
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
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
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
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,
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
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
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,
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.
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
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
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,
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
[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 ) {
[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.
[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.
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:
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
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
[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
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
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
[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
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
401 - 500 of 1893 matches
Mail list logo