[PHP] freebsd and exec problem

2001-06-24 Thread Gary Starks
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

Re: [PHP] PEAR

2001-06-24 Thread Alexander Wagner
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

php-general Digest 24 Jun 2001 11:57:04 -0000 Issue 717

2001-06-24 Thread php-general-digest-help
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

[PHP] converting Word documents to something sensible

2001-06-24 Thread Phil Driscoll
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

[PHP] uploading to another server

2001-06-24 Thread Siim Einfeldt aka Itpunk
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,

Re: [PHP] Events Listings

2001-06-24 Thread Chris Hayes
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 >

Re: [PHP] converting Word documents to something sensible

2001-06-24 Thread Duncan Hill
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?

Re: [PHP] uploading to another server

2001-06-24 Thread Marty Landman
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

Re: [PHP] converting Word documents to something sensible

2001-06-24 Thread Phil Driscoll
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 --

Re: [PHP] -coding help

2001-06-24 Thread McShen
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... ?php

[PHP] CORRECT sort

2001-06-24 Thread Rafael Faria
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

[PHP] php-4.0.6, zlib, gd problem

2001-06-24 Thread Kees Hoekzema
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

Re: [PHP] php-4.0.6, zlib, gd problem

2001-06-24 Thread Rasmus Lerdorf
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

Re: [PHP] converting Word documents to something sensible

2001-06-24 Thread Justin Farnsworth
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 make

[PHP] readfile + proxy

2001-06-24 Thread Joris Van Droogenbroeck
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

Re: [PHP] Making a string title case ?

2001-06-24 Thread Philip Olson
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

[PHP] Calling CGI from PHP page

2001-06-24 Thread Justin Daoust
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 !--#exec cgi=/path/to/script.pl -- Can someone tell me what the equivalent

Re: [PHP] Php Files on Browser

2001-06-24 Thread Ivan Balazs
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

Re: [PHP] Calling CGI from PHP page

2001-06-24 Thread Rasmus Lerdorf
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 !--#exec cgi=/path/to/script.pl -- Can someone tell me what the

Re: [PHP] converting Word documents to something sensible

2001-06-24 Thread Phil Driscoll
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

Re: [PHP] Calling CGI from PHP page

2001-06-24 Thread patrick . azevedo
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't

Re: [PHP] converting Word documents to something sensible

2001-06-24 Thread Zak Greant
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: php

Re: [PHP] converting Word documents to something sensible

2001-06-24 Thread Justin Farnsworth
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

Re: [PHP] Php Files on Browser

2001-06-24 Thread Noah Spitzer-Williams
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 files

Re: [PHP] converting Word documents to something sensible

2001-06-24 Thread Clayton Dukes
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

RE: [PHP] converting Word documents to something sensible

2001-06-24 Thread Andrew Kirilenko
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.

Re: [PHP] converting Word documents to something sensible

2001-06-24 Thread Miles Thompson
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

Re: [PHP] Oracle Database keeps disconnecting - or something

2001-06-24 Thread Rouvas Stathis
"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 (especially the

RE: [PHP] -coding help

2001-06-24 Thread Jason Lotito
Oops..was overwriting the $result variable...heheits fixed. ?php $connection = mysql_connect(***,,); if ($connection==false) { echo mysql_errno().:.mysql_error().; exit; } $end = $list + 16; $query = SELECT * FROM refer ORDER BY hits desc LIMIT $list, $end; $result =

Re: [PHP] PHP 4.0.6 + GD 2.0.1

2001-06-24 Thread Andreas D. Landmark
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

Re: [PHP] PHP authenticating and session management

2001-06-24 Thread Bass¨Ð¦õªv
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

Re: [PHP] CORRECT sort

2001-06-24 Thread Hugh Bothwell
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

Re: [PHP] -coding help

2001-06-24 Thread Hugh Bothwell
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; //

[PHP] filemtime function not working

2001-06-24 Thread Carmen Gene
Can anyone out there explain why: ?php // $path = /path/to/some/php_file/or/$PHP_SELF/; print IThis page last modified on ; $LastMod = filemtime(/var/www/html/WebAps/phpRSVP2/rsvp.php); print date(l, F j, Y - g:ia,$LastMod) . /I\n; ? Returns : This page last modified on Wednesday,

Re: [PHP] PHP 4.07-dev + Apache 2.0.19-dev

2001-06-24 Thread lenar
Do you have: Files *.php SetOutputFilter PHP SetInputFilter PHP /Files or something similar in your httpd.conf? lenar. Gonyou, Austin [EMAIL PROTECTED] wrote in message 85063BBE668FD411944400D0B744267A481AD4@AUSMAIL">news:85063BBE668FD411944400D0B744267A481AD4@AUSMAIL... Has

Re: [PHP] filemtime function not working

2001-06-24 Thread Rasmus Lerdorf
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: ?php // $path =

Re: [PHP] filemtime function not working

2001-06-24 Thread eschmid+sic
On Sun, Jun 24, 2001 at 03:19:52PM -0500, Carmen Gene wrote: Can anyone out there explain why: ?php // $path = /path/to/some/php_file/or/$PHP_SELF/; print IThis page last modified on ; $LastMod = filemtime(/var/www/html/WebAps/phpRSVP2/rsvp.php); print date(l, F j, Y -

Re: [PHP] filemtime function not working

2001-06-24 Thread lenar
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 explain

Re: [PHP] filemtime function not working

2001-06-24 Thread lenar
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 epoch

Re: [PHP] Php Files on Browser

2001-06-24 Thread Hugh Bothwell
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 stupid

Re: [PHP] RSVP script anyone ???

2001-06-24 Thread Hugh Bothwell
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,

Re: [PHP] Get the value of a input type=image...

2001-06-24 Thread lenar
if you really have to you can do smth like this: input type=image name=contatc src=. input type=hidden name=contatc value=002545645 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

RE: [PHP] php-4.0.6, zlib, gd problem

2001-06-24 Thread Kees Hoekzema
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 problem,

Re: [PHP] converting Word documents to something sensible

2001-06-24 Thread Adam Huffman
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? Also,

[PHP] Connecting to a remote MSSQL database via ODBC and setting up the MSSQL extension

2001-06-24 Thread Jason Lustig
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

[PHP] php not working

2001-06-24 Thread brent
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

RE: [PHP] php not working

2001-06-24 Thread Jason Lustig
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 the

[PHP] Session-problems in linux

2001-06-24 Thread Tjelvar Eriksson
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,

Re: [PHP] php not working

2001-06-24 Thread lenar
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 .php

[PHP] Help with simple regular expression

2001-06-24 Thread Aral Balkan
Hi all, I'm trying to match the body tag in an HTML file (eg. body bgcolor=gg) with the following regular expression and eregi: body.* 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

Re: [PHP] php not working

2001-06-24 Thread brent
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

Re: [PHP] Help with simple regular expression

2001-06-24 Thread Aral Balkan
(eg. body bgcolor=gg) 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

RE: [PHP] Help with simple regular expression

2001-06-24 Thread Kristian Duske
body.* Try this: /\body[^\]*\/ 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]

[PHP] set_magic_quotes_runtime()

2001-06-24 Thread Murray Shields
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

[PHP] Program execution functions doesn´t work in my system

2001-06-24 Thread Beginning PHP Programmer
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($commandstring);?

Re: [PHP] set_magic_quotes_runtime()

2001-06-24 Thread Aral Balkan
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

RE: [PHP] Program execution functions doesn´t work in my system

2001-06-24 Thread Jason Lustig
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 --

[PHP] PHP Uptime error

2001-06-24 Thread Peter Phillips
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

Re: [PHP] Help with simple regular expression

2001-06-24 Thread Aral Balkan
body[^\]* worked... thanks Kristian... As I get it -- match body then any number of characters that aren't greater than signs then a greater than sign -- Is that right? (I'm really trying to get my head around this regex thing.) Thanks, Aral :) __ ([EMAIL

[PHP] Multiple Image Submit Buttons.

2001-06-24 Thread Scott Guthrie
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

[PHP] explode

2001-06-24 Thread Richard Kurth
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 a href=whatever.php?name=what+evertest/a

Re: [PHP] Multiple Image Submit Buttons.

2001-06-24 Thread David Robley
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 the

RE: [PHP] explode

2001-06-24 Thread Jason Murray
How come I get this it does not make since Makes perfect sense: a href=whatever.php?name=what+evertest/a 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

Re: [PHP] explode

2001-06-24 Thread CC Zona
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 a

Re: [PHP] explode

2001-06-24 Thread Zak Greant
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 a

[PHP] Percentages

2001-06-24 Thread Tim Thorburn
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

Re: [PHP] explode

2001-06-24 Thread nicole
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;

RE: [PHP] Multiple Image Submit Buttons.

2001-06-24 Thread Jason Murray
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 input type=image ... Any one have any other ideas on how to do this? multiple images for submit buttons (where you know which

Re: [PHP] Percentages

2001-06-24 Thread Rasmus Lerdorf
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

Re: [PHP] Percentages

2001-06-24 Thread David Robley
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

Re[2]: [PHP] explode

2001-06-24 Thread Richard Kurth
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

[PHP] $PHP_SELF name space?

2001-06-24 Thread Kent Sandvik
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

Re: [PHP] $PHP_SELF name space?

2001-06-24 Thread David Robley
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 $PHP_SELF;

RE: [PHP] $PHP_SELF name space?

2001-06-24 Thread Jason Lustig
$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

Re: [PHP] Percentages

2001-06-24 Thread John Meyer
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 PHP?

RE: [PHP] Percentages

2001-06-24 Thread Jason Lustig
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

[PHP] ANNOUNCE: XML based Meta-Language compiler written in PHP

2001-06-24 Thread Manuel Lemos
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