On Mon, Jul 27, 2009 at 10:31 PM, A.a.k wrote:
> Hello
> I have a very simple test form named "pass.php" :
>
>
> username :
> password :
>
>
>
> $user=$_POST['user'];
> $pass=$_POST['pass'];
> if(($user=="myname")&&($pass="mypass"))
> echo "access granted";
> else
> echo "access denied";
>
Cell: +91 94033 66714 | Tel: +91 (0832) 30 79014
Innovation in software product design, development and delivery-
www.persistentsys.com
-Original Message-
From: V S Rawat [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2008 7:22 PM
To: Chetan Rane
Subject: Re: [PHP] Newbie prob
PM
To: php-general@lists.php.net
Subject: Re: [PHP] Newbie problem: Php script not running in browser.
On 8/6/2008 2:58 AM India Time, _Andrew Ballard_ wrote:
On Tue, Aug 5, 2008 at 3:05 PM, V S Rawat <[EMAIL PROTECTED]> wrote:
I have put the first php script to hello.php file:
Message-
From: V S Rawat [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2008 7:22 PM
To: Chetan Rane
Subject: Re: [PHP] Newbie problem: Php script not running in browser.
On 8/6/2008 4:20 PM India Time, _Chetan Rane_ wrote:
> Hi
>
> You need to check if your Apache is up and r
et
Subject: Re: [PHP] Newbie problem: Php script not running in browser.
On 8/6/2008 2:58 AM India Time, _Andrew Ballard_ wrote:
> On Tue, Aug 5, 2008 at 3:05 PM, V S Rawat <[EMAIL PROTECTED]> wrote:
>> I have put the first php script to hello.php file:
>>
>>
>>
On 8/6/2008 2:58 AM India Time, _Andrew Ballard_ wrote:
On Tue, Aug 5, 2008 at 3:05 PM, V S Rawat <[EMAIL PROTECTED]> wrote:
I have put the first php script to hello.php file:
PHP Test
Hello World'; ?>
I am on xpsp3, wampserver 2.0, having apache 2.2.8, php 5.2.6, MySQL 5.0.51b
On Tue, Aug 5, 2008 at 3:05 PM, V S Rawat <[EMAIL PROTECTED]> wrote:
> I have put the first php script to hello.php file:
>
>
>
> PHP Test
>
>
> Hello World'; ?>
>
>
>
> I am on xpsp3, wampserver 2.0, having apache 2.2.8, php 5.2.6, MySQL 5.0.51b
>
> http://localhost/ is E:\wamp\www
>
Thanks to Richard Lynch and Edward Kay for their help.
The var_dump() showed unwanted whitespace appearing in the array data
from record 2 onwards.
The trim() worked a treat to get rid of it.
Now all I have to do is work out what's wrong with my original handler
functions that caused the pr
On Mon, February 20, 2006 1:14 pm, Robert Voogdgeert wrote:
> When working with an HTML file with a form with
>
>
>
> the somename.php file is served (completely) to my browser as plain
> text
> after the 'submit' button is clicked on my machine (MacOS X). On the
> external webhost though ever
[snip]
> Have you installed PHP on the localhost and is it running properly?
Jay (and others),
I solved the problem. I need to use
10.0.1.3/somedir/somedir/somefile.html
and not
localhost/somedir/somedir/somefile.html,
something I don't understand (probably because of lack of knowled
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
> Have you installed PHP on the localhost and is it running properly?
Jay (and others),
I solved the problem. I need to use
10.0.1.3/somedir/somedir/somefile.html
and not
localhost/somedir/somedir/somefile.html,
something I don't underst
Hi all,
I have a page that lets people upload images - they are then resized
for use throughout my site.
It all works fine, but I need to reduce the jpg size (without
reducing image size)
Is there a php function that lets you compress the jpg?
Thanks
Jules
No -- my understanding is that
[snip]
> [snip]
> When working with an HTML file with a form with
>
>
>
> the somename.php file is served (completely) to my browser as plain
text
> after the 'submit' button is clicked on my machine (MacOS X). On the
> external webhost though everything is processed correctly...
>
> Is
Hi all,
I have a page that lets people upload images - they are then resized for use
throughout my site.
It all works fine, but I need to reduce the jpg size (without reducing image
size)
Is there a php function that lets you compress the jpg?
Thanks
Jules
--
PHP General Mailing List (
On Monday 20 February 2006 15:32, Robert Voogdgeert wrote:
> > Robert Voogdgeert wrote:
> > > -BEGIN PGP SIGNED MESSAGE-
> > > Hash: SHA1
> > >
> > > Dear php-users,
> > >
> > >
> > > When working with an HTML file with a form with
> > >
> > >
> > >
> > > the somename.php file is serve
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
> Robert Voogdgeert wrote:
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > Dear php-users,
> >
> >
> > When working with an HTML file with a form with
> >
> >
> >
> > the somename.php file is served (completely) to my browse
Robert Voogdgeert wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dear php-users,
When working with an HTML file with a form with
the somename.php file is served (completely) to my browser as plain text
after the 'submit' button is clicked on my machine (MacOS X). On the
exter
[snip]
When working with an HTML file with a form with
the somename.php file is served (completely) to my browser as plain text
after the 'submit' button is clicked on my machine (MacOS X). On the
external webhost though everything is processed correctly...
Is this related to some setti
What the heck? The string "[status]='active'" doesn't check anything.
It is converted to boolean by the if statment, which will be true, as
it's not an empty string. I'm guessing you want to use
if($status=='active'){
Hunter, Jess wrote:
I have a short bit of code that contains an if/else th
Show us your code.
---John Holmes...
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 27, 2002 5:33 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> Subject: Re: [PHP] Newbie problem - Slashes
>
Hi,
Maybe mysql_escape_string($string) helps?
Greetings,
Nookie
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, June 27, 2002 11:32 PM
Subject: Re: [PHP] Newbie problem - Slash
Hi John,Phillip,
Thanks for writing.
> You're fault. :)
Guessed as much. :-)
I know quotes are used for the beginning and end of a string,but i'm thinking what if
a user "accidently" puts in a double quote.maybe as a typo error?
The part I cannot understand is why is the MySql database's
You're fault. :)
Remember that quotes are used to tell the beginning and end of a string. So
if you are using a " to mean the beginning of the string, then there can't
be any " within the string itself. If there are any ", they need to be
changed to \", which means they are escaped.
magic_quotes
print_r($_POST); shows all the elements in the array as I expect them to be.
That foreach loop is only picking the first element, though. At least it's
reassured me that I'm not going mad, though, so thanks for that.
Mick
> I've tried this, but it's still doing the same thing. Is there somethi
> -Original Message-
> From: Remy Dufour [mailto:[EMAIL PROTECTED]]
> Sent: 13 June 2002 14:34
>
> If you do this, it should work
>
> function foo()
> {
> global $_POST;
That's unnecessary -- the $_ arrays are automatically global ("superglobal").
> reset($_POST);
That's unnec
If you do this, it should work
function foo()
{
global $_POST;
reset($_POST);
foreach($_POST as $item => $value){
echo "$item, $value";
}
}
Thats work for me.
> I've tried this, but it's still doing the same thing. Is there something
> special about this particular var
On Thursday 13 June 2002 21:16, Sear, Mick wrote:
> I've tried this, but it's still doing the same thing. Is there something
> special about this particular variable that I need to know? I've tried it
> with $HTTP_POST_VARS as well, declaring $HTTP_POST_VARS as global in the
> function first.
>
I've tried this, but it's still doing the same thing. Is there something
special about this particular variable that I need to know? I've tried it
with $HTTP_POST_VARS as well, declaring $HTTP_POST_VARS as global in the
function first.
Put reset($_POST) before foreach loop
> I'
Put reset($_POST) before foreach loop
> I'm trying to loop through $_POST vars in a function, which I understand
to
> be an autoglobal associative array. Here's the code I'm using:
>
> foreach($_POST as $item => $value){
> echo "$item, $value";
> }
>
> However, I only get the first element of th
Buon giorno, Emiliano,
Do you have root access to the system? If so, try downloading the gcc
package from http://www.sunfreeware.com/. Installing it in package
format should make everything work for you. Also make sure that your
LD_LIBRARY_PATH contains the correct locations (such as /usr/loca
Check out :
http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1501
http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1697
http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1359
http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1552
http://ww
31 matches
Mail list logo