Jump to content

MadTechie

Staff Alumni
  • Posts

    9,409
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MadTechie

  1. You can but having the program store the filenames in the folder and then compare on the next run, just an idea, if your convert running from a windows server which you have access to, then you can get some software thats mapping drives via a the FTP protocal you could then change the output path of the convert to the mapped FTP drive and your done..
  2. whats the problem ? elseif(isset($_POST['login'])) { switch to elseif(isset($_POST['user'])) { <form method="POST" action="upload_php.php" enctype="multipart/form-data"> yet header("Location: upload.php");
  3. Question do you have the SQL server setup and running with a database setup ? Learning Online is easier to find what your looking for, but books help when you are on the bus/train or just away from the computer, personally i like to get away from the computer from time to time,
  4. LOL true, common problem i face with speed is memory usage, i may add a caching but then i have to watch my memory usage,
  5. As a side note functions work better when used correctly ie <?php switch ($user['vipage']) { case "0": break; case "1": break; case "2": break; case "3": break; default: echo ""; break; } ?> runs quicker than <?php if ($user['vipage'] == 0) { echo ""; }elseif ($user['vipage'] == 1) { echo ""; }elseif ($user['vipage'] == 2) { echo ""; }elseif ($user['vipage'] == 3) { echo ""; } ?> and yep again dumb
  6. if took 0.030161857605 Switch took 0.036612033844 in a loop of 1000 time to took to find someone who cares ..... (still running) You know how dumb thats sounded ?
  7. are the sessions being set ? you need to find where newusernotification.php is being called from and check the same sessions are being set
  8. Whats the error message ?
  9. isn't the config file a php file ? well i feel like your shootin yourself in the foot here but you can write the php file just like any other text file.
  10. read up on sessions http://uk2.php.net/manual/en/ref.session.php
  11. Source: http://www.cosmicat.com/aol/email/email_bcc.php
  12. do you have <?php session_start(); ?> at the start of the page ? can you post the full page code again please
  13. OK on the bottom of this screen (the one your reading from right now) on the blue bar PS i couldn't first time i looked
  14. No you need to add the code just after you //Content has value <?php if(isset($_POST['content'])) { //Page was submitted if (!$_POST['content']) { //value of content is empty $output = "There was no data entered!"; echo $output; } else { //Content has value echo "<input name='temp' type='hidden' value='$temp' />"; if(($_POST['temp'] != $_SESSION['tmp1']) ) { //the block in Content has value goes here //Content has value $content = $_POST['content']; $info = $_POST['info']; $content = language_filter($content); @$fp = fopen("project4.txt", "a"); fwrite($fp, $content."\r\n"); $info = file('project4.txt'); for ($i = 0; $i < count($info); $i++) { echo '<br><hr>'; echo nl2br(htmlentities(stripslashes(trim($info[$i])),ENT_QUOTES)); } fclose($fp); } } $_SESSION['tmp1'] = $_POST['temp']; ?> *untested
  15. Please click solved
  16. Sure theNames .= $activity_name."\n"; // <--- Add this (replace \n with anything ie <BR> or [space]) (remember click solved)
  17. Cool click solved PS i used 2xsingle quotes (') on the replace
  18. Whats wrong with the example i gave, it works fine, their maybe a better solution but still
  19. if you copy the newusernotification.php into the bottom of the contactus.php file, do you get an email ? you need to understand how the system works.
  20. Ok the data your pulling in contains single quotes (') so the inserts are getting messed up,, your need to clean them up str_replace shoukd work
  21. erm why not just strip them out before using them in the email ? !! <?php $NAME = strip_tags($NAME, '<br>') //if you wanna [b]keep[/b] the <br> ?> also if the text is showing up in italics on the database, i am guessing that your viewing it via your browser
  22. the problems could be almost anywhere in the php class/config apache server php installation mysql installation mysql setup mysql database post your php class and work from their
  23. No Fair theirs no 20-24 !!! i put 7-10, does testing your app code count as coding
  24. Ermm you asked this question already and its been solved !!!
×
×
  • 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.