Is postfix more efficient than sendmail?
Can you give me the url which describes how to use it or write here ?
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 administrat
Hello,
I was not willing to tell so soon, but since I am going to make a
presentation of this at the O'Reilly Open Source Convention: XTech 2001:
Cutting Edge XML, and the Early Bird price deadline is about to end for
those that may want to attend, I am announcing a special application that I
ha
How 'bout using this hack:
function formatPercent ($decimal, $round = 2) {
return round($decimal*100, $round).'%';
}
--Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the lis
On Sun, 24 Jun 2001, David Robley wrote:
> On Mon, 25 Jun 2001 12:04, Tim Thorburn wrote:
> > Hi,
> >
> > Working on a site that needs some billing information. Once upon a
> > time done in ASP where we had the option to use the FormatPercent
> > command - is there an equivalent command within PH
$PHP_SELF is a global variable. You're trying to call it from inside a
function, which won't work unless you declare it as global to the function
(unless you have some thing in the php.ini file set that I don't remember
off the top of my head what it's called which will make all that stuff
global
On Mon, 25 Jun 2001 13:08, Kent Sandvik wrote:
> Hi, is there something silly I'm doing (latest PHP 4.0.5), when this
> does not work at all:
> ---
> class xCrumbs
> {
>function Render(){
>echo $PHP_SELF;
> }
> }
> $crumbs = new xCrumbs();
> $crumbs->Render();
>
>
> while
> echo $P
Hi, is there something silly I'm doing (latest PHP 4.0.5), when this does
not work at all:
---
class xCrumbs
{
function Render(){
echo $PHP_SELF;
}
}
$crumbs = new xCrumbs();
$crumbs->Render();
while
echo $PHP_SELF;
works just fine? Or something with name spaces and when $PHP_SELF
I figured out how to do it. Buy the way I am not the one passing the
variables like this this is how it is sent from a credit card company
when they send the customer back to my page. I am just trying to
capture that data so the customer does not have to put it in twice
nicole> if you need
On Mon, 25 Jun 2001 12:04, Tim Thorburn wrote:
> Hi,
>
> Working on a site that needs some billing information. Once upon a
> time done in ASP where we had the option to use the FormatPercent
> command - is there an equivalent command within PHP?
>
> Using PHP 3.0.16
Stab in the dark as I dunno
> Working on a site that needs some billing information. Once upon a time
> done in ASP where we had the option to use the FormatPercent command - is
> there an equivalent command within PHP?
Couldn't you just use number_format() and stick a % sign in there
yourself?
-Rasmus
--
PHP General M
> This works for non-image submit buttons, because the 'name'
> and 'Value' tags on the submit tag works for them, but the
> 'value' component isn't supported for
>
> Any one have any other ideas on how to do this? multiple
> images for submit buttons (where you know which you pressed).
if you need to pass special characters (eg. +) in the url, you need to
use a url encoding function like rawurlencode().. or choose another
delimeter which can be passed in the url like these -_.
s
Richard Kurth wrote:
>
> Question about explode
>
> this work just perfect
>$name="what+ever
Hi,
Working on a site that needs some billing information. Once upon a time
done in ASP where we had the option to use the FormatPercent command - is
there an equivalent command within PHP?
Using PHP 3.0.16
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PR
Richard Kurth wrote:
>
> Question about explode
>
> this work just perfect
>$name="what+ever";
>
> $name1=explode("+",$name);
> $fname=$name1[0] ;this has what
> $lname=$name1[0] ;this has ever
>
> But if I pass the info from another page like this
>
> test
>
> $n
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Richard Kurth) wrote:
>$name="what+ever";
>
> $name1=explode("+",$name);
> $fname=$name1[0] ;this has what
> $lname=$name1[0] ;this has ever
>
> But if I pass the info from another page like this
>
> test
>
> $nam
> How come I get this it does not make since
Makes perfect sense:
test
Web browsers url encode form elements. If you use a href link like this,
you need to do the URL encoding yourself. A + happens to be a space, in
URL encoding.
So, PHP receives "name=what+ever" and sets $name = "what e
On Mon, 25 Jun 2001 11:52, Scott Guthrie wrote:
> I have a navigation section that needs to go to up to 10 pages based on
> which 'button' a user clicks on. It also has to send the form contents
> to the next page, so it has to be a 'submit'. This works for
> non-image submit buttons, because t
Question about explode
this work just perfect
$name="what+ever";
$name1=explode("+",$name);
$fname=$name1[0] ;this has what
$lname=$name1[0] ;this has ever
But if I pass the info from another page like this
test
$name1=explode("+",$name);
$fname=$name1[0] ;
I have a navigation section that needs to go to up to 10 pages based on
which 'button' a user clicks on. It also has to send the form contents to
the next page, so it has to be a 'submit'. This works for non-image
submit buttons, because the 'name' and 'Value' tags on the submit tag
works for
]*> worked... thanks Kristian...
As I get it -- match 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]
I have a PHP script with the following code in it;
$uptime = passthru ("/usr/bin/uptime");
but when I load the PHP page I get the following;
8:26pm up 0 min, 0 users, load average: 0.00, 0.00, 0.00
which is wrong (I have checked the uptime via telnet). Can anybody please
help me try and fix t
>I need to run some external programs from a PHP script.
>How could I do that?
You might be able to use them through (D)COM objects, since you're on an NT
server. I'm not sure about the passthrough() functions and stuff on NT,
though... I've never really used them (or had reason to).
--Jason
-
Despite what it says (and as far as I know) you *can't* change the state of
magic quotes from within a script. You can, however use a function like
this:
function myAddSlashes($st) {
if (get_magic_quotes_gpc()==1) {
return $st;
} else {
return AddSlashes($st);
}
}
Hope this
Hi
In the PHP manual there are some program execution
functions like passthru(), exec() and system().
I´ve got PHP4 installed on IIS 5.0 on Windows 2000
Server, and it works fine.
I tried with a very simple script like the
following:
$commandstring =
"cmd";
passthru($command
Having trouble with the command in the subject...
I have a web server with PHP4 and MySQL with magic_quotes turned on in the
default configuration...
But when I set_magic_quotes_runtime(0) within a site where I need it turned
off it works, but it does not work! For example:
echo "[".get_magic_q
>
Try this: /\]*\>/
Hope this helps
Kristian
--
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]
> (eg. )
Lol... by the way gg must be an interesting color :)
Aral
__
([EMAIL PROTECTED])
New Media Producer, Kismia, Inc.
([EMAIL PROTECTED])
Adj. Prof., American University
¯¯
--
PHP General Mailing List (http://www.php.ne
Jason et. al.,
Thanks for the suggestion, but I'm still up the creek. I've seen some posts
about AddHandler, so I tried adding the following to the .conf file:
AddHandler php-script .php
but again, with no success.
Any other ideas? TIA again.
Brent
Jason Lustig wrote:
> >I've added the lin
Hi all,
I'm trying to match the body tag in an HTML file (eg. ) with the following regular expression and eregi:
Unfortunately it matches everything from the body tag onwards and doesn't
stop at the greater-than sign. It should be simple thing but I'm stumped! To
me the regex reads match strin
Todd Cary wrote:
> I need to create a document that confirms to certain formatting criteria
> and then be able to give the surfer the ability to download the
> completed document preferrable, pdf. In other words, the document is a
> "legal" document and has some dynamic fields. Can this be done
php.exe
he's using redhat ... so there might be a _very_good_ possibility that he doesn't have
php.exe laying around.
lenar.
""Jason Lustig"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >I've added the lines:
> >AddType application/x-httpd-php .
Hi everyone,
I can't get the sessions working in linux.
I changed:
/usr/local/lib/php.ini session.auto_start = 1
so when the browser go to the page, a cookie is recieved.
In the /tmp-dir a file is created and everything looks great.
However, when I register a variable and set it to a value,
on
>I've added the lines:
>AddType application/x-httpd-php .php
>AddType application/x-httpd-php-source .phps
>to my httpd.conf file
Maybe try adding:
AddType application/x-httpd-php4 .php
instead of:
AddType application/x-httpd-php .php
It depends on how you did th
Hi. Need help badly.
I've been trying in vain to get PHP 4.0.5 working with Apache 1.3.20.
Red Hat 7.0
I've added the lines:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
to my httpd.conf file
and :
application/x-httpd-php php phtml pht
to mime.t
I am connecting to a remote MSSQL database from my dev box
(windows/apache/php4.06). However, my dev box doesn't have MSSQL installed
on it (or else I wouldn't have to connect remotely -- I could copy the DB
file to the comp and then use it in MSSQL, connecting locally). To use the
MSSQL extension
Instead of using readfile(), try using the file() function.
// Get php.net and store it in an array.
$theFile = file("http://www.php.net";);
// Convert the array to one long string.
$theFile = implode("",$theFile);
// And output the file.
echo $theFile;
If you're trying to do this with an image,
On Sun, 24 Jun 2001, Phil Driscoll wrote:
> On Sunday 24 June 2001 16:32, Justin Farnsworth wrote:
> > Try the latest AbiWord...
> I've just installed it, but I can't find any obvious way to invoke it at the
> command line to load a Word file and save out html or rtf. Am I missing
> something?
LS,
> -Original Message-
> From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, June 24, 2001 5:01 PM
> To: Kees Hoekzema
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] php-4.0.6, zlib, gd problem
>
>
> First, use absolute dirs, not relative dirs.
ok, that solved the first prob
if you really have to you can do smth like this:
but i don't see the point of it :)
lenar.
""Augusto Cesar Castoldi"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I always use "InputImageName_x > 0" to know if a button was clicked.
>
> How can I get t
Looks pretty straightforward:
You need a database, a script/form to populate the database, a script to
email notifications, a registry script/form, and a report script.
> Does anyone out there have a PHP script that will serve as an input
> form which are e-mailed to wedding invitees, in turn,
PHP is a _server side_ language, ie it's processed by the server.
Therefore, you page must be served, not just read from a file on your hard
drive.
Try installing Apache.
"Ted Shaw" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> G'day -
>
> Sorry for this stu
""lenar"" <[EMAIL PROTECTED]> wrote in message
9h5itc$hir$[EMAIL PROTECTED]">news:9h5itc$hir$[EMAIL PROTECTED]...
> because $LastMod == 0 .. I assume your timezone is GMT-6 ?
correction - it returns false in this case, which gets converted to 0 in date() which
in turn returns seconds from unix
because $LastMod == 0 .. I assume your timezone is GMT-6 ?
This is because that file doesn't exist or you don't have permissions for it or
something like that.
lenar.
"Carmen & Gene" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Can anyone out there expla
On Sun, Jun 24, 2001 at 03:19:52PM -0500, Carmen & Gene wrote:
> Can anyone out there explain why:
>
>// $path = "/path/to/some/php_file/or/$PHP_SELF/";
> print "This page last modified on ";
> $LastMod = filemtime("/var/www/html/WebAps/phpRSVP2/rsvp.php");
> print date("l, F j, Y - g:i
You should check for errors from filemtime(). Looks to me like it
returned false and not an actual timestamp. Probably a permission issue,
or perhaps you got the path wrong.
-Rasmus
On Sun, 24 Jun 2001, Carmen & Gene wrote:
> Can anyone out there explain why:
>
>// $path = "/path/to/some/
Do you have:
SetOutputFilter PHP
SetInputFilter PHP
or something similar in your httpd.conf?
lenar.
""Gonyou, Austin"" <[EMAIL PROTECTED]> wrote in message
85063BBE668FD411944400D0B744267A481AD4@AUSMAIL">news:85063BBE668FD411944400D0B744267A481AD4@AUSMAIL...
> Has anyone had any l
Can anyone out there explain why:
This page last modified on ";
$LastMod = filemtime("/var/www/html/WebAps/phpRSVP2/rsvp.php");
print date("l, F j, Y - g:ia",$LastMod) . "\n";
?>
Returns :
This page last modified on Wednesday, December 31, 1969 - 6:00pm
after being run through the above dat
""McShen"" <[EMAIL PROTECTED]> wrote in message
9h3lrv$dn$[EMAIL PROTECTED]">news:9h3lrv$dn$[EMAIL PROTECTED]...
> Hi
>
> I have a script which queries mySQL and outputs 32 links at once.
How 'bout this?
===
define("PER_ROW", 2);
$row = Array();
$in_row = 0;
You could try natcasesort(); you should also look at htmlentities().
Or you could consider using a database (altho' it's way overkill for what
you seem to be doing). I would consider having a 'stripped-name' field
where all the non-alphanumeric characters are removed, and order on that, so
that
o ic
check the IP to prevent .
But I have another Q .
1.)
I see from www.php.net , people said they will generate a Session ID by
themselves
srand((double)microtime()*100);
$unique_str = md5(rand(0,999));
why not to generate by ourself ?
PHP will create itself .
2.)
Will Session have pr
At 24.06.2001 00:12, you wrote:
>I'm using PHP 4.0.6 with GD 1.8.4 right now, and all is well. However,
>when I install GD 2.0.1, PHP's make dies, saying there is something wrong
>with gdio.h. I've removed all GD 1.8.4 bits from my box, just in case
>there is a library conflict; and the --with-
Oops..was overwriting the $result variable...heheits fixed.
\n";
for ($j = 0; $j < $num; $j++)
{
echo '\n';
for ($i = 0; $i <= 1; $i++)
{
@$data = mysql_fetch_array($result);
@$id = $data[id];
@$title = $data[title];
"Thies C. Arntzen" wrote:
>
> On Fri, Jun 22, 2001 at 09:16:08PM +0300, Rouvas Stathis wrote:
> > Do you experience any other sort of problems other than those warnings?
> > I mean, is anything wrong with the data? Normally, nothing should be
> > wrong.
> >
> > I have seen the same messages (espe
Try www.htdig.org, and look in the contributed software directory. There is
a script there which "disassembles" various documents into html so that
htdig can index them. I believe it is doc2html.pl, but "doc" embraces
various forms of documents.
Miels
At 03:25 PM 6/24/01 +0100, Phil Driscoll
Hello!
Try to use StarOffice. Seems, it's possible to make automatic conversion
from word.DOC into something more suitable.
Or, you can use PDF printer (standard adobe tool), but only under windows.
Best regards,
Andrew Kirilenko,
Senior Programmer / System Administrator,
Internet Service.
Hey folks,
Do you know if there is anything like this that works on PDF's and can
actually look decent?
Not pdf2htm or something like that, it sux :-)
Clayton Dukes
CCNA, CCDA, CCDP, CCNP
(c) 904.477.7825
(h) 904.292.1881
Download Free Essays, Term Papers and Cisco Training from http://www.gdd.n
are you using http://localhost?
- Noah
"Ted Shaw" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> G'day -
>
> Sorry for this stupid question but I'm a newby trying to install php on my
> win98 computer and find that neither netscape nor IE 5.5 won't open php
Well, this doesn't really surprise me too much. We are a
linux shop on the backend and AbiWord reads just fine Word files from
all the Windows machines, running Windows 2000. However,
AbiWord chokes on a Word document from our local Macs, for
reasons that I don't know, and I am not too intereste
Hi Phil,
There are a few options that may meet your needs:
Word2x (http://word2x.alcom.co.uk/)
LAOLA (http://user.cs.tu-berlin.de/~schwartz/pmh/)
Good Luck!!
--zak
- Original Message -
From: "Phil Driscoll" <[EMAIL PROTECTED]>
To: "Justin Farnsworth" <[EMAIL PROTECTED]>
Cc: "p
Please,
How do I unsubscribe this list? I tried two times these addresses:
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Thank youvery much, Patrick.
-
Em 24 Jun 2001, Rasmus Lerdorf escreveu:
>> I haven'
On Sunday 24 June 2001 16:32, Justin Farnsworth wrote:
> Try the latest AbiWord...
I've just installed it, but I can't find any obvious way to invoke it at the
command line to load a Word file and save out html or rtf. Am I missing
something? Also, when I tested the software via its gui and load
> I haven't really used PHP before, but I have a project where I need to call
> a CGI script from a PHP page. The CGI has documentation that explains how to
> call it from an SSI, but not from PHP.
>
> The SSI command is
>
>
> Can someone tell me what the equivalent command would be for PH
Hi!
Check your server settings! If you're using Apache then there are several
things that need to be calibrated, such as the mime-type settings, the
scriptAlias part and application-specific settings. And don't forget to
tell the server the dir name you're keeping the files in.
You may try to fin
I haven't really used PHP before, but I have a project where I need to call
a CGI script from a PHP page. The CGI has documentation that explains how to
call it from an SSI, but not from PHP.
The SSI command is
Can someone tell me what the equivalent command would be for PHP? Thanks
Jus
And if you want :
$str = 'This is a STRING!';
To turn into:
$str = 'This Is A String!';
Then do :
$str = ucwords(strtolower($str));
Regards,
Philip
On Sat, 23 Jun 2001, Data Driven Design wrote:
> Use the ucwords() function
>
> http://www.php.net/manual/en/function.ucwo
How can I read some webpage through a proxy in PHP.
I wan't to use the function readfile(http://www.php.net/) but I get an
host_connect error.
--
A good programmer is someone who looks both ways before crossing a one-way
street. - Doug Linder
--
PHP General Mailing List (http://www.php.net/
Try the latest AbiWord...
Phil Driscoll wrote:
>
> I have to build a web site for a local government education authority in the
> UK which will allow them to make available a large range of documents to
> schools. They INSIST on submitting documents in Word format. I think it is
> immoral to m
First, use absolute dirs, not relative dirs.
For GD, use the --with-png-dir switch to tell PHP where to find the base
directory for the lib and include files. I use GD2 compiled in my own dir
with these flags:
--with-gd=/home/rasmus/gd-2.0.1
--with-freetype-dir=/usr
--enable-gd-native-ttf
--ena
Lectori Salutem,
I downloaded php-4.0.6 yesterday, and i was trying to compile it,
I used to compile previous versions with:
./configure --with-apache=../apache --enable-track-vars --enable-magic-quote
s --with-gd=/usr/local --with-mysql=../mysql --with-zlib=../zlib
but when i try it with php-40
I have a list of nicknames inside my page
$t®ike_19a
M@x<
ARNALDO_MOTA20
AXL-FUCKIN-ROSE
AbAgUaLaDo
Adolf
Al_Cap0ne
Anda_pelas_Sombr
Anjo Tora
Anjo_noturno
Arcanjo_
Atras_E_AVANTE
BHILL
BRAIN_DAMAGE
B
Jason, your scripts works prefectly in creating a table. But, It only ouputs
the first query from the databse. Others are not shown.
""Jason Lotito"" <[EMAIL PROTECTED]> wrote in message
000f01c0fc67$abfe3a90$72003bd0@genric">news:000f01c0fc67$abfe3a90$72003bd0@genric...
> This should work...
>
>
On Sunday 24 June 2001 15:06, Duncan Hill wrote:
> Google reveals
> http://www.logictran.com/
They seem to have an RTF to html utility which will run on multiple
platforms, but the thing that converts word documents directly requires a
copy of Word on the server :-(
Cheers
--
Phil Driscoll
-
At 03:13 pm 6/24/01 +0200, Siim Einfeldt aka Itpunk wrote:
>My scripts and the site itself are on one server, but I need to upload
>files to another server. How could I do it without using ftp functions?
You can do a post, or if the file's small enough a get. Or write a receiver
program on the
On Sun, 24 Jun 2001, Phil Driscoll wrote:
> determined to translate them to something sensible (html, rtf or pdf
> will do) at the server. The server is a Linux box so there's no
> opportunity to play any tricks with COM.
>
> Has anyone come across any tools to do this, using php or otherwise?
From: "Rick Proctor" <[EMAIL PROTECTED]>
>
> I have a script that does TV/Tour listings for artist, I need it to sort the
> list automatically so that it goes in date order but I have absolutely no
> idea. I have put together the script with little to no PHP skills so it look
> prett
Hi,
My scripts and the site itself are on one server, but I need to upload
files to another server. How could I do it without using ftp functions?
Thanks
Siim EInfeldt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
I have to build a web site for a local government education authority in the
UK which will allow them to make available a large range of documents to
schools. They INSIST on submitting documents in Word format. I think it is
immoral to make the schools have to accept documents in that format so
php-general Digest 24 Jun 2001 11:57:04 - Issue 717
Topics (messages 54994 through 55016):
Running external programs
54994 by: Beginning PHP Programmer
PhpDEV
54995 by: Brett Shaw
Re: variables / reading files
54996 by: Christopher Ostmo
55006 by: Michael H
Hiho,
Jason Lustig wrote:
> I just installed PHP 4.06 on my setup, and noticed that there's a bunch of
> classes/scripts in the /pear directory. Does anyone know what the status of
> these scripts are, as in if they are finished quality (ie, they can be used
> successfully on websites)? I thought
I am having a strange problem that I have yet to solve.
I am running apache 1.3.14 and php 4.0.5 on FreeBSD 4.3
My problem is that when I am trying to execute a program via php the program
dies after a short amount of time.
I have tried execing in the background, calling another program that
80 matches
Mail list logo