Jump to content

paparanch

Members
  • Posts

    56
  • Joined

  • Last visited

    Never

Everything posted by paparanch

  1. its still not working master. would u please give a sample file for this? if u don't mind
  2. wow it works! but the problem is my css doesn't load anymore. whats wrong with this?
  3. tnx bro, but still doesn't work.. the url is still "localhost/samp/index.php?title=AKO" any help pls?
  4. good day everyone! i been looking for a step-by-step tutorial regarding search engine friendly url using htaccess, hope someone could help me here. BTW, im just using xampp and windows XP OS. And i already loaded the mod_rewrite module in the apache. i made a sample php file jut to try to use htaccess for search engine friendly purposes. <------index.php-------> <?php $title = "AKO"; echo "<a href='index.php?title=$title'>"; echo "Book Title"; echo "</a>"; ?> <----End of index.php----> Base on my code above, when i click the "Book Title" the address bar shows "localhost/samp/index.php?title=AKO" So, how can i make it to "localhost/samp/title/AKO"? What code should i put in my .htaccess file to make my url more search engine friendly? Could someone help me with this please? Im getting frustrated with this.. thanx in advanced!
  5. wazup guyz! i have another problem regarding varaibles...how could i pass the value of a variable from one php to another external php file without any form? well, this is the situation....i have here the code from my gallery.php...and i wanted to pass the variable $file to get the filename of every picture i have in my folder.... //code from gallery.php <?php Header("content-type: application/x-javascript"); function returnimages($dirname=".") { $pattern="\.(jpg|jpeg|png|gif|bmp)$"; $files = array(); $curimage=0; if($handle = opendir($dirname)) { while(false !== ($file = readdir($handle))){ if(eregi($pattern, $file)){ $filedate=date ("M d, Y H:i:s", filemtime($file)); echo 'galleryarray[' . $curimage .']=["' . $file . '", "'.$filedate.'"];' . "\n"; $curimage++; } } closedir($handle); } return($files); } echo "var galleryarray=new Array();" . "\n"; returnimages(); ?>
×
×
  • 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.