Re: [PHP] Exectution Time?

2004-01-30 Thread Chris Edwards
Either echo out the start and end time to either the page or write it to a file. Go to www.php.net and do a search on time. The first example will give you probably all you need. - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "Mike Mapsnac" <[EMAIL PROTECTED]>; <[EMA

Re: [PHP] OOP methodology

2004-01-30 Thread Adam Bregenzer
On Fri, 2004-01-30 at 04:41, Chris Neale wrote: > The main application would then do this: > > $q = new dbObj; > $x = new iterator; > $y = new HTMLGenerator($q, $x) > > while ($x->next()) > { > $y->MakeHTML(); > $y->outputToFile(); > } > > Anyone got any thoughts about whether this i

RE: [PHP] OOP methodology{O|T} kinda'

2004-01-30 Thread electroteque
Ok sorry, c++ then, yes thats another kettle of fish, i'm going to be doing some c++ to learn how to make vst plugins :D -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Friday, January 30, 2004 10:51 PM To: electroteque; [EMAIL PROTECTED] Subject: RE: [PHP] OOP metho

Re: [PHP] Exectution Time?

2004-01-30 Thread Mike Mapsnac
. smart guy .. From: "John W. Holmes" <[EMAIL PROTECTED]> Reply-To: "John W. Holmes" <[EMAIL PROTECTED]> To: "Mike Mapsnac" <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]> Subject: Re: [PHP] Exectution Time? Date: Fri, 30 Jan 2004 16:42:56 -0500 From: "Mike Mapsnac" <[EMAIL PROTECTED]> > Is there a w

Re: [PHP] Am I missing Something

2004-01-30 Thread Stuart
Phillip S. Baker wrote: And $somarray[ has more than four values. Try inserting the following line at after $somearray has been created and filled with values... print ''; print_r($somearray); print ''; That will display the array in nice format. I think you'll find that the indexes of the arra

Re: [PHP] Exectution Time?

2004-01-30 Thread John Nichel
John W. Holmes wrote: From: "Mike Mapsnac" <[EMAIL PROTECTED]> Is there a way to find out the execution time of php program? If you start a task at 10:00 and finish at 10:15, how long did it take? ---John Holmes... That depends. What time zone? Are the start and finish times in the same

RE: [PHP] Am I missing Something

2004-01-30 Thread Chris W. Parker
Stuart on Friday, January 30, 2004 2:56 PM said: > print ''; print_r($somearray); print ''; not to steal your glory stuart but you can make it easier on yourself by doing the following: echo '',print_r($somearray),''; it's merely less typing. hth, chris. -- PHP

[PHP] array block

2004-01-30 Thread Brian V Bonini
I'm having array block, trying to format the data in a two dimensional associative array. $menu = array ( 'link1' => array( 'url' => 'foo', 'title' => 'bar' ), 'link2' => array( 'url' => 'foo', 'title'

[PHP] vars in echoed file_get_contents string

2004-01-30 Thread Shawn McKenzie
I'm having a brain fart here: ---file.php $myvar = "Hello!"; $stuff = file_get_contents("file.html"); echo $stuff; ---file.html $myvar Any ideas why when $stuff is echoed I get $myvar and not Hello? Thanks! -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

RE: [PHP] Exectution Time?

2004-01-30 Thread Chris W. Parker
John Nichel on Friday, January 30, 2004 3:23 PM said: John and John, Nice replies. Mike, John W. Holmes example I think was supposed to be a wink wink nudge nudge thing. What you need to do is store the current time at the point just before you begin execution, th

[PHP] Re: array block

2004-01-30 Thread John Schulz
Brian V Bonini wrote: I'm having array block, trying to format the data in a two dimensional associative array. foreach($menu as $k => $v) { etc.. need to end up with link(x) Since it's two-dimensional, the $v you're getting is actually an array. So you'll have to iterate through the outer arra

Re: [PHP] PHP and XML.

2004-01-30 Thread Rolf Brusletto
Mark Ackroyd wrote: Odd problem. I have written a small script that processes some XML, it runs on a few FreeBSD boxes I admin over. On one of the boxes (the only one) .. if I run this script through apache, The xml_set_element_handler and xml_set_character_data_handler functions return a 1 er

[PHP] Re: array block

2004-01-30 Thread Shawn McKenzie
foreach ($menu as $text => $array) { $url = $array['url']; $title = $array['title']; echo "$k\n"; } HTH -Shawn "Brian V Bonini" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm having array block, trying to format the data in a two dimensional > associative array. > > $menu =

[PHP] Re: array block

2004-01-30 Thread Shawn McKenzie
Sorry, $k should be $text. foreach ($menu as $text => $array) { $url = $array['url']; $title = $array['title']; echo "$text\n"; } "Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > foreach ($menu as $text => $array) { > $url = $array['url']; > $title = $array['ti

Re: [PHP] exec won't pass arg with spaces

2004-01-30 Thread Raul Millan
You where completely right, thanks so much for this tip. I didn't try the "this\ is\ the\ file" approach, but I'll do it and let you know if it worked. Raúl Michal Migurski wrote: Sample code: exec("$imagemagickPath/convert -geometry " . "{$thumbnail_width}x{$thumbnail_height}

Re: [PHP] vars in echoed file_get_contents string

2004-01-30 Thread John W. Holmes
Shawn McKenzie wrote: I'm having a brain fart here: ---file.php $myvar = "Hello!"; $stuff = file_get_contents("file.html"); echo $stuff; ---file.html $myvar Any ideas why when $stuff is echoed I get $myvar and not Hello? It's because you're echoing the contents of a variable, not evaluating it. W

RE: [PHP] How do you guys do this?

2004-01-30 Thread PHP Email List
* Unless more than one person is uploading a picture within the same second you won't have any problems with duplicate names. I sure hope that there aren't 2 people uploading breadbox.jpg at the same second. That'd be too weird! Now maybe if it was a porn site I could see the same name, tina.jpg,

RE: [PHP] How do you guys do this?

2004-01-30 Thread Chris W. Parker
PHP Email List on Friday, January 30, 2004 4:41 PM said: > I sure hope that there aren't 2 people uploading breadbox.jpg at the > same second. That'd be too weird! Now maybe if it was a porn site I > could see the same name, tina.jpg, michele.jpg, but again, the same

Re: [PHP] Re: array block

2004-01-30 Thread Brian V Bonini
On Fri, 2004-01-30 at 18:47, Shawn McKenzie wrote: > Sorry, $k should be $text. > > foreach ($menu as $text => $array) { > $url = $array['url']; > $title = $array['title']; > > echo "$text\n"; > } > Gotcha, thanks! That'll work for this but for arguments sake what if the inner array were to

RE: [PHP] How do you guys do this?

2004-01-30 Thread Michal Migurski
>> I sure hope that there aren't 2 people uploading breadbox.jpg at the >> same second. That'd be too weird! Now maybe if it was a porn site I >> could see the same name, tina.jpg, michele.jpg, but again, the same >> file name on the same second, what are the odds? <--anyone? :) > >You're absolut

RE: [PHP] How do you guys do this?

2004-01-30 Thread Chris W. Parker
Michal Migurski on Friday, January 30, 2004 5:31 PM said: > users uploading two identically named files at the same time (not all > /that/ unlikely), and you are using a database table to track Really? You don't think it's that uncommon? Please give an example as I

Re[2]: [PHP] Am I missing Something

2004-01-30 Thread Tom Rogers
Hi, Saturday, January 31, 2004, 9:22:41 AM, you wrote: CWP> Stuart CWP> on Friday, January 30, 2004 2:56 PM said: >> print ''; print_r($somearray); print ''; CWP> not to steal your glory stuart but you can make it easier on yourself by CWP> doing the following: CW

[PHP] PHP+Apache Question

2004-01-30 Thread Ashley M. Kirchner
This has probably been asked before, but I want to know from those actually running (Red Hat) Fedora: how well does the stock PHP (4.3.x) work with the stock httpd (Apache 2.x)? Are PHP developers still concerned about that combination? Should I not bother and roll my own source? -- W | I

[PHP] List of validated PHP extentions for thead safety

2004-01-30 Thread Steven Roussey
Is there a List of validated PHP extentions for thead safety? I'm trying to find out if moving to Apache 2 is at all possible in a production environment, and would like to check to see if the modules we use are thread safe. Thanks, Steven Roussey Network54 Corporation -- PHP General Mailing Lis

Re: [PHP] Logging on to a web based application

2004-01-30 Thread Miles Thompson
At 06:38 PM 1/30/2004 +, Shaun wrote: Hi, We are trying to develop a web based system where users a charged per office. I would be grateful to hear anyone's experience in creating such applications and how the users are managed. Our main concern is how we stop a client paying for one office us

[PHP] Code help - file parse?

2004-01-30 Thread john
Looking for code help: When my php script inserts data into the database I'd like to parse an html page for a date and replace it with the current date. This way visitors to the main html page can see the last time the database was updated. I know I could re-write the html page using php but would

Re: [PHP] PHP and XML.

2004-01-30 Thread Raditha Dissanayake
I agree with Rolf, What's really suprising though is that SAX parsers use very little memory in the first place. Rolf Brusletto wrote: Mark Ackroyd wrote: Odd problem. I have written a small script that processes some XML, it runs on a few FreeBSD boxes I admin over. On one of the boxes (the

Re: [PHP] Code help - file parse?

2004-01-30 Thread Raditha Dissanayake
Hi, Parsing HTML is not the easiest thing to do and the best HTML parsers are in perl, you will be better of writing the page in PHP {unless you know the exact location (say file offset) where your date can be found } john wrote: Looking for code help: When my php script inserts data into the

Re: [PHP] PHP+Apache Question

2004-01-30 Thread Raditha Dissanayake
Hi, Many linux users still believe in compiling from source. and many php developers still believe php 4.x works better with apache 1.3x Ashley M. Kirchner wrote: This has probably been asked before, but I want to know from those actually running (Red Hat) Fedora: how well does the stock PHP

Re: [PHP] Code help - file parse?

2004-01-30 Thread John Nichel
john wrote: Looking for code help: When my php script inserts data into the database I'd like to parse an html page for a date and replace it with the current date. This way visitors to the main html page can see the last time the database was updated. I know I could re-write the html page using p

[PHP] Beginner

2004-01-30 Thread S Gex
Could someone tell me which newsgroup I subscribe to if I'm having a general problem setting up PHP in a windows 2000 / IIS environment? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: array block

2004-01-30 Thread Shawn McKenzie
You would need to give an example of what you mean by change dynamically, because if you can't predict the key indexes then how can you know which ones to use in your anchor tag? -Shawn "Brian V Bonini" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] -- PHP General Mailing List (htt

Re: [PHP] Beginner

2004-01-30 Thread Raditha Dissanayake
Hi, This one is ok. You can post your questions here. You might also find that the installation guide at php.net is very usefull. There you will see lots of annotations made by other users who ran into problems and chances of your problem being already discussed will be quite good. all the best

Re: [PHP] Logging on to a web based application

2004-01-30 Thread Chris W
Miles Thompson wrote: At 06:38 PM 1/30/2004 +, Shaun wrote: Hi, We are trying to develop a web based system where users a charged per office. I would be grateful to hear anyone's experience in creating such applications and how the users are managed. Our main concern is how we stop a client

[PHP] Turck MMcache - still continuing or dead?

2004-01-30 Thread Binay
Hi all, I am planning to use Turck MMcache in my production environment and hence searching in the archives for its response and efficiency. It seems people who've used it are quite happy but suddenly I saw a post saying Turck MMcache is dead i.e its no longer supported by the person who origin

[PHP] Turck MMcache - still continuing or dead?

2004-01-30 Thread Binay
Hi all, I am planning to use Turck MMcache in my production environment and hence searching in the archives for its response and efficiency. It seems people who've used it are quite happy but suddenly I saw a post saying Turck MMcache is dead i.e its no longer supported by the person who origin

RE: [PHP] Logging on to a web based application

2004-01-30 Thread Robert Sossomon
Yuck!! I personally turned off flash in all of my browsers and cut it out of the systems in the office. It's a resource hog, it's a pain in the buttocks on a page, and now sites are using it for ads. So on top of having most registered ad servers blocked via hosts file I run pop-up killers on ev

Re: [PHP] Turck MMcache - still continuing or dead?

2004-01-30 Thread Raditha Dissanayake
Hi, This topic has also been discussed in the past. Open source projects never die. When the original developer moves away what generally happens is that someone else takes his place. Binay wrote: Hi all, I am planning to use Turck MMcache in my production environment and hence searching in t

Re: [PHP] Turck MMcache - still continuing or dead?

2004-01-30 Thread Binay
Thanks So u mean i can go ahead with MMcache?? or do u find other (prefferably free) alternative to this.. Binay - Original Message - From: "Raditha Dissanayake" <[EMAIL PROTECTED]> To: "Binay" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, January 31, 2004 11:24 AM Subject:

Re: [PHP] Oracle + PHP

2004-01-30 Thread Michael Mauch
Luis Moran Ochoa wrote: > ORACLE_SID=OWEB ;export ORACLE_SID; > ORACLE_HOME=/usr/oracle/product; export ORACLE_HOME; > TNS_ADMIN=/usr/oracle/product/network/admin; export TNS_ADMIN; > ORACLE_BASE=/usr/oracle; export ORACLE_BASE; > ORA_NLS33=/usr/oracle/product/oc

<    1   2