[PHP] Re: md arrays

2004-09-21 Thread Niklas Lampén
I suggest you to use something like this as your cart: $cart => Array ( [LT4697] => Array ( [qty] => 1 ) [LT1234] => Array ( [qty] => 2 ) ) So you can easily check with in_array() / is_array() if product is in the cart allre

[PHP] md arrays

2004-09-21 Thread Justin French
I have an array that looks something like this: $cart => Array ( [0] => Array ( [id] => LT4697 [qty] => 1 ) [1] => Array ( [id] =>

[PHP] QUERY_STRING from command line

2004-09-21 Thread Rajesh Batchu
Hi, I am working on a php script which is accessed as below http://10.10.10.10/pageone.php?hellohowareyou in the pageone.php i am accessing the variable $_SERVER["QUERY_STRING" and i am getting the proper "hellohowareyou" as value. All these days i was accessing this over the browser. But

Re: [PHP] List Etiquette

2004-09-21 Thread Octavian Rasnita
Michael Sims wrote: > Octavian Rasnita wrote: >> No, there is no way for customizing the headers Outlook Express use >> to put in the email messages. >> I wish there was, because I don't like them also... > > Although I haven't used it personally, OE-QuoteFix may help: > > http://home.in.tum.de/~

Re: [PHP] alternative to mysql_field_name()

2004-09-21 Thread Andrew Kreps
On Tue, 21 Sep 2004 22:01:02 +0100, Luke <[EMAIL PROTECTED]> wrote: > however, i'd like to add more meaningful names as the field name > headings in the excel file. can anyone suggest how i can write a list of > tab separated headings into $header? > If you're talking about hard coding the header

[PHP] Solved [PHP] ASP guts needs help.

2004-09-21 Thread LW Ellis
Never mind... As usual, about the time you ask for help, the brain gets unstuck and you find the solution. Thanx anyways Leon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] thumbnail of webpage

2004-09-21 Thread Warren Vail
I may have found something, a perl script that with all the appropriate pieces turns a page into a jpg image. http://marginalhacks.com/Hacks/html2jpg/ from there resizing using GD is a snap. Warren Vail -Original Message- From: Vail, Warren [mailto:[EMAIL PROTECTED] Sent: Friday, Septem

[PHP] ASP guts needs help.

2004-09-21 Thread LW Ellis
I'm new to php, but am familar with ASP. I have this code to open and read a text file. What I need is to take out the 'while' and present the data one line at a time. I read up on fgetcsv, but we will be using one text file per record. I just need to format how it is displayed. Under fgetcvs the

[PHP] Re: A native Windows binding for PHP - released

2004-09-21 Thread Rubem Pechansky
Hi, Thanks for the your comments. I'll definitely submit it to PECL as soon as it is more stable, but I'm not sure it is a good idea to submit a pre-alpha... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] accessing querystring values

2004-09-21 Thread Brad Pauly
On Tue, 21 Sep 2004 20:25:44 -0700 (PDT), zareef ahmed <[EMAIL PROTECTED]> wrote: > > All values passed via query string will be available > via in $_GET array. You can simply get them from this > array. You can also acces them via the $_REQUEST array, which also contains the values in $_POST an

Re: [PHP] accessing querystring values

2004-09-21 Thread zareef ahmed
Hi, All values passed via query string will be available via in $_GET array. You can simply get them from this array. Example http://www.example.com/script.php?fname=me&lname=you then fname and lname will be available as $fname =$_GET['fname']; $lname =$_GET['lname']; BTW it is basic PHP, I

Re: [PHP] accessing querystring values

2004-09-21 Thread Greg Donald
On Tue, 21 Sep 2004 20:16:50 -0700, AMC <[EMAIL PROTECTED]> wrote: > How do you access values sent to a page as part of a querystring in php? They arrive in the $_GET array in modern PHP installs. print_r($_GET); -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Ma

[PHP] Mohavi

2004-09-21 Thread Greg Donald
Anyone using this? http://mojavi.org/ If so, how do you like it? -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] List Etiquette

2004-09-21 Thread Greg Donald
On Wed, 22 Sep 2004 12:17:57 +0930, David Robley <[EMAIL PROTECTED]> wrote: > Go get him, troops :-0 Sorry. -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] accessing querystring values

2004-09-21 Thread AMC
Hi, How do you access values sent to a page as part of a querystring in php? ac -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] simplexml and xpath

2004-09-21 Thread Yoed Anis
For this simple query simple do a call to $item->date to get your time. If the query is more complex in reality, do a foreach using xpath. See the example on Xpath at www.php.net/simplexml Yoed -Original Message- From: Matthew Sims [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2

Re: [PHP] List Etiquette

2004-09-21 Thread David Robley
On Wed, 22 Sep 2004 05:57, John Nichel wrote: > John Holmes wrote: >> From: "Andre Dubuc" <[EMAIL PROTECTED]> >> >>> I click 'Reply' and I get your personal address (instead >>> of the correct 'To:' address. >> >> >> Oh, for the love of god, jub or whoever, can we not turn this into a >> who-th

Re: [PHP] link to append to form

2004-09-21 Thread John Holmes
Dustin Krysak wrote: Hi there I have a VERY simple blogging system, and I want to add a link that will append a "" into the end of the existing text whenever it is clicked.. that way users do not need to remember the HTML code. How would i go about this? Javascript. -- ---John Holmes... Ama

Re: [PHP] {Spam?} Re: [PHP] Anyone using SPL Iterators?

2004-09-21 Thread Curt Zirzow
* Thus wrote Curt Zirzow: > * Thus wrote John Holmes: > > > > A later example implements ArrayAccess and IteratorAggregate and then > > says you can use count($A), but it doesn't work for my tests. It always > > returns 1. > > That example i think is minor mistake. As noted in the example > abo

Re: [PHP] {Spam?} Re: [PHP] Anyone using SPL Iterators?

2004-09-21 Thread Curt Zirzow
* Thus wrote John Holmes: > > A later example implements ArrayAccess and IteratorAggregate and then > says you can use count($A), but it doesn't work for my tests. It always > returns 1. That example i think is minor mistake. As noted in the example above you have to call pass ->getIterator() t

[PHP] link to append to form

2004-09-21 Thread Dustin Krysak
Hi there I have a VERY simple blogging system, and I want to add a link that will append a "" into the end of the existing text whenever it is clicked.. that way users do not need to remember the HTML code. How would i go about this? Thanks! d -- PHP General Mailing List (http://www.php.net

Re: [PHP] {Spam?} Re: [PHP] Anyone using SPL Iterators?

2004-09-21 Thread John Holmes
Kevin Waterson wrote: Is anyone using SPL iterators out there? Any examples you'd like to share that you find useful? Iterating through databases or large files, etc? Just curious what people are using this for before I write some stuff myself. :) I am using them in the current script I am writi

Re: [PHP] List Etiquette

2004-09-21 Thread -{ Rene Brehmer }-
While we're in the middle of it: Don't top-post to a message that's already been bottom-posted ... it's unbelivably messy and makes it loads harder to figure out what you're replying to than needs be ... stay in the format ... if the message you reply to is top-posted, continue that way, if it's

Re: [PHP] Configuring php.ini path

2004-09-21 Thread Jason Davidson
You can set it during compile time i think... if thast of any help Jason "Jamie" <[EMAIL PROTECTED]> wrote: > > Im using php version 4.3.8 and im trying to setup a small webserver on my > usb memory stick so i can work on my php projects when im at college without > having to work ways arroun

RE: [PHP] choose upload folder

2004-09-21 Thread Vail, Warren
Marek is correct the behavior of the "browse" file selector is essentially a client side thing, and not directly controllable from PHP. One difficulty is how to know when a directory is clicked because it is selected, or clicked because the operator wanted the directory expanded, because he wanted

[PHP] Configuring php.ini path

2004-09-21 Thread Jamie
Im using php version 4.3.8 and im trying to setup a small webserver on my usb memory stick so i can work on my php projects when im at college without having to work ways arround the college firewalls and blocks on ftp. The only problem i have is that i cannot load the php.ini file from its loca

Re: [PHP] shuffling an array (array generated from records in a database)

2004-09-21 Thread Greg Donald
On Tue, 21 Sep 2004 16:18:06 -0500, Ongkiko, Richard M <[EMAIL PROTECTED]> wrote: > I am trying to implement some sort of a shuffle. What I am trying to do is a random > shuffling of an array whose contents were records from a database. I am basically > trying to shuffle/randomize, questions, s

[PHP] Re: shuffling an array (array generated from records in a database)

2004-09-21 Thread M. Sokolewicz
Richard M Ongkiko wrote: I am trying to implement some sort of a shuffle. What I am trying to do is a random shuffling of an array whose contents were records from a database. I am basically trying to shuffle/randomize, questions, so that different users will have different versions of questio

Re: [PHP] shuffling an array (array generated from records in a database)

2004-09-21 Thread Marek Kilimajer
Ongkiko, Richard M wrote: I am trying to implement some sort of a shuffle. What I am trying to do is a random shuffling of an array whose contents were records from a database. I am basically trying to shuffle/randomize, questions, so that different users will have different versions of questi

Re: [PHP] choose upload folder

2004-09-21 Thread Marek Kilimajer
Joerg P wrote: I have to be more specific: I dont want the file, I want the folder. This happens on the client side, it has nothing to do with php. You could possibly do it with signed java applets or activex scripts. Joerg Greg Donald wrote: On Tue, 21 Sep 2004 23:05:17 +0200, Joerg P <[EMAIL PROT

[PHP] shuffling an array (array generated from records in a database)

2004-09-21 Thread Ongkiko, Richard M
I am trying to implement some sort of a shuffle. What I am trying to do is a random shuffling of an array whose contents were records from a database. I am basically trying to shuffle/randomize, questions, so that different users will have different versions of questions in an exam, whose ques

Re: [PHP] php5 and php4?

2004-09-21 Thread Minuk Choi
Oh, I see. Thanks for clarifying. - Original Message - From: "Matthew Weier O'Phinney" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 21, 2004 4:05 PM Subject: Re: [PHP] php5 and php4? * Minuk Choi <[EMAIL PROTECTED]>: But then, don't you run the risk of having 2 d

Re: [PHP] choose upload folder

2004-09-21 Thread Joerg P
I have to be more specific: I dont want the file, I want the folder. Joerg Greg Donald wrote: On Tue, 21 Sep 2004 23:05:17 +0200, Joerg P <[EMAIL PROTECTED]> wrote: I am building a script only for local use and would like the user to choose a specific folder on his computer, to catalogize all files

[PHP] {Spam?} Re: [PHP] Anyone using SPL Iterators?

2004-09-21 Thread Kevin Waterson
This one time, at band camp, "John Holmes" <[EMAIL PROTECTED]> wrote: > Is anyone using SPL iterators out there? Any examples you'd like to share > that you find useful? Iterating through databases or large files, etc? Just > curious what people are using this for before I write some stuff mysel

[PHP] Re: A native Windows binding for PHP - released

2004-09-21 Thread Rubem Pechansky
Phil Roberts <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > I like the event handling system you're using. When the supported > widget set is more complet it looks like this will be very > promising indeed. Certainly more so than GTK. Hope so... We'll get there :) -- PHP Ge

Re: [PHP] choose upload folder

2004-09-21 Thread Greg Donald
On Tue, 21 Sep 2004 23:05:17 +0200, Joerg P <[EMAIL PROTECTED]> wrote: > I am building a script only for local use and would like the user to > choose a specific folder on his computer, to catalogize all files in > this folder. > > How do I let the user choose this folder? -- Greg Donald http

[PHP] choose upload folder

2004-09-21 Thread Joerg P
hello, I am building a script only for local use and would like the user to choose a specific folder on his computer, to catalogize all files in this folder. How do I let the user choose this folder? Joerg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

[PHP] alternative to mysql_field_name()

2004-09-21 Thread Luke
hi there, i am currently using the following code to loop through the results of a sql query and extract the field names ($export contains the query results from the database). the script goes on to place the results in an excel file. for ($i = 0; $i < $fields; $i++) { $header .= mysql_field_

Re: [PHP] Re: Recommendations for php email list managers?

2004-09-21 Thread Mattias Thorslund
Matthew Weier O'Phinney wrote: * Mattias Thorslund <[EMAIL PROTECTED]>: I'm trying to set up a list manager on a hosted site. PHPlist (phplist.com) seemed promising but I read on their forums that it takes some users hours and hours to send a couple thousand emails. Without terminal access,

Re: [PHP] Re: Recommendations for php email list managers?

2004-09-21 Thread Mattias Thorslund
Manuel Lemos wrote: Hello, On 09/21/2004 04:17 PM, Mattias Thorslund wrote: I'm trying to set up a list manager on a hosted site. PHPlist (phplist.com) seemed promising but I read on their forums that it takes some users hours and hours to send a couple thousand emails. Without terminal access

Re: [PHP] List Etiquette

2004-09-21 Thread John Nichel
John Holmes wrote: From: "Andre Dubuc" <[EMAIL PROTECTED]> I click 'Reply' and I get your personal address (instead of the correct 'To:' address. Oh, for the love of god, jub or whoever, can we not turn this into a who-the-list-should-reply-to thread?!?!? Been there, done-beat-the-dead-horse-abo

Re: [PHP] using foreach() to capture multiple selections

2004-09-21 Thread Janet Valade
Luke Mackenzie wrote: Subject: using foreach() to capture multiple selections hi, i would like to to put multiple selections from a form list into a single variable using foreach but am unsure how to do so. can someone advise how to adapt the following code? print "You are interested in: "; foreac

[PHP] Anyone using SPL Iterators?

2004-09-21 Thread John Holmes
I've been looking around for some SPL (http://www.php.net/manual/en/ref.spl.php) examples and uses, but have only found one good article on Sitepoint (http://www.sitepoint.com/article/php5-standard-library/). Is anyone using SPL iterators out there? Any examples you'd like to share that you fi

[PHP] Re: Recommendations for php email list managers?

2004-09-21 Thread Manuel Lemos
Hello, On 09/21/2004 05:03 PM, Matthew Weier O'Phinney wrote: To give an example, where I work, we have a bulk mailer we've developed. The management interface is PHP, but mails are sent via a perl application. The perl application sends the mails via Postfix. I wonder why aren't you using PHP to s

Re: [PHP] php5 and php4?

2004-09-21 Thread Matthew Weier O'Phinney
* Minuk Choi <[EMAIL PROTECTED]>: > But then, don't you run the risk of having 2 different architectures, that > is, PHP5(possibly PHP6) and PHP 4.something may evolve down to include > different features or even different behaviors? PHP4 is in *maintenance* mode -- that means no new features. P

[PHP] Re: Recommendations for php email list managers?

2004-09-21 Thread Matthew Weier O'Phinney
* Mattias Thorslund <[EMAIL PROTECTED]>: > I'm trying to set up a list manager on a hosted site. PHPlist > (phplist.com) seemed promising but I read on their forums that it takes > some users hours and hours to send a couple thousand emails. Without > terminal access, I suspect the PHP sending

Re: [PHP] List Etiquette

2004-09-21 Thread John Holmes
From: "Andre Dubuc" <[EMAIL PROTECTED]> I click 'Reply' and I get your personal address (instead of the correct 'To:' address. Oh, for the love of god, jub or whoever, can we not turn this into a who-the-list-should-reply-to thread?!?!? Been there, done-beat-the-dead-horse-about that... ---John

Re: [PHP] inserting timestamp into mysql field

2004-09-21 Thread Andrew Kreps
On Tue, 21 Sep 2004 16:25:37 +0100, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > i need to insert a current timestamp into a mysql field when a form is posted. > can anyone suggest a simple way of doing this? Here's the MySQL answer: If you have a (data type) timestamp field in your table, you d

Re: [PHP] using foreach() to capture multiple selections

2004-09-21 Thread Jason Wong
On Wednesday 22 September 2004 03:26, Luke Mackenzie wrote: > Subject: using foreach() to capture multiple selections > i would like to to put multiple selections from a form list into a single > variable using foreach but am unsure how to do so. manual > PHP and HTML -- Jason Wong -> Gremlins

[PHP] Re: Recommendations for php email list managers?

2004-09-21 Thread Manuel Lemos
Hello, On 09/21/2004 04:17 PM, Mattias Thorslund wrote: I'm trying to set up a list manager on a hosted site. PHPlist (phplist.com) seemed promising but I read on their forums that it takes some users hours and hours to send a couple thousand emails. Without terminal access, I suspect the PHP

Re: [PHP] using foreach() to capture multiple selections

2004-09-21 Thread Matthew Sims
> > i would like to to put multiple selections from a form list into a single > variable using foreach but am unsure how to do so. > > can someone advise how to adapt the following code? > > > print "You are interested in: "; > > foreach($myGoals as $value) > > { > > print "$value "; > > } > > ?>

Re: [PHP] mysql_connect does not connect

2004-09-21 Thread Chris Dowell
[snippy] Sam Hobbs wrote: Um.. you do realize you have more problems than php not being able to connect to the database. This is the type of unproductive comment that causes problems. The only reason you are saying this is because you are desperate to make me wrong. You have exhausted reason

Re: [PHP] using foreach() to capture multiple selections

2004-09-21 Thread John Holmes
From: "Luke Mackenzie" <[EMAIL PROTECTED]> i would like to to put multiple selections from a form list into a single variable using foreach but am unsure how to do so. can someone advise how to adapt the following code? print "You are interested in: "; foreach($myGoals as $value) { print "$value ";

Re: [PHP] using foreach() to capture multiple selections

2004-09-21 Thread Greg Donald
On Tue, 21 Sep 2004 20:26:04 +0100, Luke Mackenzie <[EMAIL PROTECTED]> wrote: > i would like to to put multiple selections from a form list into a single > variable using foreach but am unsure how to do so. > > can someone advise how to adapt the following code? "; foreach($myGoals as $key => $v

Re: [PHP] List Etiquette

2004-09-21 Thread Andre Dubuc
On Tuesday 21 September 2004 03:02 pm, John Nichel wrote: > While the thread still lives, let me add a pet peeve of mine. People > who reply to all. Just reply to the list...if you have to click reply > to all to get the list address in there, fine, but take a few seconds to > remove all other ad

Re: [PHP] Any idea how to automatically post to http authentication?

2004-09-21 Thread Greg Donald
On Tue, 21 Sep 2004 14:24:08 -0500, j kensler <[EMAIL PROTECTED]> wrote: > I'm trying to create a php page that automatically posts data to > several other webpages (to log in). However one of the pages is using > some sort of CGI HTTP authentication. Is there any way that I can see > what the name

Re: [PHP] Image Text

2004-09-21 Thread Greg Donald
On Tue, 21 Sep 2004 19:37:45 +0100, b2 <[EMAIL PROTECTED]> wrote: > I'm trying to create images with a bit of text pasted on top > using the code bolow > My problem is that the text color either are lost (lighter colors) or print > in a different color > it seems that it's mix the text color and th

Re: [PHP] Re: mysql_connect does not connect

2004-09-21 Thread Chris Dowell
Sam, You're correct - the manual does leave a little bit of a grey area about which extension you should use for 4.1.0 < MySQL version < 4.1.3 However, as you're using 5.0.1 this really shouldn't confuse you to quite the extent which it has. Sam Hobbs wrote: "Curt Zirzow" <[EMAIL PROTECTED]> wr

[PHP] using foreach() to capture multiple selections

2004-09-21 Thread Luke Mackenzie
Subject: using foreach() to capture multiple selections hi, i would like to to put multiple selections from a form list into a single variable using foreach but am unsure how to do so. can someone advise how to adapt the following code? - lukem - quality c

[PHP] Any idea how to automatically post to http authentication?

2004-09-21 Thread j kensler
I'm trying to create a php page that automatically posts data to several other webpages (to log in). However one of the pages is using some sort of CGI HTTP authentication. Is there any way that I can see what the names of the fields are (such as user or username or whatever). And also is there any

[PHP] Recommendations for php email list managers?

2004-09-21 Thread Mattias Thorslund
Hi, I'm trying to set up a list manager on a hosted site. PHPlist (phplist.com) seemed promising but I read on their forums that it takes some users hours and hours to send a couple thousand emails. Without terminal access, I suspect the PHP sending page will time out long before most of my e

Re: [PHP] List Etiquette

2004-09-21 Thread Greg Donald
On Tue, 21 Sep 2004 15:02:27 -0400, John Nichel <[EMAIL PROTECTED]> wrote: > While the thread still lives, let me add a pet peeve of mine. People > who reply to all. Just reply to the list...if you have to click reply > to all to get the list address in there, fine, but take a few seconds to > re

[PHP] Image Text

2004-09-21 Thread b2
Hi I'm trying to create images with a bit of text pasted on top using the code bolow My problem is that the text color either are lost (lighter colors) or print in a different color it seems that it's mix the text color and the background color Is there away around this also where can I find dif

[PHP] Image Text

2004-09-21 Thread b2
Hi I'm trying to create images with a bit of text pasted on top using the code bolow My problem is that the text color either are lost (lighter colors) or print in a different color it seems that it's mix the text color and the background color Is there away around this also where can I find dif

Re: [PHP] generating a mysql script

2004-09-21 Thread Chris Dowell
If course, if you don't have shell access, phpMyAdmin is all you'll ever need http://www.phpmyadmin.net Cheers Chris Brian V Bonini wrote: On Mon, 2004-09-20 at 19:37, Stut wrote: On Mon, 20 Sep 2004 16:20:21 -0700, AMC <[EMAIL PROTECTED]> wrote: Is there a tool that will generate a scrip

Re: [PHP] List Etiquette

2004-09-21 Thread John Nichel
While the thread still lives, let me add a pet peeve of mine. People who reply to all. Just reply to the list...if you have to click reply to all to get the list address in there, fine, but take a few seconds to remove all other addresses. Thank you for your time. We now return you to your r

Re: [PHP] empty variable

2004-09-21 Thread Chris Dowell
Just to clear up, there is no isempty() function - the correct function is empty() and its details can be found here: http://uk.php.net/empty Cheers Chris -{ Rene Brehmer }- wrote: At 01:54 20-09-2004, Chris Mach wrote: What is the best way to determine if a variable is empty? I have a feeling th

Re: [PHP] password-protecting with PHP, help plz

2004-09-21 Thread Chris Dowell
And after that - go and try to find out a little on your own - contrary to a common misconception, it's not the sole purpose of members of this list to write all your code for you. The old favourites RTFM and STFW would serve you well here - there are thousands of PHP tutorials that will tell y

Re: [PHP] Infinate looping

2004-09-21 Thread Chris Dowell
Are you by any chance doing something like this? while (1) { $dbh = mysql_connect(x, x, x); mysql_query(...); sleep(10); } If so, you could run into that maxclients problem very quickly because you're not closing those mysql connections (they'll time out eventually, and there are persistent co

RE: [PHP] List Etiquette

2004-09-21 Thread Michael Sims
Octavian Rasnita wrote: > No, there is no way for customizing the headers Outlook Express use > to put in the email messages. > I wish there was, because I don't like them also... Although I haven't used it personally, OE-QuoteFix may help: http://home.in.tum.de/~jain/software/oe-quotefix/ I do

[PHP] simplexml and xpath

2004-09-21 Thread Matthew Sims
So I've just recently fallen in love with simplexml. But from what I've read, is it true that xpath doesn't really work properly? I'm using an XML file that has a section like this: Title Link Desc Subject 2004-09-20T18:15:00+00:00 My sample of my PHP code is: item as $item) { echo $item->

Re: [PHP] deleting directories

2004-09-21 Thread Jasper Howard
its pretty easy to make your function recursive, all you need to do is test if the current file is a directory (if (is_dir($file)){run function} else if (eregi('/_vti_cnf/',$file))), then delete all files as long as they are located in a "_vti_cnf" directory. And I'm sure I've done something wrong

Re: [PHP] deleting directories

2004-09-21 Thread Afan Pasalic
Sorry John, but I forgot to write that detail: I test locally on Win machine, but directories are on Linux server. Afan John Nichel wrote: Jesse Castro wrote: rm -r will recursively remove the directory and everything in it He's on a Windows system, that won't work. As a side note, on *nix ba

Re: [PHP] deleting directories

2004-09-21 Thread John Nichel
Afan Pasalic wrote: directories are on Linux server and Windows System Commands will not work there. I forgot to make a note: warning shows c:\ap\artwork\ap.php because I test it locally, n windows machine. but directories are on Linux box sorry for misleading you guys. Then that's a bit easier..

[PHP] [Fwd: Destinatario No exitente]

2004-09-21 Thread Afan Pasalic
Every time I send a email to php-list I get the email below. Can somebody take this email out of list? Thank you. Afan Original Message Subject:Destinatario No exitente Date: Tue, 21 Sep 2004 13:47:02 -0400 From: Mailer Iguanahosting.com <[EMAIL PROTECTED]> To: A

Re: [PHP] deleting directories

2004-09-21 Thread Afan Pasalic
directories are on Linux server and Windows System Commands will not work there. I forgot to make a note: warning shows c:\ap\artwork\ap.php because I test it locally, n windows machine. but directories are on Linux box sorry for misleading you guys. John Nichel wrote: Afan Pasalic wrote: I hav

Re: [PHP] deleting directories

2004-09-21 Thread John Nichel
Jesse Castro wrote: rm -r will recursively remove the directory and everything in it He's on a Windows system, that won't work. As a side note, on *nix based systems, rm -rf would be better suited so that it doesn't prompt for conformation on each file/directory. -- John C. Nichel ÜberGeek K

Re: [PHP] deleting directories

2004-09-21 Thread Afan Pasalic
Thanks Jesse, but I don't have an access to server. Just FTP. That's why I have to use php script. Jesse Castro wrote: rm -r will recursively remove the directory and everything in it -Original Message- From: Afan Pasalic [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 12:31

Re: [PHP] deleting directories

2004-09-21 Thread John Nichel
Afan Pasalic wrote: I have directory with huge number of directories (names by date artwork requested and client id number) with clients artwork. by accident, directory was opened by FrontPage and now in each directory is created _vti_cnf directory with copy of the artwork. i have to delete all t

Re: [PHP] php5 and php4?

2004-09-21 Thread Minuk Choi
But then, don't you run the risk of having 2 different architectures, that is, PHP5(possibly PHP6) and PHP 4.something may evolve down to include different features or even different behaviors? - Original Message - From: "Thomas Goyne" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent:

RE: [PHP] deleting directories

2004-09-21 Thread Jesse Castro
rm -r will recursively remove the directory and everything in it -Original Message- From: Afan Pasalic [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 12:31 PM To: php-general Subject: [PHP] deleting directories I have directory with huge number of directories (names by dat

[PHP] deleting directories

2004-09-21 Thread Afan Pasalic
I have directory with huge number of directories (names by date artwork requested and client id number) with clients artwork. by accident, directory was opened by FrontPage and now in each directory is created _vti_cnf directory with copy of the artwork. i have to delete all those '_vti_cnf' dire

Re: [PHP] custom 404 page

2004-09-21 Thread John Nichel
Gerben wrote: I would like to know which headers I have to send on my own 404page? I read somewhere I have to send the header "HTTP 302 Found" I also want to know which header I have to send when I redirect from my 404page? do I need "HTTP 201"? http://www.onlamp.com/pub/a/onlamp/2003/02/13/davi

RE: [PHP] custom 404 page

2004-09-21 Thread Jay Blanchard
[snip] I would like to know which headers I have to send on my own 404page? I read somewhere I have to send the header "HTTP 302 Found" I also want to know which header I have to send when I redirect from my 404page? do I need "HTTP 201"? [/snip] Have you checked the http://www.w3c.org ? -- PH

[PHP] custom 404 page

2004-09-21 Thread Gerben
I would like to know which headers I have to send on my own 404page? I read somewhere I have to send the header "HTTP 302 Found" I also want to know which header I have to send when I redirect from my 404page? do I need "HTTP 201"? -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] Question on using png file in ezPdf class

2004-09-21 Thread Chris Bruce
Don't think that is it, but for the record, it is compiled with-png. Thanks for the stab though :) -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282 Wilmar Cres. Mississauga, ON L5L4B2 CA 905.828.9189 South Office 705.361.0331 North Office **

Re: [PHP] Extrange behavior with Header('Location')

2004-09-21 Thread Paul Waring
> Just, the result returned by the fuinction is mainly used to creatre > links in the pages, only in some very special cases will be used with > the header function. Just I use the & entity in links because I > want all my pages being validated by the W3C validator service. As well as that, you sh

Re: [PHP] Extrange behavior with Header('Location')

2004-09-21 Thread Jordi Canals
On Mon, 20 Sep 2004 20:23:53 -0700 (PDT), Chris Shiflett <[EMAIL PROTECTED]> wrote: > > > header('Location: '. html_entity_decode($url)); > > > > I would like to know if there is a better way to do it > > This should work fine. However, I would prefer to keep the data in its > original format an

Re: [PHP] Question on using png file in ezPdf class

2004-09-21 Thread Jason Davidson
Possibly you need to compile php with-png ?? im not sure of this, im just taking a stab in the dark.. Jason Chris Bruce <[EMAIL PROTECTED]> wrote: > > Hello, > > I am using the PDF creation classes from http://www.ros.co.nz/pdf > > Everything is working great with the exception of not being a

Re: [PHP] Book recommendation

2004-09-21 Thread Al
John Nichel wrote: Al wrote: How can get "Edit/Mail & Newsgroups/Composition/defaults for Html" to work? "Edit/Mail & Newsgroups/Send Format/Send in HTML is checked. All newsgroups and emails default to plain small text. Is this a bug, or am I missing something? Thanks.. Huh? Sorry everyone. I w

[PHP] Question on using png file in ezPdf class

2004-09-21 Thread Chris Bruce
Hello, I am using the PDF creation classes from http://www.ros.co.nz/pdf Everything is working great with the exception of not being able to use a PNG image with the ezImage extension. JPG works but is not as crisp as the image that I want to place is a logo. All file paths and spellings are cor

RE: [PHP] inserting timestamp into mysql field

2004-09-21 Thread Chris Gregors
If you are working with a timestamp in some other format, this works well: $ts = date("Y-m-d H:i:s",strtotime($sring_with_timestamp)); If you want to create a timestamp at the execution time, this works well: $ts = date("Y-m-d H:i:s"); Both will generate mysql compatiable date/t

Re: [PHP] inserting timestamp into mysql field

2004-09-21 Thread Chris Dowell
Not really a MySQL question - the answer happens to be MySQL, but the question asks how to do it in PHP This might still be necessary if the OP is using something like DB_DataObject, as you can't really use NOW() in that situation Try strftime [ http://uk.php.net/strftime - RTFM :) ] - a good f

Re: [PHP] inserting timestamp into mysql field

2004-09-21 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: Subject: inserting timestamp into mysql field hi there, i need to insert a current timestamp into a mysql field when a form is posted. can anyone suggest a simple way of doing this? i would like to set a variable in my php script to add into the insert statement. it needs t

[PHP] inserting timestamp into mysql field

2004-09-21 Thread luke
Subject: inserting timestamp into mysql field hi there, i need to insert a current timestamp into a mysql field when a form is posted. can anyone suggest a simple way of doing this? i would like to set a variable in my php script to add into the insert statement. it needs to be in the format 00-0

Re: [PHP] Book recommendation

2004-09-21 Thread John Holmes
From: "Al" <[EMAIL PROTECTED]> How can get "Edit/Mail & Newsgroups/Composition/defaults for Html" to work? "Edit/Mail & Newsgroups/Send Format/Send in HTML is checked. All newsgroups and emails default to plain small text. Is this a bug, or am I missing something? I think we're all missing someth

Re: [PHP] Lock or critical section

2004-09-21 Thread Curt Zirzow
* Thus wrote Jean-Yves: > Hi, > > Is there a documented way to create in PHP a critical section: I want a > piece of code to not be executed in the same time several times? http://php.net/semma Curt -- The above comments may offend you. flame at will. -- PHP General Mailing List (http://www

Re: [PHP] Book recommendation

2004-09-21 Thread John Nichel
Al wrote: How can get "Edit/Mail & Newsgroups/Composition/defaults for Html" to work? "Edit/Mail & Newsgroups/Send Format/Send in HTML is checked. All newsgroups and emails default to plain small text. Is this a bug, or am I missing something? Thanks.. Huh? -- John C. Nichel ÜberGeek KegWorks.com 7

[PHP] Book recommendation

2004-09-21 Thread Al
How can get "Edit/Mail & Newsgroups/Composition/defaults for Html" to work? "Edit/Mail & Newsgroups/Send Format/Send in HTML is checked. All newsgroups and emails default to plain small text. Is this a bug, or am I missing something? Thanks.. -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] Fork PHP script X at a time.

2004-09-21 Thread John Wards
On Tue, 2004-09-21 at 13:58, John Wards wrote: > Not sure if anyone is interested in what I have come up with, its busy > running just now but it seems to be performing ok. Again adding to this thread for future reference. Its just compleated all 90 threads in 1 hour 50 minutes and that was runni

  1   2   >