-
Posts
9,409 -
Joined
-
Last visited
-
Days Won
1
Everything posted by MadTechie
-
erm.. no file attached but we need to see some code ? also try LOAD DATA from MySQL IE LOAD DATA LOCAL INFILE '/tmp/php9vWmPg' INTO TABLE table FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\n' EDIT:Due to a ton of dup posts from you i will no longer be helping read the rules and use bump!
-
Try this pop3 don't you love google
-
lol, hardly a lot of work Sends a credit note to igor berger
-
use stripslashes() after the $_POST
-
code for importing excel file into mysql database
MadTechie replied to narendra12345's topic in PHP Coding Help
OK your best option is to save as CSV and use that file, i wrote a excel importer to mysql it took about amonth and works but still isn't 100% EDIT or use coms (easier) -
i don't think thats fwrite, review other parts of your code
-
Printing PDF file using PHP without prompting print dialog
MadTechie replied to wint.thaw's topic in PHP Coding Help
Theirs no other way i can think of.. infact i am surprised that adobe allow printing without promoting (but it can be disabled) sorry but please if you find a way please share the info options: Maybe ActiveX, Maybe Flash, Maybe Java, Create your own browser (ok this is getting silly) -
change style.css to www/style.css or move style.css to the top level edit:also same images
-
probably like this $test = "SESSION[logged='admin']&(GET[id=23]|VAR[page='admin']|POST[pageid!=23])"; $result = preg_replace('/(SESSION|GET|POST)/i', '$_$1', $test);
-
maybe the freelance section would be a better place!
-
<a href="show_encounter_list.php<?php echo URL_APPEND ?>&pid=<?php echo $pid ?>&target=<?php echo $target ?>"><?php echo $LDListEncounters ? target='_blank'></a> EDIT: ToonMariner is a better (more compleate reply)
-
whats the problem/error/question!!
-
yep the orange area looks like the cause, but your need to post more of your code in the code tags..
-
use ^[A-Za-z0-9\_]+$ as "chris" "chris1" are more than one char
-
their fine but i had to look twice at pucaptcha.jpg
-
read the header page <?php on_start(); $res = $_POST["name"]; $rs = $_POST["password"]; $con = mysql_connect('localhost'); if (!$con) { print("There is a problem with MySQL connection.\n"); } else { print("The MySQL connection object is ready. "); mysql_select_db("login", $con); $result = mysql_query("SELECT name, pwd FROM loginpwd WHERE name LIKE '$res' AND pwd LIKE '$rs'"); while ($row = mysql_fetch_array($result)) { echo $row['name'] . " " . $row['pwd']; echo " "; $url = "http://127.0.0.1/EasyPHP/phptest.php"; //header("Location: http://127.0.0.1/EasyPHP/phptest.php"); //header( "HTTP/1.1 301 Moved Permanently" ); header("HttpMessage:setRequestUrl ( string $url )");/* header( "Status: 301 Moved Permanently" ); header( "Location: http://www.new-url.com/" ); exit(0); // This is Optional but suggested, to avoid any accidental output */ } mysql_close($con); } ob_end_flush(); ?>
-
no the users password would be the key, so each of the "clients details" would be protected by their own password (while secure a nightmare to manage) (infact the key is the resulting hash from the 2nd salt and the users password) i would also point out this itsn't something i would recommand doing but more or idea to maybe spark others
-
try using "\par\n" or "\par\r\n"
-
Fatal error: Undefined class name 'db' in /src/functions.php on line 280 bascially theirs not a function called db in /src/functions.php search for "function db(" try including the file with that function
-
you have totally missed the point.. it wouldn't affect the password stored at all! have 2 salts and 1 hash.. when they login use md5($_POST['pass']+salts1) = user login password to decrypt data use md5($_POST['pass']+salts2) = data password (store in session) i would use 2 salts to make it a little more secure of course system data would require its own password and datamanagement would be a nightmare but as i said its an idea and changing the user password would mean your have to update all their info, does that make sense ?
-
I did try that but it kept failing before reaching the amount set.. then i noticed ini_set("memory_limit","24M"); D'oh i'll class this as solved!
-
is their a way to pull the "memory_limit" from the php.ini file?? if not how can i capture the error mid flow? PS i really don't want to use exec (i prefer to have it disabled on the server) and for error handerling i would prefer the error LOL
-
well spotted