Jump to content

umairmasood

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

umairmasood's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello, Here is what my .htaccess contains: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^.* list.php Now this is the code which is using the keyword "How-I-Met-Your-Mother" in the url http://www.dontwatchvideo.com/How-I-Met-Your-Mother/ to show the relevant videos based on the keyword. It is being done by sending the keyword "How-I-Met-Your-Mother" to a .php page (using $_Get) on my site to process the videos for this keyword. But if I goto http://www.dontwatchvideo.com/How-I-Met-Your-Mother the page shows no videos. No keyword is passed to the $_Get paramater if the trailing slash "/" is not added to the end of the url. Please tell me how to edit the line RewriteRule ^.* list.php so that it works without trailing slash "/" Please let me know. Thnx
  2. a great resource.... I didnt find a python cheat sheet there?
  3. i have only used notepad++ yet... it seems good enough.
  4. hey can you please tell me where did you find php tutorial videos on sitepoint?
  5. I would a tutorial on: 1) how setup facebook plugins for a website... 2) how to setup facebook apps using their PHP SDK This will be greatly appreciated.
  6. Thanks alot... i'll try to implement your suggestion. I'll post here if I encounter any problems with that. Thanks for your help!
  7. thanks for your response... So there is no easy way to this? I would have tried the simplest way you mentioned (using an array) but my xml file is supposed to have more than 50,000 lines at least. So this is hugely strain the server. So can you please confirm if there is no other way of achieving this other than the 2 methods you have proposed? Thanks.
  8. I have a file named example.xml I want to know how to write to the 3rd line on this file? What function to use? I want to be able to write to this xml file right after the <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> tag. Please someone tell me how? Much appreciated. <?xml version="1.0" encoding="UTF-8"?> <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <sitemap> <loc>http://www.example.com/sitemap1.xml.gz</loc> <lastmod>2004-10-01T18:23:17+00:00</lastmod> </sitemap> <sitemap> <loc>http://www.example.com/sitemap2.xml.gz</loc> <lastmod>2005-01-01</lastmod> </sitemap> </sitemapindex>
×
×
  • 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.