I was just curious, but what program or website do you all use to view and
reply to the newsgroups with ?
Fun Fact # 14:
Netscape 7.0
;)
--
Kyle Gibson
admin(at)frozenonline.com
http://www.frozenonline.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.p
To convert \n's to \n's on any string, use nl2br().
To trim excess white space (\n, \r, [space] \t, etc) from both the beginning
and end of a string, use trim().
Eg:
This should echo:
---
this is a string with an
enter in the middle
---
What do you actually want to do, and what's the problem?
Hey all,
I've been meaning to write a simple debug tracking class for use in my
own projects. So this week I finally did. I have no clue if anyone else
would ever use it, or have any interest in looking at it, but I've set
it up for people to download it if you have any interest. Regardless, I
Hey... I have a question about trim. I don't know if
trim() is the right funtion to use, but here is my
problem.
I am recieving a textarea input from a form and
writing it to a data file. I need to change any line
breaks or (enter) if you will into a or something
else. When it's in my text file,
I use the e-mailing list, not the newsgroup... but I think there is an
*experimental* web based interface to the newsgroup at http://news.php.net,
and most mail readers (outlook, outlook express and netscape I know for
sure) can all read news.
on 08/12/02 3:31 PM, conbud ([EMAIL PROTECTED]) wrote:
I use the mailing list.
conbud wrote:
I was just curious, but what program or website do you all use to view and
reply to the newsgroups with ?
Lee
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent
php-general Digest 8 Dec 2002 04:31:57 - Issue 1750
Topics (messages 127378 through 127413):
save file from outside url
127378 by: Jeremiah Breindel
127382 by: Jason Wong
127383 by: Jeremiah Breindel
Re: redirect URL
127379 by: John W. Holmes
Simple text edi
I was just curious, but what program or website do you all use to view and
reply to the newsgroups with ?
Lee
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks, but I'm having some trouble. I try to print the mode but there is no
value. Here's the code:
while( list( , $Value ) = each($_POST['nums'])) {
$NumberHits[$Value]++;
}
array_multisort($NumberHists, SORT_DESC);
$mode = $NumberHits[0];
echo $mode;
- Original Message -
Fr
At 11:15 AM 12/8/02 +1100, Justin French wrote:
I *think* either:
OR
Works -- you'll have to experiment, but I believe the second way is correct,
and will echo the first (0th) character in the string.
This depends on PHP version. In the bad old days you had to use
$str[0]. Sometime sinc
At 07:12 PM 12/7/02 -0500, Stephen wrote:
Another math question... How would I find the mode (number that repeats most
often) of an array? Then, if there isn't a number that repeats most often,
tell the user that.
For each entry in the array, count the number of times a value occurs:
while( l
At 07:05 PM 12/7/02 -0500, Stephen wrote:
Wouldn't this only work for an even ammount of numbers? Like 1, 2, 3, 4 has
4 numbers...
Did you try it? I'd hate to think I've done more work to solve your
problem than you have...
Even:
$List = array( 1,2,3,4,5,6 );
$Middle = ( count( $List ) -
hi,
right, this is exactly what i mean
Khalid
_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://
> -Original Message-
> From: Khalid El-Kary [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, December 07, 2002 6:03 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Help on OOP
>
> hi,
> a function can be defined from inside another function!
> this works here:
>
>
> function howru()
> {
>
Is your question about dynamically listing the contents of all directories
and/or files below the /members/ dir, or is your question about unzipping
zipped files?
I *think* it's the former, in which case, you should play around with some
of the code examples on zend.com (http://www.zend.com/codex.
I *think* either:
OR
Works -- you'll have to experiment, but I believe the second way is correct,
and will echo the first (0th) character in the string.
If you want to get more than 1 character from a string (example, characters
2-5), then use substr() -- check out the manual.
So far, I d
Another math question... How would I find the mode (number that repeats most
often) of an array? Then, if there isn't a number that repeats most often,
tell the user that.
Thanks,
Stephen Craton
http://www.melchior.us
"What is a dreamer that cannot persevere?" -- http://www.melchior.us
--
PHP
Wouldn't this only work for an even ammount of numbers? Like 1, 2, 3, 4 has
4 numbers...
- Original Message -
From: "Rick Widmer" <[EMAIL PROTECTED]>
Newsgroups: php.general
To: "Stephen" <[EMAIL PROTECTED]>; "PHP List"
<[EMAIL PROTECTED]>
Sent: Friday, December 06, 2002 10:59 PM
Subject:
sorry, I read your post wrong!
don't use php functions, but use native database functions.
in mysql you can use date_format()
SELECT field from table where date=DATE_FORMAT(now(), '%d/%m/%y);
this makes the format of now(), which is 2002-12-07 into a format with first
the days of the week in
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I just installed PHP 4.3.ORC2 on Windows ME and manually added the sapi to
Apache 1.3.27. Apache was installed first and verified. PHP was installed
using the Windows installer. The sapi was installed using the directions
that came with PHP. Appare
hi again,
about functions wholly, here is the php manual functions section
http://www.php.net/manual/en/functions.php
about classes and objects:
http://www.php.net/manual/en/language.oop.php
Note: an object is an instance of a class!
Regards,
Khalid Al-kary
hi,
a function can be defined from inside another function!
this works here:
function howru()
{
function hi()
{
echo "hi,";
}
hi();echo "how r u";
}
howru();
hi();
?>
this gives the same result:
function hi()
{
echo "hi,";
}
function howru()
{
hi();echo "how r u";
}
howru();
hi();
?>
It
> >> Take a look at this one it seemed to be pretty good, the closest
I've
> seen
> DN> to
> >> homesite functionality without the bloat.
> >> http://www.crimsoneditor.com/
This appears to work perfectly. Thank you. Hopefully it works at work.
> DN> Looks interesting - and no registry finagling y
> now since nfo files tend to include a fair bit of of ASCII art in
them, i
> was wandering if there's a way to preserve the spaces in this file, so
the
> ASCII art is preserved.
This is an HTML issue. HTML will only show one space. You can convert
all spaces to or you can use the tags. is pro
I can't distinguish between objects, classes, and functions.
Here is a question - sorry if appear to be rediculous :
-- Can we have a function inside another function?
if anyone can suggest the best tutorial on OBJECTS and CLASSES, I'll be grateful.
Try Winsyntax (http://winsyntax.com/)
It's not as robust and colorful as others, but it's simplicity has won
me over.
It's great is you just want to code.
-Original Message-
From: Tom Rogers [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 07, 2002 12:51 PM
To: DL Neil
Cc: [EMAIL PRO
uhm, i feel silly now, ignore my question please
:D
- Original Message -
From: "Leif K-Brooks" <[EMAIL PROTECTED]>
To: "Patrick McKinley" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, December 07, 2002 8:08 PM
Subject: Re: [PHP] Spaces
> This isn't really a PHP question, b
This isn't really a PHP question, but look at the html tag.
Patrick McKinley wrote:
Is there a way of getting a php to display all the spaces in a file.
i have used this to display an nfo file on my site:
---nfoload.php
$fol = $_GET['fol'];
$nfono = $_GET['nfono'];
require("n
Is there a way of getting a php to display all the spaces in a file.
i have used this to display an nfo file on my site:
---nfoload.php
nfo/$fol/ind.txt (tells the script
filenames for the nfo files)
now since nfo files tend
thank you
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
That's ok. The user needs to use some of his/her brain too. :P
Thanks again!
- Original Message -
From: "Tom Rogers" <[EMAIL PROTECTED]>
To: "Stephen" <[EMAIL PROTECTED]>
Sent: Saturday, December 07, 2002 2:03 PM
Subject: Re[8]: [PHP] Repeating Decimals
> Hi,
>
> Sunday, December 8, 20
Hi,
Sunday, December 8, 2002, 4:22:52 AM, you wrote:
DN> Hi Tom,
>> >> I know the text editor question has been beat to death, but I'm looking
>> >> for a simple editor with syntax highlighting that can be installed in
>> >> Windows by a general user. It would have to be something that didn't
>>
Hi Tom,
> >> I know the text editor question has been beat to death, but I'm looking
> >> for a simple editor with syntax highlighting that can be installed in
> >> Windows by a general user. It would have to be something that didn't
> >> access the registry, as normal users can't do that. Does an
Hi,
Sunday, December 8, 2002, 1:46:07 AM, you wrote:
S> Ok, I'm getting some weird errors. Here's the website:
S> http://check.melchior.us/module.php?id=3
S> I attached the output file. What am I doing wrong!?
S> - Original Message -
S> From: "Tom Rogers" <[EMAIL PROTECTED]>
S> To: "St
Hi,
Sunday, December 8, 2002, 2:27:20 AM, you wrote:
TW> I like arachnophilia.
TW> Tim Ward
TW> http://www.chessish.com
TW> mailto:[EMAIL PROTECTED]
TW> - Original Message -
TW> From: John W. Holmes <[EMAIL PROTECTED]>
TW> To: <[EMAIL PROTECTED]>
TW> Sent: Saturday, December 07, 2002 4:1
try:
require("test/inc/scriptB.php");
I beleive that you may be including scriptB after it has been displayed by
apache (ie with all the PHP executed)
Andrew
- Original Message -
From: "Geert Arts" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 07, 2002 4:53 PM
Subj
Hi All,
I use the following, very common construct:
In script A I do a require of script B:
require("http://www.domain.nl/test/inc/scriptB.php";);
in scriptB I define a constant:
define("CONSTANT_X", "VALUE_1");
I try to use this constant in scriptA, but it seems that the value is not
p
Thanks for responing Jason!
There is other code in there for updating some database entries and
producing a confirmation page, but I had them working perfectly before I
added the image code below. Only when acessing the outside script and
saving to file did it start doing the odd things. I didn'
On Saturday 07 December 2002 05:12, Jeremiah Breindel wrote:
> I am trying to save a dynamically generated image on an outside server to a
> local file on my server using the code below:
>
> $fc = fopen($image_filename, "wb");
> $file = fopen ($image_url, "rb");
>
> if (!$file) {
> echo "Unabl
I like arachnophilia.
Tim Ward
http://www.chessish.com
mailto:[EMAIL PROTECTED]
- Original Message -
From: John W. Holmes <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 07, 2002 4:11 PM
Subject: [PHP] Simple text editor for Windows?
> I know the text editor questio
I know the text editor question has been beat to death, but I'm looking
for a simple editor with syntax highlighting that can be installed in
Windows by a general user. It would have to be something that didn't
access the registry, as normal users can't do that. Does anyone know of
a program like t
> On Saturday 07 December 2002 04:26, 1LT John W. Holmes wrote:
> > >I don't can redirect my page to new url
> > >please help me
> > >
> > >Carlos Alberto Pinto Hurtado
> >
> > I posted the answer on my web page.
>
> Can you redirect the answer to the list so we can all see?
>
> Only joking ;-)
I am trying to save a dynamically generated image on an outside server to a
local file on my server using the code below:
$fc = fopen($image_filename, "wb");
$file = fopen ($image_url, "rb");
if (!$file) {
echo "Unable to open remote file.\n";
exit;
}else{
while (!feof ($file)) {
$li
php-general Digest 7 Dec 2002 15:46:03 - Issue 1749
Topics (messages 127352 through 127377):
Re: mail() problems...
127352 by: Anthony Ritter
127372 by: Jason Wong
127376 by: Anthony Ritter
Date again
127353 by: Miguel Brás
127356 by: Stephen
Ok, I'm getting some weird errors. Here's the website:
http://check.melchior.us/module.php?id=3
I attached the output file. What am I doing wrong!?
- Original Message -
From: "Tom Rogers" <[EMAIL PROTECTED]>
To: "Stephen" <[EMAIL PROTECTED]>
Cc: "PHP List" <[EMAIL PROTECTED]>
Sent: Frid
Jason Wong wrote:
> 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.
.
Sure.
1. I put it the _correct _name of my ISP's mailserver.
No more errros.
However...that sent out the
That worked! Thank you!
Dave wrote:
> 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 rec
47 matches
Mail list logo