So, I've noticed that most of you talk about PHP/MySQL almost exclusively.
Does anyone use PHP and PostgreSQL? What are the advantages of MySQL over
PostgreSQL, other than it's easier to pronounce...
Thanks,
Brent
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
check http://www.php.net/manual/en/function.nl2br.php
you could also do a regex, searching for \n, and adding a to it...adding
the would make it a little more difficult...
-jack
-Original Message-
From: Romulo Roberto Pereira [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 1:09 P
I want the script I'm doing to redirect all the output to a filename and
that it gets downloaded.
In other words... When someone presses the submit button I want the download
screen to show with the filename I declared so the user can save the output
from the script.
something like this:
- ther
Hello!
If a user drop a text like this in a textarea:
---
the U.S. Army's 3rd Infantry Division, 15th Regiment, A Company, seized a
44-car train in a tunnel 60 miles south of Salzburg, Austria. It contained
an incalculable fortune in fine art, bullion, jewelry, furs, coins, stamp
collections, ca
I have been using Abriasoft's products. You just plop in the CD and it
installs PHP, MySQL, Apache, Perl6, Perl DBI, and some other stuff on your
linux (or other os) box. All software also available for free by download.
http://www.abriasoft.com
At 05:12 AM 5/19/02 -0700, you wrote:
>Hello a
In article <478EB6C82CC2D4119AF300B0D07963F4087721@NTSERVER01>,
[EMAIL PROTECTED] (Sam) wrote:
> But, it appears that the users type in a lot of character returns as well as
> such symbols as " and commas.
>
> Is there a way, when creating the text file, to get rid of all these?
Many ways. So
Are you *absolutely sure* that mysql_result($db_result, $dbrecord, 'date')
contains a UNIX timestamp? IOW, if I inserted the lines:
$unixdate = mysql_result($db_result,$db_record,'date');
echo $unixdate;
I would see something like "989393400" on the screen?
(Speaking from experience, I got this
Hi all,
I have a website which allows users to send comments, these are saved into a
mySQL DB.
I then use php to create a text file with all these on, that can then be
easily imported into MS Access.
But, it appears that the users type in a lot of character returns as well as
such symbols as " a
Here is what I am trying to do, but I get the wrong date:
$t_data_array[1]=date("m/d/y",mysql_result($db_result,$db_record,'date'));
Then I simply print the value in the arraythis date instead of 05/08/01 comes
out 12/31/69
Thanks!
Jon Haworth wrote:
> I think the best way to handle
It didn't work at all.
It started a download, but with a filename called myscriptfilename.html
and with the contents of the html (in this case the form) being shown and
not the output.
I want to set these headers, and then do regular echo statements to this
newly created downloading file.
>Hi,
I think the best way to handle this is not to care what it looks like in the
database. Store your dates as UNIX timestamps, and then they are easy to do
calculations on and/or convert to any date format you like for displaying in
your pages.
Read up on date() and mktime() for more info (there are
On Tue, May 08, 2001 at 09:26:22AM -0700, Ryan Christensen wrote:
> I think he's referring to the comment below.. ;)
> > -Original Message-
> > From: Jon Haworth [mailto:[EMAIL PROTECTED]]
> > But he IS the webmaster
> > > Christian Reiniger
> > > LGDC Webmaster (http://sunsite
On Tuesday 08 May 2001 18:13, [EMAIL PROTECTED] wrote:
> > Christian Reiniger
> > LGDC Webmaster (http://sunsite.dk/lgdc/)
> >
> > What luck for the rulers that men do not think.
> >
> > - Adolf Hitler
>
> Could you please remove that signature. Thanks.
Here's another quote (paraphrased):
"Those
OK I have read many examples, old posts etc, but I am looking for a
detailed explanation as to how to do this.
First is when I write to a mysql database using the now() function, the
time stamp looks like so when I display the time back to the browser.
204:24:06 ( This should have been 12:24pm
Happiness is a warm gun.
- John Lennon
>
> What luck for the rulers that men do not think.
>
> - Adolf Hitler
Could you please remove that signature. Thanks.
-Egon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
actually a nested foreach() is probably better. Use it in a function that
calls itself recursively for all elements that are arrays and adds to the
count for all that aren't.
I posted a function that does this a little while ago, don't think I've got
it anymore but the idea is fairly straightforw
I think he's referring to the comment below.. ;)
Ryan Christensen
OlyPen Technical Support
[EMAIL PROTECTED]
360.457.3000
800.303.8696
> -Original Message-
> From: Jon Haworth [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 08, 2001 9:17 AM
> To: '[EMAI
But he IS the webmaster
Cheers
Jon
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 08 May 2001 17:14
To: [EMAIL PROTECTED]; Kelly Meeks; '[EMAIL PROTECTED]'
Subject: Re: [PHP] OT question..
On Tue, May 08, 2001 at 06:10:18PM +0200, Christian Reiniger wr
I am looking for a tool (preferably database driven, written in php) that will allow
me to do IP address management of IP subnets on our network. The best I could find was
a project called IPfree on Sourceforge, but nothing is happening over there. I am
considering writing my own, but do not wa
On Tue, May 08, 2001 at 06:10:18PM +0200, Christian Reiniger wrote:
> On Tuesday 08 May 2001 16:40, Kelly Meeks wrote:
> Christian Reiniger
> LGDC Webmaster (http://sunsite.dk/lgdc/)
>
> What luck for the rulers that men do not think.
>
> - Adolf Hitler
Could you please remove that signature.
On Tuesday 08 May 2001 16:40, Kelly Meeks wrote:
> Hey folks,
>
> What language is associated with a web page with a .epl extension?
Could be embedded perl (Perl embedded in HTML woughly the way PHP is)
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
What luck for the rulers tha
> I would like to be able to display the refering domain name on the page
> along with a small text message (under construction) etc, to save me
having
> to create sites for each domain.
Under Apache and with an HTTP/1.1 client, $HTTP_SERVER_VARS["HTTP_HOST"]
contains the value you're looking fo
Just make sure that there is no way a script can exit without calling
'page_close()' so that the data makes it to your container.
Was written:
>When using session_start () over alot of pages, do i need to reregister the origional
>>session?
>example:
>
>page1:session_start();
> sessio
Hi,
Wieger
Christian Dechery wrote:
>
> How do I force an output to be recognized by the browser by a downloadable
> text file as soon as I press the submit button?
>
> what header(*) stuff should I add before echo-ing stuff?
>
> thanks
>
> . [ Christian Dechery ]
> . Webdeveloper @
Well, what can I say??? Magic windows
Reboot the system or post a message and it works!
johannes
""Johannes Janson"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
9d93c3$7d8$[EMAIL PROTECTED]">news:9d93c3$7d8$[EMAIL PROTECTED]...
> Hi,
>
> I just don't get it...I have a form where the user ent
How do I force an output to be recognized by the browser by a downloadable
text file as soon as I press the submit button?
what header(*) stuff should I add before echo-ing stuff?
thanks
. [ Christian Dechery ]
. Webdeveloper @ Tá Na Mesa!
. Listmaster @ Gaita-L
. http://www.tanamesa.com.
Hi all,
Reading the title of this message you might think this is an easy one to
answer, but it isnt as straight forward as it might first seem.
I have a number of domain names that are set up on my dns server but they
have no site associated with them so any visitors to these domains just end
u
> i think the proplem is, that within the included file there are other
> files included (and so on...).
> Error Message:
> Warning: Failed opening 'inc/var_general.inc.php3' for inclusion
> (include_path='') in /opt/...
i think you gave the answer yourself.
you need to use the full path to the i
exactly! this way (http...) it does not work!
I tried it a few times!
it is on the same server. so i did it with the /home/.. -path. but this
also does not work properly.
i think the proplem is, that within the included file there are other
files included (and so on...).
Error Message:
Warning: Fa
Yeah, that's what I wanted to avoid, though. These scripts have to be able
to run on both NT and Unix boxes. I guess I'll just have to change the
other code to use gzip instead of regular zip.
"Tom Carter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Tu
Hi,
I just don't get it...I have a form where the user enters name, surname
and a personal code. The action page checks for correct input which
is only letters for the two names and only numbers for the code.
If there is a wrong input in one of the fields a variable is set
which is then (amongst
At 08.05.01 16:34, you wrote:
>I want to changes 49.4 ---> 49,4
> 49,4 > 49,40
Try this
";
?>
Oliver
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To cont
Try number_format() http://www.php.net/manual/en/function.number-format.php
Kirk
> -Original Message-
> From: Ramiro Radjiman [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 08, 2001 8:35 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] money print out with two digits after , e.g. 49,00
>
>
Tuesday, May 08, 2001, 10:34:51 AM, Ramiro Radjiman wrote:
RR> I want to changes 49.4 ---> 49,4
RR> 49,4 > 49,40
RR> the first rule is done with the code
RR> $totaal=49.4;
RR> $totaal=str_replace(".",",",$totaal);
RR> how can i do the second row??
RR
Hello,
I create an auth system using NDS as a LDAP server. Works fine. The problem
is with the session handling (from my part probabilly)...
I am using the PHP session functions. Again, works fine. register the
sessions, the variables. But I am beeing unable to destroy the session. To
destroy th
At 08.05.01 15:14, you wrote:
>I have compiled PHP with this options,
>
>./configure --with-zlib=/usr/local/src/zlib --with-png=/usr/local/src/libpng
> --with-gd=/usr/local/src/gd --with-pgsql=/usr/local/pgsql --with-apache=../
>apache --enable-track-vars
mmh - sounds good, did you test the php
On Tue, 8 May 2001, E. Stuart Hicks wrote:
> I see that there is support for bzip2 and gzip in PHP, so I was wondering if
> there was any standard zip support that I'm not seeing.
>
I looked and couldn't find any. The best I could find to be able to zip
unzip files was to save them on the server
I see that there is support for bzip2 and gzip in PHP, so I was wondering if
there was any standard zip support that I'm not seeing.
Stuart Hicks
Senior Programmer / Systems Administrator
The Affinity Group
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTE
Hey folks,
What language is associated with a web page with a .epl extension?
Thanks
Kelly
--
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 PROTECTE
bug reports number 10726 and 10729!
Hi there!
Im trying to post XML data to the chi-bin php script,
that shold parse that data and deal with it tags!
So php catch all my stdin before!
and I cant reach my XML!
if I do fopen("php://stdin", "r") I'll read nothing!!!
because of php did it before!
w
Hi,
I think the webserver on the remote machine parses the PHP-file. You can
see this happen if you type in the url youre trying to include in your
browser. No php code there, just html
I dont think what youre trying to do is possible. If it were youd have
one hell of a security hole on your web
I want to changes 49.4 ---> 49,4
49,4 > 49,40
the first rule is done with the code
$totaal=49.4;
$totaal=str_replace(".",",",$totaal);
how can i do the second row??
please help.
greets Ramiro
--
PHP General Mailing List (http://www.php.net/)
To
>
> include("http://www.somehost.ext/path/to/include/include.php";);
i don't think that is a goob idea...
if it works ( what i'm not sure ) you would get the complete output of
the file,
BUT in that remote file you would miss the parameters,etc from the
calling script.
is it is on the same serve
Manisha wrote:
>
> Hi all,
>
> I am trying using PHP with Flash Generator.
>
> The designer has given me a Flash file created using Macromedia's Flash
> Generator 2.
>
Do you have a template (.swt) or a generated file (.swf) ?
> The platform is BSDi / Lang - PHP / Database - MySQL.
>
> I
I tried the exact same thing. I have a whole slew of the classes that have
been developed and wanted to centrally locate them on one server. But every
time I included the class, it said cannot instantiate non-existent class
"Blah Blah Blah". But when I copied over the file, it worked like a cha
At 15:40 8-5-2001 +0200, Dominic Brander wrote:
>Hi
>I'm trying to include some php3 files via http.
>one part of the php files is on a regular server and the other part is
>on an secure server.
>Instead of duplicating all the files for both servers I would like to
>include them via http.
>How doe
I don't think you can unless you use PHP's COM support and then use ADO's
next recordset feature.
Regards, John
""James Crowley"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
> I've written a recursive stored procedure in MS SQL, which returns a
number
On Tuesday 08 May 2001 13:55, Alexander Bierbrauer wrote:
> Hi people,
>
> is there a way to check a string, which is passed by a form via GET,for
> html tags??
> Does anyone know some code or anything else??
strip_tags()
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
What luck
Hi
I'm trying to include some php3 files via http.
one part of the php files is on a regular server and the other part is
on an secure server.
Instead of duplicating all the files for both servers I would like to
include them via http.
How does it work?
thanx
domnic
--
PHP General Mailing List
On Tue, May 08, 2001 at 07:58:55AM +0800, Daniel wrote:
> I'm just starting PHP and am looking for some books that you'd all
> recommend. I've used quite a few of the SAMS books before and have found
> them to be really good, i also have access to The PHP Dictionary which i've
> also found to
I have compiled PHP with this options,
./configure --with-zlib=/usr/local/src/zlib --with-png=/usr/local/src/libpng
--with-gd=/usr/local/src/gd --with-pgsql=/usr/local/pgsql --with-apache=../
apache --enable-track-vars
But i cant do this
How do i compile PHP so i can create images?
--
Med
[Stig Venaas <[EMAIL PROTECTED]>]
> On Mon, May 07, 2001 at 06:54:53PM +0200, Vincen Pujol wrote:
> > Hi,
> > Sorry for the crossposting but I don't know where to find a
> > solution for this. I need to be able to update dynamically entries in a DNS
> > (Bind 9). My DNS
Hi everyone.
I have trouble uploading files while in safe mode
.Warning: SAFE MODE Restriction in effect. The script whose uid is 206 is
not allowed to access /tmp/php6wtDUc owned by uid 0
Can someone help me pass around this problem?
--
PHP General Mailing List (http://www.php.net/)
To un
http://www.wrox.com/
I really found Beginning PHP from Wrox very helpful, had a hard time
stopping reading it! Great useful "real life" examples!
Lars
-Original Message-
From: Daniel [mailto:[EMAIL PROTECTED]]
Sent: 08 May 2001 00:59
To: [EMAIL PROTECTED]
Subject: [PHP] PHP Books
Hi,
Hi,
I'm just starting PHP and am looking for some books that you'd all
recommend. I've used quite a few of the SAMS books before and have found
them to be really good, i also have access to The PHP Dictionary which i've
also found to be really good. But are there any books which you would
reco
Hi people,
is there a way to check a string, which is passed by a form via GET,for html
tags??
Does anyone know some code or anything else??
Alexander Bierbrauer
Coordinator & Chief-Programmer of Not'A'Tric
Web: http://www.notatric.de
ICQ: 38412604
--
PHP General Mailing List (http://www.php.
Hi,
I'm trying to write a PHP app that accesses a Progress database.
version info:
- Windows 2000 Pro + Apache 1.3.14
- PHP 4.0.4pl1 (4.0.5 just wouldn't work on my machine)
- Progress 8.3.B
- Merant Progress ODBC drivers v 3.50
the ODBC drivers seem to be fine - I made a MS Access database
Try ezpublish, available from publish.ez.no. THe package is very complate,
but not easy to install.
If you have problems, I offer hosting with publish installed.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
Sakimura, Nat
Sent: Tuesday, May 08, 2001 7:0
Hi.
A while ago, I encountered a contents management solution for web that
allows the web contents to be edited WYSWYG manner on the web browser. I
think it was PHP related, but now I cannot seem to find the link. Does
anyone know of such system?
Regards,
Nat Sakimura
--
PHP General Mailin
Hi,
Maybe somebody knows solution for PHP IMAP and WAP?
How hard will be complete this products?
-
Nikolajus Krauklis :: [metasite]
E-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For ad
hello All. I run php 4 for windows on top of apache. how would I write by
own bolt on modules for php?
Thanks
--
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-m
Chris Adams <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On 6 May 2001 05:53:54 -0700, Darren <[EMAIL PROTECTED]> wrote:
> > Hi. I just installed a fresh copy a windows 95. I installed winsock 2,
> > apache 1.3.19 and php4. I followed the instructions with t
At 11:45 8-5-2001 +0200, Wico de Leeuw wrote:
>At 11:27 8-5-2001 +0200, Trond Straume wrote:
>>Hi!
>>
>>I'm having problems using preg_replace to search and remove backslash
>>character.
>>
>>print preg_replace("/\\/","","testing \\ testing");
>
>try
>
>print preg_replace('"\"',"","testing \\ test
At 11:27 8-5-2001 +0200, Trond Straume wrote:
>Hi!
>
>I'm having problems using preg_replace to search and remove backslash
>character.
>
>print preg_replace("/\\/","","testing \\ testing");
try
print preg_replace('"\"',"","testing \\ testing");
double-quote single-quote back-slash single-qoute
Hi!
I'm having problems using preg_replace to search and remove backslash
character.
print preg_replace("/\\/","","testing \\ testing");
This regexp produces this warning:
No ending delimiter '/' found in c:\internweb\html\preg.php on line 27
It seems like I'm escaping the ending delimineter '
Hiya
Fist of all sorry for the off-topic and dutch topic / email, I'm trying to
find a nice job in Holland and where can you better ask then at the big
official php source :)
Als iemand een bedrijf heeft/weet die opzoek is naar een goeie php
programmeur hou ik me aanbevolen :)
Op verzoek kan
[Michael Stearne <[EMAIL PROTECTED]>]
> I have a version of PEAR installed now with 4.0.3pl1. I need some
> of the newer versions of the functions that have been added since
> then. I need mysql's afftedRows for instance. I see in the 4.0.5 of
> PEAR that was given with 4.0.5 that some func
You need to fetch/get information out of the database using a function,
since we want just one result (count) we can easily use mysql_result()
Other functions that you're probably familiar with are mysql_fetch_row and
mysql_fetch_array ... they'll work too but in this case, not as
efficiently.
At 08.05.01 10:03, you wrote:
>
>Hello all,
>
>I have a slight problem. I am storing an email template in a MySQL DB.
>Portions of the email have text that need to be replaced with variable
>values when run through the script
>ex:
>
>Sehr geehrte(r) Frau/Herr {%Last_Name%} ,
>Dies ist eine autom
Hi,
$db is not an object, but a link identifier returned by mysql_connect().
Wieger
Ender wrote:
>
> Okay I get the: Call to a member function on a non-object error when trying to
>execute this script:
>
> It happens in this area:
>
> $db=mysql_connect(localhost,'***','***') or die("Unable
> As you can see. I am using the {% and %} to delimit the parts
> that need to be replaced. I can't get the replacements to work
> right though. Can someone help?
$text = ereg_replace("\{\%Last_Name\%\}", $lastname, $text);
Should be something like that :)
Jason
--
PHP General Mailing Lis
Hello all,
I have a slight problem. I am storing an email template in a MySQL DB.
Portions of the email have text that need to be replaced with variable
values when run through the script.
ex:
Sehr geehrte(r) Frau/Herr {%Last_Name%} ,
Dies ist eine automatische Zusendung von ACNS Billing and
$result = mysql_query($db, "SELECT count(*) AS song_count FROM table_name");
if ($array = mysql_fetch_array($result)) $song_count = $array("song_count");
Tim Ward
Senior Systems Engineer
Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.
Be more specific please,
as you typed "SELECT count(*) FROM ... as ..."
this should return one row and only one!
that means you need to fetch that row and use it as a variable and not
within a row...
can you plz clarify your question?
-elias
http://www.eassoft.cjb.net
""Ryan W. Zajicek"" <[EMAI
php-general Digest 8 May 2001 07:22:01 - Issue 673
Topics (messages 51803 through 51866):
Converting a binary integer to a number
51803 by: Siegfried Kettlitz
51805 by: Zak Greant
51813 by: Siegfried Kettlitz
OpenSSL compile option
51804 by: phpman
Re: vari
You register it just when you want to assign to it a value,
ie:
page1.php
session_start();
session_register("username");
$username = "shawn";
page2.php
session_start();
echo "Welcome $username";
page3.php
session_start();
echo "Welcome again $username"
so basically, register once and use ses
101 - 176 of 176 matches
Mail list logo