Jump to content

Deoctor

Members
  • Posts

    663
  • Joined

  • Last visited

Everything posted by Deoctor

  1. if the location of the text doesnot change then u can use it with out difficulties..
  2. actually the code which i have used here is for the validation of the rss feed site for which i have used this site instead of using a reg expression, coz reg expressions are not so trust worthy after all in my case. i dont think that has any thing weird in the code if u could have checked it out and seen the result of what i was giving
  3. what i am basically doing out here is if it is giving the value at the resultant location then it is okay or else it will give false. it will not automatically scan the document(txt file)i am working on that option.
  4. u can use a cookie option for the username
  5. u can use this code <?php $url_feed='http://google.com'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://validator.w3.org/feed/check.cgi?url=$url_feed"); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_BINARYTRANSFER, true); $output = curl_exec($ch); $fh = fopen("out.txt", 'w'); fwrite($fh, $output); $value='<img alt="Var" src='; $section = file_get_contents('./out.txt', NULL, NULL, 1256, 95); /*echo $section; $fh1=fopen("out_1.txt",'w'); fwrite($fh1, $section); fclose($fh1); var_dump($section);*/ fclose($fh); curl_close($ch); ?> but after this u need to scan the entire txt file for these characters and display the result.. or else it it comes at a particular place u can use it of directly
  6. like here what i am doing is checking for the particular terminology that the curl function will display in the txt file like the same this can be used to check the particular words like these and check the value that is displayed before the words seconds and can print that value or store it some where for a later use.. i think this is not that much impossible task
  7. check this code which i have written out <?php $url_feed='http://chaitu09986025424.blog.co.in/feed/rss/'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://validator.w3.org/feed/check.cgi?url=$url_feed"); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_BINARYTRANSFER, true); $output = curl_exec($ch); $fh = fopen("out.txt", 'w'); fwrite($fh, $output); $section = file_get_contents('./out.txt', NULL, NULL, 1256, 95); //echo $section; $fh1=fopen("out_1.txt",'w'); fwrite($fh1, $section); fclose($fh1); var_dump($section); fclose($fh); curl_close($ch); ?> now this will write the required one in the out_1.txt file and also will store it in the string $section. so u can check with this one display the result accordingly.. in this u need to change the numbers in the line to match ur criteria
  8. try this code <?php $ch = curl_init("http://www.example.com/reallybigfile.tar.gz"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_BINARYTRANSFER, true); $output = curl_exec($ch); $fh = fopen("out.txt", 'w'); fwrite($fh, $output); fclose($fh); ?> this will write the curl(result) of a webpage into a file..
  9. Hai i have recently formatted my machine and have installed the xampp 1.7.2, after this when ever time i run the sphider to index a site i am getting a lot of these warnings. can somebody help me out on this... Deprecated: Function ereg() is deprecated in C:\xampp\htdocs\chaitu\sphider_new\admin\spiderfuncs.php on line 118 Deprecated: Function ereg() is deprecated in C:\xampp\htdocs\chaitu\sphider_new\admin\spiderfuncs.php on line 132 Deprecated: Function eregi() is deprecated in C:\xampp\htdocs\chaitu\sphider_new\admin\spiderfuncs.php on line 139 Deprecated: Function eregi() is deprecated in C:\xampp\htdocs\chaitu\sphider_new\admin\spiderfuncs.php on line 143 Deprecated: Function eregi() is deprecated in C:\xampp\htdocs\chaitu\sphider_new\admin\spiderfuncs.php on line 150 Deprecated: Function eregi() is deprecated in C:\xampp\htdocs\chaitu\sphider_new\admin\spiderfuncs.php on line 205 Deprecated: Function eregi() is deprecated in C:\xampp\htdocs\chaitu\sphider_new\admin\spiderfuncs.php on line 213 Deprecated: Function eregi() is deprecated in C:\xampp\htdocs\chaitu\sphider_new\admin\spiderfuncs.php on line 205 Deprecated: Function eregi() is deprecated in C:\xampp\htdocs\chaitu\sphider_new\admin\spiderfuncs.php on line 213 Deprecated: Function eregi_replace() is deprecated in C:\xampp\htdocs\chaitu\sphider_new\admin\spiderfuncs.php on line 214 before i never used to get this error when i am using the xampp 1.5.5,, it is very irritating to get this error..
  10. the code will not split he has to manually do it out..there are lot of split tools available for a file and also i am just suggesting him the ways to upload.. , it is not it should be of 100mb only..
  11. i have tried the same scenario on my server actually the transfer rate is quite too slow and the other case is that it is getting dropped middle in the half way when we upload , so the better solution for this one is u use divide the file into the 100mb file sizes and use the upload function... if the scenario is of the local systems then u can use it out with out any problems..
  12. the present search engines that are build up are the ones which will blindly search for any word that have been given up but not with any keyword.. so basically what u need is that u need to store ur search string into some place and then fetch each word of it, then u need to search each word matching with the keyword library that u have build up. when i am saying abt the library it should be quite huge.... so when a match applies it should navigate to the particular category, but the possible problem that would come in here is that take ur own sentence i would like to buy a car... in this u can have two categories like one is that of buy, so under buy u can have sub category like automobiles and so on,, so u should use a indexing system for this to happen.. definitely i would like to help u on this development, u can contact me at my email address which is given in my site..
  13. the funny thing is that me too looking for the same kind of stuff..
  14. hai i think u are trying to build a search engine basically with the categories. just check with the following possibilities sphider--www.sphider.eu/ and phpdig--www.phpdig.net/ just run through the query and modify accordingly
  15. just checked it in my localhost it is working fine, change the function in the index.html like this. but when u use of the server it mail fail due to time out. $(function(){ $('#swfupload-control').swfupload({ upload_url: "upload-file.php", file_post_name: 'uploadfile', file_size_limit : "999999999", file_types : "*.*", file_types_description : "Image files", file_upload_limit : 5, flash_url : "js/swfupload/swfupload.swf", button_image_url : 'js/swfupload/wdp_buttons_upload_114x29.png', button_width : 114, button_height : 29, button_placeholder : $('#button')[0], debug: false })
  16. if u just open ur phpinfo file then it would b something like that shown in the jpg file. if the mysqli mysqli.allow_local_infile is off then u cannot use this one.. if u want to know difference between both u can check it out here.. [attachment deleted by admin]
  17. where are u calling the function ft_check_file($fileatt) u need to change the function a little bit to your needs. if the function value returns true then u can proceed with the file uploading and if not then u can give some message. u have just pasted the function down in your code. change it to your exact requirement
  18. just check using this one mysql_num_rows($result); and see how many rows are coming using ur select query..
  19. open your php ini file and check for these values. The first one should be on, And the second one should have the maximum values of 5gb or wht ever u want, the third one should also have the same value as of second the fourth value is the tmp directory where the files will be stored temporarily. so this should have the necessary space required. when any of these four fails it will give u this error. file_uploads post_max_size upload_max_filesize upload_tmp_dir
  20. have u checked whether u are able to extract the $username and $password correctly. try using an echo before $hostname and see what values ur getting for $username and $password
  21. try all of these $_SERVER['SCRIPT_NAME']--this will give you the php file which u are using even if some other is added to the url. $_SERVER['REQUEST_URI'] and $_SERVER['PHP_SELF'] will almost give u same results
  22. $_SERVER['PHP_SELF'] this is the only can where u can call the same php.. is this not working for you?? u can also try this $_SERVER['REQUEST_URI']
  23. can u just check with your server admin whether u are using the port 21 for sending the mails..just check with this form placing it in server. <?php $from_name = "Chaitu"; $from_email = "drvirusindia@gmail.com"; $to_email = "drvirusindia@gmail.com"; $subject = "Hai"; $message = "Hai Chaitu."; $headers = "From: ".$from_name." <".$from_email.">\r\n"; $headers .= "Reply-To: ".$from_email."\r\n"; if(mail($to_email, $subject, $message, $headers, "-f".$from_email)); { echo "Mail Sent!"; } ?> change the from and to email ids and check whether u are able to send the mail.. or else u can keep them same so that i will receive the mail.. if that is the case then the mail should be sent.. if the admin is using some other port then u need to change the code a litte bit.. first let me know these info..
  24. hey i have just visited the admin panel of the site and i am able to change the password of the admin account.. just check this link which i have added using ur admin panel http://fitzgraham.netne.net/wordpress/admin/hai-test/
  25. dear dude do u want your site to be hacked or donot give out user admin user id and password.. create a new user account and give it out in a public form..
×
×
  • 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.