Re: [PHP] Re: How to tell if the filepath exist or not before attempting to create a directory??

2004-12-02 Thread Marek Kilimajer
Richard Lynch wrote: Scott Fletcher wrote: Never mind that.. I found a different way to use it. It would be so cool if there is such a feature as directory_exists() to check for partical filepath... http://php.net/file_exists You'll need to use @ in front, because it generates an error message

Re: [PHP] transparant session propagation and headers

2004-12-02 Thread B . Kamer
On Dec 1, 2004, at 22:19, Richard Lynch wrote: Bas Kamer wrote: On Dec 1, 2004, at 21:17, Richard Lynch wrote: If a client doen't accept cookies and transparant session propagation is enabled, links are changed to include the SID. But this is not the case while redirecting clients. This results

[PHP] picture upload

2004-12-02 Thread William Stokes
Hello, I'm building a web site for a sports team. I wan't them to be able to update their own site so I need to build a file upload system for their pictures. Pictures also need to resized to fit their spot in the web page. Any ideas or quidelines how to do this. I've never done this kind of stuff

[PHP] Differences in arrays

2004-12-02 Thread Stuart Felenstein
I have arrays set up in a user form. One type is from a multi-select list. (I'm passing these through a multi page form as session variables) The multi select list array code is like this: To $_POST (going on to next page)I have this: $_SESSION['industry'] = $_POST['L_Industry']; Then in the

Re: [PHP] Differences in arrays

2004-12-02 Thread Mike Smith
How about: if ( is_array($_SESSION['schools'] ) ) { foreach($_SESSION['schools'] as $h) { If($h!=){ //First added line $query = INSERT INTO Prof_Schools (ProfID, School) VALUES ('$LID', '$h'); $res6 = run_query($query); echo $query; } //End added line } } -- PHP General Mailing List

Re: [PHP] Differences in arrays

2004-12-02 Thread Stuart Felenstein
--- Mike Smith [EMAIL PROTECTED] wrote: How about: if ( is_array($_SESSION['schools'] ) ) { foreach($_SESSION['schools'] as $h) { If($h!=){ //First added line $query = INSERT INTO Prof_Schools (ProfID, School) VALUES ('$LID', '$h'); $res6 = run_query($query); echo $query; } //End

Re: [PHP] Differences in arrays

2004-12-02 Thread Mike Smith
Yes, I did that and it works correctly now. I was tryin g to better understand why the difference in the behaviour. Stuart The first array is created by selecting individual elements from a muli-select list (My multi-select is a little hazy, but I think it's something like...) select

[PHP] Too many DELETE statements

2004-12-02 Thread news.php.net
I have 160,000+ members in my site. 40,000 of them have not logged in since 2003 and they should be deleted. A member is not deleted from only one table. Based on user id, he should be deleted from 5 tables and also his photo, if any, should be unlink(ed). I tried to do that 10 by 10 using:

[PHP] XML Downstream

2004-12-02 Thread Luc Pascal
Hi php-general-team, An large XML Downstream over asp should be saved into a xml-file. If I open the asp website directly (IE6.0). It shows after 15 min a big part of the xml-stream (like if I would open an xml-file with the browser) and a failure at the end. I don't know how to save it into

Re: [PHP] Parse error: parse error, expecting `']'' in

2004-12-02 Thread Robert Sossomon
Richard Lynch is quoted as saying on 12/1/2004 2:57 PM: Robert Sossomon wrote: Parse error: parse error, expecting `']'' in file.php SNIP Unfortunately?? I knew exactly where the code was breaking (the lines I posted) since before I added those lines of code the script worked without any

Re[2]: [PHP] Parse error: parse error, expecting `']'' in

2004-12-02 Thread Richard Davey
Hello Robert, Thursday, December 2, 2004, 1:21:33 PM, you wrote: RS Unfortunately?? I knew exactly where the code was breaking (the RS lines I posted) since before I added those lines of code the RS script worked without any problems. But what I don't understand is RS why sometimes

RE: [PHP] Parse error: parse error, expecting `']'' in

2004-12-02 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 01 December 2004 19:29, Matthew Sims wrote: So when using arrays with string keys within strings you need to concatenate it. $var = I live in the city of .

RE: [PHP] Differences in arrays

2004-12-02 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 02 December 2004 10:26, Stuart Felenstein wrote: I have arrays set up in a user form. One type is from a multi-select list. [] I have 3 textfield elements all named

Re: [PHP] Too many DELETE statements

2004-12-02 Thread David Dickson
news.php.net wrote: A member is not deleted from only one table. Based on user id, he should be deleted from 5 tables and also his photo, if any, should be unlink(ed). $query = delete from table1 where userid = . $ID; $result = mysql_query($query, $link); $query = delete from table2 where userid

Re: [PHP] Text Parser

2004-12-02 Thread M. Sokolewicz
Richard Davey wrote: Hello Pablo, Thursday, December 2, 2004, 3:12:09 PM, you wrote: PDM I´m receiving this: house , ball , door , roof , floor PDM And I want to obtain this: 'house','ball','door','roof','floor' PDM Maybe, I should use implode or explode, but I just can´t figure out how.. PDM

RE: [PHP] Text Parser

2004-12-02 Thread Gryffyn, Trevor
?php $items = house , ball , door , roof , floor; $itemsexploded = Explode( , , $items); $itemsimploded = ' . implode(',',$itemsexploded) . '; ? That should do it. The only weird bit is adding the single quotes to the beginning and end of the final string. You could also do a

Re: [PHP] Text Parser

2004-12-02 Thread ankur_os
Suppose this is your first string $value house , ball , door , roof , floor $saparate = explode(,,$value); $list = implode(',', $arr1); $final = ('$arr2'); echo $final; Thnx... Quoting Pablo D Marotta [EMAIL PROTECTED]: Hi there.. A newbie issue: I´m receiving this: house , ball , door ,

RE: [PHP] Re: Browsing while downloading?

2004-12-02 Thread Gryffyn, Trevor
Yeah, this isn't a PHP specific problem, BUT, in the off chance that PHP could solve the problem (using a different method of sending to the browser, etc) then it becomes PHP relevant... So everyone give the guy a break on the relevance issue. If there were two ways of doing something and you

RE: [PHP] Free for commercial use?

2004-12-02 Thread Gryffyn, Trevor
Taken from http://www.php.net/license/: Note: the following questions and answers only apply to version 2.01 and 2.02 of the PHP license. Ignore for version 3.0. Q. What does the PHP license mean then, in simple words? A. (Note: This answer should in no way be taken to replace the PHP

[PHP] Free for commercial use?

2004-12-02 Thread Brian Dunning
I thought I wouldn't have any trouble finding this. I'm trying to provide documentation that PHP is free for commercial use, and I can't find anything on php.net. Can anyone help me? - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Text Parser

2004-12-02 Thread Richard Davey
Hello Pablo, Thursday, December 2, 2004, 3:12:09 PM, you wrote: PDM I´m receiving this: house , ball , door , roof , floor PDM And I want to obtain this: 'house','ball','door','roof','floor' PDM Maybe, I should use implode or explode, but I just can´t figure out how.. PDM Help? You could

RE: [PHP] Referencing Multi Dimensional Arrays

2004-12-02 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 01 December 2004 17:31, Robinson, Matthew wrote: I have a search function: $search_result = multi_array_search($net_array,needle); now search_result equals an array of

RE: [PHP] Free for commercial use?

2004-12-02 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 02 December 2004 15:30, Brian Dunning wrote: I thought I wouldn't have any trouble finding this. I'm trying to provide documentation that PHP is free for commercial use, and

[PHP] Cleaner way to do this?

2004-12-02 Thread Robert Sossomon
foreach ( $_POST as $key = $value ) { while ($key != submit) { \$$key = $value; $addtocart .= ,'\$$key'; } } The problem is that it seems to be hanging at the while loop. Is there a cleaner way to write the foreach loop so that it will dump out the submit key? I've been trying different

RE: [PHP] Parse error: parse error, expecting `']'' in

2004-12-02 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 02 December 2004 16:49, Matthew Sims wrote: So when using arrays with string keys within strings you need to concatenate it. $var = I live in the city of .

RE: [PHP] Referencing Multi Dimensional Arrays

2004-12-02 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 02 December 2004 15:17, Robinson, Matthew wrote: Thanks for the help Mike, If I've got a reference to an entry and say, wanted to insert another entry, can I use

Re: [PHP] Too many DELETE statements

2004-12-02 Thread Richard Lynch
news.php.net wrote: I have 160,000+ members in my site. 40,000 of them have not logged in since 2003 and they should be deleted. A member is not deleted from only one table. Based on user id, he should be deleted from 5 tables and also his photo, if any, should be unlink(ed). I tried to do

RE: [PHP] Days remaining? (years, months, days, hours, minutes, seconds..etc)

2004-12-02 Thread Gryffyn, Trevor
I don't know of a built-in function, but you're welcome to use my daydiff script below. It actually gives you year, month, day, hour, minute, second.. Not just days. But modify it as you desire. -TG ?php # Standard format dates and times $startdate = 04/12/04; $starttime = 13:05:01; $enddate

Re: [PHP] Differences in arrays

2004-12-02 Thread Richard Lynch
1-I guess I need a way to make sure in the foreach that when the first empty element is reached the loop dies. Just to be sure you understand: You should really not die when you hit a blank. You should just SKIP it and process the rest. A user *might* choose to fill in the first and third

Re: [PHP] Cleaner way to do this?

2004-12-02 Thread Richard Lynch
Robert Sossomon wrote: foreach ( $_POST as $key = $value ) { while ($key != submit) { \$$key = $value; $addtocart .= ,'\$$key'; } } The problem is that it seems to be hanging at the while loop. Is there a cleaner way to write the foreach loop so that it will dump out the

Re: [PHP] picture upload

2004-12-02 Thread Richard Lynch
William Stokes wrote: Hello, I'm building a web site for a sports team. I wan't them to be able to update their own site so I need to build a file upload system for their pictures. Pictures also need to resized to fit their spot in the web page. Any ideas or quidelines how to do this. I've

RE: [PHP] Page that checks if a user exists on a remote system

2004-12-02 Thread Richard Lynch
Gryffyn, Trevor wrote: If it's a un*x system and you have permissions to connect to the SMTP server, you could use the VRFY command to check to see if their email address exists or not maybe: Example of Verifying a User Name Either S: VRFY Smith

Re: [PHP] Re: How to tell if the filepath exist or not before attempting to create a directory??

2004-12-02 Thread Richard Lynch
Marek Kilimajer wrote: Richard Lynch wrote: Scott Fletcher wrote: Never mind that.. I found a different way to use it. It would be so cool if there is such a feature as directory_exists() to check for partical filepath... http://php.net/file_exists You'll need to use @ in front, because

Re: [PHP] Too many DELETE statements

2004-12-02 Thread Richard Lynch
David Dickson wrote: news.php.net wrote: A member is not deleted from only one table. Based on user id, he should be deleted from 5 tables and also his photo, if any, should be unlink(ed). $query = delete from table1 where userid = . $ID; $result = mysql_query($query, $link); $query =

Re: [PHP] Free for commercial use?

2004-12-02 Thread Robby Russell
On Thu, 2004-12-02 at 07:29 -0800, Brian Dunning wrote: I thought I wouldn't have any trouble finding this. I'm trying to provide documentation that PHP is free for commercial use, and I can't find anything on php.net. Can anyone help me? - Brian http://www.php.net/license/

Re: [PHP] picture upload

2004-12-02 Thread Raditha Dissanayake
William Stokes wrote: Hello, I'm building a web site for a sports team. I wan't them to be able to update their own site so I need to build a file upload system for their pictures. Pictures also need to resized to fit their spot in the web page. Any ideas or quidelines how to do this. I've never

Re: [PHP] Page that checks if a user exists on a remote system

2004-12-02 Thread Jason Wong
On Thursday 02 December 2004 23:32, Gryffyn, Trevor wrote: If it's a un*x system and you have permissions to connect to the SMTP server, you could use the VRFY command to check to see if their email address exists or not maybe: Just want to point out that this behaviour is dependent on the

RE: [PHP] Page that checks if a user exists on a remote system

2004-12-02 Thread Jonathan Duncan
Well, I can honestly say I had not thought of doing it that way. I will keep that as an option. Thanks. Jonathan On Thu, 2 Dec 2004, Gryffyn, Trevor wrote: If it's a un*x system and you have permissions to connect to the SMTP server, you could use the VRFY command to check to see if their

[PHP] Re: Browsing while downloading?

2004-12-02 Thread adrian zaharia
Found the problem... Just FYI, maybe can help in future. I am under a session and didn't forced a session_write_close() before i outputted the stream. Acording to php docs, the session file stays locked until the end of the script or a session_write_close() is issued. So, the other scripts were

RE: [PHP] Page that checks if a user exists on a remote system

2004-12-02 Thread Gryffyn, Trevor
If it's a un*x system and you have permissions to connect to the SMTP server, you could use the VRFY command to check to see if their email address exists or not maybe: Example of Verifying a User Name Either S: VRFY Smith R: 250 Fred Smith

RE: [PHP] Parse error: parse error, expecting `']'' in

2004-12-02 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 02 December 2004 13:22, Robert Sossomon wrote: But what I don't understand is why sometimes '$_POST[variable]' works and why sometimes it will only work when it is

Re: [PHP] XML Downstream

2004-12-02 Thread Richard Lynch
Luc Pascal wrote: An large XML Downstream over asp should be saved into a xml-file. If I open the asp website directly (IE6.0). It shows after 15 min a big part of the xml-stream (like if I would open an xml-file with the browser) and a failure at the end. I don't know how to save it into

[PHP] Days remaining?

2004-12-02 Thread Peter Lauri
Best groupmember, I have the date 2004-12-24 in a string, and 2004-11-05 in a other. Is there any date function that can assist in calculating the number of days left until 2004-12-24 when it is 2004-11-05. (the dates are just testdates) -- - Best Of Times /Peter Lauri -- PHP General Mailing

[PHP] Days remaining?

2004-12-02 Thread Peter Lauri
Best groupmember, I have the date 2004-12-24 in a string, and 2004-11-05 in a other. Is there any date function that can assist in calculating the number of days left until 2004-12-24 when it is 2004-11-05. (the dates are just testdates) -- - Best Of Times /Peter Lauri -- PHP General Mailing

RE: [PHP] Re: Browsing while downloading?

2004-12-02 Thread adrian zaharia
Hi, Check the main thread, i have found the problem if you're interested... Adrian Zaharia Trevor Gryffyn wrote: Yeah, this isn't a PHP specific problem, BUT, in the off chance that PHP could solve the problem (using a different method of sending to the browser, etc) then it becomes PHP

RE: [PHP] Page that checks if a user exists on a remote system

2004-12-02 Thread Gryffyn, Trevor
Yeah, this is definitely a maybe solution and depends on a few things being right. But if the alteratives are using su ANYTHING commands and if just asking the SMTP server produces accurate results, then it seemed like it was worth mentioning. But the few people who have pointed out that this

Re: [PHP] Cleaner way to do this?

2004-12-02 Thread Thomas Munz
foreach ( $_POST as $key = $value ) { while ($key != submit) { \$$key = $value; $addtocart .= ,'\$$key'; } } The problem is that it seems to be hanging at the while loop. Is there a cleaner way to write the foreach loop so that it will dump out the submit key? I've been

Re: [PHP] print_r() and SimpleXML

2004-12-02 Thread Paul Reinheimer
Thanks a lot, I read the SimpleXML page a lot, but didn't drop into the -attributes page itself. again, thanks paul. On Tue, 30 Nov 2004 23:34:14 -0800, Rick Fletcher [EMAIL PROTECTED] wrote: [snip] when using print_r on a SimpleXML object that has attributes, the attributes are not

RE: [PHP] Parse error: parse error, expecting `']'' in

2004-12-02 Thread Matthew Sims
So when using arrays with string keys within strings you need to concatenate it. $var = I live in the city of . $_POST['cityname']; No, you do not *need* to -- it is one option, certainly, but there is no necessity about it. Within double-quoted strings, it is perfectly acceptable to use

Re: [PHP] Too many DELETE statements

2004-12-02 Thread Lordo
Thanks alot. You really gave me some good ideas. Lordo Richard Lynch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] news.php.net wrote: I have 160,000+ members in my site. 40,000 of them have not logged in since 2003 and they should be deleted. A member is not deleted from

Re: [PHP] Go Back Problem

2004-12-02 Thread Afan Pasalic
I solve that problem this way (please correct me if it's wrong) # form.php ?php if(isset($_POST['SubmitForm'])) { if(!isset($_POST['Name'] or !isset($_POST['Phone'] or !isset($_POST['Email']) { echo One or more required fields are empty.; } else { header('location:

Re: [PHP] Too many DELETE statements

2004-12-02 Thread David Dickson
Richard Lynch wrote: Plus you are unlink-ing 10 files. That's probably the real problem. You'd have to write some timing code to be sure, though, as a slow database server and a very fast hard drive could be involved. Here are some things you could do to speed it up, assuming you don't want the

[PHP] Re: Custom Open Tags

2004-12-02 Thread Sven Schwyn
Hi all Thanks for your hints. I need this feature for an easy to use minimalistic CMS solution, so tweaking the PHP source is not that much of an option. But evals do the trick of course. I ruled that out at first because I thought it'll cause a lot of clumsy code. Yet there's quite an elegant

Re: [PHP] Cleaner way to do this?

2004-12-02 Thread Marek Kilimajer
Robert Sossomon wrote: foreach ( $_POST as $key = $value ) { while ($key != submit) { \$$key = $value; $addtocart .= ,'\$$key'; } } The problem is that it seems to be hanging at the while loop. Is there a cleaner way to write the foreach loop so that it will dump out the submit key?

Re: [PHP] Too many DELETE statements

2004-12-02 Thread Lordo
Thanks. I will check the foreign key with cascading issue. But I have a question: Will it have any bad effects on behavior? I have tables with 160,000, 400,000, etc. records. Lordo David Dickson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] news.php.net wrote: A member is not

[PHP] Text Parser

2004-12-02 Thread Pablo D Marotta
Hi there.. A newbie issue: I´m receiving this: house , ball , door , roof , floor And I want to obtain this: 'house','ball','door','roof','floor' Maybe, I should use implode or explode, but I just can´t figure out how.. Help? American Express made the following annotations on 12/02/04

RE: [PHP] Re: How to tell if the filepath exist or not before attempting to create a directory??

2004-12-02 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 02 December 2004 18:51, Richard Lynch wrote: Marek Kilimajer wrote: What version? On 5.0.2 file_exists('nonexistingfile'); does not generate any error message. Ya got

RE: [PHP] Date Manipulation

2004-12-02 Thread Gryffyn, Trevor
In addition to Matthew's response... Strtotime() and mktime() both return a serial date. That's the 1101945775 number you got. To get this back to a mmdd format that you seem to be trying to do with mktime(), you want to use date() as Matthew suggested. Again, I think examples help more

Re: [PHP] Re: How to tell if the filepath exist or not before

2004-12-02 Thread John Nichel
M. Sokolewicz wrote: John Nichel wrote: Richard Lynch wrote: Be kinda like isset() issuing a NOTICE for a variable that's not set. Well, duh. That's why I asked. :-) isset() doesn't issue a notice...at least not in php 4.3.9. It just returns true or false. it did for a while in PHP 5.1, for

[PHP] Working with Dates

2004-12-02 Thread Robert Sossomon
I have this code below that needs to display stuff depending on WHEN it is. I am pretty sure it is something simple I have confused (again) but can't place my finger on it. Anyone see the mistake? ?php $today = date(m-d-y); $early = date(m-d-y,mktime(0, 0, 0, 1, 14, 2005)); $normal =

[PHP] Newbie, project..

2004-12-02 Thread Lennart Andersen
Hi All, I need to find a newbie project to help me learn PHP, I use Linux and have apache install with php support! Any suggestions? -- Lennart Andersen St Thomas, Ontario lennart at rogers dot com -- - Debian - I hack, therefore I am -- PHP General

Re: [PHP] Newbie, project..

2004-12-02 Thread Robert Sossomon
SNIP Write a guestbook for your website. :) My first project for PHP was a custom shopping cart for my old company(ies) and I had to write it from the ground up. Ambitious and I am sure my code is full of non-speedy stuff, but it works and still functions (for me anyways, they got rid of a

[PHP] $this -

2004-12-02 Thread R. Van Tassel
Can someone please point me to the php documentation where it explains $this - What is the symbol - and is $this something only used in classes? I can't find any information that explains this specifically but see it used everywhere. Thanks, ~ R. Van Tassel

[PHP] How to Add a Module

2004-12-02 Thread Nick Peters
Hey, i currently have a apache and php installed perfectly on my box (slackware 10). However, i have the need to use mcrypt. I have mcrypt all compiled and installed, but how do i add the module to my php install? I have searched a few places on the net and i can't figure it out. Thanks in

Re: [PHP] Too many DELETE statements

2004-12-02 Thread Lordo
Thanks guys. I delete 500 by 500 now and it takes like 20 seconds only. I am using the manual select where in method. It is great. Now for the files, OK I will use a cron. But can I change the way I get the file names? I mean instead of deleting the photo that is related to a deleted member, can

[PHP] Sessions: Basic Information

2004-12-02 Thread Lordo
I have not yet worked with sessions and I don't know why I DO NOT WANT to understand it!! :)) I am a traditional ASPer and I am addicted to cookies. But I want to use sessions if they will make life easier for me. Can someone please direct me to an easy to understand resource with working

[PHP] Re: $this -

2004-12-02 Thread Matthew Weier O'Phinney
* R. Van Tassel [EMAIL PROTECTED]: --=_NextPart_000_0039_01C4D88C.AECDCB00 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Can someone please point me to the php documentation where it explains $this - What is the symbol - and is $this something

[PHP] Strange character conversion when converting XML by XSLT in PHP

2004-12-02 Thread Age Bosma
I'm converting, or at least trying, one XML file to another XML format using XSLT parsing it with PHP. I'm using a lot of characters in the following style #34;, #42;, etc. (without the space, added now the prevent any conversion in this e-mail) in the XML file and I would like to keep it

Re: [PHP] Strange character conversion when converting XML by XSLT in PHP

2004-12-02 Thread John Holmes
Age Bosma wrote: I'm converting, or at least trying, one XML file to another XML format using XSLT parsing it with PHP. I'm using a lot of characters in the following style #34;, #42;, etc. (without the space, added now the prevent any conversion in this e-mail) in the XML file and I would

Re: [PHP] Too many DELETE statements

2004-12-02 Thread Richard Lynch
David Dickson wrote: Richard Lynch wrote: Plus you are unlink-ing 10 files. That's probably the real problem. You'd have to write some timing code to be sure, though, as a slow database server and a very fast hard drive could be involved. Here are some things you could do to speed it up,

Re: [PHP] Working with Dates

2004-12-02 Thread Richard Lynch
Robert Sossomon wrote: I have this code below that needs to display stuff depending on WHEN it is. I am pretty sure it is something simple I have confused (again) but can't place my finger on it. Anyone see the mistake? ?php $today = date(m-d-y); $early = date(m-d-y,mktime(0, 0, 0, 1,

Re: [PHP] How to Add a Module

2004-12-02 Thread Richard Lynch
Nick Peters wrote: i currently have a apache and php installed perfectly on my box (slackware 10). However, i have the need to use mcrypt. I have mcrypt all compiled and installed, but how do i add the module to my php install? I have searched a few places on the net and i can't figure it

Re: [PHP] Too many DELETE statements

2004-12-02 Thread Richard Lynch
Lordo wrote: Thanks guys. I delete 500 by 500 now and it takes like 20 seconds only. I am using the manual select where in method. It is great. Now for the files, OK I will use a cron. But can I change the way I get the file names? I mean instead of deleting the photo that is related to a

Re: [PHP] Strange character conversion when converting XML by XSLT in PHP

2004-12-02 Thread Richard Lynch
Age Bosma wrote: I'm converting, or at least trying, one XML file to another XML format using XSLT parsing it with PHP. I'm using a lot of characters in the following style #34;, #42;, etc. (without the space, added now the prevent any conversion in this e-mail) in the XML file and I would

[PHP] Apache 2 survey

2004-12-02 Thread Bart Baenisch
Hi - Please help me quantify the risk of Apache 2.x with PHP 5.x. Thank you for making the time. If I missed this on php.net or apache.org or somewhere else, please point me to the data. There is other good survey info, but not the PHP 5/Apache 2 combo. Reply to me directly and I'll

[PHP] Mining protection / security code confirmation

2004-12-02 Thread Ho!Tech Guy
I have a classified ad section on my site which uses a privacy mail function so users don't have to make their email address public. Recently though, the site has been mined (I assume) and spam is being sent. I was thinking that a security code confirmation type script would be good where the

[PHP] Re: Sessions: Basic Information

2004-12-02 Thread Peter Lauri
Sessions will make you life easier if you are using cookies to control a web session. http://th.php.net/manual/en/ref.session.php will give you most information regarding this, together with some examples. Play around with simple own examples and you will learn to work with sessions relativly

[PHP] Need Help

2004-12-02 Thread suneel
Hi to all any one Could tell me any diffrence between ?php ? and ? ?. And which one is better to use and in which situations. Byee

Re: [PHP] Need Help

2004-12-02 Thread GH
Basically They are the same... some servers might not have ? enabled... all the demos I have seen and tutorials use ?PHP ? That seems to be the standard On Fri, 3 Dec 2004 09:32:34 +0530, suneel [EMAIL PROTECTED] wrote: Hi to all any one Could tell me any diffrence between

[PHP] Re: Need Help

2004-12-02 Thread Peter Lauri
Use ?php ? if you are implementing php. I think that you can predefine what scriptlanguage to use, and therefore ? ? can be used. /Peter Suneel [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Hi to all any one Could tell me any diffrence between ?php ? and ? ?. And

Re: [PHP] Need Help

2004-12-02 Thread Thomas Goyne
On Fri, 3 Dec 2004 09:32:34 +0530, suneel [EMAIL PROTECTED] wrote: Hi to all any one Could tell me any diffrence between ?php ? and ? ?. And which one is better to use and in which situations. Byee ? ? is the older syntax, and it can cause problems with xml (as the xml

Re: [PHP] $this -

2004-12-02 Thread Klaus Reimer
R. Van Tassel wrote: Can someone please point me to the php documentation where it explains $this - 1. It must be $this- and not $this - . 2. Documentation can be found here: http://de.php.net/manual/en/language.oop.php What is the symbol - and is $this something only used in classes?

RE: [PHP] Very fresh to php

2004-12-02 Thread Zareef Ahmed
Hi, Visit http://www.sitepoint.com/article/phps-creator-rasmus-lerdorf/39 Zareef ahmed -Original Message- From: Reinhart Viane [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 01, 2004 8:09 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] Very fresh to php I