Perhaps the Library of Congress??
http://www.loc.gov/z3950/
You could hack the web interface, but it would be more efficient to
query the database directly using the Z.39.50 stateful protocol: see
http://lcweb.loc.gov/z3950/gateway.html#about
and
http://www.niso.org/sta
To correct the time, try this:
";
$time = $time + (7*60*60);
echo "adjusted time = ".date("Y/m/d H:i:s",$time)."";
?>
--
Gaylen
[EMAIL PROTECTED]
Home http://www.gaylenandmargie.com/
PHP KISGB v3.22 Guest Book http://www.gaylenandmargie.com/phpwebsite/
"Torkil Johnsen" <[EMAIL PROTECTED]> wrote
I'm think I'm going to start forwarding all the bugtraq alerts for PHP
scripts to this list. Any objections?
-- Forwarded Message --
Subject: PhpSmsSend remote execute commands bug
Date: Tue, 29 Jan 2002 18:57:51 + (GMT)
From: Indra Kusuma <[EMAIL PROTECTED]>
To: <[EMAIL
> I'm think I'm going to start forwarding all the bugtraq
> alerts for PHP scripts to this list. Any objections?
Yes, if the author of the script isn't on the list it's useless
unless someone wants to patch their script themselves. And if
they're the kind of person who's inclined to do that, the
Hi,
I am looking at getting users to input their details to be stored in mysql,
I would then like them to have to login to get access to certain functions
when they come back.
Does anyone have a good idea on how to do this,
is the best / only way to do this sessions ?
This must be quite secure
Definitely use session! :)
My two bits worth
Rick
"If you're going to be able to look back on something and laugh about it,
you might as well laugh about it now." - Marie Osmond
> From: "Matthew Darcy" <[EMAIL PROTECTED]>
> Reply-To: <[EMAIL PROTECTED]>
> Date: Wed, 30 Jan 2002 01:27:42 -
I agree, but it may be usefull to tell those newbies that when you
execute a command from PHP that will get some parameters from an external
source (like a form or a get variable) ALWAYS use the
escapeshellcmd()
function to prevent users from executing arbitrary commands.
bvr.
>There's such a
Good point, but I actually reccomend newbies subscribe to bugtraq. It really
opened my eyes to the world of cross-site scripting. Now I not only know how,
but do, write secure code.
If I saw a warning about a script either here or on bugtraq, I would
immediatly patch it- or at least shut down
In article <007601c1a91f$ea9ecac0$6401a8c0@kevin>,
[EMAIL PROTECTED] (Kevin Stone) wrote:
> I don't know why I didn't think of this ahead of time but in order to
> produce the HTML-based ePostcard email I have to get the evaluated
> template into a string.
>
> I can fopen() the template file an
yes, there is a way out, you can use readfile().
capture the output using ob_*() functions and then parse/eval that string
listed here are the functions you'll need.
http://www.php.net/manual/en/function.readfile.php
http://www.php.net/manual/en/function.ob-start.php
http://www.php.net/manual/en/
From: "Steve Edberg" <[EMAIL PROTECTED]>
> Perhaps the Library of Congress??
>
> http://www.loc.gov/z3950/
>
> You could hack the web interface, but it would be more efficient
to
> query the database directly using the Z.39.50 stateful protocol:
see
>
> http://lcweb.loc.gov/z3950/gateway.html#abo
How can I send a simple file as attachment using the mail function ?
Can anyone give me a simple example ?
Thanks
Rafael Perazzo
_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
PHP General Mailin
Hello ,
I am trying to connect mysql using php script like this
$link= mysql_connect('$servername','$username','$password');
but it is giving Fatal error call to undefined function mysql_connect()
I have checked wheather php is installed properly by using this
phpinfo();
Everything is o
On Tue, 29 Jan 2002 12:11:02 +0800, you wrote:
>On Tuesday 29 January 2002 06:36, Floyd Baker wrote:
>
>> Yes I have a c:\tmp directory and I see the session being created in
>> it. And the page_view value of 1 after the first increment. The
>> editor wants to reload each time I hit the submit
you must make sure that the version of PHP that is being used was built with
mysql support and/or that the drivers are being loaded for mysql.
Jim Lucas
- Original Message -
From: "Uma Shankari T." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 29, 2002 6:24 PM
Subjec
If this is a Sorce install you may need to recompile with MySQL support.
-=>Adam<=-
Quoting "Uma Shankari T." <[EMAIL PROTECTED]>:
>
> Hello ,
>
> I am trying to connect mysql using php script like this
>
> $link= mysql_connect('$servername','$username','$password');
>
> but it is givin
There are many Auth packages already writen. If you need a sample peice of code
E-mail me I use a small script that I wrote that does MySQL and Oracle, system
level auth if this will help you out I will E-mail you the scrip and schema let
me know.
-=>Adam<=-
Quoting Matthew Darcy <[EMAIL PROT
Hello,
How do i recompile with mysql support
-Uma
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
./configure --with-mysql ... other things to configure in ... This will use
PHP's built in mysql support that is all you should need.
then do a make, make install blah...
-=>Adam<=-
Quoting "Uma Shankari T." <[EMAIL PROTECTED]>:
>
>
> Hello,
>
> How do i recompile with mysql support
>
./configure --with-mysql...
which is build-in with PHP 4.0.* I think.
Frederic Trudeau
[A]dvanced [S]upport [A]gent
Colocation/Customer Support Agent
CAM Internet -> http://www.cam.org
"My God ! It's full of stars"
On Wed, 30 Jan 2002, Uma Shankari T. wrote:
>
>
> Hello,
>
> How do i
Hello,
Already i am having so many details in my mysql database.If i do this it
won't affect the previous one..
-Uma
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list admi
If you recompile that will no effect any of the data in your DB if that is what
you mean?
-=>Adam<=-
Quoting "Uma Shankari T." <[EMAIL PROTECTED]>:
>
>
> Hello,
>
> Already i am having so many details in my mysql database.If i do this it
> won't affect the previous one..
>
>
> -Uma
Let's say I have two fields TNum and AU.
TNum is a BritishAmericanCanadian
AU name of an author. I want to sort them as follows.
British
Shakespeare
American
Joyce
Samuels
Twain
Canadian
Majors
--
$news = mysql_query("select * from bookmarks ORDER by TNum,AU asc");
$old_TNum = "";
while ($mydata = mysql_fetch_object($news))
{
if ($old_TNum != $mydata->TNum) #when TNum occurs the first time, echo
it once only.
Is there anyway that I can change a string with lettle letters to caps?
Philip J. Newman
Philip's Domain - Internet Project.
http://www.philipsdomain.com/
[EMAIL PROTECTED]
Phone: +64 25 6144012
Okay, I'm trying to read in a form with " and ' in it. The problem is that
PHP automatically changes these to \" and \' without asking :( If I read in
a file with " or ' in, it's fine and outputting to the screen is no problem.
It's only when I read in from a form that a problem appears. All I wan
strtoupper()
-Original Message-
From: Philip J. Newman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 2:12 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Change Text to CAPS.
Is there anyway that I can change a string with lettle letters to caps?
Philip J. Newman
Philip's Domain
strtoupper($string)
Voila ! =)
Frederic Trudeau
[A]dvanced [S]upport [A]gent
Colocation/Customer Support Agent
CAM Internet -> http://www.cam.org
"My God ! It's full of stars"
On Wed, 30 Jan 2002, Philip J. Newman wrote:
> Is there anyway that I can change a string with lettle letters to
Couldn't do it fast than that :o) !
Thanks,
J
Martin Towell wrote:
> --
> $news = mysql_query("select * from bookmarks ORDER by TNum,AU asc");
> $old_TNum = "";
> while ($mydata = mysql_fetch_object($news))
> {
> if (
there's a directive in the php.ini file, something like "magic_quotes" or
something (too lazy to look...), set that to 0 (zero) or use stripslashes()
(this might have an underscore in the name, again too lazy to check) on the
vars
Martin
-Original Message-
From: Jon [mailto:[EMAIL PROTEC
$news = mysql_query("select * from bookmarks ORDER by TNum,AU asc");
$old_TNum = "";
while ($mydata = mysql_fetch_object($news))
{
$new_TNum = $mydata->TNum;
if ($new_TNum != $old_TNum) #when TNum occurs the first time, echo it once
only.
{
$old_TNum = $new_TNum;
$body .= "".$temp.":
On Wednesday 30 January 2002 05:32, will hives wrote:
Please do not use HTML mail, thanks!
> I have produced an admin area which allows users to add, edit and delete
> stories plus images. Everything has gone great, thanks to all of you who
> answered previous postings.
>
> Just stuck on the ver
Martin,
Are you guys getting yours by email or monitoring a newsgroup reader?
John
Works wonderfully:)
http://DELETETHISccl.flsh.usherb.ca/bookmarks/DELETETHIS
Martin Towell wrote:
> --
> $news = mysql_query("select * from book
Through email - Y?
-Original Message-
From: jtjohnston [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 2:23 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Martin: [PHP] How? :)
Martin,
Are you guys getting yours by email or monitoring a newsgroup reader?
John
Works wonderfully:)
I'm processing a form but all the functions I've found on the web only seem
to add the after the \n. I need to remove the \n altogether - anyone
know how I can kill the \n and put a in it's place?
Cheers,
Jon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMA
> I'm processing a form but all the functions I've found on the
> web only seem to add the after the \n. I need to remove the
> \n altogether - anyone know how I can kill the \n and put a
> in it's place?
Sounds like you want a simple ereg_replace("\n", "", $sourcestring);
Jason
--
PHP Ge
Isn't there a function br2nl() and it's relative nl2br() ??
-Original Message-
From: Jason Murray [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 3:14 PM
To: 'Jon'; [EMAIL PROTECTED]
Subject: RE: [PHP] Swapping for \n... ?
> I'm processing a form but all the functions I've
Or an even simpler str_replace("\n", "", $sourcestring);
-Original Message-
From: Jason Murray [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 15:14
To: 'Jon'; [EMAIL PROTECTED]
Subject: RE: [PHP] Swapping for \n... ?
> I'm processing a form but all the functions I've foun
> Isn't there a function br2nl() and it's relative nl2br() ??
There's nl2br, but I don't believe there's one that goes the other way.
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the
On Tue, 2002-01-29 at 20:19, Douglas Maclaine-cross wrote:
> Or an even simpler str_replace("\n", "", $sourcestring);
Which will also be much faster than the ereg_replace(), to boot.
Cheers,
Torben
> -Original Message-
> From: Jason Murray [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday,
On this page at php.net http://www.php.net/manual/en/function.nl2br.php#
You will find a function by [EMAIL PROTECTED] which is a great
implimentation of replacing the /n in a line. I would suggest you take a look.
Gerard
At 03:19 PM 1/30/2002 +1100, Jason Murray wrote:
> > Isn't there a
Class to send a file as an attachment with the php mail() function.
http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1583
Sincerely
berber
Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.
-Original Message-
From: Rafael Perazzo B Mota [ma
Nevermind, I found some code at last which actually works :
$txt = preg_replace("/(\015\012)|(\015)|(\012)/","",$txt);
"Jon" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm processing a form but all the functions I've found on the web only
seem
> to add th
Why not simply look the ISBN up in one of the big online shops and take
the data from there?
Amazon? B&N?
It all depends on what you will do with the data I guess...
Sincerely
berber
Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.
-Original Message-
For a Win32 based solution check out : http://www.infacta.com/
I'm extremely happy with this software, what it can do and the price.
Sincerely
berber
Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.
-Original Message-
From: Mostafa Al-Mallawani [mailt
That regex is equivilent to: "/(\r\n)|(\r)|(\n)/",
you don't need to use the numeric values.
> -Original Message-
> From: Jon [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 29, 2002 11:22 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Swapping for \n... ?
>
>
> Nevermind, I found
Using JavaScript to show an OK/Cancel confirmation window
http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1364
Sincerely
berber
Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.
-Original Message-
From: Lerp [mailto:[EMAIL PROTECTED]]
Sen
Hello,
Boaz Yahav wrote:
>
> For a Win32 based solution check out : http://www.infacta.com/
>
> I'm extremely happy with this software, what it can do and the price.
This looks like a spammer tool that was not meant to use with live
databases of Web sites.
Is it able to automatically extract
Dear Adam,
Are you using 'realm' authentication setup?
with regards
Sukumar .S
On Tue, 29 Jan 2002, Adam wrote:
> Date: Tue, 29 Jan 2002 14:47:42 -0600
> From: Adam <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [PHP] Help! (How are sessions intended to work?)
>
> My Setup Specs
>
Does anyone know of any conflicts or problems? I am installing it and went
to the conf file and changed the setting to localhost. But it says that
there is an Error 1067. Any help would be greatly appreciated.
Thanks,
Ben
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-
Why, oh WHY doesnt this work.
I get the error:
Fatal error: Call to a member function on a non-object in
c:\home\digerati\www\classtest.php3 on line 23
If I try to make any assignments, anywhere, it dies. What the HELL is
going on? Obviously I must be missing something really obvious, I
dunno if this'll help, but try changing these two lines
$this->$obj = new test1;
$test = new test2;
to these
$this->$obj = &new test1;
$test = &new test2;
see if that helps - other than that - anyone else?
-Original Message-
From: Aric Caley [mailto:[EMAIL PROTECTED]]
Sent: Wednesday,
On Tue, 2002-01-29 at 07:25, Aric Caley wrote:
> Why, oh WHY doesnt this work.
No panic, it's just a typo. :)
> I get the error:
>
> Fatal error: Call to a member function on a non-object in
> c:\home\digerati\www\classtest.php3 on line 23
>
> If I try to make any assignments, anywhere,
* Ben Clumeck ([EMAIL PROTECTED]) [Jan 30. 2002 01:05]:
> Does anyone know of any conflicts or problems? I am installing it
> and went to the conf file and changed the setting to localhost.
> But it says that there is an Error 1067. Any help would be greatly
> appreciated.
Go into your Apache in
Set this:
magic_quotes_gpc=0
in your php.ini
or use stripslashes on all your data.
-Jason Garber
IonZOft.com
At 02:58 AM 1/30/2002 +, Jon wrote:
>Okay, I'm trying to read in a form with " and ' in it. The problem is that
>PHP automatically changes these to \" and \' without asking :( If I
"Jon" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Nevermind, I found some code at last which actually works :
>
> $txt = preg_replace("/(\015\012)|(\015)|(\012)/","",$txt);
>
rather than using a regular expression, try:
$txt = strtr($txt, array("\r\n" =>
Thank you very much Arve.
Ivo
"Arve Bersvendsen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Ivo Stoykov wrote in [EMAIL PROTECTED]:">news:[EMAIL PROTECTED]:
>
> > Hello again
> >
> > earlier today I asked about detecting whether javascript is
> > enabled
101 - 157 of 157 matches
Mail list logo