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
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
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
"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
>
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 =
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
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
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
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]
--
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
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.
$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
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
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
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
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
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/
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
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
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
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
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
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
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
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
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
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
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
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 ) -
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
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
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
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
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
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://
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
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
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
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
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
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
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
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
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.
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
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
101 - 146 of 146 matches
Mail list logo