Jump to content

oni-kun

Members
  • Posts

    1,984
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by oni-kun

  1. There is an HTML forum on this site, You're posting in the PHP coding help section, that is all I was meaning.
  2. Multibyte string functions (mb_*) are installed by most default configurations, although multibyte support is not added until the future PHP version 6.0.
  3. How is this a PHP question, PHP has nothing to do with client side code cross-browser compatibility.
  4. You're simply outputting the page as a png image. This means, any text that is not png data (That isn't in code) will result in an error, as your HTML code is not png data. Simply remove all output other than the PHP code, and do not echo/print anything and it should work. For your header error, It means it cannot send the header telling the browser it is a png image, because you already outtputted something (HTML). That's why you get the error and the erroneous data.
  5. Why not start the session at the beginning? You clearly are outputting something (Maybe even something as simple as a newline or space before <?) that will prevent it from sending. And please use real php tags, <?php
  6. You know oddly enough I would call first off, I like the free estimates part. +1 on suggestion for contact box, Many people seem to have "gmail" addresses as contacts. If someone can run a business, why can't they run an e-mail? (@robertsblumbing.net for example). A contact box is a nice interface for that problem.
  7. Lets get back on topic. http://custom.simplemachines.org/themes/index.php?action=download;lemma=2162;id=12375;image This is nice, when will it be changed to this
  8. http://www.miauk.com/ http://www.dokimos.org/ajff/ http://mamascheesies.com/ Warning: Seizure and/or possibly foaming of the mouth alert
  9. time( $GET["search"] ) is invalid, obviously. 1970-01-01 00:00:00 is unix epoch. Sorry, I just just woke up, a bit rusty. print date( "Y-m-d", (strtotime('2010-04-23') -(time() - strtotime('-1 day')) )); strtotime('-1 day') = time() - 1 day (86400 seconds) Therefor you're left with a result that is, 1/1000 the integer of time(), and an incorrect date. -1 days doesn't actually do much to help you, eh. This should work better: echo date( "Y-m-d", (strtotime('2010-04-23') - 86400));
  10. You'd need to do echo $username[1]. Echo and print are pretty much the same thing.
  11. The slash is reversed, as you see. That is simple to amend. $result = $_SERVER['REMOTE_USER']; $username = explode("\\", $result); print $username[1]; [ot]no salathe it doesn't need regex.[/ot]
  12. Almost, This should work: $result = $_SERVER['REMOTE_USER']; $username = explode("/", $result); print $username[1];
  13. Try: $sql_result = mysql_query($sql) or die(mysql_error());
  14. str_replace: $result = "domainname/username"; $username = str_replace("domainname/", "", $result); print $username; explode (preferred) $result = "domainname/username"; $username = explode("/", $result); print $username[1];
  15. session_register has been deprecated for almost nine years. You can decide from there on.
  16. It would help if you posted atleast some of the code of which you are using. "It doesn't work" isn't so helpful in diagnostics.
  17. If you're sure it's just a timestamp then try this: date("d-m-Y",strtotime($temp['Course_Date_Beginning'])); Although it would be useful to var_dump the row to see what is actually in it. Typecasting should make strings not matter, you shouldn't be getting that error unless it's not a time stamp.
  18. Please do not use short tags, It is sloppy and not even a PHP delimiter.
  19. Are you sure session_start() is defined at the beginning of each script? Nothing looks out of the ordinary on the setup.
  20. What does the error contain? You can see for yourself what POST elements are like this: <?php if (isset($_POST['submit'])) { print "Name = " . $_POST['mname'] . "<br/>"; //Example showing POST element print_r($_POST); //List all the Data to see what was sent } ?> I'd recommend you view tutorials though on what you're doing. http://www.tizag.com/phpT/forms.php http://php.net/manual/en/function.mail.php
  21. Alright. If you're not aware of how *nix commands its processes, you can look at these: http://en.wikipedia.org/wiki/SIGKILL http://en.wikipedia.org/wiki/SIGTERM For example SIGTERM will be constant 15, So you should use it with your POSIX command. On a linux kernel the command "top" would allow you to view processes, You can choose to kill, terminate, or deprecate a open/halted/zombie process and basically it's a just level of command. Terminating will "tell" the command to quit, killing it will force it to terminate no matter what it's doing. This question is off topic, There's no need to answer further.
  22. Where you want it to send the e-mail. Access the variables from your form via $_POST, If you need help with that just ask.
  23. I can confirm as a linux developer, but, As it seems you're learning, lets read the documentation you linked to before you require further information: Wasn't that hard? And no, POSIX is not a PHP question (Only POSIX related structures within the languages, such as POSIX Regular expressions which are deprecated in trunk) which are part of the framework. It's the same answer you'll get when asking how to use system on a foreign command.
×
×
  • 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.