[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 execs 
it into the background (both instances using:
exec(nohup /my/program );

This same syntax worked on a Linux Mandrake 8.0 machine with the same 
webserver and php setup.  It just isnt working on a FreeBSD 4.3 machine.

The program starts to exec but when I close the calling webpage it 
terminates, or if i leave that page open it terminates after a short period 
of time.

But if I run the same command from the command line, it works perfectly.

Any ideas on what I can check or what I need to change to get this to work 
correctly?
_
Get your FREE download of MSN Explorer at http://explorer.msn.com


-- 
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]




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 that PEAR was still being developed.

Still being in development doesn't mean not being produciton quality.
Anything not being in pear/experimental/ should be safe to use. And even some 
scripts there are, and just lack documentation.

regards
Wagner

-- 
Isn't it strange? The same people who laugh at gypsy fortune tellers take 
economists seriously.
 - Cincinnati Enquirer   

-- 
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-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 Hall

PHP 4.0.6 + GD 2.0.1
54997 by: Ben Gollmer

PEAR
54998 by: Jason Lustig
55016 by: Alexander Wagner

Output an image stream?
54999 by: Todd Cary
55013 by: Matt McClanahan

Re: mysql_free_result() question
55000 by: Jakob Kruse

Re: newbie algorithm help!
55001 by: Warren Vail

Events Listings
55002 by: Rick Proctor

Php Files on Browser
55003 by: Ted Shaw

Re: OOP
55004 by: Aral Balkan
55012 by: Matthew M. Boulter

Creating formatted documents
55005 by: Todd Cary

RSVP script anyone ???
55007 by: Carmen  Gene

-coding help
55008 by: McShen
55009 by: Carmen  Gene
55011 by: Jason Lotito

PHP 4.07-dev + Apache 2.0.19-dev
55010 by: Gonyou, Austin

Running scripts from within PHP similar to SSI
55014 by: Bilal Deniz

freebsd and exec problem
55015 by: Gary Starks

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--





Hi:

I´m using PHP4 on IIS 5 on Windows 2000 Server and 
it works fine. 
The Microsoft NNTP Service from IIS 5 can be 
managed from command shell with commands like this bellow:

cscript d:\\temp\\rgroup.vbs -t a -g 
new.group.01
And it works also fine in my system.


But, when I try to run a program from a simple PHP 
script like the following:

? $commandstring = 
"cscript d:\\temp\\rgroup.vbs -t a -g new.group.01"; 
passthru($commandstring);?

I get this Warning..

Warning: Unable to fork [cscript 
d:\temp\rgroup.vbs -t a -g new.group.01] in 
d:\inetpub\wwwroot\nntpadm\creategroup.php on line 3

Whatam I doing 
wrong?

Thanks in advance.





www.oosha.com/phpdev/index.php3

Ive had some great response to the site but not as much as id hoped if you
have any ideas please email them to me and ill implement them

--
[EMAIL PROTECTED]
[EMAIL PROTECTED]







Michael Hall pressed the little lettered thingies in this order...

 
 I'm stuck on a piece of code for a shopping cart.
 
 I'm on the final page where the buyer clicks BUY and several things
 happen. I want to loop through the table that stores the session info and
 extract details such as item, price, quantity, subtotal and assign all this
 info to one variable:
 
 $var = the output of a while($row = mysql_fetch_array($query)) statement
 
 Why I'm trying to do this is I'd like to store all the purchase details in
 one variable for inclusion in an email:
 
 $message = $var;   // (from above)
 mail($address,$subject,$message);
 
 I'd also like to put the info in that same variable into a table that
 records actual sales data:
 
 $details = $var;
 insert into table ('details') values ('$details');
 
 I know there must be a (probably very easy) way, but just can't crack it.
 

$result = mysql(DBName,QUERY);
while ($row = mysql_fetch_row($result)) {
$var = $row[0];

$message .= $var;
}
$details = $message

The period and equal sign cause $message to prepend itself to $var.  
This is the same thing as writing:
$message = $message.$var;

In either case, $message is preserved and added to on each loop. That 
being the case, if you are puting this into an e-mail message, you 
probably want to add line breaks after each line:
$message .= $var.\n;

Check out string operators:
http://www.php.net/manual/en/language.operators.string.php
and assignement operators:
http://www.php.net/manual/en/language.operators.assignment.php

Good luck...

Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Meeting cutting edge dynamic
web site needs

For a good time,
http://www.AppIdeas.com/





OK, thanks for that Chris.

I did get it in the end, with something very similar to what you
suggested:

$message = ;

while (  )
{
$var1 = $row[1];
... etc

$item = $var1 $var2 $var3 etc;
$message = $message . $item . \n;
}

Your solution is cleaner so I'll change it over. I'd written the whole
cart in one sitting up to then, and was fairly cross-eyed by that stage.


On Sat, 23 Jun 2001, Christopher Ostmo wrote:

 Michael Hall pressed the little lettered thingies in this order...
 
  
  I'm stuck on a piece of code for a shopping cart.
  
  I'm on the final page where the buyer clicks BUY and several things
  happen. I want to loop through the table that stores the session info and
  extract details such as item, price, quantity, subtotal and assign all this
  info to one variable:
  
  $var = the output of a 

[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 so I am 
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?

Cheers
-- 
Phil Driscoll

-- 
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] 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, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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
> pretty horrific.

>$listing = "06/24/01/04:00 pm/VH1/Saturday Night Live 25: The Music";
>create($listing, $max_days);


Hi Rick,

Holy smoke, nice code but i would like to tell you about some other ways to  handle data.


If you have access to an online database like MySQL (or whatever) you can  make one page to enter events into a MySQL database table and then in  another page show the events. This will have a data query which sorts the  items by date. You can even sort with subsections like by artist fisst and  then by date.

If you don't have access to an online database i would say: make a seperate  file with the data. 
In your codepage: 
* read that file line by line and put it in an event-array.
* sort the event-array by date.
* reset the event-array so the index is at the first item (reset  ($event_array))
* now go through the array using the while function.


An advanced programmer could make a page in which you could edit that data  file through php.

The way the file should look? 
Depends. I suggest to use the CSV file ormat as there are free PHP code  classes around to help you handle the file and data in it.
A line might look like:
'010624',04:00,'pm','VH1','Saturday Night Live 25: The Music'

(as you see i would put the comlete date in the first field with the YYMMDD  format to ease sorting, however you would need to adapt your whole script  then...)

Tips to make the production of that event data file easy:

Excel tip: If you enter you stuff in an Excel sheet you can sort it before  exporting it as a CSV file. 
Excel tip 2: make a worksheet with the top row as labels. Then try menu:data  item: form. Voila, a simple data entry form!

?SPAM
Excel tip 3: I have a nice VBA script to ease data entry in Excel. It shows  you a nice data entry form. You can even export the data into some  customizable template, ordered! Mail me if you are interested. 
?>

 Chris
* i do not read my email every day *



--  C.Hayes  Droevendaal 35  6708 PB Wageningen  the Netherlands  --


 

-- 
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]



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?

Google reveals
http://www.logictran.com/

-- 

Sapere aude
My mind not only wanders, it sometimes leaves completely.


-- 
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]




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 one server, and a transmitter program on the other which 
prints out the file upon (authorized) request.

My content management system SIMPL passes files from the webmaster 
interface screen on my site over to the customer's hosting server; however 
I decided to use FTP in the backend to accomplish the task.

Marty

Face 2 Interface Web Solutions
Website Creation Made SIMPL(tm)
Online Demo Available
http://face2interface.com/Home/Demo.shtml


-- 
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]




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

-- 
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]




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

 $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 = mysql_db_query (celebzone, $query);

 $num = mysql_num_rows($result);

 $j=0;
 $i=0;
 echo table border=0\n;

 for ($j = 0; $j  $num; $j++)
 {
 echo 'tr\n';
 for ($i = 0; $i = 1; $i++)
 {
 @$result = mysql_fetch_array($result);
 @$id = $result[id];
 @$title = $result[title];

 echo td\n;
 echo $title;
 echo /td\n;
 }
 echo /tr\n;
 }

 echo /table;
 echo brbr\n;


 ?

 Jason Lotito
 www.NewbieNetwork.net
 PHP Newsletter: http://www.newbienetwork.net/ciao.php
 PHP, MySQL, PostgreSQL Tutorials, Code Snippets, and so much more


  -Original Message-
  From: McShen [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, June 23, 2001 11:22 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] -coding help
 
 
  Hi
 
  I have a script which queries mySQL and outputs 32 links at
  once. Here is my scipt
  
  ?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 = mysql_db_query (celebzone, $query);
 
  $num = mysql_num_rows($result);
 
  $j=0;
  $i=0;
  echo table border=0\n;
  echo tr\n;
  while ($j!=$num)
  {
  @$r = mysql_fetch_array($result);
  @$id = $r[id];
  @$title = $r[title];
 
echo td\n;
echo $title;
echo /td\n;
  // new row in table every other link
  $i++;
   if (($i % 2)  1)
{
echo /tr\ntr\n;
}
 
  $j++;
  }
  echo /table;
 
  echo brbr\n;
 
 
  ?
  ---
  And here is the link to see it in action
  http://www.celebritieszones.com/ln.php?list=0
 
  If you check
  my HTML source, at the end, right before /table, you will
  see an extra tr. I know the cause of this. It's because of this
  ---
  
  $i++;
   if (($i % 2)  1)
{
echo /tr\ntr\n;
}
  
  -
 
  I don't know how to fix the problem. Please help me re-write
  the script a bit so that it doesn't add the extra tr.
 
  Thanks in advance.


 --
 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 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] 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
  BURNER
  B_l_a_d_e
  BaRTHY
  BichoPapaun
  BoNo-VoX
  Bob_Marley^
  Bony_Gyn
  Boy_in_Flames
  Buzz_Buzzard
  C@sþË®
  CA0S
  CARIOCA_H_19
  CLAUDIM
  CONVERTIDO
  COWBOY-DAS-MULHE
  Calu
  Cereau_Quiler
  Chrono_Jadson
  CoRTeZ
  Crash'n_Over
  Crison
  Cyberflux
  DIEGO (USA)
  DOOTman
  DhIMEnOr_
  DicK_DaLe
  Dick-||-Tracy
  Doc_Holiday
  DoomMan
  Duende_Fumacinha
  Dunkel
  EDDIE_|_VEDDER
  E_o_ToRa
  Ed_Cav@lerA
  Eslander
  Eudd
  F103_Mirage
  F14-TONCAT
  FREDDY2002
  FUNtastic
  FaIm
  Ferds
  Feyhong
  Feyhong
  Filipe_TJF
  FireBelt
  FlAnIgAnS
  FoRgAdOsEmKoNtIa
  Folley
  Fred_TJB
  Fulias
  GARTHBRooKs
  Gagary
  Gaspper_Man
  Gatinho Carente
  Geburah
  GiNeS_fRoBoW
  Godsmack
  GuiLhErMe_LP_17
  GustavoBond
  HADSPACE
  Hass
  HeItOrZiM
  HenRiQuE-GO
  IIGuttoII
  Ice_Hot
  IrOn_MaN-
  Ispirokado
  JONNY-BH
  JR2000
  Japa_loiro
  Jerry_Cantrell
  JuNiOr-GyN
  JuNiOr-JR
  Junior_GO
  KINDAROW
  Karaiba
  Khazed
  Kobaiat
  Krug
  LEO
  LOOSEBOY_DF
  Larry_Mullen_Jnr
  Leonardo-_-
  Lethal_Dan
  Liquidsnake
  LoS-LoCoS
  LoUkEtS
  Logansan
  Lone_Eagle
  Luisinho
  Lunnatic
  MAGNATO
  MAL-ACABADO
  MARCIOPAULISTANO
  aInFrAmE
  MaKoRn
  MaZiN
  Mackau
  McFlay
  McJay
  MoLeQuE_fEiO
  Monitorr
  Morte_aos_hansoN
  Mula_Cobain
  MuricocaTheCrazy
  Mwell
  MysteriousBoy
  NETO23A.
  Nash_Bridges
  NiCk_man
  Nivercon_JP_
  NoBIOS
  O-SuRtO
  OVERMARZ
  Orfheu
  Orion-br
  OsManoW_
  PDIOGO
  PISCAO
  PaSSoKKa
  Packardd-Pillow
  PcWizarD
  Pedro-A
  iQUi
  PiRaTaH
  Pumbassauro
  R@uL_GuNNe
  REILLER
  RICKY
  RPD
  Rave
  Red_Squadrow
  Rhumba
  Rideitor
  Ritler
  Rockslife
  SER_FEIO_DOI
  SIGFRIED
  SPOKEN
  Santana^
  ScoobyDubyDoo
  Seinfeld-
  Sheep_Man
  Sheepboy
  SiDMont
  Simple_Of_Heart
  Sir_Galahad
  Skolgt
  Sky_Cobain
  SpAnK_ThRu
  Spaik
  Spartacus_goiano
  Spider`s_Lullaby
  Spire_maze
  Stierman
  T-Blue_Wolf-T
  TC
  TIRAONDA_MAN_USA
  TOMPOO
  TYLLY
  Tabata-Jiraya
  Tekathlon
  The_Mad
  The_Scream
  ThiagoPozzato
  Tiglup
  Topera_Roedor
  Vegetal
  Victor
  Vox_Dei
  Wolwerine
  XXXReCrUtAXXX
  ZZOOOO
  [C410]
  [DarkWolf]
  [HellRayser]
  [SKELTER]
  [[[Amon-Ha]]]
  [mino]
  [{MORPHEU}]
  [{morpheu}]
  [|Dugy|]
  ^ANJO-DE-LUZ^
  ^AsTrOnOmY^
  ^Buiu^
  ^Poltergeist^
  ^Saga^
  ^SuBLinE^
  ^Tourniquet^
  ^MAU^^
  ^the-redpeppars^
  _Cheick_
  _Kaiser_
  _Magaiver_
  _ObsessioN_
  _PEnsADor_
  _]Speck[_
  _bandit_
  _marvin_
  _re_volt_VoX
  _xXJecaXx_
  antonelli
  bacteria_
  bad_clusters
  bitoca
  bowser
  bussund
  c_a_i_o
  cenourinha
  cessel
  chinforinforo
  colders
  cooldevil
  curquens
  derboy
  derboy
  didi_forever
  digb
  eygeryryrurt
  ezomatrixx
  ferdoido
  flakiko
  flyd
  free_e_o_mano
  gatodoido
  get46aps
  glauco-tavera
  haway_
  hebert
  jrhot-angel
  k@¥ßë®  ¤¤¤ anjo
  kadu-usa
  lindinho-usa
  llnetaoll
  m3rl1n
  mr-boy
  murilo_usa
  netao
  netscaper
  p3
  paul-USA
  pilha
  primo
  profvitor
  rafa_man
  rvt
  sLauGhter^
  scoop-mem
  silverfreak
  starvation
  trapizomba
  wolfthedie
  z3r0k
  {B_I_S_C_O_I_T_O
  {Blink-182}
  {Blink-182}
  {Prince}
  {ScReaM{
  {VeN0N_Br0WeR}
  {[DEDEL]}
  {[dust]}
  {]Kdinho[}
  {{AgAiNsT}}
  {{SPRINT}}
  {{WhiteWolf}}
  {{vbsk8}}
  {{{iron}}}
  }???
  {}CeLiM{}
  |AtEcUbAnOs|{
  |BaRdOk|
  |CirrOZZY|
  |JAMES-HETFIELD|
  |MaVeRiCk|
  |NiZoN|
  |PiRuLiTo|
  |RICKFIO|
  |RzO|
  |SuperMan|
  |TiBoR|
  |_DaNgErOuS_|
  |_ninguem_|
  |vasquito|
  ||AciD_PillS||
  ||Corinthiano||
  ||DeUsGrEgU||
  ||EmINeM||
  ||Guest||
  ||LoRd||
  ||Th0MaS_Br0wN||
  

[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 php-406, i'll get this error:
checking if the location of ZLIB install directory is defined... no
checking whether to include ZLIB support... yes
configure: error: Cannot find libz

This isn't a big problem, using --with-zlib it wil configure  compile,
but i found it strange anyway.
Next problem is with gd, i'm using it to create .png's, which worked
fine with previous php's, but this time it won't compile with built-in
.png support, ./configure says:
checking for gdImageString16 in -lgd... yes
checking for gdImagePaletteCopy in -lgd... yes
checking for gdImageCreateFromPng in -lgd... no
checking for gdImageCreateFromGif in -lgd... no

this is bad ;)
So i recompiled gd-1.3.8, and zlib-1.1.3, with libpng-1.0.10 and
jpeg-6b, still it is a no-go, so i have to stick with php-405 until this
is solved, i hope someone has a solution, or otherwise i have to keep
trying ;-)

tia,
Kees Hoekzema
Serveradmin
http://www.webmagix.net
http://www.tweakers.net
http://www.fokzine.net


-- 
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]




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
--enable-gd-imgstrttf
--with-jpeg-dir=/usr
--with-png-dir=/usr

-Rasmus

On Sun, 24 Jun 2001, Kees Hoekzema wrote:

 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-406, i'll get this error:
 checking if the location of ZLIB install directory is defined... no
 checking whether to include ZLIB support... yes
 configure: error: Cannot find libz

 This isn't a big problem, using --with-zlib it wil configure  compile,
 but i found it strange anyway.
 Next problem is with gd, i'm using it to create .png's, which worked
 fine with previous php's, but this time it won't compile with built-in
 .png support, ./configure says:
 checking for gdImageString16 in -lgd... yes
 checking for gdImagePaletteCopy in -lgd... yes
 checking for gdImageCreateFromPng in -lgd... no
 checking for gdImageCreateFromGif in -lgd... no

 this is bad ;)
 So i recompiled gd-1.3.8, and zlib-1.1.3, with libpng-1.0.10 and
 jpeg-6b, still it is a no-go, so i have to stick with php-405 until this
 is solved, i hope someone has a solution, or otherwise i have to keep
 trying ;-)

 tia,
 Kees Hoekzema
 Serveradmin
 http://www.webmagix.net
 http://www.tweakers.net
 http://www.fokzine.net





-- 
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]




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 the schools have to accept documents in that format so I am
 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?
 
 Cheers
 --
 Phil Driscoll
 
 --
 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]

-- 
Justin Farnsworth
Eye Integrated Communications
321 South Evans - Suite 203
Greenville, NC 27858 | Tel: (252) 353-0722

-- 
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] 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 (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]




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
 
 http://www.php.net/manual/en/function.ucwords.php
 
 Data Driven Design
 P.O. Box 1084
 Holly Hill, Florida 32125-1084
 
 http://www.datadrivendesign.com
 http://www.rossidesigns.net
 - Original Message -
 From: Jason Katz-Brown [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, June 23, 2001 1:46 PM
 Subject: [PHP] Making a string title case ?
 
 
  Hi
 
  Whats the best way to make $string title case? In other words, turn this
 is
  a string into This Is A String ?
 
  Thanks a bunch
 
  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 list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -- 
 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 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] 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 command would be for PHP? Thanks

Justin



-- 
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]




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 find some webpages related to this topic, as far as I know
even the official PHP Manual contains something abot this.
Best wishes
Balazs

On Sun, 24 Jun 2001, Ted Shaw wrote:

 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 that are located on my c: drive but will access php files on the net.
 There must be a simple explanation.

 Any help greatly appreciated...

 Ted Shaw


 --
 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 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]




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 equivalent command would be for PHP? Thanks

See http://php.net/virtual


-- 
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]




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 a Word file 
from the project I'm working on, the software crashed and exited with a load 
of panic messages :(

Cheers
-- 
Phil Driscoll

-- 
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]




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 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 

 

 
See http://php.net/virtual 
 

 
-- 
 
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] 
 

 
-- 

_
Oi! Você quer um iG-mail gratuito?
Então clique aqui: http://registro.ig.com.br/


-- 
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]




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 general [EMAIL PROTECTED]
Sent: Sunday, June 24, 2001 11:39 AM
Subject: Re: [PHP] converting Word documents to something sensible


 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 a Word
file
 from the project I'm working on, the software crashed and exited with a
load
 of panic messages :(

 Cheers
 --
 Phil Driscoll

 --
 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 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]




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 interested.
And, after we read in a Word file, we _can_ write it out
to HTML, but it ain't pretty...

I sympathize with you.

The best of British luck.

_jef

---

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, when I tested the software via its gui and load a Word file
 from the project I'm working on, the software crashed and exited with a load
 of panic messages :(
 
 Cheers
 --
 Phil Driscoll

-- 
Justin Farnsworth
Eye Integrated Communications
321 South Evans - Suite 203
Greenville, NC 27858 | Tel: (252) 353-0722

-- 
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]




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 that are located on my c: drive but will access php files on the
net.
 There must be a simple explanation.

 Any help greatly appreciated...

 Ted Shaw


 --
 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 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]




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 http://www.gdd.net


- Original Message -
From: Zak Greant [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Justin Farnsworth [EMAIL PROTECTED]
Cc: php general [EMAIL PROTECTED]
Sent: Sunday, June 24, 2001 1:42 PM
Subject: Re: [PHP] converting Word documents to something sensible


 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 general [EMAIL PROTECTED]
 Sent: Sunday, June 24, 2001 11:39 AM
 Subject: Re: [PHP] converting Word documents to something sensible


  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 a Word
 file
  from the project I'm working on, the software crashed and exited with a
 load
  of panic messages :(
 
  Cheers
  --
  Phil Driscoll
 
  --
  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 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 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]




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.

-Original Message-
From: Phil Driscoll [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 24, 2001 3:39 PM
To: php general
Subject: [PHP] converting Word documents to something sensible


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 I am
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?

Cheers
--
Phil Driscoll

--
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 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]




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 wrote:
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

--
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 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]




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 "service handle not
  intitialized" one) in my server too.
  I have traced it to attemtps to close an already closed connection, as
  in
 
  $cone = OciLogon(...);
  ...stuff...
  OciLogout($cone);
  ...stuff...
  OciLogout($cone);
 
 believe me - this is not the cause of the message.

any ideas?

-Stathis.

 tc

-- 
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]




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 = mysql_db_query (celebzone, $query);

$num = mysql_num_rows($result);

$j=0;
$i=0;
echo table border=0\n;

for ($j = 0; $j  $num; $j++)
{
echo 'tr\n';
for ($i = 0; $i = 1; $i++)
{
@$data = mysql_fetch_array($result);
@$id = $data[id];
@$title = $data[title];
  
echo td\n;
echo $title;
echo /td\n;
}
echo /tr\n;
}

echo /table;
echo brbr\n;


?


Jason Lotito
www.NewbieNetwork.net
PHP Newsletter: http://www.newbienetwork.net/ciao.php
PHP, MySQL, PostgreSQL Tutorials, Code Snippets, and so much more

 -Original Message-
 From: McShen [mailto:[EMAIL PROTECTED]] 
 Sent: Sunday, June 24, 2001 10:45 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] -coding help
 
 
 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...


-- 
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]




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 --with-gd-[DIR] is set correctly 
during PHP's ./configure, but make still goes kablooey.

What about posting the exact details of what went wrong (don't munge them, 
it only makes
it harder to solve your problems).


-- 
Andreas D Landmark / noXtension
Real Time, adj.:
 Here and now, as opposed to fake time, which only occurs there
and then.


-- 
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]




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 problem when people browse from a http page to a https
page and go out again?

thx


Christopher Ostmo [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó
3B337955.15490.27965520@localhost">news:3B337955.15490.27965520@localhost...
 Bass??? pressed the little lettered thingies in this order...

  I have a Q.
  will the Session ID be stolen by hacker when the ID tranfer bewteen
client
  and server ? Then can the hacker send the ID to server and veiw the
user's
  page ?
 

 Yes.  That *can* happen to any non-encrypted transmission that
 passes over an untrusted network.  It would be difficult to do, so it's
 unlikely, but it *can* happen. It would require a packet sniffer on your
 network, on the target network or somewhere between.

 If you want to prevent this, you should match session ID with requesting
 IP addresss, log both into a database and check both for each page
 request.

 If the data being accessed is *that* important that a hacker would go
 through that much trouble to hijack a session, you probably should
 consider using SSL.

 Christopher Ostmo
 a.k.a. [EMAIL PROTECTED]
 AppIdeas.com
 Meeting cutting edge dynamic
 web site needs

 For a good time,
 http://www.AppIdeas.com/

 --
 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 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]




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 ^m^a^x^, @@@max, and ~=max=~ get sorted together (for example).


Rafael Faria [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...


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
  BURNER
  B_l_a_d_e
  BaRTHY
  BichoPapaun
  BoNo-VoX
  Bob_Marley^
  Bony_Gyn
  Boy_in_Flames
  Buzz_Buzzard
  C@sþË®
  CA0S
  CARIOCA_H_19
  CLAUDIM
  CONVERTIDO
  COWBOY-DAS-MULHE
  Calu
  Cereau_Quiler
  Chrono_Jadson
  CoRTeZ
  Crash'n_Over
  Crison
  Cyberflux
  DIEGO (USA)
  DOOTman
  DhIMEnOr_
  DicK_DaLe
  Dick-||-Tracy
  Doc_Holiday
  DoomMan
  Duende_Fumacinha
  Dunkel
  EDDIE_|_VEDDER
  E_o_ToRa
  Ed_Cav@lerA
  Eslander
  Eudd
  F103_Mirage
  F14-TONCAT
  FREDDY2002
  FUNtastic
  FaIm
  Ferds
  Feyhong
  Feyhong
  Filipe_TJF
  FireBelt
  FlAnIgAnS
  FoRgAdOsEmKoNtIa
  Folley
  Fred_TJB
  Fulias
  GARTHBRooKs
  Gagary
  Gaspper_Man
  Gatinho Carente
  Geburah
  GiNeS_fRoBoW
  Godsmack
  GuiLhErMe_LP_17
  GustavoBond
  HADSPACE
  Hass
  HeItOrZiM
  HenRiQuE-GO
  IIGuttoII
  Ice_Hot
  IrOn_MaN-
  Ispirokado
  JONNY-BH
  JR2000
  Japa_loiro
  Jerry_Cantrell
  JuNiOr-GyN
  JuNiOr-JR
  Junior_GO
  KINDAROW
  Karaiba
  Khazed
  Kobaiat
  Krug
  LEO
  LOOSEBOY_DF
  Larry_Mullen_Jnr
  Leonardo-_-
  Lethal_Dan
  Liquidsnake
  LoS-LoCoS
  LoUkEtS
  Logansan
  Lone_Eagle
  Luisinho
  Lunnatic
  MAGNATO
  MAL-ACABADO
  MARCIOPAULISTANO
  aInFrAmE
  MaKoRn
  MaZiN
  Mackau
  McFlay
  McJay
  MoLeQuE_fEiO
  Monitorr
  Morte_aos_hansoN
  Mula_Cobain
  MuricocaTheCrazy
  Mwell
  MysteriousBoy
  NETO23A.
  Nash_Bridges
  NiCk_man
  Nivercon_JP_
  NoBIOS
  O-SuRtO
  OVERMARZ
  Orfheu
  Orion-br
  OsManoW_
  PDIOGO
  PISCAO
  PaSSoKKa
  Packardd-Pillow
  PcWizarD
  Pedro-A
  iQUi
  PiRaTaH
  Pumbassauro
  R@uL_GuNNe
  REILLER
  RICKY
  RPD
  Rave
  Red_Squadrow
  Rhumba
  Rideitor
  Ritler
  Rockslife
  SER_FEIO_DOI
  SIGFRIED
  SPOKEN
  Santana^
  ScoobyDubyDoo
  Seinfeld-
  Sheep_Man
  Sheepboy
  SiDMont
  Simple_Of_Heart
  Sir_Galahad
  Skolgt
  Sky_Cobain
  SpAnK_ThRu
  Spaik
  Spartacus_goiano
  Spider`s_Lullaby
  Spire_maze
  Stierman
  T-Blue_Wolf-T
  TC
  TIRAONDA_MAN_USA
  TOMPOO
  TYLLY
  Tabata-Jiraya
  Tekathlon
  The_Mad
  The_Scream
  ThiagoPozzato
  Tiglup
  Topera_Roedor
  Vegetal
  Victor
  Vox_Dei
  Wolwerine
  XXXReCrUtAXXX
  ZZOOOO
  [C410]
  [DarkWolf]
  [HellRayser]
  [SKELTER]
  [[[Amon-Ha]]]
  [mino]
  [{MORPHEU}]
  [{morpheu}]
  [|Dugy|]
  ^ANJO-DE-LUZ^
  ^AsTrOnOmY^
  ^Buiu^
  ^Poltergeist^
  ^Saga^
  ^SuBLinE^
  ^Tourniquet^
  ^MAU^^
  ^the-redpeppars^
  _Cheick_
  _Kaiser_
  _Magaiver_
  _ObsessioN_
  _PEnsADor_
  _]Speck[_
  _bandit_
  _marvin_
  _re_volt_VoX
  _xXJecaXx_
  antonelli
  bacteria_
  bad_clusters
  bitoca
  bowser
  bussund
  c_a_i_o
  cenourinha
  cessel
  chinforinforo
  colders
  cooldevil
  curquens
  derboy
  derboy
  didi_forever
  digb
  eygeryryrurt
  ezomatrixx
  ferdoido
  flakiko
  flyd
  free_e_o_mano
  gatodoido
  get46aps
  glauco-tavera
  haway_
  hebert
  jrhot-angel
  k@¥ßë®  ¤¤¤ anjo
  kadu-usa
  lindinho-usa
  llnetaoll
  m3rl1n
  mr-boy
  murilo_usa
  netao
  netscaper
  p3
  paul-USA
  pilha
  primo
  profvitor
  rafa_man
  rvt
  sLauGhter^
  scoop-mem
  silverfreak
  starvation
  trapizomba
  wolfthedie
  z3r0k
  {B_I_S_C_O_I_T_O
  {Blink-182}
  {Blink-182}
  {Prince}
  {ScReaM{
  {VeN0N_Br0WeR}
  {[DEDEL]}
  {[dust]}
  {]Kdinho[}
  {{AgAiNsT}}
  {{SPRINT}}
  

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;

// accepts nothing, returns nothing
function ClearRow() {
global $in_row;
$in_row = 0;
}

// accepts text string, returns true if row is full
function AddToRow($val) {
global $row, $in_row;
$row[$in_row++] = $val;
return($in_row = PER_ROW);
}

// accepts nothing, returns row string
function MakeRow() {
global $row, $in_row;

$str = ;
for ($i = 0; $i  PER_ROW; $i++)
$str .= \n\t\ttd.($i  $in_row ? $row[$i] : )./td;

ClearRow();
return \n\ttr$str\n\t/tr;
}

// accepts database result handle, returns table string
function MakeTable($result) {
$str = ;
while($row = mysql_fetch_array($result))
if (AddToRow($row[title]))
$str .= MakeRow();

return \ntable border=\0\$str\n/table;
}

$query = SELECT * FROM refer ORDER BY hits, desc LIMIT $list, $end;
$result = mysql_db_query (celebzone, $query);

ClearTable();
echo MakeTable($result);



This separates things out so you can see that each pair of tags matches; it
also doesn't leave incomplete rows in your table (ie if there is an odd
number of links returned) and makes it easy to change the number of columns
and rows.



-- 
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] 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, December 31, 1969 - 6:00pm
after being run through the above date() params?

Obviously, the file HAS been modified ever so slightly since that date
in history!!

Thanks,

Gene Kelley



-- 
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]




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 anyone had any luck getting it to work? I can compile both Apache fine
 and add php as a module no problem and Apache is happy. But it will not
 parse any PHP content. Please help!
 
 -- 
 Austin Gonyou
 Systems Architect, CCNA
 Coremetrics, Inc.
 Phone: 512-796-9023
 email: [EMAIL PROTECTED] 
 
 -- 
 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 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]




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 = /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, December 31, 1969 - 6:00pm
 after being run through the above date() params?

 Obviously, the file HAS been modified ever so slightly since that date
 in history!!

 Thanks,

 Gene Kelley






-- 
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]




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 - g:ia,$LastMod) . /I\n;
 ?
 
 Returns  :
 This page last modified on Wednesday, December 31, 1969 - 6:00pm
 after being run through the above date() params?
 
 Obviously, the file HAS been modified ever so slightly since that date
 in history!!

You havent used a correct timestamp. $LastMod is wrong. This means
filemtime() delivers something strange or nothing. Please check $LastMod.
Timestamps start at 1.1.1970.

-Egon

-- 
LinuxTag, Stuttgart, Germany: July 5-8 2001: http://www.linuxtag.de/
All known books about PHP and related books: http://php.net/books.php 
Concert Band of the University of Hohenheim: http://www.concert-band.de/
First and second bestselling book in German: http://www.php-buch.de/

-- 
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]




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 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, December 31, 1969 - 6:00pm
 after being run through the above date() params?
 
 Obviously, the file HAS been modified ever so slightly since that date
 in history!!
 
 Thanks,
 
 Gene Kelley
 
 
 
 -- 
 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 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]




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 and can be different from place to place 
depending on your timezone settings. in this case gmdate() should return 'jan 1 1970 
00:00'.

lenar.

 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 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, December 31, 1969 - 6:00pm
 after being run through the above date() params?
 
 Obviously, the file HAS been modified ever so slightly since that date
 in history!!
 
 Thanks,
 
 Gene Kelley
 
 
 
 -- 
 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 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 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]




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 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 that are located on my c: drive but will access php files on the
net.
 There must be a simple explanation.

 Any help greatly appreciated...

 Ted Shaw


 --
 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 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]




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, linking them  to a

SELECT id, name, email FROM wedding WHERE replied='N'

for each row returned,

mail($email, Online wedding invitation,
\nPlease visit http:/myserver/register.php?id=$id to register);


 Thanks for any help anyone can provide.  :-)

 Gene Kelley



-- 
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]




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 use InputImageName_x  0 to know if a button was clicked.
 
 How can I get the value on my input type=image?
 
 Like: input type=image name=contatc value=002545645
 
 how can I get 002545645 with $contatc?
 
 thanks,
 
 Augusto
 
 
 -- 
 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 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]




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, next one :)

I'm trying to use gd-2.0.1, because of the better features,
so i compile with:
./configure   
   --with-apache=/usr/src/apache
   --enable-track-vars
   --enable-magic-quotes
   --with-gd=/usr/src/gd2
   --with-mysql=/usr/src/mysql
   --with-zlib=/usr/local
   --with-jpeg-dir=/usr/src/jpeg
   --with-png-dir=/usr/src/libpng

which configures  compiles fine, after i link:
ln /usr/src/gd2/libgd.so.2.0.0 /usr/src/gd2/libgd.so

But.. i'll get a nice error when using gd-2.x functions..
Fatal error: imagecopyresampled(): requires GD 2.0 or later in
/www/test/pwchart.dsp on line 213

it isn't an urgent question, but i hate it when it can't
compile the way it should be ;)

- Kees



-- 
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]




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, when I tested the software via its gui and load a Word file 
 from the project I'm working on, the software crashed and exited with a load 
 of panic messages :(
 
 Cheers
 -- 
 Phil Driscoll
 

Try http://www.wvware.com which has the command line version of the
conversion tool used in Abiword.


Adam

-- 
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] 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 extensions for PHP, I would have to have teh MSSQL libraries. What
exactly does this mean? When I uncomment the MSSQL extension in php.ini, it
still says taht I don't have the MSSQL functions (probably because I don't
have these libraries). How do I get these libraries, or is this not even the
problem?

On another note, how does one connect to a remote DB over ODBC? I've looked
at the syntax (and what varous people have told me), and nothing seems to
make sense as to where to put the host IP and where to put where the DB
name... I'm fine connecting to the same computer that the script is on, but
the syntax to remotely connect via ODBC just doesn't seem to make any sense
with me (BTW, this problem connecting over ODBC has nothing to do with my
MSSQL problem; that I can connect remotely over).

--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 list administrators, e-mail: [EMAIL PROTECTED]




[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 mime.types

I even tried the LoadModule trick, but since I didn't compile as a
module, that just gave me an error when I restarted the  server.

I'm new to Apache and PHP set up so I'm probably missing something
obvious. And I've RTFM and archives and books and everything I can find,

but still no luck.

TIA for any suggestions.

Brent






-- 
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]




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 Action stuff. If you did:
Action application/x-httpd-php4 /php4/php.exe

then you should use:
AddType application/x-httpd-php4 .php

but if you did:
Action application/x-httpd-php /php4/php.exe

then you should use:
AddType application/x-httpd-php .php

That might work, it might not.

--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 list administrators, e-mail: [EMAIL PROTECTED]




[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,
only the name, not the value is stored. I've tried to store
strings, arrays, integers but no luck.

I do:
session_register(foo);
$foo=Great day;

and the file will only contain :foo| with no accompanying value.

I'm really stuck here, and everything works fine in windows
but not in RH7.1. I would be very greatful for any hints here.

/t eriksson




-- 
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]




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
 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 Action stuff. If you did:
 Action application/x-httpd-php4 /php4/php.exe
 
 then you should use:
 AddType application/x-httpd-php4 .php
 
 but if you did:
 Action application/x-httpd-php /php4/php.exe
 
 then you should use:
 AddType application/x-httpd-php .php
 
 That might work, it might not.
 
 --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 list administrators, e-mail: [EMAIL PROTECTED]
 


--
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] 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 the regex reads match string that begins with body followed by zero or
more of anything and ending with a greater-than sign.

Any help would be greatly appreciated! :)

Aral
__
([EMAIL PROTECTED])
New Media Producer, Kismia, Inc.
([EMAIL PROTECTED])
Adj. Prof., American University
¯¯



-- 
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]




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 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 Action stuff. If you did:
 Action application/x-httpd-php4 /php4/php.exe

 then you should use:
 AddType application/x-httpd-php4 .php

 but if you did:
 Action application/x-httpd-php /php4/php.exe

 then you should use:
 AddType application/x-httpd-php .php

 That might work, it might not.

 --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 list administrators, e-mail: [EMAIL PROTECTED]


-- 
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]




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 (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]




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 [.get_magic_quotes_runtime().];
set_magic_quotes_runtime (0);
echo [.get_magic_quotes_runtime().];

outputs:

[1][0]

But the site behaves as though magic quotes is still turned on!

Any tricks to using this command?

==
Murray Shields  Email: [EMAIL PROTECTED]
MU Systems Pty Ltd  Phone: +61 7 3351 6677
Global Catalogs Pty Ltd Phone: +61 7 3351 4777


-- 
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] 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);?

But it doesn´t work. You can see this warning in 
the explorer:

Warning: Unable to fork [cmd] in 
d:\inetpub\wwwroot\nntpadm\creategroup.php on line 3

I need to run some external programs from a PHP 
script. 
How could I do that?

Thanks in advance.
Rub


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 helps,

Aral :)
__
([EMAIL PROTECTED])
New Media Producer, Kismia, Inc.
([EMAIL PROTECTED])
Adj. Prof., American University
¯¯



-- 
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]




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 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] 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 this?

Thanks.

--
Keyboard not detected, press F1 to continue...




-- 
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]




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 PROTECTED])
New Media Producer, Kismia, Inc.
([EMAIL PROTECTED])
Adj. Prof., American University
¯¯



-- 
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] 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 them, but the 'value' component isn't supported for input
type=image ...

I figured I could write a short javascript that is called 'onClick' of the
button, copies a 'button number' to a hidden field, then executes the
'document.forms[0].submit()' function.   This works just fine for Netscape,
but the 'document.forms[0].submit()' even by itself doesn't work for IE 5.00.

Any one have any other ideas on how to do this?  multiple images for submit
buttons (where you know which you pressed).

I need to process the data in a PHP application.

Thanks,
-Scott-




-- 
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] 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

$name1=explode(+,$name);
  $fname=$name1[0] ;   this has what ever
  $lname=$name1[0] ;   this has nothing in it

  $fname has both names in it

  How come I get this it does not make since



Best regards,
 Richard  
mailto:[EMAIL PROTECTED]


-- 
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]




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 'name'  and 'Value' tags on the
 submit tag works for them, but the 'value' component isn't supported
 for input type=image ...

However, when you click an image submit, the x and y coords of the mouse 
are passed as name_x and name_y (where name is the name you have assigned 
to the INPUT tag); so you can test for the presence of one of those 
values and branch accordingly. Slightly more convoluted than a 'text' 
submit, but you don't need to rely on client side :-)


 I figured I could write a short javascript that is called 'onClick' of
 the button, copies a 'button number' to a hidden field, then executes
 the 'document.forms[0].submit()' function.   This works just fine for
 Netscape, but the 'document.forms[0].submit()' even by itself doesn't
 work for IE 5.00.

 Any one have any other ideas on how to do this?  multiple images for
 submit buttons (where you know which you pressed).

 I need to process the data in a PHP application.

 Thanks,
 -Scott-

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   All E-mail gladly received. Offensive reply ASAP.

-- 
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]




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 name=what+ever and sets $name = what ever.

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 list administrators, e-mail: [EMAIL PROTECTED]




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 href=whatever.php?name=what+evertest/a
 
 $name1=explode(+,$name);
   $fname=$name1[0] ;   this has what ever
   $lname=$name1[0] ;   this has nothing in it

It's an HTTP issue.  You only think you're passing what+ever in the 
second example; the value actually being passed is what ever. See
http://php.net/urlencode  http://php.net/rawurlencode

-- 
CC

-- 
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]




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 href=whatever.php?name=what+evertest/a
 
 $name1=explode(+,$name);
   $fname=$name1[0] ;   this has what ever
   $lname=$name1[0] ;   this has nothing in it
 
   $fname has both names in it
 
   How come I get this it does not make since

Try echo()'ing $name on the page you passed it to.
Notice anything different? :)

Before you pass values around with a query string, you
should prepare them first by processing them with 
rawurlencode().

--zak


-- 
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] 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 PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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;
 
 $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
 
 $name1=explode(+,$name);
   $fname=$name1[0] ;   this has what ever
   $lname=$name1[0] ;   this has nothing in it
 
   $fname has both names in it
 
   How come I get this it does not make since
 
 Best regards,
  Richard
 mailto:[EMAIL PROTECTED]
 
 --
 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 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]




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 you pressed).

INPUT TYPE='IMAGE' NAME='imagename' SRC='vdknfdf'

... in the receiving script you'll have the variables $imagename_x 
and $imagename_y if the image was clicked - they will also be the
x/y coords of where the user clicked.

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 list administrators, e-mail: [EMAIL PROTECTED]




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 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]




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 exactly what FormatPercent does - 
number_format, printf or sprintf.

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   What this country needs is a good five-cent microcomputer.

-- 
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]




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 to pass special characters (eg. +) in the url, you need to
nicole use a url encoding function like rawurlencode().. or choose another
nicole delimeter which can be passed in the url like these -_.

nicole s

nicole 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 href=whatever.php?name=what+evertest/a
 
 $name1=explode(+,$name);
   $fname=$name1[0] ;   this has what ever
   $lname=$name1[0] ;   this has nothing in it
 
   $fname has both names in it
 
   How come I get this it does not make since
 
 Best regards,
  Richard
 mailto:[EMAIL PROTECTED]
 
 --
 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]




-- 
Best regards,
 Richard  
mailto:[EMAIL PROTECTED]


-- 
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] $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 is
activated?

Thx, Kent


-- 
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]




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;

 works just fine? Or something with name spaces and when $PHP_SELF is
 activated?

 Thx, Kent

I think you need to declare $PHP_SELF global when referring to it in a 
function...

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   This tagl ineh asto oman yfou rlet terw ords.

-- 
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]




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 anyway). You've got to do:

class xCrumbs
{
   function Render(){
   global $PHP_SELF;
   echo $PHP_SELF;
}
}
$crumbs = new xCrumbs();
$crumbs-Render();

--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 list administrators, e-mail: [EMAIL PROTECTED]




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?
 
  Using PHP 3.0.16
 
 Stab in the dark as I dunno exactly what FormatPercent does - 
 number_format, printf or sprintf.


Takes a decimal number and formats it as a percentage.

-- 
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]




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 list administrators, e-mail: [EMAIL PROTECTED]




[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
have been developing completely written in PHP.

For the last 2 years I have been developing a XML based Meta-Language
compiler named MetaL.  It would take a long message to describe what it can
do and what are its advantages.

To summarize, basically it lets you use XML as source code of completely
redefinable programming language.  The compiler that I developed in PHP is
a modular application that translates XML commands into code of traditional
programming languages like PHP, but may be in anything else.

This is not a replacement for traditional languages, but rather a powerful
development tool for general improvement of software development methods.

Many PHP users already know something about this because I announced in the
PHP Classes site newsletter, but for those that are not yet aware, the
abstract for the presentation at O'Reilly Open Source Convention is here:

http://groups.yahoo.com/group/metal-dev/files/MetaL-Introduction.txt

The HTML presentation slides are here:

http://groups.yahoo.com/group/metal-dev/files/metal.tar.gz

or 

http://groups.yahoo.com/group/metal-dev/files/metal.zip

A 2-up printable version of the slides is here:

http://groups.yahoo.com/group/metal-dev/files/metal.pdf


The description of my talk on MetaL at the convention is here:

http://conferences.oreillynet.com/cs/os2001/view/e_sess/1874

The Early bird price for those that would like to attend to the whole
connvetion may be $400 off if you register before July 2.

If you are a member of O'Reilly user group you can have an additional 20%
discount.

The PHP Classes site subscribers are effectively members of an O'Reilly
user group.  If you are a subscriber of the PHP Classes site, just mail me
so I let you know how to get the user group discount.  If you are not a
subscriber, you may subscribe here:

http://phpclasses.UpperDesign.com/browse.html?login=1subscribe=1


Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--


-- 
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]