Re: [PHP] Handling (very) large files with PHP

2009-03-10 Thread Chris
Anyway, so, I am going to convert it into a database, and I insist on using PHP for this. Wrong answer. Use the right tool for the job. I don't think php is it. Personally I'd go for perl for doing this. It's much better (IMO) at text processing, especially large files. As long as you know reg

Re: [PHP] Handling (very) large files with PHP

2009-03-10 Thread Paul M Foster
On Wed, Mar 11, 2009 at 03:04:19AM +0200, ?? wrote: > *Handling (very) large files with PHP* > > Hello, I am planning a project in PHP, and I have few unsolved issues that > I'd like you to help me... > > The project will start by loading a file of about 50GB. > The file has a m

Re: [PHP] Working directory of PHP pages?

2009-03-10 Thread Michael Kubler
You can configure different index file names for Apache to check for. e.g index.html, index.htm, index.php, default.htm I had one webserver where it would only accept default.htm as the file, and didn't allow .htaccess files. Michael Kubler *G*rey *P*hoenix *P*roductions

Re: [PHP] Working directory of PHP pages?

2009-03-10 Thread Chris
Clancy wrote: It is my understanding that when you open a page the PHP server looks for index.php in the site root directory, and loads it. The web server (not php) looks for an index.php file (if configured to do so) based on the path. http://www.example.com/subdir/folder/ will look in su

Re: [PHP] Header - Redirect Command Not Working

2009-03-10 Thread revDAVE
Hi Bastien - Stuart & Daniel Thanks for your help! On 3/10/2009 12:16 PM, "Bastien Koert" wrote: > Are you getting an error? What does 'not working' mean? No errors the page just stayed on the header('Location: show.php'); page - never went to: show.php --- On 3/10/2009 12:17 PM, "Stuart"

[PHP] Handling (very) large files with PHP

2009-03-10 Thread דניאל דנון
*Handling (very) large files with PHP* Hello, I am planning a project in PHP, and I have few unsolved issues that I'd like you to help me... The project will start by loading a file of about 50GB. The file has a many objects with a pattern, for example, Name: Joe Joe likes to eat --

Re: [PHP] Opendir on site root directory?

2009-03-10 Thread Clancy
On Tue, 10 Mar 2009 15:12:57 +, stut...@gmail.com (Stuart) wrote: >Please keep the discussion on-list. > >2009/3/10 Clancy > >> Hi, >> >> After I posted my message to the group today I realised that my program >> achieves its >> almost infinite flexibility by loading different include files i

[PHP] Working directory of PHP pages?

2009-03-10 Thread Clancy
It is my understanding that when you open a page the PHP server looks for index.php in the site root directory, and loads it. As a result the working directory of the page will be the root directory of the site. I have always worked on this assumption, and it has always been correct. On the ot

Re: [PHP] More PHP Includes

2009-03-10 Thread Gary
Jochem Thanks for your reply, the project seven and DW was just for a point of information, same as if you have an issue with a computer you generally find it a good idea to list your operating system and other pertinent facts. I had coded the scripts and files by hand. The file was not on the

Re: [PHP] More PHP Includes

2009-03-10 Thread Jochem Maas
Gary schreef: > I'm sorry you were not able to understand the questions, but thank you for > trying. a few tips: 1. don't assume people know what 'projectseven PMM' 2. it's doubtful anyone worth their salt on this list uses or knows much about a mind-bending, soul-destroyer like DreamWeaver. 3.

Re: [PHP] Spam on the list?

2009-03-10 Thread 9el
--- Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get a Free CD of Ubuntu mailed to your door without any cost. Visit : www.ubuntu.com -- 20

Re: [PHP] DOM recursion

2009-03-10 Thread Jochem Maas
please keep replies on list ... I enjoy my beatings in public ... Joanne Lane schreef: > On Tue, 2009-03-10 at 01:05 +0100, Jochem Maas wrote: > >> yeah but those from php-women should know better :-) >> my eye keeps picking up php-women since I had a very nice chat >> with JRF (of phpwomen.org)

Re: [PHP] Spam on the list?

2009-03-10 Thread Daniel Brown
On Tue, Mar 10, 2009 at 19:37, דניאל דנון wrote: > > Can anyone explain, first, > Why doesn't the usual PHP-MailingList-Footer appears? It's SPAM. Not much we can do about it in an open forum, unfortunately. Just ignore it. > Second, What is the "out_of_the_list" email thing all about? Wil

[PHP] Spam on the list?

2009-03-10 Thread דניאל דנון
>From time to time, I usually get a message of "earn money from home" or things like that, and in the bottom, it says, "This email has been written and proved to be in compliance with the recently established can-spam act law in US. We are not provoking or forcing any person in any way to particip

[PHP] Re: More PHP Includes

2009-03-10 Thread Clancy
On Tue, 10 Mar 2009 09:59:53 -0400, gwp...@ptd.net ("Gary") wrote: >Thanks again for all the help. > >I created a simple page of all includes (header, menu, 3 columns). I mixed >the file types up. The menu (projectseven PMM) I saved as a library item, >works fine. Had an HTML file in there, bu

[PHP] PHP/Apache: script unexpectedly invoked multiple times in parallel every 30 secs.

2009-03-10 Thread Marc Venturini
Hi all, I wrote a PHP script running in Apache which takes more than 30 seconds to complete. It uses set_time_limit() to extend the time it is allowed to run. The script generates thumbnails from a list of images. Upon completion, the script redirects the browser to another page using HTTP headers

Re: [PHP] Include File Errors with Comments

2009-03-10 Thread Chris
Patrick Moloney wrote: I have a simple web site with a simple page that all works well, although I have had a similar problem a couple of times that seems to be caused by Comment Lines in the included files. I wonder if I have it entirely right. All my files are .php files, but almost all the

Re: [PHP] Include File Errors with Comments

2009-03-10 Thread Michael A. Peters
Patrick Moloney wrote: Does PHP preprocess the file but treat the comments as text because I never said it was HTML? I've not had it do that. Would PHP comments have to be inside PHP tags? Yes. If you use a php comment it has to be inside a php tag. One issue I have seen though is xml/x

Re: [PHP] [PHP & MySQL] Introduction to using relational databases

2009-03-10 Thread Chris
Bob McConnell wrote: From: Dirk Thilo Klein wrote: Dear readers, I am new to relational DB but not to MySQL & PHP in general. I created a RDB using Struggling with the program's complexity I managed to create a set of databases being interconnected via (foreign) keys. What I want t

[PHP] Include File Errors with Comments

2009-03-10 Thread Patrick Moloney
I have a simple web site with a simple page that all works well, although I have had a similar problem a couple of times that seems to be caused by Comment Lines in the included files. I wonder if I have it entirely right. All my files are .php files, but almost all the code is HTML. The file f

Re: [PHP] validation & inserts not working

2009-03-10 Thread Lex Braun
PJ, On Tue, Mar 10, 2009 at 3:46 PM, PJ wrote: > > $sql1 = "INSERT INTO book ( title, sub_title, descr, >comment, bk_cover, copyright, ISBN, language, sellers ) > VALUES ('$titleIN', '$sub_titleIN', '$descrIN', '$commentIN', >'$bk_coverIN', '$copyrightIN', '$ISBN

Re: [PHP] whoami explanation

2009-03-10 Thread Michael A. Peters
Daniel Brown wrote: On Tue, Mar 10, 2009 at 15:31, 9el wrote: I'm trying to find whoami here :D You mean to say: "I'm trying to find whyami here." I think I am here therefore I why? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

[PHP] validation & inserts not working

2009-03-10 Thread PJ
Sorry to be a nuisance again, but I cannot understand why my code is not functioning correctly. I have tested the separate elements of the code and they work fine. But when I put it all together something goes off the rails. I am using sessions and cookies. After verifying that the required fields

Re: [PHP] whoami explanation

2009-03-10 Thread Andrew Ballard
On Tue, Mar 10, 2009 at 3:31 PM, 9el wrote: > --- > Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get > a Free CD of Ubuntu mailed to your door without any cost. Visit : > www.ubuntu.com >

Re: [PHP] whoami explanation

2009-03-10 Thread Daniel Brown
On Tue, Mar 10, 2009 at 15:31, 9el wrote: > > I'm trying to find whoami here :D You mean to say: "I'm trying to find whyami here." ;-P -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ 50% Off All Shared Hosting Plans at PilotPi

Re: [PHP] More PHP Includes

2009-03-10 Thread Gary
I'm sorry you were not able to understand the questions, but thank you for trying. The path to the include is not an absolute path. "Jochem Maas" wrote in message news:49b6b6d8.7050...@iamjochem.com... > Gary schreef: >> Thanks again for all the help. >> >> I created a simple page of all incl

Re: [PHP] whoami explanation

2009-03-10 Thread 9el
--- Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get a Free CD of Ubuntu mailed to your door without any cost. Visit : www.ubuntu.com -- On

Re: [PHP] More PHP Includes

2009-03-10 Thread 9el
On Tue, Mar 10, 2009 at 7:59 PM, Gary wrote: > Thanks again for all the help. > > I created a simple page of all includes (header, menu, 3 columns). I mixed > the file types up. The menu (projectseven PMM) I saved as a library item, > works fine. Had an HTML file in there, but I am guessing tha

Re: [PHP] Header - Redirect Command Not Working

2009-03-10 Thread Daniel Brown
On Tue, Mar 10, 2009 at 15:13, revDAVE wrote: > Newbie question... > > At the end of a php block I'm trying to use a redirect to go to another > page. > > header('Location: show.php'); > > It works on my test server w php 5.2.6 but not at the main server w v 5.12 Did you already have some out

Re: [PHP] Header - Redirect Command Not Working

2009-03-10 Thread Stuart
2009/3/10 revDAVE > Newbie question... > > At the end of a php block I'm trying to use a redirect to go to another > page. > > header('Location: show.php'); > > It works on my test server w php 5.2.6 but not at the main server w v 5.12 > > Is there a way to get it to go to the other page (even wi

Re: [PHP] Header - Redirect Command Not Working

2009-03-10 Thread Bastien Koert
On Tue, Mar 10, 2009 at 3:13 PM, revDAVE wrote: > Newbie question... > > At the end of a php block I'm trying to use a redirect to go to another > page. > > header('Location: show.php'); > > It works on my test server w php 5.2.6 but not at the main server w v 5.12 > > Is there a way to get it to

[PHP] Header - Redirect Command Not Working

2009-03-10 Thread revDAVE
Newbie question... At the end of a php block I'm trying to use a redirect to go to another page. header('Location: show.php'); It works on my test server w php 5.2.6 but not at the main server w v 5.12 Is there a way to get it to go to the other page (even with a different command/function) - o

Re: [PHP] More PHP Includes

2009-03-10 Thread Jochem Maas
Gary schreef: > Thanks again for all the help. > > I created a simple page of all includes (header, menu, 3 columns). I mixed > the file types up. The menu (projectseven PMM) I saved as a library item, > works fine. Had an HTML file in there, but I am guessing that having 2 page > declaration

Re: [PHP] whoami explanation

2009-03-10 Thread Paul M Foster
On Tue, Mar 10, 2009 at 12:00:16PM -0300, Eduardo wrote: > Potatoes: The Instant Recipe > RE: Robert Cummings > > > Put a washed non peeled medium size potato per person over a oven-plate and > take it to the oven. > > When almost done, slice longitudinally and add a piece of hard cheese. > >

Re: [PHP] Re: Error with DOMDocument in php's functions

2009-03-10 Thread Shawn McKenzie
Mauricio Muriel wrote: > > > > Please keep replies on list. > > At a minimum you are missing the closing brace } for your function. I > would suggest that you find an IDE or at least a text editor that has > PHP syntax checking. > > -Shawn > > > Sorry for my error IN THE EMAIL,

[PHP] whoami explanation

2009-03-10 Thread Eduardo
Potatoes: The Instant Recipe RE: Robert Cummings Put a washed non peeled medium size potato per person over a oven-plate and take it to the oven. When almost done, slice longitudinally and add a piece of hard cheese into the slice. When cheese melts take the potates from the oven, add salt or

[PHP] whoami explanation

2009-03-10 Thread Eduardo
Potatoes: The Instant Recipe RE: Robert Cummings Put a washed non peeled medium size potato per person over a oven-plate and take it to the oven. When almost done, slice longitudinally and add a piece of hard cheese. When cheese melts take the potates from the oven, add salt or whatever condim

Re: [PHP] Re: Error with DOMDocument in php's functions

2009-03-10 Thread Shawn McKenzie
Mauricio Muriel wrote: > Hi Shawn, > > Thanks for your time, this is the complete code of the function (in > fact the complete code in: xml_match.php file) > > > function xml_match($columns,$text,&$result) > {$debug=true; > echo "Starting XML Module"; > if ($debug) >{echo "Starting X

Re: [PHP] How to work with Webservices (.asmx) server

2009-03-10 Thread Thijs Lensselink
Anton Heuschen wrote: > I am confused with XML-RPC / SOAP and WSDL ... > > If you have a server with a script/file like test.asmx and some web > services ...below example of service format : > > SOAP 1.2 > > The following is a sample SOAP 1.2 request and response. The > placeholders shown need t

[PHP] How to work with Webservices (.asmx) server

2009-03-10 Thread Anton Heuschen
I am confused with XML-RPC / SOAP and WSDL ... If you have a server with a script/file like test.asmx and some web services ...below example of service format : SOAP 1.2 The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values. -

Re: [PHP] soft Phone

2009-03-10 Thread Nathan Nobbe
On Tue, Mar 10, 2009 at 5:54 AM, shahrzad khorrami < shahrzad.khorr...@gmail.com> wrote: > Hi all :-) > > I want to use of *soft phone* application in my php codes..First is it > possible? has php a module for this purpose? > if it hasn't... By the way I think I must use of something else such as

[PHP] Re: Error with DOMDocument in php's functions

2009-03-10 Thread Shawn McKenzie
Mauricio Muriel wrote: > Hi Guys, > > I want to ask you about this problem: > > I have a FUNCTION where is a DOMDocument element, that DOMDocument element > is "Load" from a string (With well formed XML structure) stored in a param, > this is code: > > > function xml_match($columns,$text,&$res

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-10 Thread Sashikanth Gurram
haliphax wrote: On Mon, Mar 9, 2009 at 8:43 PM, Sashikanth Gurram wrote: Is there any way in which I can assign a variable to a query string? Like for example, Let us say that there are two php files a.php and b.php. I am currently using a image tag like in a.php and am passing the value to

Re: [PHP] Opendir on site root directory?

2009-03-10 Thread Stuart
Please keep the discussion on-list. 2009/3/10 Clancy > Hi, > > After I posted my message to the group today I realised that my program > achieves its > almost infinite flexibility by loading different include files in different > circumstances, > and from many different parts of the program. Th

Re: [PHP] Opendir on site root directory?

2009-03-10 Thread Stuart
2009/3/10 Clancy > On Mon, 9 Mar 2009 10:07:33 +, stut...@gmail.com (Stuart) wrote: > > ... > >As in the example script I've posted above you can refer to the current > >working directory with a single period (.), but this is still relying on > the > >current working directory being what

[PHP] Error with DOMDocument in php's functions

2009-03-10 Thread Mauricio Muriel
Hi Guys, I want to ask you about this problem: I have a FUNCTION where is a DOMDocument element, that DOMDocument element is "Load" from a string (With well formed XML structure) stored in a param, this is code: loadXML($text); ... /* REST of function's code */ Now in the line number 63 (in th

Re: [PHP] Re: DOMDocument getElementsByAttribute ??

2009-03-10 Thread Andrew Ballard
On Mon, Mar 9, 2009 at 8:24 PM, Nathan Rixham wrote: > Michael A. Peters wrote: >> >> Nathan Rixham wrote: >>> >>> Michael A. Peters wrote: Seems like such a function does not exist in php. I can write my own function that does it using DOMElement->hasAttribute() - but I'm not

Re: [PHP] Re: DOMDocument getElementsByAttribute ??

2009-03-10 Thread Andrew Ballard
On Mon, Mar 9, 2009 at 8:41 PM, Michael A. Peters wrote: > Nathan Rixham wrote: >> >> Michael A. Peters wrote: >>> >>> Nathan Rixham wrote: Michael A. Peters wrote: > > Seems like such a function does not exist in php. > I can write my own function that does it using > DO

Re: [PHP] soft Phone

2009-03-10 Thread haliphax
On Tue, Mar 10, 2009 at 8:25 AM, Michael A. Peters wrote: > shahrzad khorrami wrote: >> >> Hi all :-) >> >> I want to use of *soft phone* application in my php codes..First is it >> possible? has php a module for this purpose? >> if it hasn't... By the way I think I must use of something else such

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-10 Thread haliphax
On Mon, Mar 9, 2009 at 8:43 PM, Sashikanth Gurram wrote: >>> Is there any way in which I can assign a variable to a query string? >>> Like for example, Let us say that there are two php files a.php and >>> b.php. I am currently using a image tag like >> src="imgtest.php?id=Williams Hall" /> in a.p

Re: [PHP] Script execution

2009-03-10 Thread Daniel Brown
On Tue, Mar 10, 2009 at 01:23, Paul M Foster wrote: > > (Dan, make the check out to... ;-) > > Paul I prefer PayPal. Thanks to the Postal Service, the cost of a stamp is probably more than a bribery or endorsement payment. :-\ -- daniel.br...@parasane.net || danbr...@php.net http://www.p

[PHP] More PHP Includes

2009-03-10 Thread Gary
Thanks again for all the help. I created a simple page of all includes (header, menu, 3 columns). I mixed the file types up. The menu (projectseven PMM) I saved as a library item, works fine. Had an HTML file in there, but I am guessing that having 2 page declarations along with an extra set

Re: [PHP] soft Phone

2009-03-10 Thread Michael A. Peters
shahrzad khorrami wrote: Hi all :-) I want to use of *soft phone* application in my php codes..First is it possible? has php a module for this purpose? if it hasn't... By the way I think I must use of something else such as a java application in my php codes... now how can I embed this applicati

[PHP] soft Phone

2009-03-10 Thread shahrzad khorrami
Hi all :-) I want to use of *soft phone* application in my php codes..First is it possible? has php a module for this purpose? if it hasn't... By the way I think I must use of something else such as a java application in my php codes... now how can I embed this application to my program? and do yo

Re: [PHP] Re: PHP includes

2009-03-10 Thread Michael A. Peters
Mayer, Jonathan wrote: Just thought I'd point out that it's recommended against giving non-php extensions to PHP code pages. Basically, making all of your include files .inc without the server correctly configured to recognise all .inc files as PHP files, you are opening yourself up to possib

RE: [PHP] [PHP & MySQL] Introduction to using relational databases

2009-03-10 Thread Bob McConnell
From: Dirk > Thilo Klein wrote: >> Dear readers, >> >>I am new to relational DB but not to MySQL & PHP in general. I >> created a RDB using Struggling with the program's >> complexity I managed to create a set of databases being interconnected >> via (foreign) keys. >> >>What I want t

RE: [PHP] Re: PHP includes

2009-03-10 Thread Mayer, Jonathan
-Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: 09 March 2009 19:55 To: Mayer, Jonathan Cc: Gary; php-general@lists.php.net Subject: RE: [PHP] Re: PHP includes On Mon, 2009-03-09 at 15:10 +, Mayer, Jonathan wrote: > >Thank you to everybody that repl

[PHP] Re: PHP includes

2009-03-10 Thread Gary
Again, thank you for everyone that offered their advice. ""Gary"" wrote in message news:8a.64.51087.33bf3...@pb1.pair.com... > I'm working on learning php and have been toying with includes, and I am > trying to figure the advantages/disadvantages to using them. > > I know that using them elim

[PHP] Re: PHP includes

2009-03-10 Thread Gary
Again, thank you for everyone that offered their advice. ""Gary"" wrote in message news:8a.64.51087.33bf3...@pb1.pair.com... > I'm working on learning php and have been toying with includes, and I am > trying to figure the advantages/disadvantages to using them. > > I know that using them elim

Re: [PHP] Cookies/Sessions and how they work

2009-03-10 Thread Michael A. Peters
Paul M Foster wrote: This is in two parts. First cookies. I'm a little unclear on how they work. From what I've read, cookies are stored by the browser. When a request for that cookie comes in from the server, the browser returns only the value, and no other data. One question: When the browser r