jazzman1
Staff Alumni-
Posts
2,713 -
Joined
-
Last visited
-
Days Won
12
Everything posted by jazzman1
-
Multi language site - php assisted page redirects
jazzman1 replied to grahambayne's topic in PHP Coding Help
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 -
We need to know whether port 25 has been opened in your local windows system. Did you get some errors?
-
I think that oracle's optimizing guide will help you a lot - http://docs.oracle.com/html/A95912_01/wn32tune.htm#i631457
-
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.
-
Can you give us an example with the real data. There are too match variables on that script.
-
Yes, I know.....just let us see the data from a $decoded variable.
-
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);
-
Did you read the documentation how does this mail filter work?
-
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>;
-
Did you try GROUP BY users.id ?
-
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
-
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)
-
Hey, nice smile I do not see the date-time string in your DATE_ADD function.
-
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.
-
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.
-
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.
-
He-he-he, good eye
-
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?
-
No, it's impossible only the index is there.
-
Then, rid of the study-info directory from the word press folder. What's the name of the web root server directory?
-
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
-
Ok, see the path which your ftp client gives you to this particular file and post it here, please.
-
yep, but where is the study-info directory?
-
Well, that page is not located in this directory. Check this out: http://measured-response.com/leeds/study-info/demogstore.php