Jump to content

jazzman1

Staff Alumni
  • Posts

    2,713
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by jazzman1

  1. I'm using sessions for one my project - http://www.stdimitar.org It works very well. bulgarian.php <?php session_start(); $_SESSION['lang'] = null; header('Location:stdimitar/'); exit; ?> english.php <?php session_start(); $_SESSION['lang'] = 'en'; header('Location:stdimitar/'); exit; ?> index.php (controller) $lang = ($_SESSION['lang'] == 'en') ? 'en' : null; That's all and very simple
  2. We need to know whether port 25 has been opened in your local windows system. Did you get some errors?
  3. I think that oracle's optimizing guide will help you a lot - http://docs.oracle.com/html/A95912_01/wn32tune.htm#i631457
  4. Ops..... you have one more table, named - parent. Sorry about that
  5. Christian, did you get an error message when you try to create the second table - data. I've got an error and I'm thinking you have a problem creating the foreign key.
  6. Can you give us an example with the real data. There are too match variables on that script.
  7. Yes, I know.....just let us see the data from a $decoded variable.
  8. Ops.....sorry for my previous mistake. Try, <?php // decode JSON string to PHP object $timestamp = json_decode($_POST["timestamp"]); $decoded = json_decode($_POST["json"], true); echo '<pre>'.print_r($decoded, true).'</pre>'; exit; $fp = fopen('PHP_data/'.$timestamp.'_data.csv', 'a'); foreach ($decoded as $fields) { fputcsv($fp, $fields); } fclose($fp);
  9. Did you read the documentation how does this mail filter work?
  10. We need to see what result you get. Put it this after you've been assigned the $decoded variable. echo '<pre>'.print_r($decoded, true).'</pre>;
  11. Did you try GROUP BY users.id ?
  12. I'm totally agree with reguinix. @thara, take a look for a moment at that table, Intermediate result Final result WHERE TRUE OR TRUE TRUE WHERE FALSE OR FALSE FALSE WHERE FALSE OR TRUE TRUE WHERE TRUE OR FALSE TRUE
  13. No, I'm not an expert too (our master could be say later ) but......according the manual you need to pass a proper date-time string like that: SELECT DATE_ADD('2006-07-00 12:00:09', INTERVAL 1 DAY)
  14. Hey, nice smile I do not see the date-time string in your DATE_ADD function.
  15. Just to be clear, SMTP is not a server, it's a mail transfer protocol using by mail servers to send and receive mail messages. To use this one locally you need to have a mail server.
  16. Use the "cat" unix command. Let's say that we have only two files - execution.php and spam_input. Execution.php is the file that we want to execute when the php script is running and spam_input is the file which holds the the content that we want to redirect to spam_output. spam_input From: "denc" <test@test.com> Received: from test.com (test.com [210.195.151.218]) To: email@domain.com Subject: messsage Date: Mon, 18 Feb 2013 23:46:02 EST execution.php exec("cat spam_input > spam_output"); After that content has been printed to the new file called spam_output, you can handle it with php. My question is how to get the spam list to the spam_input file? EDIT: If you want to add a new content to the same file without deleting the old one you should use a ">>" symbol.
  17. I'm really confused what is the name of your web root directory of the server. Just, phone and ask them for details that you need to know.
  18. He-he-he, good eye
  19. According that one - com/leeds/study-info/ , your web root directory is called "com" . Just move the study-info there. PS. Do you see any index file in the "com" directory?
  20. No, it's impossible only the index is there.
  21. Then, rid of the study-info directory from the word press folder. What's the name of the web root server directory?
  22. Move the study-info to wp-content, I think this the public folder in word press. Then try, http://measured-response.com/study-info/demogstore.php
  23. Ok, see the path which your ftp client gives you to this particular file and post it here, please.
  24. yep, but where is the study-info directory?
  25. Well, that page is not located in this directory. Check this out: http://measured-response.com/leeds/study-info/demogstore.php
×
×
  • 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.