Jump to content

BobcatM

Members
  • Posts

    92
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

BobcatM's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Not real sure what's going on, might try posting some code? On a side note, I used a Hypertherm 1250 today haha..
  2. As for the database, you should store them as BLOB if you are going to actually store the image in there. You wouldnt normally store the actual image in the database, rather store/fetch its name from the database and include that in a html <img src="images/<?=$image_name_here?>"> tag.. General speaking the files will be created 0644 but if that is not the case on your server you will need to chmod() them to at least this permission for them to be web viewable.
  3. {"Requested By"} needs to be ['Requested By'] Make them all like that.
  4. Post your whole code and lets have a look.
  5. change this value in php.ini upload_max_filesize = 30M Also depending on the method you use for the upload you might need to change the post_max_size option. post_max_size = 30M
  6. <?php $word = new COM("word.application") or die ("Could not initialise MS Word object."); $word->Documents->Open(realpath("Sample.doc")); // Extract content. $content = (string) $word->ActiveDocument->Content; echo $content; $word->ActiveDocument->Close(false); $word->Quit(); $word = null; unset($word); Read this: http://www.developertutorials.com/blog/php/extracting-text-from-word-documents-via-php-and-com-81/
  7. If you can't remeber what makes you think we can?!
  8. Could I ask where you have looked around at? http://www.google.com/search?hl=en&q=form+validation+php&aq=f&oq=&aqi=
  9. Here is the one I used at one time. <?php exec('tail /usr/local/apache/logs/error_log', $output); ?> <Table border="1"> <tr> <th>Date</th> <th>Type</th> <th>Client</th> <th>Message</th> </tr> <? foreach($output as $line) { // sample line: [Wed Oct 01 15:07:23 2008] [error] [client 76.246.51.127] PHP 99. Debugger->handleError() /home/gsmcms/public_html/central/cake/libs/debugger.php:0 preg_match('~^\[(.*?)\]~', $line, $date); if(empty($date[1])) { continue; } preg_match('~\] \[([a-z]*?)\] \[~', $line, $type); preg_match('~\] \[client ([0-9\.]*)\]~', $line, $client); preg_match('~\] (.*)$~', $line, $message); ?> <tr> <td><?=$date[1]?></td> <td><?=$type[1]?></td> <td><?=$client[1]?></td> <td><?=$message[1]?></td> </tr> <? } ?> </table>
  10. Does not look like you are executing your querty at the end, you are just storing the query in $sql. mysql_query($sql) or die ("Unable to connect!");
  11. <? $str="GetToKnowYou"; preg_match_all('/[A-Z][^A-Z]*/',$str,$results); ?> Or an easier way.
  12. <?php $string = $_GET['string']; $count = strlen($string); $i = 0; $ii = 0; while($i < $count) { $char = $string{$i}; if(ereg("[A-Z]", $char, $val)){ $ii++; $strings[$ii] .= $char; } else { $strings[$ii] .= $char; } $i++; } var_dump($strings); ?>
×
×
  • 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.