Re: [PHP] line break part2

2001-04-27 Thread Dddogbruce \(@home.com\)
$string = nl2br($string) This will change a new line into br; but make sure HTMLspecialchars aren't in the same part. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] [NEWBIE] :P

2001-04-27 Thread Dddogbruce \(@home.com\)
Hi. I'm writing a new script, but I need some help.. I won't post here because it's just too much. I'm looking for someone who is dedicated and patient in helping a 13 year old with SQL and connecting/recieving, inserting and updating databases. I have ideas, I have some basic knowledge of PHP

[PHP] I'm a moron. So?

2001-04-20 Thread Dddogbruce \(@home.com\)
Alrighty. I'm baack! Anyways, I seem to be having stupid little problems, al of which are driving me insane. I'll feel really stupid when you tell me the problem. A friend told me something about "seeding" for random() but I didn't find anything on that. This is the HTML section... HTML

Re: [PHP] PHP Books

2001-04-20 Thread Dddogbruce \(@home.com\)
PHP4 - written by Chris Ullman (and some others. It has 5 pictures on the front...) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] HTMLSpecialchars

2001-04-19 Thread Dddogbruce \(@home.com\)
Thanks for all the advice, Brian. If you're referring to a database as MySQL or any other database technology then I guess I haven't been precise enough. I'm really quite new into PHP and I'm just using text files for now. I'm slowly working my way up to MySQL, but fooling around with my

[PHP] HTMLSpecialchars

2001-04-18 Thread Dddogbruce \(@home.com\)
I'm having a problem with HTMLspecialchars and nl2br interfearing with each other. Obviously, I'm trying to stop malicous HTML/scripts from being entered into my guestbook, but I'm also trying to add spacing. nl2br adds br, but HTMLspecialchars tells it to not show that. Anyways, I'm sure there

[PHP] HTML and slashes.

2001-04-17 Thread Dddogbruce \(@home.com\)
Hi. Considering PHP takes " 's " into consideration as part of the script, and adds a slash infront of them I need a way to overcome this. And second of all, I need a way to prevent HTML code from being seen, none the less used on the output. ? $space = " "; if( $submitfrm ) { echo "your

Re: [PHP] HTML and slashes.

2001-04-17 Thread Dddogbruce \(@home.com\)
there is NO way of hiding the html from the user. the browser can't output otherwise. You can only try to make it difficult to get the source. I want to hide the HTML from the browser. If someone adds some malicious code, or even u/u I don't want it to underline. Where does the " 's "

Re: [PHP] HTML and slashes.

2001-04-17 Thread Dddogbruce \(@home.com\)
Thanks! :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] php like cgi

2001-04-16 Thread Dddogbruce \(@home.com\)
? $greeting = "Hello!" echo "$greeting" ? g -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Parse error - script help.

2001-04-16 Thread Dddogbruce \(@home.com\)
Ok, I know it's messy - no, I don't care. :P Parse error: parse error in C:/XITAMI/owen/website/tss/guestbookSG.php on line 43 html head titlethe southern side : owen : mmmHm/title style !-- A:hover { color:rgb(215,152,1); cursor:hand-il; } A:link { font-style:normal; font-weight:normal;

Re: [PHP] Job in Whistler, BC

2001-04-16 Thread Dddogbruce \(@home.com\)
Whistler's cool! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] [PHP4]

2001-03-25 Thread Dddogbruce \(@home.com\)
All the variables are true. When I "post" the information to a nother file from the form, it works. This is the form script, if you're wondering.. HTML TITLESubmit news/TITLE BODY form action="newSubmit.php" method="post" tdName:/td tdinput type="text" name="frmName" size="24"br tdEmail:/td

[PHP] [PHP4] $fp = fopen( news.txt, 'a' ); // 'a' = append! Wah!

2001-03-25 Thread Dddogbruce \(@home.com\)
I'm writing a news script, and I just got it working earlier this morning. Now it writes the variables from the form to the .txt file; but when I go to write again (another news article) it does it beside, not above. Me, thinking so brilliantly at 6AM, thought append would mean above, but it

Re: [PHP] [PHP4] $fp = fopen( news.txt, 'a' ); // 'a' = append! Wah!

2001-03-25 Thread Dddogbruce \(@home.com\)
Thanks for the quick reply, looking in to it! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] [PHP4] $fp = fopen( news.txt, 'a' ); // 'a' = append! Wah!

2001-03-25 Thread Dddogbruce \(@home.com\)
Ok, with this fseek.. Could you give me an example of how to implement it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] rewind

2001-03-25 Thread Dddogbruce \(@home.com\)
Thanks! :) Jack Dempsey wrote: someone was asking about fseek...try this: http://www.php.net/manual/en/function.rewind.php i haven't tried it, but it seems to return the pointer to the beginning, which is where you wanted... -jack -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] [PHP4] $fp = fopen( news.txt, 'a' ); // 'a' = append! Wah!

2001-03-25 Thread Dddogbruce \(@home.com\)
When you say $newsSubmit = fread ($fd, filesize ($filename)); Do you mean specify the filename? $news.txt then? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

Re: [PHP] [PHP4] $fp = fopen( news.txt, 'a' ); // 'a' = append! Wah!

2001-03-25 Thread Dddogbruce \(@home.com\)
Oh. Duh! Thanks. ;P Joe Brown wrote: Take a closer look at the previous message I sent $filename was defined as: $filename="news.txt"; ""Dddogbruce (@home.com)"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Re: [PHP] [PHP4] $fp = fopen( news.txt, 'a' ); // 'a' = append! Wah!

2001-03-25 Thread Dddogbruce \(@home.com\)
$fp = fopen ($filename, "r"); $newsSubmit = fread ($fd, filesize ($filename)); These are giving me a parse error: Warning: Supplied argument is not a valid File-Handle resource in C:/XITAMI/owen/website/php/newsSubmit.php on line 10 -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] [PHP4] $fp = fopen( news.txt, 'a' ); // 'a' = append! Wah!

2001-03-25 Thread Dddogbruce \(@home.com\)
I'm such a pest. g -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] [PHP4] $fp = fopen( news.txt, 'a' ); // 'a' = append! Wah!

2001-03-25 Thread Dddogbruce \(@home.com\)
Ok, it wrote, but didn't write above.. *grins* -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] [PHP4] $fp = fopen( news.txt, 'a' ); // 'a' = append! Wah!

2001-03-25 Thread Dddogbruce \(@home.com\)
Ok, I'll get this eventually. groan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] [PHP4]

2001-03-24 Thread Dddogbruce \(@home.com\)
I've defined all the variables in the form, and have all the files.. HTML TITLESubmit News/TITLE BODY Your news has been processed and added to the main page. Thanks! ? if($formSubmit) { $newsSubmit = file("news.txt"); $fp = fopen("news.txt", 'a'); fwrite($fp, $frmName); fclose($newsSubmit); }