-
Posts
9,409 -
Joined
-
Last visited
-
Days Won
1
Everything posted by MadTechie
-
i have running on a windows server as well.. and they run fine.. did you run the tests ? and what where the results?
-
for testing try 0777, if that fails its another problem
-
you did something wrong.. did you do the tests ? i have ran them and it runs fine!
-
Just some debugging Test #1 <?php set_include_path('C:\hshome\tipa-mu\mu-anime.com'); include("../test2.php"); echo "World"; ?> Test #2 <?php set_include_path('C:\hshome\tipa-mu\mu-anime.com'); #include("../test2.php"); echo "World"; ?> Test #3 <?php #set_include_path('C:\hshome\tipa-mu\mu-anime.com'); include("../test2.php"); echo "World"; ?>
-
Na its cool, i just didn't know what i could offer without more info.. if all is working, can you please click topic solved (bottom left)
-
you can find all the details in their documentation.. they even have sample code http://developer.authorize.net/samplecode/
-
did you even try the code addition i posted?
-
[quote author=Axil link=topic=164156.msg720144#msg720144 well can i at least but it in the same file, but in a different function? you could.. just have an if statement from the start.. but in the long run it would be easier to do it as a independant file.. [quote author=Axil link=topic=164156.msg720144#msg720144 sorry, i'm new to PHP all my experience is in high level languages like C++ and Java, so some of the restrictions are strange to me. this is a HTML restriction.. not PHP..
-
One in the same, as far as i know! LiveCURL = cURL :-\
-
could be write permissions <?php if(isset($_FILES['uploadedfile'])) { $target_path = "./uploads/"; $target_path = $target_path . basename( $_FILES['uploadedfile']['name']); //Add the line below echo (!is_writable($target_path))?"Cannot Write file, Check Permission":""; if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded"; } else{ echo "There was an error uploading the file, please try again!"; echo ("<p>file name: " . $_FILES['uploadedfile']['name']); echo ("<p>temp name: " . $_FILES['uploadedfile']['tmp_name']); echo ("<p>target path: " . $target_path); } } ?>
-
HTML can not convert bin data into an image.. so no.. HTML will need to read a link to an image, so for a dynamic image your need to create a file that generates an image.. this is common pratice
-
I am not surprised.. Create a sctipt that only displays the image (as an image) ie <?php $ID = $_GET['ID']; //Get Bin Info from database where ID=1 and set to $img header("Content-Type: image/jpeg"); imagejpeg($img) exit; ?> now call the above script like an image, ie <img src="image.php?id=1"> that should work..
-
this works okay.. infact the only differents from your failed one to your working one is the working allows spaces! <?php if (preg_match('/^[a-z0-9 ]+$/i', $catagory)) { //OK } else { //Not OK } ?>
-
OK.. so when you spider your site.. make sure your logged in first!
-
what about this <?php $file = array(); foreach(glob('*.swf') as $fn) { $file[] = $fn; } sort($file); foreach($file as $f) { $t = str_replace("_","", $f); echo ' <a href="' . $f . '">' . ucfirst(substr($t, 0, -4)) . "</a><br>"; } ?> Not prefect.. but works.. i rarely use glob..
-
why do you need the connection to the database if your redirecting to another page?
-
No worries, we all start somewhere, but can you click the topic solved button (bottem left)
-
header must be sent before anything is sent to the page.. so like this <?php if ($something == true) { header ("location: blah.php");} }else{ //code bleh include ("homeloginvariables.php"); } ?> if its the start of the code, see the pinned post about headers
-
$prefix = "Blar_"; if(empty($_FILES['file_name']['name'])) { $file_name = $prefix.$old_file_name; } else { $file_name = $prefix.$_FILES['file_name']['name']; }
-
Awww, missed the deadline http://www.wondermill.com/code_ninja.html ~Sighs~ watches the flood of email from people who couldn't work it out... like cheating on your math's test!
-
your probably not lossing them.. but to display them you need to convert new lines 2 breaks ie <?php $article = "testing \r\ndata"; $article = addslashes(htmlspecialchars($article)); echo nl2br($article); ?> if you do "echo $articlel;" instead of "echo nl2br($article);" and view source your probably see their are on different lines.. but not formatted to be on different lines.. thus you need to convert newline to break Hope this helps
-
OKay it would help if we knew the array structure, also i am not sure what your asking.. instead of saying the logic you want.. can to tell us what you have and what you want at the end!
-
try this <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <!-- Created with the CoffeeCup HTML Editor 2007 --> <!-- http://www.coffeecup.com/ --> <!-- Brewed on 18/10/2007 13:02:30 --> <head> <title>Vlaanderen-Flanders</title> </head> <body> <form action="remove.php" method="post"> <table border="1" width="100%"> <tr> <td><div align="center">Enter your email please. <input type="text" name="Epost" value="" size=30 maxlength=60> <input type="submit"></div></td> </tr> </table> </form> </body> </html> thats changing <form action="remove.php" method=post> to <form action="remove.php" method="post"> PHPs (see comments) <HTML> <HEAD> <TITLE>New Document</TITLE> </HEAD> <BODY> <?php $con = mysql_connect("localhost","mrdee_mrdee","**********"); if (!$con) { die('Could not connect: ' . mysql_error()); } $Epost = $_POST['Epost']; //ADD mysql_select_db("mrdee_reloader", $con); mysql_query("DELETE FROM newsletter WHERE Epost='$Epost'") or die(mysql_error()); //append mysql_close($con); ?> </BODY> </HTML> setting the value of $Epost (from the post) and adding error handling.. your probably want to add some filtering for the Epost to stop SQL injection Ahh and welcome to the board
-
bypass the login session!! erm normally you give the spider an account for crawling your site.. no by pass needed.. also please don't double post.. (this is my last post in this thread)