Jump to content

manalnor

Members
  • Posts

    126
  • Joined

  • Last visited

About manalnor

  • Birthday 10/21/1993

Profile Information

  • Gender
    Female
  • Location
    EGYPT

manalnor's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. no hope **** Nod ESET 6 it is very stupid do not use it anymore ever
  2. update : i used this command telnet localhost 3306 it given me error no connection looks like firewall is blocking it now what to do ?
  3. oh dammit , i tested on xmapp and also same problem !!!!!!!!! my windows/system32/drivers/ect/hosts only this line (uncommented) # blah blah blah # blah blah blah 127.0.0.1 localhost
  4. Dears , I've Apserve 2.6.0 and was working fine but later i've updated my windows xp sp3 and my ESET 32 Internet sercuirty 6.0 but noticed that my localhost did not working any more and every time i open up localhost/phpmyadmin , i'm getting this error Warning: mysql_connect() [function.mysql-connect]: [2002] A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306) so what is wrong !! please help otherwise i might format my drive and reinstall windows older verion cause appserv is importent to me and i don't know what this problem happen ..
  5. Hello dear friends, If i've the following array results then how i can show it up ! array code $urlByHost = array(); foreach (explode("\n", $_POST['url']) as $value) { $parse = parse_url($value); $urlByHost[$parse['host']][] = array( 'url' => $value, 'parse' => $parse, 'md5' => md5($value), ); } asort($urlByHost); print_r($urlByHost); results Array ( [www.bing.com] => Array ( [0] => Array ( [url] => http://www.bing.com/kee [parse] => Array ( [scheme] => http [host] => www.bing.com [path] => /kee_ ) [md5] => e69d3a5bb987448e30ec8559c3634caf ) ) i want to show the host and md5 as www.bing.com e69d3a5bb987448e30ec8559c3634caf how can i call the results and show it ! ~ thanks
  6. Hello friends, i'd like to write the following code if it possible but it always gives error <?PHP echo "<img src=\""for($i=0;$i<count($spam_stop);$i++){echo $spam_stop[$i].'+';}"\">"; ?> it gives the following error Parse error: syntax error, unexpected T_FOR, expecting ',' or ';' ~ thanks for help
  7. Thanks a lot @samshel this is perfect and do exactly what i need
  8. Hello dear friends, I'm using scandir function to get all directories but it gives results in array and i don't want it in array so how can i get out of this array. <?php $dir = '/tmp'; // my directory $files = scandir($dir); print_r($files); ?> The output is an array Array ( [0] => iono [1] => toto [2] => soso [3] => fofo [4] => dod ) But i want to get the directories names without being set in an array so i want the output but iono - toto - soso - fofo - dodo ....etc , I mean in any way but not in array Thanks a lot for help
  9. Hello dear, I'm willing to use thumbnails into my website which is mainly like websites directory. I've been thinking to save url thumbnails into certain directory ! If i've index.php with the following image code (this would show thumbnail image of the website ANY_SITE.COM <img src='http://thumbnails_provider.com/url=ANY_SITE.COM'/> then how to save the generated image into certain directory like my_site.com/thumbnails i've been thinking about Using cURL but i don't know how to apply it any help ~thanks
  10. @AyKay47 in fact i want to do it to prevent a large list of certain banned medicine posted by some spam bots. anyway i know it was very complex and hard to think how to apply it for both but thanks for PHP manual , i've found good way to even apply it for more and 2 entries using array_merge so it would be $nameArray = array_merge(explode(" ", $name), explode(" ", $comment)); and go on with the rest of the code that is it. Thanks a lot for your time AyKay47 and your code is effective but i love to store everything in database
  11. Hello dear friends, okay here is the story i've 2 incoming entries $name = "Manal Nor"; $comment = "Hello lovely world"; and i've stored into database table some bad words to be banned my_table (id,word) My objective Is to compare if $name and/or $comment have any of the banned words in my_table I can apply for $name only , i mean i can compare $name and know if it have any banned words or not using the following code $name = "Manal Nor"; // Example .. no bad words $sql = "SELECT * FROM my_table"; $result = mysql_query($sql); $nameArray = explode(" ", $name); $countname = count($nameArray); $checkname = 0; while ($row = mysql_fetch_assoc($result)) { for ($i == 0; $i < $countname; $i++) { if (strcasecmp($nameArray[$i], $row['word'])) { $checkname = 1; } } } if ($checkname == 1) { echo "banned"; exit; }else { echo "passed"; } it works perfect but now the question how to apply it like cheese burger i mean for both $name and $comment so that i can use :'( any help please
  12. @Psycho Thanks for this explain and i'll try it since my db will be locked no more add or delete of the rows @PaulRyan Okay thanks for help Now i will try 3 ways 1) Using mysql_unbuffered_query (it was said The PHP script can parse the results immediately, giving immediate feedback to users.) 2) Ajax call 3) Pagination Hope one will works ~Thanks all for help
  13. Okay, What i've mention in my post is just an example for simplicity to know it as study case wile the reason i don't want to use pagination and why i'm willing to show 10K results ! I've database with tons of quotes (ex: die well said by FFF) and i want to lunch website where visitor will see an input form and put own name then press submit it should gives him all that tons of quotes after it operate name replace of all the quotes. i want it appears (gives results) to the visitor one by one (row by row) just like ajax steps effects baam ---- baam ---- baam ..etc
  14. @litebearer Thanks for the idea , but i don't want to use pagination :-\
  15. Hello dear friends Let say i've a huge database of 100,000 entries my_table (id,name) and i'd like to call all the entires to be shown by this code $conn = mysql_connect('localhost','USER','PASS') or die(mysql_error()); mysql_select_db('my_table',$conn); $sql = "SELECT * from my_table"; $result = mysql_query($sql,$conn); while ($row = mysql_fetch_array($result)){ $name = $row['name']; $id = $row['id']; echo $name; echo "<br>(done)<br>"; } The problem The problem that makes me almost gonna cry,it takes long time to load then it will showing names (remember my_table of 100,000 entries) all at once :'( and sometimes it sudden shows huage amount once or even sometime it hang up. My question Is there any way that i can call it so that it showing me results one name by one name like streaming name1 (done),name2 (done),name3 (done),name4 (done),name5 (done),......etc not showing all at once i'm afraid it may needs some ajax idea or somehow i really don't know but this is important to me so your help is very useful to me. so anyone please helps me cause it would really save my hosting ram otherwise they would suspend me
×
×
  • 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.