php-general Digest 18 Dec 2004 16:29:21 -0000 Issue 3177
Topics (messages 204647 through 204657):
Re: Client does not support authentication protocol requested by server;
consider upgrading MySQL client
204647 by: Nic Begusarai
Re: IDE recommendation-- (Free?)
204648 by: yangshiqi
header information problem
204649 by: Ahmed Abdel-Aliem
204650 by: Gareth Williams
204651 by: yangshiqi
204652 by: yangshiqi
Fax Gateway
204653 by: Neo Theone
204654 by: Jason Wong
204657 by: Robby Russell
PHP + MSSQL Problem
204655 by: Alaor Barroso
Re: PHP problem
204656 by: GD-Aqua
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 ---
"Nic Begusarai" <[EMAIL PROTECTED]> wrote in message news:...
>
> I just install MySql and trying to connect on localhost using PHP
>
> Error: Client does not support authentication protocol requested by
server;
> consider upgrading MySQL client
> how to correct this problem
>
> rana
>
>
>
>
>
>
>
--- End Message ---
--- Begin Message ---
Or may be you can use vim + ctags + cscope.
I use these for months and I think these are best tools for develop on
unix/linux.
Very powerfull.
Best regards,
Yang Shiqi
-----邮件原件-----
发件人: Jeffery Fernandez [mailto:[EMAIL PROTECTED]
发送时间: 2004年12月17日 21:45
收件人: [EMAIL PROTECTED]
主题: Re: [PHP] IDE recommendation-- (Free?)
Mat Harris wrote:
>On Fri, Dec 17, 2004 at 08:20:36 -0500, GH wrote:
>
>
>>Hi...
>>
>> I am looking for a FREE PHP IDE that uses syntax highlighting and
>>code completion amongst other features...
>>
>>Do any of you have any recommendations... again I am looking for FREE
>>(not much budget for me)?
>>
>>I use BOTH Linux and Windows....
>>
>>
>
>I can heartily recommend SciTE (http://www.scintilla.org/SciTE.html)
>i believe it has the features you desire, plus, there is a version
customised
>for php, available here http://amip.tools-for.net/SciTE-CVS.exe
>
>btw, there is a GTK+ version so you can use it on linux as well.
>
>
>
>>Thanks
>>Gary
>>
>>
>
>hope this helps
>
>mat
>
>
>
here you go.. a well maintained list:
http://www.thelinuxconsultancy.co.uk/phpeditors/
cheers,
Jeffery
http://melbourne.ug.php.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Dear Groups members.
i am making a user protected page, the script works excellent on my
local server, but online it gives me this error :
Warning: Cannot modify header information - headers already sent by
(output started at
/home/me2resh/public_html/apex/upload/header.html:10) in
/home/me2resh/public_html/apex/upload/upload.php on line 33
the script of the page is
<?
if (!isset($ID)){
include 'header.html';
echo "No ID is Set.<br>You Got To This Page By Mistake";
include 'footer.html';
}else{
session_start();
include 'db.php';
include 'header.html';
$username = $_POST['username'];
$password = $_POST['password'];
if((!$username) || (!$password)){
echo "Please enter ALL of the information! <br />";
include 'login_form.html';
include 'footer.html';
exit();
}
$sql = mysql_query("SELECT * FROM user WHERE User_Login='$username'
AND User_Password='$password'");
$login_check = mysql_num_rows($sql);
if($login_check > 0){
session_register('ID');
$_SESSION['ID'] = $ID;
while($row = mysql_fetch_array($sql)){
foreach( $row AS $key => $val ){
$$key = stripslashes( $val );
}
session_register('User_First_Name');
$_SESSION['User_First_Name'] = $User_First_Name;
session_register('User_Last_Name');
$_SESSION['User_Last_Name'] = $User_Last_Name;
session_register('User_ID');
$_SESSION['User_ID'] = $User_ID;
header("Location: login_success.php");
}
}else{
include 'header.html';
echo "You could not be logged in! Either the username and
password
do not match!<br />
Please try again!<br />";
include 'login_form.html';
include 'footer.html';
}
}
?>
Can anyone help me with that problem please ?
--
Ahmed Abdel-Aliem
www.ApexScript.com
--- End Message ---
--- Begin Message ---
In the else part, you have the possibility to echo to the screen and
later on, then header("Location: ...");
This is the bit which isn't allowed.
If you are doing header("Location: ...");, you are not allowed to echo
before it.
On 18 Dec 2004, at 11:52, Ahmed Abdel-Aliem wrote:
Dear Groups members.
i am making a user protected page, the script works excellent on my
local server, but online it gives me this error :
Warning: Cannot modify header information - headers already sent by
(output started at
/home/me2resh/public_html/apex/upload/header.html:10) in
/home/me2resh/public_html/apex/upload/upload.php on line 33
the script of the page is
<?
if (!isset($ID)){
include 'header.html';
echo "No ID is Set.<br>You Got To This Page By Mistake";
include 'footer.html';
}else{
session_start();
include 'db.php';
include 'header.html';
$username = $_POST['username'];
$password = $_POST['password'];
if((!$username) || (!$password)){
echo "Please enter ALL of the information! <br />";
include 'login_form.html';
include 'footer.html';
exit();
}
$sql = mysql_query("SELECT * FROM user WHERE User_Login='$username'
AND User_Password='$password'");
$login_check = mysql_num_rows($sql);
if($login_check > 0){
session_register('ID');
$_SESSION['ID'] = $ID;
while($row = mysql_fetch_array($sql)){
foreach( $row AS $key => $val ){
$$key = stripslashes( $val );
}
session_register('User_First_Name');
$_SESSION['User_First_Name'] = $User_First_Name;
session_register('User_Last_Name');
$_SESSION['User_Last_Name'] = $User_Last_Name;
session_register('User_ID');
$_SESSION['User_ID'] = $User_ID;
header("Location: login_success.php");
}
}else{
include 'header.html';
echo "You could not be logged in! Either the username and
password
do not match!<br />
Please try again!<br />";
include 'login_form.html';
include 'footer.html';
}
}
?>
Can anyone help me with that problem please ?
--
Ahmed Abdel-Aliem
www.ApexScript.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I don't understand why you want to include header.html before you redirect
the users to the login_success.php?
By the way, you 'd better to add mysql_escape_string() with the username and
password to ensure the security of your code. Coz we can't believe any
users' input from web. May be the sql injection with your site.
Just be careful.
Best regards,
Yang Shiqi
-----邮件原件-----
发件人: Ahmed Abdel-Aliem [mailto:[EMAIL PROTECTED]
发送时间: 2004年12月18日 18:52
收件人: [EMAIL PROTECTED]
主题: [PHP] header information problem
Dear Groups members.
i am making a user protected page, the script works excellent on my
local server, but online it gives me this error :
Warning: Cannot modify header information - headers already sent by
(output started at
/home/me2resh/public_html/apex/upload/header.html:10) in
/home/me2resh/public_html/apex/upload/upload.php on line 33
the script of the page is
<?
if (!isset($ID)){
include 'header.html';
echo "No ID is Set.<br>You Got To This Page By Mistake";
include 'footer.html';
}else{
session_start();
include 'db.php';
include 'header.html';
$username = $_POST['username'];
$password = $_POST['password'];
if((!$username) || (!$password)){
echo "Please enter ALL of the information! <br />";
include 'login_form.html';
include 'footer.html';
exit();
}
$sql = mysql_query("SELECT * FROM user WHERE User_Login='$username'
AND User_Password='$password'");
$login_check = mysql_num_rows($sql);
if($login_check > 0){
session_register('ID');
$_SESSION['ID'] = $ID;
while($row = mysql_fetch_array($sql)){
foreach( $row AS $key => $val ){
$$key = stripslashes( $val );
}
session_register('User_First_Name');
$_SESSION['User_First_Name'] = $User_First_Name;
session_register('User_Last_Name');
$_SESSION['User_Last_Name'] = $User_Last_Name;
session_register('User_ID');
$_SESSION['User_ID'] = $User_ID;
header("Location: login_success.php");
}
}else{
include 'header.html';
echo "You could not be logged in! Either the username and
password
do not match!<br />
Please try again!<br />";
include 'login_form.html';
include 'footer.html';
}
}
?>
Can anyone help me with that problem please ?
--
Ahmed Abdel-Aliem
www.ApexScript.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
And if you have some special intent, you can use ob_start().
Best regards,
Yang Shiqi
-----邮件原件-----
发件人: yangshiqi [mailto:[EMAIL PROTECTED]
发送时间: 2004年12月18日 19:36
收件人: 'Ahmed Abdel-Aliem'; '[EMAIL PROTECTED]'
主题: 答复: [PHP] header information problem
I don't understand why you want to include header.html before you redirect
the users to the login_success.php?
By the way, you 'd better to add mysql_escape_string() with the username and
password to ensure the security of your code. Coz we can't believe any
users' input from web. May be the sql injection with your site.
Just be careful.
Best regards,
Yang Shiqi
-----邮件原件-----
发件人: Ahmed Abdel-Aliem [mailto:[EMAIL PROTECTED]
发送时间: 2004年12月18日 18:52
收件人: [EMAIL PROTECTED]
主题: [PHP] header information problem
Dear Groups members.
i am making a user protected page, the script works excellent on my
local server, but online it gives me this error :
Warning: Cannot modify header information - headers already sent by
(output started at
/home/me2resh/public_html/apex/upload/header.html:10) in
/home/me2resh/public_html/apex/upload/upload.php on line 33
the script of the page is
<?
if (!isset($ID)){
include 'header.html';
echo "No ID is Set.<br>You Got To This Page By Mistake";
include 'footer.html';
}else{
session_start();
include 'db.php';
include 'header.html';
$username = $_POST['username'];
$password = $_POST['password'];
if((!$username) || (!$password)){
echo "Please enter ALL of the information! <br />";
include 'login_form.html';
include 'footer.html';
exit();
}
$sql = mysql_query("SELECT * FROM user WHERE User_Login='$username'
AND User_Password='$password'");
$login_check = mysql_num_rows($sql);
if($login_check > 0){
session_register('ID');
$_SESSION['ID'] = $ID;
while($row = mysql_fetch_array($sql)){
foreach( $row AS $key => $val ){
$$key = stripslashes( $val );
}
session_register('User_First_Name');
$_SESSION['User_First_Name'] = $User_First_Name;
session_register('User_Last_Name');
$_SESSION['User_Last_Name'] = $User_Last_Name;
session_register('User_ID');
$_SESSION['User_ID'] = $User_ID;
header("Location: login_success.php");
}
}else{
include 'header.html';
echo "You could not be logged in! Either the username and
password
do not match!<br />
Please try again!<br />";
include 'login_form.html';
include 'footer.html';
}
}
?>
Can anyone help me with that problem please ?
--
Ahmed Abdel-Aliem
www.ApexScript.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I have to setup a HTML-Form to Fax Gateway and I am looking for some way
to do this in PHP. Generally have the Fax-Modem and nothing more right now.
Does anybody have any experiancs with this?
Thanks for any help
--- End Message ---
--- Begin Message ---
On Saturday 18 December 2004 20:00, Neo Theone wrote:
> I have to setup a HTML-Form to Fax Gateway and I am looking for some way
> to do this in PHP. Generally have the Fax-Modem and nothing more right now.
> Does anybody have any experiancs with this?
hylafax
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Fry: Hey, I don't see you planning for your old age.
Bender: I got plans. I'm gonna turn my on/off switch to off.
*/
--- End Message ---
--- Begin Message ---
On Sat, 2004-12-18 at 13:00 +0100, Neo Theone wrote:
> I have to setup a HTML-Form to Fax Gateway and I am looking for some way
> to do this in PHP. Generally have the Fax-Modem and nothing more right now.
> Does anybody have any experiancs with this?
>
> Thanks for any help
>
I did something similar to this in perl a long time ago. Basically, you
can build an interface to a hylafax server and build a postscript file
with php (or other scripting language) and then call the hylafax command
with the postscript file. Actually, the interface was part of a web
interface to display the current status of hylafax, so all you really
need is the hylafax commandlines and call them with php.
-Robby
--
/***************************************
* Robby Russell | Owner.Developer.Geek
* PLANET ARGON | www.planetargon.com
* Portland, OR | [EMAIL PROTECTED]
* 503.351.4730 | blog.planetargon.com
* PHP/PostgreSQL Hosting & Development
* --- Now supporting PHP5 ---
****************************************/
--- End Message ---
--- Begin Message ---
Hello guyz, sorry my bad english, im brazilian and
i'll try to write in english...
I use actually PHP 5.02 with MySQL in my site, but now
i have to access an external server that use MS SQL
Server running at windows 2000 server edition, firtly
i tried to connect and it fails, because i don't have
activately properly MSSQL support in php.ini...
I changed the php.ini and enabled the support for
MSSQL and now i can connect without errors, BUT when
make an query to an table the query return NO MATCHES,
i have sure that the SQL line is correct (i already
used it on(or in? i don't know the difference =P)
other site - in other server - and it works AND i have
sure that the SQL should return data because the WHERE
point to an fiels value that exists...
It looks like PHP can't communicate with MSSQL but it
connect! Strange...
I need help friends, waiting for replys, hugs. Sorry
my bad english, cya.
_______________________________________________________
Yahoo! Acesso Gr�tis - Instale o discador do Yahoo! agora.
http://br.acesso.yahoo.com/ - Internet r�pida e gr�tis
--- End Message ---
--- Begin Message ---
First off i`m using windows 2000 advance server with PHP 4.3 i believe it
is.I can reboot my server and it will go away for awhile.
http://syp-triple-h.com/webpost
http://automotionsclub.com/guestbook
that is some links that will show the access violation and it is at the end
of the script.
Thank You
Mike H
--- End Message ---