[PHP] Running scripts from within PHP similar to SSI

2001-06-23 Thread Bilal Deniz
Hi All, Just wondering if it were possible to do like the following SSI line: from within php. I know a php alternative should be made, but for the time being and for future's sake So far i've tried back ticks, passthru(), exec(), but the problem is that the URI and other variables aren

Re: [PHP] Output an image stream?

2001-06-23 Thread Matt McClanahan
On Sat, Jun 23, 2001 at 04:50:48PM -0700, Todd Cary wrote: > I have created a barcode as an image stream ($im). Now, I want to > output it in HTML to a particular row and column on a form. Do I have > to save it as a file so that I can use the routine or is > there a way to directly output the

Re: [PHP] OOP

2001-06-23 Thread Matthew M. Boulter
It sure is, but your code needs to look like this: class one { function one() { echo "one "; } } class two extends one { function two() { parent::one(); echo "two "; } } class three extends two { function three() { parent::two(); echo "three"; } } $foo

RE: [PHP] ->>coding help

2001-06-23 Thread Jason Lotito
This should work... \n"; for ($j = 0; $j < $num; $j++) { echo '\n'; for ($i = 0; $i <= 1; $i++) { @$result = mysql_fetch_array($result); @$id = $result[id]; @$title = $result[title]; echo "

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

2001-06-23 Thread Gonyou, Austin
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

Re: [PHP] ->>coding help

2001-06-23 Thread Carmen & Gene
McShen wrote: > Hi > > I have a script which queries mySQL and outputs 32 links at once. Here is my > scipt > > > $connection = mysql_connect("***","",""); > if ($connection==false) >{ > echo mysql_errno().":".mysql_error().""; > exit; >} > > $end = $list + 16; > > $

[PHP] ->>coding help

2001-06-23 Thread McShen
Hi I have a script which queries mySQL and outputs 32 links at once. Here is my scipt \n"; echo "\n"; while ($j!=$num) { @$r = mysql_fetch_array($result); @$id = $r[id]; @$title = $r[title]; echo "\n"; echo "$title"; echo "\n"; // new row in table every other link $i++; if (($i % 2)

[PHP] RSVP script anyone ???

2001-06-23 Thread Carmen & Gene
Hi all, 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 form where they can RSVP their decision to attend the wedding or not and how many they plan to bring? Visit http://www.lunenburg.org/wedding/rsvp

Re: [PHP] variables / reading files

2001-06-23 Thread Michael Hall
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

[PHP] Creating formatted documents

2001-06-23 Thread Todd Cary
I need to create a document that confirms to certain formatting criteria and then be able to give the surfer the ability to download the completed document preferrable, pdf. In other words, the document is a "legal" document and has some dynamic fields. Can this be done in php and if so, is ther

Re: [PHP] OOP

2001-06-23 Thread Aral Balkan
As I understand it in PHP the constructor of the parent class is not called when a child class is initiated. You can call it manually. Eg., using your example: class one { function one() { echo "one "; } } class two extends one { function two() { one::one();

[PHP] Php Files on Browser

2001-06-23 Thread Ted Shaw
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

[PHP] Events Listings

2001-06-23 Thread Rick Proctor
Hello, 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. If you could help me out with figuring out h

RE: [PHP] newbie algorithm help!!!!!

2001-06-23 Thread Warren Vail
You'll probably get as many approaches as replies. How about the following; after you have connected to mysql and selected the database; $query = "SELECT * FROM table"; $result = mysql_query ($query) or die ("Query $query failed. The error message was ".mysql_error ()); // The followi

Re: [PHP] mysql_free_result() question

2001-06-23 Thread Jakob Kruse
You should call mysql_free_result($Query) !! It all becomes a little clearer if you change the names of the variables as such: $result = mysql_query("select ..."); $row = mysql_fetch_assoc($result); That is, mysql_query() returns a "result", and mysql_fetch_*() returns a "row" from such a resul

[PHP] Output an image stream?

2001-06-23 Thread Todd Cary
I have created a barcode as an image stream ($im). Now, I want to output it in HTML to a particular row and column on a form. Do I have to save it as a file so that I can use the routine or is there a way to directly output the stream? Many thanks... Todd -- Todd Cary Ariste Software [EM

[PHP] PEAR

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

[PHP] PHP 4.0.6 + GD 2.0.1

2001-06-23 Thread Ben Gollmer
Hi all- Is anyone using PHP 4.0.6 with GD 2.0.1? (yes I like to live on the bleeding edge :-) I'm developing an application that does a lot of image operations and would like to be able to use the new ImageCopyResampled() and ImageCreateFromString() functions. I'm using PHP 4.0.6 with GD 1.8

Re: [PHP] variables / reading files

2001-06-23 Thread Christopher Ostmo
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

[PHP] PhpDEV

2001-06-23 Thread Brett Shaw
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] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PR

[PHP] Running external programs

2001-06-23 Thread Beginning PHP Programmer
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

RE: [PHP] newbie algorithm help!!!!!

2001-06-23 Thread Maamiin
I use this code to do this kind stuff: - BEGIN --- $result=mysql_query(...); $columns=2; //Count of columns $table="\n"; $table.=''; $col=0; //current column //Draw table content while ($row=mysql_fetch_row($result)){ $table.=''.$row[0].''; $c

Re: [PHP] Practical flock() implementation

2001-06-23 Thread Manuel Lemos
Hello CC, On 23-Jun-01 17:25:54, you wrote: >I'm having trouble understanding the docs and annotations on flock(). I've >got a script that needs to overwrite a data file's contents without letting >Instance B of that script truncate the data file while Instance A is still >writing new conten

[PHP] Get the value of a

2001-06-23 Thread Augusto Cesar Castoldi
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: 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

[PHP] Practical flock() implementation

2001-06-23 Thread CC Zona
I'm having trouble understanding the docs and annotations on flock(). I've got a script that needs to overwrite a data file's contents without letting Instance B of that script truncate the data file while Instance A is still writing new content to it. How do other people do this? It seems t

Re: [PHP] newbie algorithm help!!!!!

2001-06-23 Thread Zak Greant
McShen wrote: > > hi > > i have a mysql table with approx. 30 entries. > > > > I wanna get them(i know how to do that) and list them in a 2-column table. > I > > have been trying to use a loop to do it. But it will only produce a > 1-column > > table. it's like > > > > entry 1 > > entey 2 > > entr

Re: [PHP] newbie algorithm help!!!!

2001-06-23 Thread Jon Yaggie
is this what you want?  there must be an easier way.  i am sure some one else knows it be i would -   $result = mysql_query("select * from table"); ?>   $i = 0; while($my_array = mysql_fetch_array($result)) { if($i%2) { print"{$my_array[0]"; } else { print"{$my_array[0]}"; } $i++:   }   or

Re: [PHP] php 4.06 as an apache DSO Error

2001-06-23 Thread Julia A. Case
Make sure your configure statement contains something like this --with-apxs=/path/to/apxs Julia Quoting Daniel Guerrier ([EMAIL PROTECTED]): > I'm trying to install PHP 4.06 as a DSO with apache > 1.3.20 on redhat 7.1 and it produces this error. No > of which are the problem. What else can it

[PHP] gd library on win2k?

2001-06-23 Thread Noah Spitzer-Williams
how can i install the gd library for php on win2k using iis5? - Noah -- 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] OOP

2001-06-23 Thread Andrew Kirilenko
Hello! Is it possible to do normal inheritance on PHP? I've following code: ---> class one { function one() { echo "one "; } } class two extends one { function two() { echo "two "; } } class three extends two {

Re: [PHP] newbie algorithm help!!!!!

2001-06-23 Thread McShen
please share if you know hwo to di it. thanks you ""McShen"" <[EMAIL PROTECTED]> wrote in message 9gqm6o$g6n$[EMAIL PROTECTED]">news:9gqm6o$g6n$[EMAIL PROTECTED]... > hi > i have a mysql table with approx. 30 entries. > > I wanna get them(i know how to do that) and list them in a 2-column table.

[PHP] php 4.06 as an apache DSO Error

2001-06-23 Thread Daniel Guerrier
I'm trying to install PHP 4.06 as a DSO with apache 1.3.20 on redhat 7.1 and it produces this error. No of which are the problem. What else can it be?? Configuring SAPI modules checking for Apache module support via DSO through APXS... ./configure: /software/apache/bin: is a directory Sorry, I

Re: [PHP] Making a string title case ?

2001-06-23 Thread Data Driven Design
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]

[PHP] loading extension fails

2001-06-23 Thread Joe Stump
I've successfully compiled an extension for my php builder (pgsql.so) by doing the following: phpize ./configure make I then copied my shiny new extension to /usr/lib/php4/extensions/no-debug-non-zts-20001222 - which is where all my other php extensions are (mysql.so, gd.so, imap.so, etc). The

[PHP] Making a string title case ?

2001-06-23 Thread Jason Katz-Brown
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 t

[PHP] Setup Question

2001-06-23 Thread Patrick Smith
I’m installing PHP 4.0.5, I have Apache 1.3.20 installed currently and I’m also using a built in module of mod_perl 1.25.  Here’s my apache mod list [grumster]:12:38pm:/usr/local/apache/bin:(raq)-> ./httpd -l Compiled-in modules:   http_core.c   mod_env.c   mod_log_config.c   mod_mime

[PHP] Problems with include directory which falls under .htaccess protection

2001-06-23 Thread Tom Carter
Hi all, I have a .htaccess file with the following in it order allow,deny allow from all require user pilot Authname MySite Authtype Basic The page itselfs prompts for and accepts username/password correctly, however on that page are a number of included files.. The included files are in a subdi

[PHP] file upload: $userfile is never none

2001-06-23 Thread Matthias Bendel
sice i installed php 3.0.18 html forms whith blank file-input never returns 'none'. $userfile is always unset. with php 3.0.12 my file-upload scripts worked perfectly. i know i could do samething like: if ($userfile != 'none' && strlen($userfile)) { ... } but i have alot of scripts to change.

Re: [PHP] good chat script?

2001-06-23 Thread Alexander Wagner
Daniel Goldin (E-mail) wrote: > Anybody know of a good chat script? I'm hoping for the chat equivalent of > phorum. Thanks for any help. If you can live with the hassle of rebuilding PHP, you might try ircg from Sascha Schumann (http://www.schumann.cx). This is by FAR the most performant chat f

[PHP] readfile() question

2001-06-23 Thread Kristian Duske
Hi there, I was wondering what happens if you call the readfile function to output a large binary file to a client with a slow connection. Does the script run until the whole file is sent to the client (leading to timeout errors on servers with a low max execution time) or does it fill some sort

[PHP] RE: [PHP-DB] Design conundrum...

2001-06-23 Thread Kristian Duske
> The problem involves 2 tables, one of editors and one of categories, both > have unique ID numbers. Each editor can have authority over an arbitrary > number of categories, and conversely, each category can have an arbitrary > number of editors. So what is the best way to represent this in the

RE: [PHP] mysql_free_result() question

2001-06-23 Thread Kristian Duske
> Do I mysql_free_result the $Query or the $Result? If it's $Result, would > this be the same as just going unset($Result)? mysql_free_result() frees the ressources that the MySQL server allocated for the results of your query. This is in the memory space of the MySQL server, while if you unset($

Re: [PHP] math question

2001-06-23 Thread George Alexander
If u don't want to use the pi() function. Try M_PI. This is a pi constant its value is 3.14159265358979323846 $theta=15*M_PI/360; - Original Message - From: Anon Y Mous <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, June 23, 2001 2:21 PM Subject: Re: [PHP] math question >

Re: [PHP] good chat script?

2001-06-23 Thread Henrik Hansen
"Daniel Goldin \(E-mail\)" <[EMAIL PROTECTED]> wrote: > Anybody know of a good chat script? I'm hoping for the chat equivalent of > phorum. Thanks for any help. http://phpwizard.net/projects/phpChat/ - might give that one a go. -- Henrik Hansen -- PHP General Mailing List (http://www.php.

Re: [PHP] SubDomain Redirect

2001-06-23 Thread Henrik Hansen
"Jon Shoberg" <[EMAIL PROTECTED]> wrote: > Using Apache ... > > Any thoughts no how I can create a link: > > http://cars.mydomain.com and have it redirect to > http://www.mydomain.com/index.php?id=cars > > and > > http://www.mydomain.com/cars and have it redire

[PHP] PHP 4.0.6 Released!

2001-06-23 Thread Zeev Suraski
PHP 4.0.6 has been released. Like 4.0.5, this is a maintenance release which mostly includes fixes to bugs and issues found in earlier versions. Those of you who decided not to upgrade to 4.0.5, may now wish to jump directly to 4.0.6 to get all the new fixes of both versions. One very import

Re: [PHP] math question

2001-06-23 Thread Zak Greant
Have you defined the 'pi' constant? If you are trying to use PHP's built-in PI constant, it is named 'M_PI' Perhaps consider increasing your error reporting level so that PHP reports problems like undefined constants - see error_reporting() for more details. --zak - Original Message -

Re: [PHP] math question

2001-06-23 Thread Anon Y Mous
pi is a function. Try this: $theta = 15*pi()/360; It should return 0.13089969389957 -Evan Nemerson > $theta = 15*pi/360; > gives a value of 0 for $theta... it should be something like 0.131... > Julia -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTE

[PHP] Using post method thru php-script

2001-06-23 Thread George Alexander
Hi, I am developing a shopping-cart application and i need to authorize the credit-card no. of the customer. I need to use a post method thru my php-script a replica of which I am giving below: Script Start: // Build the request string $request.='cardnum='.urlencode(""); $re

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

2001-06-23 Thread Thies C. Arntzen
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 > intitia

Re: [PHP] OCIExecute hangs with invalid sql statement

2001-06-23 Thread Thies C. Arntzen
On Fri, Jun 22, 2001 at 11:27:42AM +0100, Euan Greig wrote: > The following code works fine if passed a valid sql statement in $sql, but > if not it hangs. > > $this->conn=OCIPLogon($orauser,$orapwd,$tns) or >die ("Could not log on to database"); > $this->stmnt = OCIParse($this->conn, $sql) o

Re: [PHP] math question

2001-06-23 Thread Hugh Bothwell
""Julia A. Case"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > $theta = 15*pi/360; > gives a value of 0 for $theta... it should be something like 0.131... > > Julia I get echo 15 * M_PI / 360; returns 0.13089969389957 -- PHP General Mailing Li

Re: [PHP] REG_EMPTY error

2001-06-23 Thread Zak Greant
This error means that you are using an empty string as your pattern for the regular expression. Throw a test like this in before the eregi_replace calls to check if this is the case: if ('' === $r[1]) { echo '$r[1] is an empty string'; } else if (NULL === $r[1]) { echo '$r[1] is NULL'; }

[PHP] math question

2001-06-23 Thread Julia A. Case
$theta = 15*pi/360; gives a value of 0 for $theta... it should be something like 0.131... Julia -- [ Julia Anne Case ] [Ships are safe inside the harbor, ] [Programmer at large] [ but is that what ships are really for.] [ Admining Linux ] [ To thine own

RE: [PHP] Is this a joke?!

2001-06-23 Thread Aaron Bennett
Title: RE: [PHP] Is this a joke?! Indeedy... http://uptime.netcraft.com/up/graph?mode_u=off&mode_w=on&site=www.perl.com&submit=Examine -- Aaron -Original Message- From: James Moore [mailto:[EMAIL PROTECTED]] Sent: Friday, June 22, 2001 1:06 PM To: 'Fredrik Arild Takle'; [EMAIL PROT

[PHP] good chat script?

2001-06-23 Thread Daniel Goldin \(E-mail\)
Anybody know of a good chat script? I'm hoping for the chat equivalent of phorum. Thanks for any help. daniel Daniel Goldin [EMAIL PROTECTED] 323.225.1926 BlueLamp Productions www.blue-lamp.com -- PHP General Mailing

Re: [PHP] Also related....(params)

2001-06-23 Thread CC Zona
In article <9h05jt$cav$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Brian Weisenthal") wrote: > I am trying to create a function that will check if a variable exists, if it > does leave it alone, if not create it. This is similar to for > those who know cold fusion. Anyone know a good way to deal wi

RE: [PHP] Is it possible to have the parameters fo a function be exited HTML?

2001-06-23 Thread Jason Lustig
> >Its probably just as fast for you to test it out using what you >have written >here as it is for someone to give you the answer. > Well, that thought occurred to me just after I sent the email... but there's nothing you can do after hitting the "send" button, can you? --Jason -- PHP Genera

Re: [PHP] passing arrays

2001-06-23 Thread Zak Greant
Jason Jacobs wrote: > Hi all. I'm trying to pass an array to another page, and I'm not having > luck. I thought maybe it would do something slick by passing it in the > url, but it doesn't. So, how can I pass the array? You can pass an array between pages by using the serialize() and u

[PHP] mysql_free_result() question

2001-06-23 Thread Chris Cameron
I'm a bit unclear as to which result it is I use this function on. So lets say I; $Query = mysql_query("SELECT something FROM here"); $Result = mysql_fetch_assoc($Query); Do I mysql_free_result the $Query or the $Result? If it's $Result, would this be the same as just going unset($Result)? Thank

[PHP] variables / reading files

2001-06-23 Thread Michael Hall
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