jxrd
Members-
Posts
226 -
Joined
-
Last visited
Never
Everything posted by jxrd
-
[SOLVED] MYSQL Fatal error:Call to undefined function mysql_connect()
jxrd replied to benlester's topic in MySQL Help
You need the mysql.dll file as well. Not sure if that's copied to your PHP dir if you don't specify on install. -
If you truly believe IP spoofing is illegal, find a law that prohibits it and I'll admit that I'm wrong. This is true, and we are not opposed to "how do I protect myself against..." threads. However, that isn't what you're asking here, now is it. And no, but you suggested it, and I enquired how you would implement it. Tbh, there's not much point in suggesting something if you have no intention of explaining how to do it. Tbh, I can probably spoof an IP as well as you can (which is...probably not very well). I was just enquiring how you would do so yourself, considering this is a place of education, or at least, that's how I think of it. If I wanted to acually spoof my IP address, I'd just google it. You withholding your own methods isn't actually going to stop anyone intent on spoofing their IP address...there's plenty of information out there. I don't want to get into an argument about this, I just don't really see where you're coming from.
-
desperate help needed getting email working through site
jxrd replied to AR_1986's topic in Applications
I've never actually used it myself so I have no idea. May be worth posting in 3rd party PHP scripts board. -
I'd say it was something to do with your host then. Maybe dodgy hardware or memory leaks or something. Who knows...
-
Immoral methods such as hacking must be considered when designing a PHP application. Often the best way to protect against something is to learn how it's done. So, does that mean you consider this website illegal/immoral/unethical/black-hat? Would you consider this thread immoral? I don't mean to be rude, and if I am I apologise. But you're the one who suggested it anyways... And yeah, I'm pretty sure. If I was knowingly using someone elses IP address and pretending to be them, then it may well be illegal. But nowhere in any computer misuse act does it state you can't use a certain IP adress.
-
Have you tried using normal mysql_connect()?
-
I don't believe spoofing your IP address is illegal.
-
Lol k...I'll take that as an "idk".
-
How would you do that, may I ask? I've researched IP spoofing, but it can't really be done except with one way protocols. HTTP is apparently stupidly difficult, having to bypass the SYN-SYN/ACK-ACK 3-way handshake, as well as the sequences randomly generated by the server. I'm not too knowledgeable on the subject....but I do know that it's pretty hard (if not, impossible) to spoof your IP address for web browsing...
-
desperate help needed getting email working through site
jxrd replied to AR_1986's topic in Applications
You need to connect to an SMTP server to send email. If you don't have one installed on your PC you'll have to use someone elses. However, it could get complicated if they require authentication, as mail() doesn't support SMTP auth. You'd have to use something like phpmailer I think... -
That doesn't sounds like good programming...you should create functions to prevent repetive code. ...yeah.
-
What's the url of the page you are trying to scrape?
-
Hi all, Ok...I've recently done a bit of speed-testing on my site, mainly my forum. It turns out, that a join that counts the number of posts for a thread takes about 0.2 seconds...which is crazy. If I take out the join, it takes about 0.05 seconds (but obviously, I can't display how many posts the thread has). I then tried an inner join and it was about 0.09 seconds, but didn't display child forums, as it wouldn't return any posts for them, only threads. I then changed it to use an IF statement. Hard to explain, I'll give you examples: This is the original query: SELECT F.*, COUNT(P.`ID`) AS `PostCount` FROM `$tb_Forum` F LEFT OUTER JOIN `$tb_Forum` P ON (F.`ID`=P.`Thread` OR F.`ID`=P.`ID`) AND P.`Type` IN('thread', 'post') #blah....and so on And this is the new query: SELECT F.*, COUNT(P.`ID`) AS `PostCount` FROM `$tb_Forum` F INNER JOIN `$tb_Forum` P ON IF(F.`Type`='forum', F.`ID`=P.`Forum` OR F.`ID`=P.`ID`, (F.`ID`=P.`Thread` OR F.`ID`=P.`ID`) AND P.`Type` IN('thread', 'post')) And the new one is about 0.2 seconds faster. Why is this? Are left joins really that slow? I'm just wondering why this is so much faster...and returns the exact same results. Thanks for any info
-
<?php $curl_return = '<a href=\'viewuser.php?u=something\'>username</a>'; $curl_return = str_replace(array('<', '>'), array('[', ']'), $curl_return); preg_match('/\[a href=\'viewuser\.php\?u=[a-z]+\'\]([a-z]+)\[\/a\]/i', $curl_return, $matches); print_r($matches); Come on..surely you can adapt this.
-
This worked for me <?php $curl_return = '<a href=\'viewuser.php?u=something\'>username</a>'; preg_match('/<a href=\'viewuser\.php\?u=[a-z]+\'>([a-z]+)<\/a>/isS', $curl_return, $matches); print_r($matches);
-
ini_set('display_errors', E_ALL); That should turn it on. I just tested your script and there aren't any parse errors, but obviously i dont know about the sql as I dont have the same db/table structure as you. Without error reporint it's pretty hard to tell. You should set up PHP on your own machine with error reporting turned on.
-
Try not suppressing errors when you're trying to debug. Sounds logical? Yeah. Just found this on php.net
-
http://www.google.co.uk/search?q=php+file+upload&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-GB:official&client=firefox-a
-
Crap, I'm thinking of strstr() syntax preg_match('/<a href=\'viewuser\.php?u=[a-z]\'>([a-z])<\/a>/isS', $curl_return, $matches); print_r($matches); Replace $curl_return with the curl return btw.
-
If you do that you should see why your update isn't working. Also, try echoing out $startsida to see what it is. If you're getting a blank page, you may want to turn on error reporting as well. ini_set('display_errors', E_ALL);
-
Lol...ignored. He is right though, doesn't sound like a very well thought out way of doing whatever you're trying to do...unless you're trying to hack someone.
-
hide/show http://www.astahost.com/info.php/Javascript-Hide-Show-Element-Css_t11957.html innerHTMl http://www.tizag.com/javascriptT/javascript-innerHTML.php Those were all found on google. You can use it too
-
Yeah, I was just kidding. I do actually agree. I don't even read blogs unless they have some educational value to me. Haha Daniel0 that video is awesome. 0:53 is funny as hell...that guy actually looks black he's so "tanned". I hate the sun...it's like offering yourself to cancer and wrinkly/red skin. Eugh. Don't see the point. Still...gets them girls I guess. They probably don't care what a bunch of nerds on a PHP forum care about them when they're having their way with dozens of women