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

2002-12-07 Thread psy berpunk
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

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

2002-12-07 Thread Anthony Ritter
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

Re: Re[2]: [PHP] Repeating Decimals

2002-12-07 Thread 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: Friday,

php-general Digest 7 Dec 2002 15:46:03 -0000 Issue 1749

2002-12-07 Thread php-general-digest-help
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

[PHP] save file from outside url

2002-12-07 Thread Jeremiah Breindel
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 pUnable to open remote file.\n; exit; }else{ while (!feof ($file)) { $line =

RE: [PHP] redirect URL

2002-12-07 Thread John W. Holmes
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 ;-) Heh... I was hoping

[PHP] Simple text editor for Windows?

2002-12-07 Thread John W. Holmes
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

Re: [PHP] Simple text editor for Windows?

2002-12-07 Thread Tim Ward
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 question

Re: [PHP] save file from outside url

2002-12-07 Thread Jason Wong
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 pUnable to open

Re: [PHP] save file from outside url

2002-12-07 Thread Jeremiah Breindel
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

[PHP] passing argument between scripts

2002-12-07 Thread Geert Arts
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

Re: [PHP] passing argument between scripts

2002-12-07 Thread Andrew Brampton
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 Subject:

Re[2]: [PHP] Simple text editor for Windows?

2002-12-07 Thread Tom Rogers
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:11 PM TW

Re[4]: [PHP] Repeating Decimals

2002-12-07 Thread Tom Rogers
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: Stephen

Re: Re[2]: [PHP] Simple text editor for Windows?

2002-12-07 Thread DL Neil
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 anyone know

Re[4]: [PHP] Simple text editor for Windows?

2002-12-07 Thread Tom Rogers
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 access the

Re: Re[8]: [PHP] Repeating Decimals

2002-12-07 Thread Stephen
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, 2002,

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

2002-12-07 Thread Gundamn
thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Spaces

2002-12-07 Thread Patrick McKinley
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(nfo/.$fol./ind.txt) ? title? echo $nfo ?/title body background=images/backg.jpg ? $file

Re: [PHP] Spaces

2002-12-07 Thread Leif K-Brooks
This isn't really a PHP question, but look at the pre 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'];

Re: [PHP] Spaces

2002-12-07 Thread Patrick McKinley
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, but look at

RE: Re[4]: [PHP] Simple text editor for Windows?

2002-12-07 Thread Jonathan
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

[PHP] Help on OOP

2002-12-07 Thread Mohd_Q
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.

RE: [PHP] Spaces

2002-12-07 Thread John W. Holmes
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 nbsp; or you can use the pre tags.

RE: Re[4]: [PHP] Simple text editor for Windows?

2002-12-07 Thread John W. Holmes
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 you say! DN

Re: [PHP] Help on OOP

2002-12-07 Thread Khalid El-Kary
hi, a function can be defined from inside another function! this works here: ?php function howru() { function hi() { echo hi,; } hi();echo how r u; } howru(); hi(); ? this gives the same result: ?php function hi() { echo hi,; } function howru() { hi();echo how r u; } howru(); hi(); ? It

Re: [PHP] Help on OOP

2002-12-07 Thread Khalid El-Kary
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

[PHP] PHP trouble out of the box

2002-12-07 Thread Dennis Putnam
-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.

Re: [PHP] Good eve

2002-12-07 Thread rolf vreijdenberger
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

Re: [PHP] Middle Number

2002-12-07 Thread Stephen
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: Re: [PHP]

[PHP] Finding Mode

2002-12-07 Thread Stephen
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

Re: [PHP] String to an Array

2002-12-07 Thread Justin French
I *think* either: ? $str = im the one trying to do this; echo $str[0]; ? OR ? $str = im the one trying to do this; echo $str{0}; ? 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

Re: [PHP] Question about displaying directories and files

2002-12-07 Thread Justin French
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

RE: [PHP] Help on OOP

2002-12-07 Thread Matt Giddings
-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: ?php function howru() {

RE: [PHP] Help on OOP

2002-12-07 Thread Khalid El-Kary
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:

Re: [PHP] Middle Number

2002-12-07 Thread Rick Widmer
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 )

Re: [PHP] Finding Mode

2002-12-07 Thread Rick Widmer
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(

Re: [PHP] String to an Array

2002-12-07 Thread Rick Widmer
At 11:15 AM 12/8/02 +1100, Justin French wrote: I *think* either: ? $str = im the one trying to do this; echo $str[0]; ? OR ? $str = im the one trying to do this; echo $str{0}; ? Works -- you'll have to experiment, but I believe the second way is correct, and will echo the first (0th)

Re: [PHP] Finding Mode

2002-12-07 Thread Stephen
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 -

[PHP] Just Curious

2002-12-07 Thread conbud
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

Re: [PHP] Just Curious

2002-12-07 Thread Leif K-Brooks
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 -0000 Issue 1750

2002-12-07 Thread php-general-digest-help
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

Re: [PHP] Just Curious

2002-12-07 Thread Justin French
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])

[PHP] Question about Trim

2002-12-07 Thread Dade Register
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 br or something else. When it's in my text

[PHP] Free Util: apxDebug

2002-12-07 Thread Weston Houghton
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,

Re: [PHP] Question about Trim

2002-12-07 Thread Justin French
To convert \n's to br /\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: ? $str = this is a string with an\nenter in the middle, and two at the end\n\n; $str = trim($str); $str = nl2br($str); echo

[PHP] Re: Just Curious

2002-12-07 Thread Kyle Gibson
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: