Jump to content

pkrtech

Members
  • Posts

    14
  • Joined

  • Last visited

    Never

Everything posted by pkrtech

  1. any Javascript GURUS could point me to the correct place to do this ?
  2. Anyone know how to FLOAT a table with an ad in it so as users scroll down the ad will follow and then if they go back up the table stops at the previous position and doesnt float above that ?? ex.. like - > http://www.demonoid.com/ If It cannot be done with PHP can it be done with Javascript ?
  3. Im aware of that, doesnt work for the characters I provided. 99% of the characters it works just some that pops up. I already have 13 eregi_replace statements its getting out of hand.
  4. I just run all the data through htmlentities(data, ENT_QUOTES); and urlencode($data);
  5. ok lets take this for instance this is what my data shows after I encoded and sitting in the DB Microsoftâ??s thats what the pure html is however I would assume that is just a ' or something similar but on the actual page shows Microsoftâ??s
  6. And I cannot get them to be converted to HTM unless I use eregi_replace can anyone tell me how to ?  Here is what I cant find a function to convert automatically. I have been using urldecode()  as well as htmlentities_decode  but as I am going through more text this weird crap keeps popping up. Is there something I am missing ? Or do I have to manually eregi_replace each on that pops up ? [code] ' â?? Source = …  showing through html = … ' " Source  =  »      showing through html = » [/code] There is alot more variations I am finding. any ideas ?
  7. I am using [code]exec( 'wget http://www.test.com/run.php > /dev/null &' ); [/code] to run a background process being called from a php page, it runs fine. However everytime it runs it places a empty run.php.1, run.php.2 ect ect. Now the script can run like 25 times an hour so thats alot of files I have to delete to clean up. Is there some way to make it so it doesnt add the file ?
  8. if the XML file it is trying to call is not their it throws up errors how do I supress them so it continues the script and reports the error to me through mail(). $xdom = new domDocument; $xdom->load($cycle);
  9. Currently the project I am working I launch the normal website, however at certain times I need to launch a process that takes a little long so instead of slowing down the main page I launch a pop-under to run the script and then close itself. The problem is alot of people pop blocker block it and then the process does not get ran. Does anyone have any ideas besides running a cron job where I can run this script without slowing down the main page? or a safe way to launch a popunder thats not blocked ? SOLUTION: <? exec( 'wget http://www.example.com/file.php > /dev/null &' ); ?>
  10. Wow you rock! Thanks so much. You dont know what I been going through to get that. Karma is yours today my friend.
  11. Yea been trying to find somewhere someone has it, it has to be possible yes ?
  12. yea that doesnt work either tried it. Thats why Im so confused.
  13. so how do I access the value with "NAMESPACE" media:description does not work
  14. Can someone tell me howto or why I cannot seem to grab the description from google video rss feed under element media:description. Any Help appreciated THANKS! Code: $xdom = new domDocument; $cycle = 'http://video.google.com/videofeed?type=search&q=is%3Aforsale&so=1&num=20&output=rss'; $xdom->load($cycle); $channel = $xdom->getElementsByTagName("item"); foreach( $channel as $item )   {   $xdom->getElementsByTagName("item");   $title = $item->getElementsByTagName( "title" );   $titles = $title->item(0)->nodeValue;   $titles = htmlentities($titles, ENT_QUOTES);   // this will pull the crappy description that I dont want   $descript = $item->getElementsByTagName("description");   $description = $descript->item(0)->nodeValue;   $description = htmlentities($description, ENT_QUOTES);   //This should pull proper formatted description in media:description but doesnt   $break = $xdom->getElementsByTagName("media");    foreach($break as $media)     {     $break->getElementsByTagName("media");     $descript2 = $media->getElementsByTagName("description");     $description2 = $descript2->media(0)->nodeValue;     } }
×
×
  • 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.