Jump to content

jlr2k8

Members
  • Posts

    20
  • Joined

  • Last visited

    Never

About jlr2k8

  • Birthday 06/15/1990

Contact Methods

  • AIM
    jlr2k8

Profile Information

  • Gender
    Male
  • Location
    Issaquah, WA

jlr2k8's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I had to edit this post because I read it wrong. I know what you're saying now. Sorry, kritical is right. It is complicated... but u can try making the form page set a URL cookie like this: setcookie("url", $_SERVER['SERVER_NAME'], time()+3600, "/directory_of_your_form_and_form_processor/", ".domain.of.your.site.com"); And then on the page which processes your form info, write this: if ($_COOKIE["url"]=="") { echo "You did not use the correct page"; exit; } else { //...rest of form goes here }
  2. Show me an example of what you're trying to do.
  3. I have another weird question. I'm making a forum right now for a friend's site, so how do make replies for other replies on a forum? It has something to do with "parent", but I'm not exactly how it works.
  4. Hmmm..... not sure if I understand that. Could u maybe show me an example?
  5. So basically I'm trying to create a forum... and I've figured almost everything out except for this. Ok, so you know how the home page has all the categories listed? Then under each category is a topic (or sub-category)? How do you list categories, and its sub-categories? Is it an SQL statement, or a PHP script?
  6. Does the pg_escape_string handle HTML characters, such as <, >, and &?
  7. Haha thx. I'm using Postgres, so what should I use in place of mysql_real_escape_string()?
  8. Hmmm... there are several ways to prevent an SQL injection... but, is there a more efficient ways than this: $formData=$_POST['formData']; $formData=str_replace("'","&#39;",$formData); $formData=str_replace("\"","&#34;",$formData); $formData=str_replace("<","&#60;",$formData); $formData=str_replace(">","&#62;",$formData); $formData=str_replace("$","&#36;",$formData); I'm looking for a shorter method than this. I want to block potential HTML, database, and server-side hacks. Thanks!
  9. Are there any good (and free) alternatives to IIS6 SMTP server?
  10. Hmm... I can't seem to figure this out. I have PHP5 set up with IIS6 and everything works great, except I can't get the SMTP feature in IIS to work. This is my PHP.ini configuration: SMTP = localhost smtp_port = 25 sendmail_from = localhost But... I get the following error: Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in E:...email.php on line 44
  11. Is there a PHP condtional statement that uses something similar to "like"? if ($string LIKE "text") { do this; }
  12. Gotcha. I thought you were referring to the ini file. Maybe I don't know what compiling is. All I usually do is download the Windows ZIP file, and extract it to c:\php, then edit the php.ini file. Do you mean compile from source?
  13. Thx for the fast reply. Hmm, I'm not very familiar with DB connections I guess. PHP 5.1.2 w/ PostgreSQL Win2k Adv Server (IIS 5.0) Yeah I compiled PHP myself, since the installer always fails.
×
×
  • 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.