Jump to content

colinexl

Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

colinexl's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Ah, thank you very much. You made me feel a lot safer now. I kinda figured that PHP is robust enough for this not to be an issue.
  2. Hi All, I have a php script that contains the login information to my SQL database. I was wondering if there is a secure way of protecting access to that php page? I will want the server to be able to read it, but just not any users who stumbles upon that page. Right now if I try to view that page in a browser, all I get is a blank page. However, I don't feel that this is a very solid way of protecting a php page. Thanks, Colin
  3. Hey thanks for the replies. I will give it a try soon =)
  4. Hi all, I have a message board that will store user input into a mysql database. The input is much like a forum input like the one i'm typing in now. It's able to store line returns etc. I'm using a LONGTEXT to store the user inputs but when I print it back using PHP, it gives one long time of text. For example if the user typed: Hi, This is a test. Bye. It would print out: Hi, This is a test. Bye. I'm submitting the user input into the database using POST method. If I do a manual "select * from..." in the mysql CLI, I can actually see the line breaks in the result. It's just that when PHP prints it, it leaves out the line breaks. Any help would be grateful! Thank!
  5. Hey everyone, I'm trying to do something like this in PHP 4.3.2: [code] <?php $string = "This is\tan example\nstring"; $tok = strtok($string, " \n\t"); $output = "<html><table><tr>"; while ($tok != false) {    $output += "<td>" . $tok . "</td>";    $tok = strtok(" \n\t"); } $output += $output . "</tr></table></html>"; echo $output; ?>[/code] But instead of getting a formated table with "This is an example string", i get a 0. I tried something simple like [code]$output = "hi "; $output += "there";[/code] expecting to get "hi there" as the result but instead, i got a 0. I'm forced to do $output = $ouput . "some string..". The thing is that I know I've used the += to concatenate strings together, but I was using PHP 5. Is this something that's not available in PHP 4? Thanks!
  6. [!--quoteo(post=387022:date=Jun 22 2006, 07:04 PM:name=colinexl)--][div class=\'quotetop\']QUOTE(colinexl @ Jun 22 2006, 07:04 PM) [snapback]387022[/snapback][/div][div class=\'quotemain\'][!--quotec--] Hello everyone, I was trying to make PHP execute an Expect script written with Tcl on the server, but it doesn't seem to be executing it at all. I tried executing some other python and shell scripts to print out "hello world!" and it works fine. But when I try to execute a simple Expect of Tcl script trying to print out "hello world!", it doesn't work. Do I need some special plugin in order to make it work? Thanks all. [/quote]
  7. Hello everyone, I was trying to make PHP execute an Expect script written with Tcl on the server, but it doesn't seem to be executing it at all. I tried executing some other python and shell scripts to print out "hello world!" and it works fine. But when I try to execute a simple Expect of Tcl script trying to print out "hello world!", it doesn't work. Do I need some special plugin in order to make it work? Thanks all.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.