$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
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 Slac
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() retur
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
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
N
>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
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)
Fwiw, a solution from another project:
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
>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 ren
>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 ren
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 wo
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
T
HTML:
JS:
Function DoThis(){
frmMain.method = "POST";
frmMain.action = "admin.php";
frmMain.submit();
}
Where frmMain is the name for the FORM:
Read all about it in: http://www.oreilly.com/catalog/jscript4/
Bryan
-Original Message-
From: Greg [mailto:[EMAIL PR
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:
ot;) or
die("Could not connect: " . mysql_error());
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]>
S
Create a user with appropriate privledges for the database. DO NOT use
root.
You did not mention where the $nombre, $direccion, $telefono, or $email
variables are being initialized.
To capture the values from a form use $_POST['name'] where name is the
name of the field on the form.
HTH
-
RTM: http://www.php.net/manual/en/ref.session.php
Tutorial: http://www.zend.com/zend/tut/session.php
-Original Message-
From: php [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 4:40 PM
To: [EMAIL PROTECTED]
Subject: [PHP] no session id
this code doesn't ouput a session-
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 [mailto:[EMAIL
I ran into a weird curiosity playing with sessions.
Consider this working code:
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 my internal network
this is the result:
Session ID == PHPSESSID
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
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 Que
>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
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
The problem
is the " from the text is closing the " from the
html.
>
> --- 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
> >
> >
> >
> >
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
>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: http://www.php.
io')";
There is no need for the \n in the SQL call.
-Original Message-
From: Luis A [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 8:49 PM
To: [EMAIL PROTECTED]
Subject: [PHP] TO Bryan LipscyRe: [PHP] i got a problem
HE show me this
INSERT INTO agenda (nombre, direc
Try: header("Cache-control: private");
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
T
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,
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 th
:[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
33 matches
Mail list logo