RE: [PHP] Mail(): How much time?

2002-12-06 Thread Charles Bronson
There are a couple of spots it may be slowing down depending on how your doing things. I have a mysql database and submit one query in which I hold all the data in an array. Then I loop through the array so I do not need to send multiple queries. I use something like the following, though I like t

Re: [PHP] Bug with "+" sign when using CLI?

2002-12-06 Thread Chris Wesley
On Fri, 6 Dec 2002, Charles Bronson wrote: > I found nothing about a + splitting argument variables anywhere in the > CLI documentation though I know this is a CGI characteristic. I've tried > escaping the + character to no avail. Check out the bug: http://bugs.php.net/bug.php?id=18566 I experie

Re: [PHP] Mail(): How much time?

2002-12-06 Thread rolf vreijdenberger
I do something similar, I wasn't clear with what I meant by a loop. the loop is the same as you do, I work on the result set too! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP includes without access to the default directory

2002-12-06 Thread Gundamn
"Tom Rogers" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Hi, > > Friday, December 6, 2002, 11:06:36 AM, you wrote: > G> I have a hosted account. As such, I am unable to use the default location > G> for files when used with the include command. So could somebody tell me how >

[PHP] evaluating vars in a var

2002-12-06 Thread rolf vreijdenberger
Hi, this problem came forth from my previously posted -Mail(): how much time-, but is different so I posted it seperately. I make html emails with personal stuff in it e.g. hello $firstName $lastName etc. Problem: I would like to put the whole email html layout in one var, like this: $htmlEmail =

[PHP] I can list directories. But not the files :/

2002-12-06 Thread
Hello. Here is the code to list all directories in my /members directory: $path = "./"; // even "."if ($dir = @opendir($path)) {while (($file = readdir($dir)) !== false) {if ($file=='.' || $file=='..' || $file=='_vti_cnf' || $file=='notes.htm' || $file=='showall_copy(1).php') continue;if (is_di

[PHP] stripping spaces from a string

2002-12-06 Thread Jule Slootbeek
Hi, What's the best and easiest way to strip all the spaces from a string? do i use regular expressions for it? TIA, J. Jule Slootbeek [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: XSLT support for RH8

2002-12-06 Thread electroteque
dont use rpm's at all use soure , i did a base net install of RH8 most of the packages i didnt even select coz i wanted to get them manually were older versions and unpatched versions with security issues dammit ! , you will need sablot for xslt support , goto www.php.net/xslt and check out sablot

[PHP] Re: stripping spaces from a string

2002-12-06 Thread J Smith
Regular expressions would be overkill. Try $newString = str_replace(" ", "", $oldString); J Jule Slootbeek wrote: > Hi, > > What's the best and easiest way to strip all the spaces from a string? > do i use regular expressions for it? > > TIA, > J. > Jule Slootbeek > [EMAIL PROTECTED] --

Re: [PHP] Re: stripping spaces from a string

2002-12-06 Thread Jule Slootbeek
perfect, exactly what i needed thanks J. On Friday, Dec 6, 2002, at 16:38 US/Eastern, J Smith wrote: Regular expressions would be overkill. Try $newString = str_replace(" ", "", $oldString); J Jule Slootbeek wrote: Hi, What's the best and easiest way to strip all the spaces from a string

Re: [PHP] mail() problems...

2002-12-06 Thread Anthony Ritter
DL, Sorry to be a pain... but using either: the address of my outgoing mail server or localhost still gives me: Warning: Failed to Connect in c:\program files\apache group\apache\htdocs\send_simpleform.php on line 14 Thanks again for your time. TR -- PHP General Mailing List (http://www.

Re: [PHP] evaluating vars in a var

2002-12-06 Thread Leif K-Brooks
$htmlEmail = 'hello $firstName $lastName'; //Start loop eval("\$thisemail = $htmlemail"); //Send mail out, using $thisemail for mail body //End loop rolf vreijdenberger wrote: Hi, this problem came forth from my previously posted -Mail(): how much time-, but is different so I posted it seperatel

Re: [PHP] evaluating vars in a var

2002-12-06 Thread rolf vreijdenberger
thanks a lot, I thought there might be a trick, this is really helpful, thanks again -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] evaluating vars in a var

2002-12-06 Thread Leif K-Brooks
Yes. If it was in double quotes, it would parse the variables before the loop started. Another way would be to put it in double quotes and escape the dollar signs. Rolf Vreijdenberger wrote: I notice that you put everything in single quotes and then escape it. is there any special reason for

[PHP] Good eve

2002-12-06 Thread Miguel Brás
I have a table with several field, one of them has a date insertion on the d/m/y format. I would like to return only the data for the present day (today will be date 05/12/02 tomorrow will be 06/12/02) I will do SELECT field1, field2, field3 FROM table WHERE date=? What is missing on the

[PHP] Re: Date

2002-12-06 Thread Miguel Brás
And sorry about the subject, it should be Date "Miguel BráS" <[EMAIL PROTECTED]> escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a table with several field, one of them has a date insertion on the > d/m/y format. > I would like to return only the data for the present day

Re: [PHP] Good eve

2002-12-06 Thread Brad Bonkoski
Check out: http://www.php.net/manual/en/function.mktime.php HTH -Brad "Miguel Brás" wrote: > I have a table with several field, one of them has a date insertion on the > d/m/y format. > I would like to return only the data for the present day (today will be date > 05/12/02 tomorrow will be 06/12/

[PHP] Allowed memory size exhausted

2002-12-06 Thread Jeff Schwartz
I have a large amount of data (1,948,280 bytes) that I tried to write out to a file using if ($fp = fopen($file,"w")): fwrite($fp,$contents,strlen($contents)); fclose($fp); endif; and got "Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1948281

Re: [PHP] Good eve

2002-12-06 Thread rolf vreijdenberger
SELECT field1, field2, field3 FROM table WHERE date=NOW() -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Good eve

2002-12-06 Thread Miguel Brás
thx to both Miguel "Rolf Vreijdenberger" <[EMAIL PROTECTED]> escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > SELECT field1, field2, field3 FROM table WHERE date=NOW() > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Generating forms using OOP

2002-12-06 Thread Davy Obdam
Hi People, I ve just started with some OOP programming in PHP and now i have to build a set of classes that can generate a html form.. But i have a problem with the thing I hope someone can help me here or give me some pointers,... any help is apreciated. Here is a part of my code : class

[PHP] Help! Stuck! Perm denied w/ fopen.

2002-12-06 Thread psy berpunk
I am running using php with apache and curl on a redhat machine. All the installs are very recent with recent versions. Processing of .phtml from the html directory is working great except: I am getting perm denied with fopen for a directory that is set to 666 for permissions, and owned by the sam

[PHP] Middle Number

2002-12-06 Thread Stephen
How can you find the meadian (or middle number) of a list of numbers? If there is an even amount of numbers, how would I still find it? Thanks, Stephen Craton http://www.melchior.us "What is a dreamer that cannot persevere?" -- http://www.melchior.us -- PHP General Mailing List (http://www.php

Re: [PHP] mail() problems...

2002-12-06 Thread Anthony Ritter
To all who assisted me today. I finally managed to get the mail () funtion to work. Thank you and happy holidays to you all... TR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Date again

2002-12-06 Thread Miguel Brás
Ok guys, having a problem here. I did my table with 6 fields, they are: id position name timein timeout date I have a form to insert the info on the fields, and at the date field, I have a drop down menu that returns me the next 7 days (the date in d/m/y), people will choose the date they wa

Re: [PHP] Re: XSLT failing when DOCTYPE declaration present

2002-12-06 Thread Dave
oops, file permission problem, if it isn't set to right permissions, it won't read and act as if there wasn't one, which then makes it work. so it does look like your doc doesn't conform. "Chris Wesley" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Wed, 4

Re: [PHP] Re: XSLT failing when DOCTYPE declaration present

2002-12-06 Thread Dave
or either the permissions are wrong on the external site or the file doesn't exist -dave ps - just trying to give some quick advice hoping it would help, if you don't appreciate it, i can give you some "insightful advice" about what to go do with yourself. "Dave" <[EMAIL PROTECTED]> wrote in

Re: [PHP] Date again

2002-12-06 Thread Stephen
Not sure but I think now() doesn't return the date formate you'd want assuming your date section is classified as a date. Here's what I would do: $date = date("Y-m-d"); $sql = "SELECT * FROM table WHERE date='".$date"'"; $result = mysql_query($sql, $connection); Hope it works! - Original Me

Re: [PHP] Middle Number

2002-12-06 Thread Rick Widmer
At 09:45 PM 12/6/02 -0500, Stephen wrote: How can you find the meadian (or middle number) of a list of numbers? If there is an even amount of numbers, how would I still find it? load the list into an array, in numeric order... then: $List = array( 1,2,3,4,5,6 ); $Middle = ( count( $List ) -

[PHP] Re: HOW GET ALL HTML CONTENT

2002-12-06 Thread Dave
not sure exactly what you mean, but try $HTTP_RAW_POST_DATA or $_SERVER['HTTP_RAW_POST_DATA'] "Nice_boy" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi, > > who knows how to get all contents when i use javascript to get bookmark of > IE > ex: > > window.exte

Re[2]: [PHP] Repeating Decimals

2002-12-06 Thread Tom Rogers
Hi, Saturday, December 7, 2002, 6:36:18 AM, you wrote: S> How would I run the functions though and then print the repeating decimal to S> the screen? The function returns the string ready to print You will need to comment out the echo $s line, it was there for debugging. just do where ever you

[PHP] Re: Help! Stuck! Perm denied w/ fopen.

2002-12-06 Thread Dave
i thought (could be wrong) that directories need execute to read within them, files only need r+w, to make a directory readable.. i always chmod 755 my directories and 644 my files (or in your case chmod 777 directories and 666 files, but i don't recommend that at all). sometimes, i chgrp nobobdy

[PHP] Humour me

2002-12-06 Thread John Taylor-Johnston
Humour me. New server. I'm a little tired. Where is my php.ini on a red hat server? John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Generating forms using OOP

2002-12-06 Thread Peter J. Schoenster
On 7 Dec 2002 at 0:43, Davy Obdam wrote: > I ve just started with some OOP programming in PHP and now i have to > build a set of classes that can generate a html form.. But i have a > problem with the thing I hope > someone can help me here or give me some pointers,... any help is > apreciate

Re: [PHP] Humour me

2002-12-06 Thread @ Edwin
Hello, "John Taylor-Johnston" <[EMAIL PROTECTED]> wrote: > Humour me. New server. I'm a little tired. > Where is my php.ini on a red hat server? I took it :) Anyway, Run phpinfo() --should give you a hint... - E -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

Re: [PHP] Output page cut off after 7000 characters

2002-12-06 Thread Tom Rogers
Hi, Thursday, December 5, 2002, 9:40:20 PM, you wrote: FW> Hi All, FW> i have to migrate a website from WNT/IIS to Solaris/Apache. FW> Some stuff seems to work, but now I am stuck with a page which gets cut FW> off in the middle of the out put. It is a template system with a chain FW> of includ

Re[2]: [PHP] PHP includes without access to the default directory

2002-12-06 Thread Tom Rogers
Hi, Saturday, December 7, 2002, 7:15:38 AM, you wrote: >> ini_set G> ("include_path","/path/to/local/includes:"ini_get("include_path")); >> >> Then no matter what directory you are in you can just include("filename"); >> >> -- >> regards, >> Tom >> G> Thank you. This should work, but I have one

Re: [PHP] Confused about $_SESSION and $_COOKIE scope..

2002-12-06 Thread Tom Rogers
Hi, Saturday, December 7, 2002, 6:01:19 AM, you wrote: CD> I'm not sure why this isn't working, been banging my head at it for a couple CD> hours now. CD> I have a file (index.php), which calls a function that draws the header to CD> my page. CD> Inside that function (site_header), is an include

Re: [PHP] Generating forms using OOP

2002-12-06 Thread Tom Rogers
Hi, Saturday, December 7, 2002, 9:43:47 AM, you wrote: DO> Hi People, DO> I ve just started with some OOP programming in PHP and now i have to DO> build a set of classes that can generate a html form.. But i have a DO> problem with the thing DO> I hope someone can help me here or give me s

Re: [PHP] Re: XSLT failing when DOCTYPE declaration present

2002-12-06 Thread Chris Wesley
no, that's not it. everything was configured properly. everything conformed, except the xslt processor. the correct people were contacted many many weeks ago now. again, thanks for your time ... ~Chris On Fri, 6 Dec 2002, Dave wrote: > oops, > > file permission problem, if it

Re: [PHP] Humour me

2002-12-06 Thread Jerry M . Howell II
if you ran locate php.ini you would find it's in /etc/php.ini :) hey it sure beats RTFM, lol On Fri, 06 Dec 2002 23:39:59 -0500 John Taylor-Johnston <[EMAIL PROTECTED]> wrote: > Humour me. New server. I'm a little tired. > Where is my php.ini on a red hat server? > John > > > -- > PHP General

Re: [PHP] Allowed memory size exhausted

2002-12-06 Thread @ Edwin
Hello, "Jeff Schwartz" <[EMAIL PROTECTED]> wrote: > > I have a large amount of data (1,948,280 bytes) that I tried to write out to a file using > > if ($fp = fopen($file,"w")): > > fwrite($fp,$contents,strlen($contents)); > > fclose($fp); > > endif; I'm not sure if I understand this

Re: [PHP] Date again

2002-12-06 Thread Jason Wong
On Saturday 07 December 2002 11:39, Miguel Brás wrote: > Ok guys, > > having a problem here. I did my table with 6 fields, they are: > id position name timein timeout date > > I have a form to insert the info on the fields, and at the date field, I > have a drop down menu that returns me the n

Re: [PHP] mail() problems...

2002-12-06 Thread Jason Wong
On Saturday 07 December 2002 12:16, Anthony Ritter wrote: > To all who assisted me today. > > I finally managed to get the mail () funtion to work. Would you mind disclosing what you did to make it work? Those searching the archives in generations to come would appreciate what the conclusion was.

Re: [PHP] Generating forms using OOP

2002-12-06 Thread Davy Obdam
Hi Tom, Thanks it now works, .. Best regards, Davy Obdam mailto:[EMAIL PROTECTED] Tom Rogers wrote: Hi, Saturday, December 7, 2002, 9:43:47 AM, you wrote: DO> Hi People, DO> I ve just started with some OOP programming in PHP and now i have to DO> build a set of classes that can generat

Re: [PHP] Generating forms using OOP

2002-12-06 Thread Davy Obdam
Hi Peter, Thanks for your help, but in this case i ve to build everythng up from the ground. Next time i`ll definatly take a look at smarty. It works now.. Best regards, Davy Obdam mailto:[EMAIL PROTECTED] Peter J. Schoenster wrote: On 7 Dec 2002 at 0:43, Davy Obdam wrote: I ve just start

<    1   2