Jump to content

techcone

Members
  • Posts

    61
  • Joined

  • Last visited

    Never

Everything posted by techcone

  1. My htaccess Options +FollowSymlinks RewriteEngine on RewriteRule ^apps/apps/([a-z0-9.]+)/ http://www.abc.com/xyz/index.php?userhash=$1 This is upload on domain http://www.xyz.com/ Now when I am trying to access http://www.xyz.com/apps/apps/ajshdkshad/, it is redirecting (301 and 302) me to http://www.abc.com/xyz/index.php?userhash=ajshdkshad I dont want redirect, I want htaccess to silently access the url from background. Is this possible at all ?
  2. My most methods are just php 5 base methods, so making an alternative solution to the methods is not required at all. Thanks for the input guys You are doing a great job.
  3. So the good method is to create a simple php file that tests the presence of all functions required by my script correct ? And I should ask them to upload that php file on their server and test if it passes all the tests, correct ?
  4. I am a freelancer, I design my own custom scripts and mods. The major problem with my script is they run alright on my local server (XAMPP) but when I deploy them on my clients server (more then 20-30), they sometime break because I dont know what is exactly required by my script. Then I do poor man's debugging to track the error. Can please someone tell how can I find what are basic requirements of my script ? Should i use function_exists() method to find if everything is present on production server ? Any more ideas folks ?
  5. Might be useful for someone. Options +FollowSymlinks RewriteEngine On RewriteCond %{QUERY_STRING} v=(.*) RewriteRule ^watch(.*) /index.php?url=%1
  6. Well it is working since I tried to make my own, it will giving results. But the solutions you gave are not really working.
  7. Another example http://5outube/watch?v=KmkuzoW82wo to http://5outube/index.php?url=KmkuzoW82wo Error I am getting in error log : File does not exist: C:/xampp/htdocs/5outube/watch
  8. I want to mod rewrite http://www.abc.com/watch?v=xxxxxxxxxxxx to http://www.abc.com/index.php?url=xxxxxxxxxxxx Please suggest me possible htaccess file. Regards.
  9. I appreciate your answer but its not working. I have already tried that out
  10. Please solve my problem. Thanks.
  11. I want to mod rewrite http://www.abc.com/watch?v=xxxxxxxxxxxx to http://www.abc.com/index.php?url=xxxxxxxxxxxx Please suggest me possible htaccess file. Regards.
  12. Yea I know but my code is encrypted so modiying the code on client side is pain in a$$. Thats why Thanks for the info
  13. Hello guys, I am stuck at a coding of mine. I have a piece of code that grabs a text from a webpage. It grabs title of the page but that title is not inside title tag, some other complex tag. Now the code of that tag changes from website to website. So what I did was inserted that code in a database (the php code to grab title) and now when I am calling that code from the database into my php page, its just printing that code and not processing it. example : In database -> echo 'hello'; In php file : echo $row->column. Where column is the above code. Any idea how to do it ?
  14. Thats the real problem the steps cant be serialize as you stated otherwise I would have done that Oke I would open connection only when needed Thanks
  15. Hello guys, may be my question is simple to you but for me its something I need to know I have a big script. The main purpose of script is to scrap data and store in mysql. Basically it can be structured like this : # Database Connect # Query # Scrap # Query # Scrap # Query # Disconnect What I want to know is what is best performance wise ? Opening a new connection for each query and closing after its completion ? Or open the connection once and let the script complete and then close it finally. Since scraping part will take considerable time may be 1-2 minutes. Please reply that
  16. Yes I will assume that file is downloaded within 15 min, so will make a cron file so that cleaning process is pretty automated
  17. Great job mate, so its just like mutual exclusion. One small problem, I close file after downloading is complete oke ? Suppose some user stops the download ? Will lock be automatically removed ? Or do I have to run a cron job every x minutes to remove such files ?
  18. Hello developers, I want to have a simple solution for a simple file download script. I want to prevent parallel download of files from same IP . Like rapidshare do for free user, it allows downloading of only 1 file per IP. How can I do that ? Just suggest me logic and it will be fine for me
  19. Nopes mate, there are id tags in mp3 like artist , album etc, I want to insert them with help of php.
  20. How can we modify id tags with php, I googled but could not find any much info, I found one tag renamer but after renaming it is corrupting the data. Any info form gurus ?
  21. $messagetext = mb_convert_encoding(file_get_contents('message.txt'), 'HTML-ENTITIES', "UTF-8"); This solved my problem
  22. Well, I will try and report you back mate
  23. Can i send contents of $file to curl too, without any encoding function ?
×
×
  • 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.