-
Posts
9,409 -
Joined
-
Last visited
-
Days Won
1
Everything posted by MadTechie
-
Send uploaded file to directory on web server
MadTechie replied to adam291086's topic in PHP Coding Help
(from a quick look)the class seams fine, how are you calling it ? ie when you write to the form data to database, i assume your setting image_path etc -
Okay, it seam to me, that you don't have a specific question, just a but a programming design question, which is unclear.. can you please re-phrase the question (maybe bullet point it).. or just continue to rant and your probably be left alone How to ask questions the smart way
-
personally i would have a index.php, that loads the pages ie <?php switch($_GET['page']) case "1": include "page1.html"; break; case "2": include "page2.html"; break; ?> and use it like so index.php?page=1 index.php?page=2 etc another option would be via javascript/ajax
-
Basically you need to either work with a COM or write a MSWord Parser COM INFO <?php set_time_limit(0); error_reporting(E_ALL); $word = new COM('word.application') or die('Unable to load Word'); $word->Documents->Open('worddoc.doc'); ?>
-
Need final help regarding updating lists on page
MadTechie replied to rooney's topic in PHP Coding Help
Cool, can you please click solved (bottom left) -
I can't see any questions, i guess i'll leave, PS great way to ask for help
-
echo the shell_exec commands and test them via the CLI one at a time, that should provide the solution
-
it works fine!! check the CSS is in the head! <style type="text/css"> <!-- input { border: 0px solid #000000; } --> </style> <label> <input type="text" name="textfield"> </label>
-
thats where mgallforever code comes in <textarea name="comments" cols="40" rows="5"> <?php echo nl2br($_POST['comments']); ?> </textarea>
-
like this <?php $data = "TEST"; ?> <textarea name="comments" cols="40" rows="5"> <?php echo $data; ?> </textarea> Note value is for textbox not textarea
-
using CSS ie <style type="text/css"> <!-- input { color: #781351; background: #fee3ad; border: 1px solid #781351 } --> </style> <label> <input type="text" name="textfield"> </label> PS this is a HTML/CSS question not a PHP one
-
check max_execution_time post_max_size max_input_time useful info http://uk2.php.net/features.file-upload
-
personally i would use http://uk2.php.net/manual/en/ref.xml.php as that what is designed for in this case but instead of DDOSing another server which is probably breaking the T&C's just download your own database
-
you mean you didn't post/upload the file ?
-
i covered that Barand 2nd post
-
$ffmpegcmd1 = "ffmpeg -i ".$inputpath."\\".$filename. " -acodec mp3 -ar " .$samplingrate." -ab ".$bitrate." -f flv -s ".$size." ".$outputpath."\\".outfile; should be $ffmpegcmd1 = "ffmpeg -i ".$inputpath."\\".$filename. " -acodec mp3 -ar " .$samplingrate." -ab ".$bitrate." -f flv -s ".$size." ".$outputpath."\\".$outfile;
-
or just search for a prebuilt database http://www.google.com/search?hl=en&ie=UTF-8&q=ip+to+latitude+database http://www.google.com/search?hl=en&ie=UTF-8&q=ip+to+city+database http://ip-to-country.webhosting.info/ good luck in your quest //<--where did that come from ?
-
i think you mean if($miles >= 1 && $miles <=30) { //....true 1 to 30 }elseif($miles >= 31 && $miles <=90){ //....true 31 to 90 }
-
try $outfile = convert_media($name,$rootpath, $inputpath, $outputpath, 320, 240, 32, 22050); echo "$outfile<br>"; $image_name = grab_image($outfile, $rootpath, $outputpath, $thumbpath, 1, 2, "png", 110, 90); echo $image_name; Set_Buffering($outfile, $rootpath, $outputpath); you really need some error capturing, ie atleast test via CLI and then compare
-
try this, i assume that the first form is passing id via GET <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <form name="frmsendmail" method="post" action="emailform.php" onSubmit="return ValidationForm()"> <table border="0"> <tr> <td>Send to:</td> <td><input type="text" name="Email" id="Email" /></td> </tr> <tr> <td>From:</td> <td><input type="text" name="From" id="From" /></td> </tr> <tr> <td>Send:</td> <td><input type="submit" name="Send" id="Send" value="Submit" /></td> </tr> </table> <input type="hidden" name="id" value="<?php echo $_GET['id'];?>" /> </form> <?php if( isset($_POST['submit']) ) { $conn=mysql_connect("localhost","adder","clifford"); mysql_select_db("real",$conn) or die("Unable to select database"); if( !isset($_POST['id']) ) exit("Nothing Selected"); // error capture $art = (int)$_POST['id']; //clean $sql = "SELECT * FROM items WHERE id=$art"; $result = mysql_query($sql); $num_rows = mysql_num_rows($result); if($num_rows == 0) { echo "There has been a problem with your request please try again."; } else { while($row = mysql_fetch_assoc($result)) { $Title = $row['Title']; //Check whether the submission is made if(isset($hidSubmit)) { //Declarate the necessary variables $mail_to=$Email; $mail_from=$From; $mail_sub="Please read this"; $mail_mesg= "You have been recomended to read the article $Title on www.myroho.com click <a href=www.myroho.com/more.php?id=$art>here</a> to read it."; //Check for success/failure of delivery if(mail($mail_to,$mail_sub,$mail_mesg,"From:$mail_from/r/nReply-to:$mail_from")) { echo "<span class='textred'>E-mail has been sent successfully you can now send another email or close the window</span>"; }else{ echo "<span class='textred'>Failed to send the E-mail from $mail_sub to $mail_to</span>"; } } } } } ?> </body> </html>
-
please dont bump so soon line 44 $_mediahandler = new media_handler;
-
Am i missing something here ? so everypage goes to the same page!!! ??? please re-phrase what your goal is !