php-windows Digest 30 Aug 2001 11:14:45 -0000 Issue 728 Topics (messages 9121 through 9129): Re: htmlspecialchars but allow text formatting? 9121 by: Ignatius Teo Re: Login System 9122 by: Brad Thomas Re: PHP/VB/Byrefs 9123 by: Eric Pankoke 9129 by: Andrew Stopford Re: .php opening as text document 9124 by: Brad Thomas Re: need some urgent help 9125 by: Michel Laine 9126 by: OoCobra97.aol.com 9127 by: OoCobra97.aol.com IE - very strange problem 9128 by: Christian Ribeaud Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
Mike, Try using preg_replace... ----- Original Message ----- From: "Mike Flynn" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 29, 2001 11:37 PM Subject: [PHP-WIN] htmlspecialchars but allow text formatting? > Hey all, > > Here's something I've wanted to do in the past, but being unable to figure > it out just worked around it. > > Does anyone know of a good, secure solution to strip html characters like > htmlspecialchars() does, for security sake and proper page viewing, but > allow text formatting tags, like <b>, <i>, <u>, <big>, <small>, <font>, etc? > > I'd like to allow people to input large text articles via web forms > (textareas), but still allow some level of attractiveness to the output -- > by allowing them to format the text with HTML tags. > > Any ideas? > > -Mike > > > > -- > PHP Windows 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] >
IMHO I've found MySQL better <[EMAIL PROTECTED]> wrote in message news:3B896921.25275.3BAA1C@localhost... > How would I go about making a Login system? and should I should > Flat file or MySQL? > > Let me know > Thanks
I am still using php 4.04. I haven't upgraded yet because it seems like a lot of people are having problems with various things in 4.06. Plus, the server that hosts my sites is only on 4.04. At 04:07 PM 8/28/01 +0100, Andrew Stopford wrote: >Hi, > >I created a simple COM object that uses ByRef and works with PHP 4.0.6 what >version of PHP are you running ? > >Andrew > > >"Eric Pankoke" <[EMAIL PROTECTED]> wrote in message >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I created a simple DLL that contains two functions which give the user a > > string: one as a return value and the other as a ByRef argument. The > > return value worked and the ByRef didn't. > > > > At 03:39 PM 8/23/01 -0400, Ryan Marrs wrote: > > >[Yes this is a repeat, but I didn't receive an answer back, and I > > >desperately need an answer] > > > > > >Thanks! > > > > > >Anybody know if PHP can handle VB ByRef's when calling a COM object? >I've > > >searched the documentation and the web and have found nothing on it, so >I'm > > >going to assume it doesn't, but I just thought I'd check through the list > > >before I declared the topic dead. > > > > > >Thanks! > > > > > >Ryan > > > > > >-- > > >PHP Windows 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 Windows 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]
Hi Eric, The issue I suspect is with 4.04 as 4.06 does not seem to suffer from this problem. Andrew "Eric Pankoke" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am still using php 4.04. I haven't upgraded yet because it seems like a > lot of people are having problems with various things in 4.06. Plus, the > server that hosts my sites is only on 4.04. > > At 04:07 PM 8/28/01 +0100, Andrew Stopford wrote: > >Hi, > > > >I created a simple COM object that uses ByRef and works with PHP 4.0.6 what > >version of PHP are you running ? > > > >Andrew > > > > > >"Eric Pankoke" <[EMAIL PROTECTED]> wrote in message > >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > I created a simple DLL that contains two functions which give the user a > > > string: one as a return value and the other as a ByRef argument. The > > > return value worked and the ByRef didn't. > > > > > > At 03:39 PM 8/23/01 -0400, Ryan Marrs wrote: > > > >[Yes this is a repeat, but I didn't receive an answer back, and I > > > >desperately need an answer] > > > > > > > >Thanks! > > > > > > > >Anybody know if PHP can handle VB ByRef's when calling a COM object? > >I've > > > >searched the documentation and the web and have found nothing on it, so > >I'm > > > >going to assume it doesn't, but I just thought I'd check through the list > > > >before I declared the topic dead. > > > > > > > >Thanks! > > > > > > > >Ryan > > > > > > > >-- > > > >PHP Windows 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 Windows 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] >
"Goodluckmo" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > you must not correct install php. > "Craig" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi > > > > I'm trying to set up hlstats which users hlstats.php but every time I try > > run the file in IE the .php file opens as a text file and displays all the > > code. > > > > I'm using Win 98 > > Internet Explorer 5.5 > > > > > > > > Hugh hit the nail right on the head. For PHP to function correctly, you need to have a webserver installed. Well known webservers out there are www.apache.org <-- Apache www.imatix.com <-- Xitami www.microsoft.com <-- IIS *chuckle*
Xytras wrote: > Hi all > i have installed PWs, PHP and MySQL it works great, i can see my scripts running in >my browser typing localhost, i belioeve that if i have my PWS running the just typing >my ip in the browser should work, well it doesn't, i signed up with dns2go.com there >you have a first level domain or secondary levele domain directed to your dynamic ip, >so i sent a ping to my domain and my ip responded, but the webserver didn't show >anything on the browser, so i changed to apache and the story is the same, i'm >conected through cable conecion, if anyone can help me that would be great > Thanks > Xytras Did you ping port 80 exclusively? Your ISP has probably blocked port 80 (http) on the clients on the cable net (my ISP at home (chello.se) does that). Cable network ISP's don't want anybody to be able to set up their own server (they wouldn't be able to *squezze* more money out of their customers by providing an *extra-deluxe* option with webhosting sevice) and they usually block some ports like 80 (http) and 21 (ftp). If you ask them *why* they do it - you probably get the answer that it is to "protect the customer". Set your server to use port 88 (just an example you can use 81, 82 ...) and redirect the dns2go links. Accessing (using your browser): http://your-ip-here:88/your-start-page.php Here are a useful link with some more ports listed. http://www.newbienetwork.net/sections.php?op=listarticles&secid=6 Hope this help. -- Michel Laine
I had this same problem with a cable user, what the ISP was doing is blocking that port, specifically because your a home user, your not supposed to run a websever. in apache you can edit the file httpd.cont, and change the Port 80 to say port 8080 and then have your users go to your name.d2g.com:8080 and it will work. Hope this helps. ~Jeff http://extreme-computers.net
Sorry for the duplicate message, but in the previous mail, i reffered to httpd.cont...what i meant was httpd.conf Goodluck again In a message dated 8/30/2001 4:42:43 AM Eastern Daylight Time, [EMAIL PROTECTED] writes: > I had this same problem with a cable user, what the ISP was doing is > blocking > that port, specifically because your a home user, your not supposed to run > a > websever. in apache you can edit the file httpd.cont, and change the Port > 80 > to say port 8080 and then have your users go to your name.d2g.com:8080 and > it > will work. Hope this helps. > ______________________________________________________________________ <A HREF="http://extreme-computers.net">Extreme Computers</A> Proud Member of the <A HREF="http://littlewhitedog.com">LittleWhiteDog SETI Team</A>
Hi, I have been advised that the homepage http://www.predict.ch/ does not work with some browser/OS combinations. The problem seems to be the following code's lines: $result = mysql_query($sql,$db) or die("Please check your query and try again"); $db is defined in an included file: $db = @mysql_pconnect("localhost","xxx","yyy"); @mysql_select_db("predict",$db); and $sql looks so: $sql = "SELECT " . $HTTP_SESSION_VARS["language"] . "_title as title, " . $HTTP_SESSION_VARS["language"] . "_abstract as abstract, " . $HTTP_SESSION_VARS["language"] . "_content as content " . "FROM news where showIt = 'TRUE' ORDER BY published DESC"; with $HTTP_SESSION_VARS["language"] = table_read("language"); The most visitors get the index.php4 with the query correctly shown. 2 people (Win98 or Millenium/IE 5 or 6beta) get the die procedure: "Please check your query and try again" and I really do not understand why. I am really confused and would like to solve this problem. Could someone help me? Greetings, christian