[PHP] Socket error connecting to mySQL

2003-02-03 Thread Bryan Lipscy
$db= @mysql_pconnect ( $DB_HOST , $DB_USER , $DB_PASS ); @mysql_select_db ( $DB_DB ) or die ( DATABASE ERROR!.mysql_error() ); Returns DATABASE ERROR!Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) MySQL server exists on a Win2ksp3 box. Apache with PHP 4.3.0 exists on a

RE: [PHP] Opinion on a method....

2003-04-04 Thread Bryan Lipscy
Put the connect info into a php file (i.e. connect.php). If it is ever directly accessed by the client the PHP engine will render a blank page. If your ini file is ever accessed by the client it will render the contents of the ini file. Wonder if removing rwx would adversly affect includes to

RE: [PHP] Opinion on a method....

2003-04-04 Thread Bryan Lipscy
:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 11:18 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Opinion on a method Ahh, good thought. I also have it outside the web site directory tree. -Dan Joseph -Original Message- From: Bryan Lipscy [mailto:[EMAIL PROTECTED] Sent: Friday

RE: [PHP] [SOLVED] Socket error connecting to mySQL

2003-02-04 Thread Bryan Lipscy
Thank you everyone for your help. The cause of this problem was the user account was set up for localhost rather then the server. What threw me was the /tmp/mysql.sock part of the error when MySQL is installed on a Windows box. I was looking for something wrong in the PHP script or on the

RE: [PHP] empty and isset

2003-02-05 Thread Bryan Lipscy
Env: Slackware 8.1, Apache 1.3.27, PHP 4.3.0 Bugs: None found for these issues. I am running to this same problem. The isset() function appears to have problems with the empty text value. The empty() function sees the value of $_POST['q1'] as expected. So why is both isset() and empty()

RE: [PHP] empty and isset

2003-02-05 Thread Bryan Lipscy
Belay that one. I figured it out. My err. I will shut up and go back to lurk mode. So sorry, please don't flog me. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Learning PHP

2003-02-12 Thread Bryan Lipscy
You may want to wait a few days on this book. The 2nd edition is due out tomorrow. Search on 0-672-32525-X -Original Message- From: Brent Baisley [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 12, 2003 9:19 AM To: Greg Luce Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Learning PHP

RE: [PHP] cookie problem....

2003-02-13 Thread Bryan Lipscy
From your code snip it looks like you are missing ? after the if contruct. Bryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] problems with cookies and PHP

2003-02-13 Thread Bryan Lipscy
I have been playing with this at home. Perhaps this makes it a bit easier. boolean setcookie ( string name [, string value [, int expire [, string path [, string domain [, int secure]) boolean setcookie (name, value, expire, path, domain, secure) ?php

RE: [PHP] What happened to phpEdit???

2003-02-16 Thread Bryan Lipscy
Did you check google? http://ozu.arecom-sa.com/~marms/phpedit.net/ -Original Message- From: Al [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 8:39 AM To: [EMAIL PROTECTED] Subject: [PHP] What happened to phpEdit??? Their site no longer responds. Surely, we haven't lost one

RE: [PHP] Protecting files

2003-02-17 Thread Bryan Lipscy
How can I protect my php files among other files like templates (.inc) and mysql config (config.inc) files being copied/read/imported (front page)/used by other applications other than my site... can this be done by htaccess? is so , could anyone point me into right direction? I have renamed

RE: [PHP] Protecting files

2003-02-17 Thread Bryan Lipscy
How can I protect my php files among other files like templates (.inc) and mysql config (config.inc) files being copied/read/imported (front page)/used by other applications other than my site... can this be done by htaccess? is so , could anyone point me into right direction? I have renamed

RE: [PHP] Protecting files

2003-02-17 Thread Bryan Lipscy
That is called Cross-Site Scripting (XSS). I have not been able to get access to the variables via an XSS exploit. It appears that Apache renders the php code before sending off the requesting include function. I also like the .htaccess way of preventing user access to the scripts. This is also

RE: [PHP] mysql select and date functions

2003-02-18 Thread Bryan Lipscy
Change your query: select dayofmonth(Posted) as DOM_Posted, month(Posted) as M_Posted, year(Posted)as Y_Posted, hour(Posted) as HH_Posted, minute(Posted) as MM_Posted, Name, Prayer from prayer

RE: [PHP] Re: Submit buttons

2003-02-25 Thread Bryan Lipscy
HTML: input type=button value=Text Displayed name=ButtonName onclick=DoThis() JS: Function DoThis(){ frmMain.method = POST; frmMain.action = admin.php; frmMain.submit(); } Where frmMain is the name for the FORM: form name=frmMain Read all about it in:

RE: [PHP] how___??

2003-02-25 Thread Bryan Lipscy
RTM first please: http://www.php.net/manual/en/function.mysql-connect.php $link = mysql_connect(localhost, mysql_user, mysql_password) or die(Could not connect: . mysql_error()); Replace localhost with the hostname of your mysql server. -Original Message- From: Luis A [mailto:[EMAIL

RE: [PHP] how___??

2003-02-25 Thread Bryan Lipscy
()); how is that ??? do i have to put the same function ? or is diferent? - Original Message - From: Bryan Lipscy [EMAIL PROTECTED] To: 'Luis A' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 4:57 PM Subject: RE: [PHP] how___?? RTM first please: http://www.php.net

RE: [PHP] mysql trouble

2003-02-25 Thread Bryan Lipscy
Create a user with appropriate privledges for the database. DO NOT use root. ?php $DB_HOST = localhost; $DB_USER = root; // Do not do this. Make a different user. $DB_PASS = ; $DB_DB = mydb; // connect to the database server $db=

RE: [PHP] no session id

2003-02-25 Thread Bryan Lipscy
RTM: http://www.php.net/manual/en/ref.session.php Tutorial: http://www.zend.com/zend/tut/session.php ? session_start(); echo Session ID == .SID; ? -Original Message- From: php [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 4:40 PM To: [EMAIL PROTECTED]

RE: [PHP] Include files

2003-02-25 Thread Bryan Lipscy
Funny thing about online manuals. include() http://www.php.net/manual/en/function.include.php include_once() http://www.php.net/manual/en/function.include-once.php Please read: http://www.catb.org/~esr/faqs/smart-questions.html -Original Message- From: Kenneth Suralta

[PHP] Session SID curio

2003-02-25 Thread Bryan Lipscy
I ran into a weird curiosity playing with sessions. Consider this working code: ? session_start(); echo Session ID == .SID; ? If I access http://hostname/sess.php from my internal network this is the result: Session ID == If I access http://www.domainname.net/sess.php from

RE: [PHP] testing for 0

2003-02-28 Thread Bryan Lipscy
See isset() and empty() -Original Message- From: Steve Buehler [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 10:29 AM To: PHP Subject: [PHP] testing for 0 I have a form that has input for minutes. My problem is that I am trying to test to see if the field is blank or not

RE: [PHP] MySQL Query Result Question

2003-02-28 Thread Bryan Lipscy
Shouldn't that be: while($data=mysql_fetch_array($result)) { //SSLT } NOTE: Added ) and changes $query to $result -Original Message- From: Van Andel, Robbert [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 3:21 PM To: [EMAIL PROTECTED] Subject: [PHP] MySQL Query Result

RE: [PHP] Re: Browser Sniffing

2003-03-04 Thread Bryan Lipscy
What's e.g. mean? Latin: exempli gratia Translated: for example i.e. Latin: id est Translated: that is -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Maintain and ' in html textfields

2003-03-04 Thread Bryan Lipscy
Look up magic quotes in the docs. http://www.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc The docs are mmm mmm good. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Maintain and ' in html textfields - REPLY

2003-03-04 Thread Bryan Lipscy
. --- Bryan Lipscy [EMAIL PROTECTED] wrote: Look up magic quotes in the docs. http://www.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc The docs are mmm mmm good. __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators

RE: [PHP] i got a problem

2003-03-05 Thread Bryan Lipscy
Try echo $sql; To check your sql before execution. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] session data

2003-03-05 Thread Bryan Lipscy
Is the number by second, minutes, etc? session.gc_maxlifetime specifies the number of seconds after which data will be seen as 'garbage' and cleaned up. http://www.php.net/manual/en/ref.session.php Bryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] TO Bryan LipscyRe: [PHP] i got a problem

2003-03-05 Thread Bryan Lipscy
this INSERT INTO agenda (nombre, direccion, telefono, email, pais, comentario) VALUES ('','','','','','')¡THANKS! WE HAVE RECEIVED YOUR DATA. i think he does not asimilate the $ on the variable VALUES (' $DATA,' ) - Original Message - From: Bryan Lipscy [EMAIL PROTECTED] To: 'Luis A' [EMAIL

RE: [PHP] Tryng To Prevent Caching on IE 5-6.0

2003-03-07 Thread Bryan Lipscy
Try: header(Cache-control: private); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Stupid question perhaps?

2003-03-27 Thread Bryan Lipscy
Anything in the apache error_log? -Original Message- From: Tom Tsongas [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 10:58 AM To: [EMAIL PROTECTED] Subject: [PHP] Stupid question perhaps? I just recently upgraded to PHP 4.3.1 and Apache 2.0.44. I had been previously running

RE: [PHP] Is there a PHP for Dummies?

2003-03-28 Thread Bryan Lipscy
Use the Zend Beauford. http://www.zend.com For beginners: http://www.zend.com/interest/beginners.php Using Google: http://www.phpbuilder.com/manual/function.get-magic-quotes-gpc.php -Original Message- From: Beauford.2002 [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 1:54 PM

RE: [PHP] Is there a PHP for Dummies?

2003-03-28 Thread Bryan Lipscy
Yes, an excellent book. -Original Message- From: Kenn Murrah [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 2:14 PM To: Mike; [EMAIL PROTECTED] Subject: Re: [PHP] Is there a PHP for Dummies? oh, and that reminds me ... another O'Reilly title, PHP Cookbook is REALLY helpful if,