Jump to content

premiso

Members
  • Posts

    6,951
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by premiso

  1. 42
  2. No. !Yes.
  3. preg_match('#sid=([0-9]+)">(.*)</a>#', $page_contents, $matches); echo $matches[2];
  4. This topic has been moved to Other Web Server Software. http://forums.phpfreaks.com/index.php?topic=364685.0
  5. I would like to refer you to: http://forums.phpfreaks.com/index.php?topic=200925.0 Of course you can do it! The better question is how?
  6. Not sure exactly what you mean but maybe this: $data = array("query"=>$var1, "suggestions" => $array1, "data" => $array2); echo json_encode($data);
  7. $data = array($var1, $array1, $array2); echo json_encode($data); Should do what you want.
  8. Do you have any code to show? Have you tried using json_encode and json_decode?
  9. Can you provide a source to this? I really doubt that the header would overwrite the META tag as that would be rendered last and surely take precedence. As to the Original Post: Make sure your database tables / columns are also set to UTF8 as well as the form that submits the data to the database. If any of them (output / input / storage) are not UTF8 you will get undesired results.
  10. Your main problem here is the fact that you have output prior to calling session_start. <?php $link=mysql_connect("localhost","user",""); $database='QA'; if (!$link) die('Failed to connect to Server'.mysql_error()); $db=mysql_select_db($database, $link); session_start(); if(!$db) die('Failed to select Data Base '.mysql_error()); ?> <link href="style.css" rel="stylesheet"> <table width="700" border="1"> <form id="form1" name="form1" method="post" action="index.php?process"> <tr> <td>Received</td> <td><label> <input name="received" type="text" id="received" /> </label></td> </tr> <tr> <td>QA#</td> <td> <label> <input name="qa" type="text" id="qa" /> </label> </td> </tr> <tr> <td>lines</td> <td> <label> <input name="lines" type="text" id="lines" /> </label> </td> </tr> <tr> <td>due </td> <td> <label> <input name="due" type="text" id="due" /> </label> </td> </tr> <tr> <td> <label> <input type="submit" name="Submit" value="Submit" /> </label> </form> </td> </tr> </table> <?php if(isset($_GET['process'])) { $sql = "Insert INTO `QA`.`qaData` (`received`, `qa`, `lines`, `due`) values('$_POST[received]', '$_POST[qa]','$_POST[lines]','$_POST[due]');"; //echo $query; exit; $result = mysql_query($query)or die ("Error: ". mysql_error()); } Secondly, you had an extra comma in your SQL Statement. Third, I am not sure if lines or qa is a reserved word. I added backticks to combat that. Give it a try and see how it goes.
  11. <?php $open = fsockopen("00.00.00.00", "0000"); $dataArray = array(); if ($open) { fputs($open, "GET /7.html HTTP/1.1\nUser-Agent:Mozilla\n\n"); $read = fread($open, 1000); $data = explode(",", $read); foreach ($data as $item) { $dataArray[] = str_replace("</body></html>", "", $item); } var_dump($dataArray); } Should make it cleaner, and less redundant. Hopefully it is self explanatory.
  12. I thought it was a week too early. Give it another 2-3 weeks when she comes to you and says that she missed her period. You should have her gTalk me thinking about it.
  13. So I was just totally joking when I created this: http://forums.phpfreaks.com/index.php?topic=364040.0 However, on Philip's girlfriends facebook page this has just been posted: Congratulations Philip! Now lets all go get
  14. I vote for a re-count. *premiso shrugs.
  15. Apparently sarcasm evades the internet. Where the fuck is my sarcmark!
  16. If only it would help you have proper grammar, punctuation and spelling. But I highly doubt any of that is true, it is more or less your brain just rationalizing to yourself so you do not feel so bad about smoking pot, knowing it is illegal to do so. Infact, you probably thought that you were spelling properly!
  17. This topic has been moved to MySQL Help. http://forums.phpfreaks.com/index.php?topic=364334.0
  18. This topic has been moved to CSS Help. http://forums.phpfreaks.com/index.php?topic=364299.0
  19. This topic has been moved to MySQL Help. http://forums.phpfreaks.com/index.php?topic=364303.0
  20. So you are pregnant? Congratulations, I had no clue you were a female! Did you have the XYY chromizone at birth?
  21. You cannot know that till her missed period. Wait for 3 weeks and then tell us when she starts to throw up
  22. How I develop on a "localhost" to avoid the issues you are seeing is setup your own "domain" via the windows hosts file. 127.0.0.1 domain.dev By doing this, you are "simulating" the real webserver so that the transfer should be transparent. I know localhost has weird issues, especially with cookies etc. So that should resolve that part of the problem. Just remember to also change the Apache file so it matches that domain locally so it works properly. And in doing this, you can enable your webserver to serve multiple projects sites without having to always switch the "localhost" one.
  23. In the code you posted, I do not see you redirecting to the subdomain, if you tried that post the code you tried so we can maybe see where you went wrong.
  24. The DNS has very little to do with with this. If you were doing subdomain redirect, ok it may, but it does not appear that way. To answer your question, no. As long as they are not aggressively caching it should be fine. What you may want to do is make the redirect a 301 (premenant) Redirect 301 /dir/warranty-registration.php http://mydomain.com/warranty_reg.php
  25. You have provided too vague of an explanation. We do not know your table structures and thus, have no clue what would need to be filtered to do that. If you provide more information I am sure someone here can help you out.
×
×
  • 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.