php-windows Digest 15 Jul 2003 07:28:00 -0000 Issue 1823
Topics (messages 20783 through 20791):
Re: Problem getting phpMyAdmin to work on localhost
20783 by: Shena Delian O'Brien
Mail server requires logon, How do I configure php
20784 by: Rick
Re: Back button error
20785 by: Harpreet
20786 by: Harpreet
20791 by: Henrik Hornemann
Need some help please
20787 by: Dean Hayes
How to detect syntax errors before releasing a PHP application?
20788 by: Thai Thanh Ha
20789 by: John Ellingsworth
20790 by: Thai Thanh Ha
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
What's your:
$cfg['PmaAbsoluteUri']
$cfg['Servers'][$i]['host']
? Should be something like :
$cfg['Servers'][$i]['host'] = 'http://localhost/phpMyAdmin';
$cfg['Servers'][$i]['host'] = 'localhost';
Post other config entries that you've changed...? What authentication
method are you using, etc? Sounds like maybe just maybe your
authentication isn't working...
Richard White wrote:
I have a couple of problems with newish MySQL database.
I am running WinXP-Pro, MySQL V 4.0.12-nt, Apache etc. I previously got
this all working, but today (after a break of a couple of weeks) I can't get
"phpMyAdmin-2.5.0-rc1" to work.
I have configured {config.inc.php} exactly as per documentation, but when I
try to run the {index.php} file in IE6, I get a pause (nothing new
displayed) and then the address bar reverts to the currently displayed page.
(ie the page displayed in IE just before I tried {index.php})
I don't see any errors??? Is this a known/common problem, with a solution?
If not, how can I find out what the problem is?
** Please also see my Notes below. **
NOTES:
1. I have a web site, with MySQL and I can run that copy of phpMyAdmin
2. I do have PHP working *locally* in IE ok.
3. I do have MySQL working and can administer is from the windows program
MySQL Control Center v0.9.1.
--- End Message ---
--- Begin Message ---
My mail server requires me to logon to the server when sending email. How do
I configure PHP to do the same
Thanks
Rick
--- End Message ---
--- Begin Message ---
Cristian,
You said by using the method in a form as Get in place of Post it allows me to use
the back button without getting the error message:
Warning: Page has Expired The page you requested was created using
information you submitted in a form. This page is no longer available.
As a security precaution, Internet Explorer does not automatically
resubmit your information for you.
I changed the post to a GET and it seems to work just right. Do I loose anything by
using a get in place of a POST. How r they both different. Please help.
Thanks
"Cristian MARIN" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> This is not an error, this is a security issue:
> Your form has passed the form variable thru 'post' method and when you are
> hitting back button or reloading with a JScript the history page you see the
> message because the IE do not re-submit automatically the form because is a
> security leak.
>
> If you really don't want to see the message appearing you have to specify in
> the form the "<post method='get' action='... >" and this will automatically
> submit the form once again.
>
> --
> -------------------------------------------------
> Cristian MARIN - Developer
> InterAKT Online (www.interakt.ro)
> Tel: +4021 312.53.12
> Tel/Fax: +4021 312.51.91
> [EMAIL PROTECTED]
> "Harpreet" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Cristian,
You said by using the method in a form as Get in place of Post it allows me to use
the back button without getting the error message:
Warning: Page has Expired The page you requested was created using
information you submitted in a form. This page is no longer available.
As a security precaution, Internet Explorer does not automatically
resubmit your information for you.
I changed the post to a GET and it seems to work just right. Do I loose anything by
using a get in place of a POST. How r they both different. Please help.
Thanks
"Cristian MARIN" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> This is not an error, this is a security issue:
> Your form has passed the form variable thru 'post' method and when you are
> hitting back button or reloading with a JScript the history page you see the
> message because the IE do not re-submit automatically the form because is a
> security leak.
>
> If you really don't want to see the message appearing you have to specify in
> the form the "<post method='get' action='... >" and this will automatically
> submit the form once again.
>
> --
> -------------------------------------------------
> Cristian MARIN - Developer
> InterAKT Online (www.interakt.ro)
> Tel: +4021 312.53.12
> Tel/Fax: +4021 312.51.91
> [EMAIL PROTECTED]
> "Harpreet" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
There are quite a few differences that might be a problem with GET.
In get the the values arer passed with the URL, which means that the user will be able
to see what is passed.
Also it means that you can endlessly refresh the same page with the same parameters,
which would be a problem if the page updated a database.
Finally in the get method there is a limit on the amount of data that can be passed.
This limit is browser dependent.
hth Henrik Hornemann
> -----Oprindelig meddelelse-----
> Fra: Harpreet [mailto:[EMAIL PROTECTED]
> Sendt: 15. juli 2003 00:25
> Til: [EMAIL PROTECTED]
> Emne: Fw: [PHP-WIN] Back button error
>
>
> Cristian,
>
> You said by using the method in a form as Get in place of
> Post it allows me to use the back button without getting the
> error message:
> Warning: Page has Expired The page you requested was created using
> information you submitted in a form. This page is no longer
> available.
> As a security precaution, Internet Explorer does not automatically
> resubmit your information for you.
>
> I changed the post to a GET and it seems to work just right.
> Do I loose anything by using a get in place of a POST. How r
> they both different. Please help.
>
> Thanks
>
>
>
>
>
> "Cristian MARIN" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > This is not an error, this is a security issue:
> > Your form has passed the form variable thru 'post' method
> and when you are
> > hitting back button or reloading with a JScript the history
> page you see the
> > message because the IE do not re-submit automatically the
> form because is a
> > security leak.
> >
> > If you really don't want to see the message appearing you
> have to specify in
> > the form the "<post method='get' action='... >" and this
> will automatically
> > submit the form once again.
> >
> > --
> > -------------------------------------------------
> > Cristian MARIN - Developer
> > InterAKT Online (www.interakt.ro)
> > Tel: +4021 312.53.12
> > Tel/Fax: +4021 312.51.91
> > [EMAIL PROTECTED]
> > "Harpreet" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
>
>
--- End Message ---
--- Begin Message ---
Hey,
Well i am a newbie to scripting really i have only started learning PHP
about 5 months ago and so far i seem to be going well i have just completed
a MySQL news board that has a load of functions what i need to know is the
hole news board is in alot of different scripts like site_setup.php
add_news.php delete_news.php and so on and so on what i want to know is what
is the best way to add all of the scripts into one file say news.php and
call it by a link like news.php?area=add or news.php?area=add&action=edit in
all the books and tut's i have that was not part of them but it seems to be
a big part of a good script can anyone help me with this problem???
Dean "The Insane Guy" Hayes
Mystical Web Designs
http://www.mystical-sector.com
<-- I design and i redesign but still i never designed true beauty like you
-->
_________________________________________________________________
Hotmail is now available on Australian mobile phones. Go to
http://ninemsn.com.au/mobilecentral/signup.asp
--- End Message ---
--- Begin Message ---
Hi all,
When I write Java-based applications, I can compile JSP pages to detects
syntax errors before releasing the applications. I'm wondering if there is
some tool like that in PHP writing? Of course PHP pages cannot be compiled
like JSP pages because PHP is an interpreted language. But it would be great
to have some tool to check PHP syntax of an PHP application (detects missing
";","}",...). I know that PHP engine has an internal parser. Can we use it
to check our code without requesting every PHP pages? Or anyone knows about
some similar tool to check PHP error? Or we should write an simple PHP
parser? :) I have used Zend Safeguard Suite to detect PHP errors but I don't
want to buy it. I need something free. Thanks.
Regards,
Thai
--- End Message ---
--- Begin Message ---
I place this in a file that is required for every page so that I see all
errors:
// we want to see all errors
error_reporting(E_ALL);
Thanks,
John Ellingsworth
-----Original Message-----
From: Thai Thanh Ha [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 10:27 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] How to detect syntax errors before releasing a PHP
application?
Hi all,
When I write Java-based applications, I can compile JSP pages to detects
syntax errors before releasing the applications. I'm wondering if there is
some tool like that in PHP writing? Of course PHP pages cannot be compiled
like JSP pages because PHP is an interpreted language. But it would be great
to have some tool to check PHP syntax of an PHP application (detects missing
";","}",...). I know that PHP engine has an internal parser. Can we use it
to check our code without requesting every PHP pages? Or anyone knows about
some similar tool to check PHP error? Or we should write an simple PHP
parser? :) I have used Zend Safeguard Suite to detect PHP errors but I don't
want to buy it. I need something free. Thanks.
Regards,
Thai
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I have set error_reporting to E_ALL in my php.ini. But with this solution I
can only see errors when I request pages which have errors.
-----Original Message-----
From: John Ellingsworth [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 9:31 AM
To: Thai Thanh Ha; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] How to detect syntax errors before releasing a
PHP application?
I place this in a file that is required for every page so that I see all
errors:
// we want to see all errors
error_reporting(E_ALL);
Thanks,
John Ellingsworth
-----Original Message-----
From: Thai Thanh Ha [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 10:27 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] How to detect syntax errors before releasing a PHP
application?
Hi all,
When I write Java-based applications, I can compile JSP pages to detects
syntax errors before releasing the applications. I'm wondering if there is
some tool like that in PHP writing? Of course PHP pages cannot be compiled
like JSP pages because PHP is an interpreted language. But it would be great
to have some tool to check PHP syntax of an PHP application (detects missing
";","}",...). I know that PHP engine has an internal parser. Can we use it
to check our code without requesting every PHP pages? Or anyone knows about
some similar tool to check PHP error? Or we should write an simple PHP
parser? :) I have used Zend Safeguard Suite to detect PHP errors but I don't
want to buy it. I need something free. Thanks.
Regards,
Thai
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---