Jump to content

cesarcesar

Members
  • Posts

    200
  • Joined

  • Last visited

    Never

Everything posted by cesarcesar

  1. SOLVED! Specials Thanks to @tfburges from codingforums.com <!DOCTYPE html> <html> <head> <title>Test</title> <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.2.min.js"></script> <style type="text/css"> .UpMenus { position:absolute; bottom:50%; left:50%; width:102px; height:126px; margin:63px 0px 0px -50px; padding:0px; border:0px; border-bottom:1px solid #00f; list-style-type:none; overflow:visible; } .UpMenus li { position:relative; float:left; width:100px; height:16px; padding:2px 0px; border:1px solid #00f; border-bottom:0px; background:#fff; font:normal 12px sans-serif; text-align:center; overflow:visible; cursor:pointer; cursor:hand; } .UpMenus li:hover { background:#00f; color:#fff; } .UpMenus li ol { position:absolute; bottom:21px; width:98px; height:0px; margin:0px; padding:0px; border:1px solid #00f; border-top:0px; border-bottom:0px; list-style-type:none; overflow:hidden; } .UpMenus li ol.Up { border-top:1px solid #00f; } .UpMenus li ol li { color:#000; border:0px; border-bottom:1px solid #99f; } .UpMenus li ol li:hover { background:#99f; color:#fff; } </style> <script type="text/javascript"> $(function(){ $('.UpMenus > li').click(function(){ var ol = $(this).children('ol'); var h = ol.height()?0:ol.children('li').length*21; var d = 0; ol.parent().parent().children('li').each(function(){ if (d) { $(this).children('ol').animate({height:'0px'},800,function(){$(this).removeClass('Up');}); $(this).animate({top:'0px'},800); } else if (!$(this).is(ol.parent())) { $(this).children('ol').animate({height:'0px'},800,function(){$(this).removeClass('Up');}); $(this).animate({top:(h?-h:'0')+'px'},800); } else { if (h) ol.addClass('Up'); ol.animate({height:h+'px'},800); $(this).animate({top:'0px'},800,function(){if(!h){ol.removeClass('Up')}}); d = 1; } }); }); }); </script> </head> <body> <ul class="UpMenus"> <li> Menu 1 <ol> <li>Sub 1 for Menu 1</li> <li>Sub 2 for Menu 1</li> </ol> </li> <li> Menu 2 <ol> <li>Sub 1 for Menu 2</li> <li>Sub 2 for Menu 2</li> <li>Sub 3 for Menu 2</li> <li>Sub 4 for Menu 2</li> </ol> </li> <li> Menu 3 <ol> <li>Sub 1 for Menu 3</li> <li>Sub 2 for Menu 3</li> <li>Sub 3 for Menu 3</li> </ol> </li> <li> Menu 4 <ol> <li>Sub 1 for Menu 4</li> <li>Sub 2 for Menu 4</li> <li>Sub 3 for Menu 4</li> <li>Sub 4 for Menu 4</li> <li>Sub 5 for Menu 4</li> </ol> </li> <li> Menu 5 <ol> <li>Sub 1 for Menu 5</li> <li>Sub 2 for Menu 5</li> <li>Sub 3 for Menu 5</li> <li>Sub 4 for Menu 5</li> <li>Sub 5 for Menu 5</li> <li>Sub 6 for Menu 5</li> <li>Sub 7 for Menu 5</li> </ol> </li> <li> Menu 6 <ol> <li>Sub 1 for Menu 6</li> <li>Sub 2 for Menu 6</li> </ol> </li> </ul> </body> </html>
  2. Howdy Community, I have spent the past 4 hours strait looking for and trying to modify an accordion style vertical menu who's elements slide out of the top and up instead of the normal slide out of the bottom and down action. I would like it in jQuery, but at this point I will take any library. Thanks for your help. I know some have wondered "What have you tried making work".. jQuery Tools, Jquery UI and about 3 other scripts that looked updateable. All I couldn't get to work. I also made an attempt to fake an accordion using show/hide toggles and this sorta worked, but it didnt have the nice slide as well as my data didnt move on page in the right direction. Headache!!! Help!! Thanks, Cesar
  3. I hope this question is in the right forum. I figured since the end result is a PHP result it fits here. I have a normal HTML form. In it are text fields. Some of my customers will be filling the form with Kanji and Katakana characters. The form shows as filling fine, but when submitted, the returning POST values are empty. I have checked all over the web and i just cant seem to find anything about what I'm missing. I do have meta tag <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> Any help is much appreciated. Thanks.
  4. I am placing this in the PHP sections because I think you all will know this answer the quickest. I am creating a podcast. I have created the XML file successfully. I have placed the file on my server and have gotten one of my podcast clients (Media Monkey) to pick it up and the mp3 files within it successfully. My issue is that when i try an get iTunes to work with it there is problems. iTunes will read the XML, but will not download the mp3's. I'm pretty sure I know why, but there is a huge catch-22 in the deal. To protect my content my CDN offers a method by where I add some query parameters to the end of the mp3 file to protect it from illegal downloads. It look like this (not actual file) http://www.sitename.com/2011-03-14.mp3?px-hash%3Db42c227e36ef27aee6e96ae9c4f32214%26px-time%3D1300704254 Using this string in the XML makes it validate correctly. The issue is because this link is urlencoded, the XML validates, but iTunes will not process the link as a valid link. Now if I remove the urlencoded part of the link, the XML will not validate and then iTunes will not even read the XML file. This is the link without encoding. http://www.sitename.com/2011-03-14.mp3?px-hash=98c7759588a9add0728350dd69871cdf&px-time=1300731722 See where I'm going? Anyone have a solution? How do I get around this catch-22? I need a way to pass the un-encoded link in the XML file, but still make it validate. Thanks for your help. (yes i see the links are different. Its ok as an example.)
  5. http://sb.cesarvillaca.com/footer-bug.html (code at the bottom) I have been trying like crazy to get the positioning of this nav correct. I need to get each of the navs to position exactly over their respective links. So the white "Products" word (over state) should sit exactly over the purple "Products" link. It should stick in the correct position on screen resolution change too. This nave will be localized too so more letter should be able to be added to each line of the pop-ups and still stick in its spot. These are all the issues I am having. PLEASE HELP! I have spent soooo much time on this and its driving me crazy!! <!DOCTYPE html> <html> <head> <title></title> <meta http-equiv="Content-type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Language" content="en-us"/> <meta http-equiv="imagetoolbar" content="no"/> <meta name="robots" content="index,follow,archive"/> <style type="text/css" title=""> body { font-family: Arial, Helvetica, sans-serif; line-height: 115%; font-size:10px; background-color: #000000; height:100%; color:#FDB813; } .auto-width { display:-moz-inline-stack; display:inline-block; zoom:1; *display:inline; } #footer-container { background-color:#000; height:420px; } #footer{ margin:0 auto; width:980px; background-color:#000; } #footer-nav { margin:30px 0 0 0px; width:980px; position:relative; } .fnpc { position:absolute; display:none; top:0px; left:19px; z-index:10; } .fnp { border:1px solid #555555; background-color:#252526; color:#888888; text-align:left; padding:10px; position:relative; z-index:10; top:-34px; left:0px; } .fto { border-top-style:none; border-right-style:solid; border-bottom-style:solid; border-left-style:solid; border-width:1px; border-color:#555555; background-color:#252526; position:absolute; bottom:-1px; left:0px; z-index:11; } .fnc { font-size:10px; color:#ffffff; padding:10px; height:15px; cursor:pointer; } </style> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> </head> <body> <!-- Footer Starts Here. Everything Below should be stuck in an include. --> <div id="footer-container" style="margin-top:200px;"> <div id="footer"> <div id="footer-nav"> <div style="float:left; margin-right:50px;"> <div id="fnp-container-Products" class="fnpc"> <div id="fnp-Products" class="fnp auto-width"> <a href="" class="">Aaaaaaa bbbbbb</a><br> <a href="" class="">Baaaaaa bbbbbb</a><br> <a href="" class="">Caaaaaa bbbbbb</a><br> <a href="" class="">Daaaaaa bbbbbb</a><br> <a href="" class="">Eaaaaaa bbbbbb</a><br> <a href="" class="">Faaaaaa bbbbbb</a><br> </div> <div id="footnav-Products" class="fto"> <div class="fnc auto-width">Products</div> </div> </div> <a href="" class="footer-nav-link footer-Products">Products</a> <script type="text/javascript"> <!-- $('.footer-Products').mouseenter(function() { $('.fnpc').hide(); $('#fnp-container-Products').show(); $("#fnp-container-Products").css({ "top": $("#fnp-Products").height() + "px", "left": $("#fnp-Products").height() + "px" }); }); //--> </script> </div> <div style="float:left; margin-right:50px;"> <div id="fnp-container-Solutions_Center" class="fnpc"> <div id="fnp-Solutions_Center" class="fnp auto-width"> <a href="" class="">Aaaaaaa bbbbbb ccccc</a><br> <a href="" class="">Baaaaaa bbbbbb ccccc</a><br> <a href="" class="">Caaaaaa bbbbbb ccccc</a><br> <a href="" class="">Daaaaaa bbbbbb ccccc</a><br> <a href="" class="">Eaaaaaa bbbbbb ccccc</a><br> <a href="" class="">Faaaaaa bbbbbb ccccc</a><br> </div> <div id="footnav-Solutions_Center" class="fto"> <div class="fnc auto-width">Solutions Center</div> </div> </div> <a href="" class="footer-nav-link footer-Solutions_Center">Solutions Center</a> <script type="text/javascript"> <!-- $('.footer-Solutions_Center').mouseenter(function() { $('.fnpc').hide(); $('#fnp-container-Solutions_Center').show(); $("#fnp-container-Solutions_Center").css({ "top": $("#fnp-Solutions_Center").height() + "px", "left": $("#fnp-Solutions_Center").height() + "px" }); }); //--> </script> </div> </div> </div> </div> <script type="text/javascript"> <!-- $('.fnpc').mouseleave(function() { $('.fnpc').hide(); }); //--> </script> </body> </html>
  6. I'm building a navigation that is built heavily on jQuery. I have it working as needed except that when mousing over links to quickly it spikes the processor and the navigation hangs. By hangs i mean it stops working and even the links will not show rollover states. I thought it was just a matter of adding a stop() but this changed nothing. Any ideas? Here it is online http://sb.cesarvillaca.com/nav/nav.html The code is below. <div id="ProductsNav-ov" style="display:none;"></div> <div id="main-nav"> <ul> <li class="mainnav-click" id="ProductsNav">PRODUCTS</li> </ul> <script type="text/javascript"> <!-- $(function() { $('.mainnav-click').mouseenter(function() { //alert($(this).attr('id')); buildNav($(this).attr('id')); }); }); function buildNav(nav,sub){ //alert(nav); var Shredders = new Array({ Deskside: '', Professional: '', Commercial: '', Government_Approved: '', Supplies: '' }); var Records_Storage = new Array({ Storage_Drawers: '', Storage_Boxes: '', Earth_Series: '', Classroom_Organization: '', Moving_Boxes: '', Magazine_Holders: '', Sorters: '' }); var Workspace_Ergonomics = new Array({ Keyboard_Trays_and_Drawers: '', Palm_and_Wrist_Supports: '', Monitor_Supports: '', Back_Supports: '', Foot_Supports: '', Copyholders: '', Monitor_Filters: '', Machine_Stands: '' }); var Workspace_Organization = new Array({ Desk_Organizers: '', Cubicle_Organizers: '', Literature_Organizers: '', Mail_Carts: '' }); var Computer_Accessories = new Array({ Keyboards_and_Mice: '', Mouse_Pads: '', Cleaning_Supplies: '', Power_Protection: '', Keyguards: '' }); var CD_DVD_Products = new Array({ Jewel_Cases_and_Inserts: '', Desktop: '' }); var Binding_Machines = new Array({ Plastic_Comb: '', Wire: '', Thermal: '', Supplies: '' }); var Laminating_Machines = new Array({ Personal: '', General_Office: '', Supplies: '' }); var Cutters_and_Trimmers = new Array({ Cutters: '', Rotary_Trimmers: '', Supplies: '' }); var Mobile_Accessories = new Array({ Mobile_Accessories: '' }); var Refurbished_Shredders = new Array({ Refurbished_Shredders: '' }); var Where_To_Buy = new Array({ Where_To_Buy: '' }); var ProductsNav = { "Shredders": Shredders, "Records_Storage": Records_Storage, "Workspace_Ergonomics": Workspace_Ergonomics, "Workspace_Organization": Workspace_Organization, "Computer_Accessories": Computer_Accessories, "CD_DVD_Products": CD_DVD_Products, "Binding_Machines": Binding_Machines, "Laminating_Machines": Laminating_Machines, "Cutters_and_Trimmers": Cutters_and_Trimmers, "Mobile_Accessories": Mobile_Accessories, "Refurbished_Shredders": Refurbished_Shredders, "Where_To_Buy": Where_To_Buy }; if (sub==undefined) { var navPOP=''; navPOP+= '<div id="drop-down-container">'+ '<div id="mainnav-title-ov">'+ '<div class="sprite main-nav-left lfloat"></div>'+ '<div class="main-nav-center auto-width">PRODUCTS</div>'+ '<div class="sprite main-nav-right lfloat"></div>'+ '<br class="clear">'+ '</div>'+ '<div id="drop-down" class="auto-width">'+ '<div id="mainnav-container" class="dots">'+ '<ul id="mainnav">'; var navname = ""; $.each(eval(nav), function(mainNav, mainNavobject) { $.each(mainNavobject, function(i, subNavobject) { $.each(subNavobject, function(property, value) { if (navname != mainNav) { navname = mainNav; navPOP+= '<li><a href="' + value + '" class="subnav-click" id="' + mainNav + '">'+str_replace("_"," ",mainNav)+'</a></li>'; } }); }); }); navPOP+= '</ul>'+ '</div>'+ '<div id="drop-down-sub"></div>'+ '<br class="clear">'+ '</div>'+ '</div>'; var whatmenu = nav+'-ov'; $('#'+whatmenu).html(navPOP); $('#mainnav-container').removeClass('dots'); $('#'+whatmenu).position({ my: "left top", at: "left top"}); $('#'+whatmenu).show(); }else{ //$("#drop-down-sub").stop(); $('#drop-down-sub').empty(); var navPOPsub=''; navPOPsub+= '<ul id="subnav">'; $.each(eval(nav), function(mainNav, subNavobject) { $.each(subNavobject, function(property, value) { navPOPsub+= '<li><a href="' + value + '">'+str_replace("_"," ",property)+'</a></li>'; }); }); navPOPsub+= '</ul>'; $('#mainnav-container').addClass('dots'); $('#drop-down-sub').html(navPOPsub); $('#drop-down-sub').show(); } $('.subnav-click').mouseover(function() { buildNav($(this).attr('id'),1); }); $('#drop-down-container').mouseleave(function() { $('#ProductsNav-ov').hide(); }); } //--> </script> </div> </div>
  7. Yes thats a good one. I dud though just word about http://flowplayer.org/tools/demos/rangeinput/scrollbar.html which is awesome because im very firmiliar with this library.
  8. Hey fellow coders. I've been searching for a script, but I'm coming up empty. The script will display products in a single row full screen left to right. To slide the products there is a pull bar. You can see how the exact script works on http://www.logitech.com/en-us/keyboards/keyboards. Does anybody know of a complete script, or at least one that is close enough to alter. Thanks much.
  9. I want to completely avoid any transactions between the buyer and seller.
  10. The idea would be that customers come to my site to see products from many sites that I have created partnerships with, then once they choose what they like, they go to the website the product is on and make the purchase. My question is how to I get paid for hooking up the buyer to the seller? I know the standard would be that I will have some type of affiliate marketing or advertising on my site, but is there a way I can get paid for the actual referral of the product sale? I really don't want to really on the honor system! If I did I think I would see no money. Most of the sites I will be working with will not have any type of affiliate system setup or anyway to do tracking of my referred clients. I thought of having some type of promo-code for a discount, but then there is no way to ensure the buyer will not just make a deal with the seller around my back. Would it be worth it to offer a rebate on confirmed orders? Say once a sale is made, they buyer shows proof via reciept and I offer a small rebate or gift card somewhere. This way I can have proof the sale was made and then take it up with the seller to get my referral share. If they dont pay the referral I drop them from the site. What about if I where to collect all the info for the sale (billing & shipping info, credit card info) and then pass that info to the sellers to finish up process the transaction and ship. I would be upfront to the buyers that their data is being transferred to the seller website for final processing. This way I know about the sale and can request my referral. Does anyone have any suggestions here or comments to my ideas? Thanks much.
  11. adding the sleep didnt effect anything. Yes that is the whole script.
  12. How would I determine the byte count?
  13. I'm using the following script to download large file (>100Mb). It works well except that it seems to not ever save the final chunk. If the file is 149,499 on the server, it finishes its download at 145,996. Why? How do I get the last 2% or so to flush and complete the download? Thank much for your help. FYI, this also happens the same on smaller files so its not stopping for time or file size issues. $path = "the/file/path.mp4"; $headsize = get_headers($path,1); $ext = str_from_last_occurrence($_vars['filepath'],"."); if ($ext=="mp3") { $type = "audio"; } elseif ($ext=="mp4") { $type = "video"; } function readfile_chunked($filename,$retbytes=true) { // Stream file $handle = fopen($filename, 'rb'); $chunksize = 1*(1024*1024); // how many bytes per chunk $buffer = ''; $cnt =0; if ($handle === false) { return false; } while (!feof($handle)) { $buffer = fread($handle, $chunksize); echo $buffer; ob_flush(); flush(); if ($retbytes) { $cnt += strlen($buffer); } } $status = fclose($handle); if ($retbytes && $status) { return $cnt; // return num. bytes delivered like readfile() does. } return $status; } header('Cache-Control: no-cache, no-store, max-age=0, must-revalidate'); header("Content-type: ".$type."/".$ext); header('Content-Length: ' . (string)($headsize['Content-Length'])); header('Content-Disposition: attachment; filename="'.str_from_last_occurrence($_vars['filepath'],"/").'"'); header("Content-Transfer-Encoding: binary"); readfile_chunked($path); exit;
  14. Cache headers have me completely confused. I have been researching them for a few days now and for some reason I just cant wrap my head around how to do it right (for my needs). I now turn to you o great forum gods. My quest for knowledge all stared after reading this page (and others), http://www.askapache.com/htaccess/apache-speed-cache-control.html and the pages in the "Easy Apache Speed Tips Articles" section. While I know this forum is not about Apache, the topic of discussion is headers and I believe that falls here. My goal is for all objects (images, js, css) in my page to get cached by the browser. Then when the object has been updated on the server and the next time a browser views the object, the new object is downloaded. Yes I know this all sounds basic, but which header to use and how to set it is whats confusing me. To make my confusion worse, I cant seem to wrap my head around how the headers in the HTML set caching properties for every object in the page. Maybe im just looking too much into it and that's just how the process of caching works. From the suggestion of this page, http://www.askapache.com/htaccess/apache-speed-compression.html I have set my .htaccess file as below. Is it wrong? Below that is my current headers from my HTML page. Do I even need those in there if its set in the .htaccess? So confused... ##################################################### # CONFIGURE media caching - http://www.askapache.com/htaccess/apache-speed-compression.html # Header unset ETag FileETag None <FilesMatch "(?i)^.*\.(ico|flv|jpg|jpeg|png|gif|js|css)$"> Header unset Last-Modified #Header set Expires "Fri, 21 Dec 2012 00:00:00 GMT" Header set Cache-Control "max-age=604800, must-revalidate, public, no-transform" </FilesMatch> # ##################################################### ##################################################### # CONFIGURE media caching - http://www.askapache.com/htaccess/apache-speed-compression.html # <IfModule mod_deflate.c> <FilesMatch "\.(js|css)$"> SetOutputFilter DEFLATE </FilesMatch> </IfModule> # ##################################################### <meta http-equiv="expires" content="Fri, 21 Jan 2011 00:00:00 GMT"> <meta http-equiv="Cache-Control" content="public"> So in final i guess my question is, how do i set the most effective headers in my HTML or better my .htaccess file to achieve the fastest page load speed? How do I insure users are always getting the most current version of a file. Thanks for reading this and the time to respond. Cesar
  15. After much research i understand that Safari isn't able to call the onClick Event like the other browsers do. So how do i get Safari to act like the other browsers is my question? I have see no real alternative. Can any of you help? My current code is below. It works in all browsers except Safari (haven't checked Chrome, but it should be same as Safari what i read). Thanks much. <script language="Javascript"> <!-- $(document).ready(function() { $('.create_project').click(function(){ alert('its working'); }); }); //--> </script> a href="javascript:void(0);" class="create_project"><img src="b.create.off.gif" width="99" height="45" border="0" id="Image51" onMouseOver="MM_swapImage('Image51','','b.create.on.gif',1)" onMouseOut="MM_swapImgRestore()">
  16. Im trying to make a naughty word filter. It removes bad words fine, but instances where there is a bad word found in the text like "assist" and "asses" get caught in the filter as well. Strangely though if the sentence is: My asses to assist me." the clean version will read: My asses to ***ist me." It seems to clear the first use of the word in another word, but then blocks the rest. Any ideas? My script is below. Thanks. function cleanWords($value) { /* strip naughty words */ $bad_word_file = 'standards/badwords.txt'; $strtofile = fopen($bad_word_file, "r"); $badwords = explode("\n", fread($strtofile, filesize($bad_word_file))); fclose($strtofile); for ($i = 0; $i < count($badwords); $i++) { $wordlist .= str_replace(chr(13),'',$badwords[$i]).'|'; } $wordlist = substr($wordlist,0,-1); $value = preg_replace("/\b($wordlist)\b/ie", 'preg_replace("/./","*","\\1")', $value); return $value; }
  17. Im trying to do a basic upload to my Picasa album. I've tried the example in the documentation and one found on another site. Both fail with no error at the last step, a call to insertPhotoEntry() Zend is set up correctly and pathing is correct. I know this because the test script they provide comes back all tests ok. Any ideas why? Below is the test script <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Adding photos to an album</title> <style> body { font-family: Verdana; } li { border-bottom: solid black 1px; margin: 10px; padding: 2px; width: auto; padding-bottom: 20px; } h2 { color: red; text-decoration: none; } span.attr { font-weight: bolder; } </style> </head> <body> <h1>Add Photo</h1> <?php if (!isset($_POST['submit'])) { ?> <form method="post" action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>" enctype="multipart/form-data"> Title: <br/> <input name="title" type="text" size="25" /><p/> File to upload: <br/> <input name="photofile" type="file" /><p/> Tags: <br/> <input name="tags" type="text" size="25" /><p/> <input name="submit" type="submit" value="Save" /> </form> <?php } else { // load classes $clientLibraryPath = '/var/www/vhosts/sitename.com/httpdocs/standards/ZendGdata-1.10.0/library/'; $oldPath = set_include_path(get_include_path() . PATH_SEPARATOR . $clientLibraryPath); require_once 'Zend/Loader.php'; Zend_Loader::loadClass('Zend_Gdata'); Zend_Loader::loadClass('Zend_Gdata_ClientLogin'); Zend_Loader::loadClass('Zend_Gdata_Photos'); Zend_Loader::loadClass('Zend_Http_Client'); // connect to service $svc = Zend_Gdata_Photos::AUTH_SERVICE_NAME; $user = "userid@gmail.com"; $pass = "secret"; $client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, $svc); $gphoto = new Zend_Gdata_Photos($client); // validate input if (empty($_POST['title'])) { die('ERROR: Missing title'); } // sanitize input $title = htmlentities($_POST['title']); $tags = htmlentities($_POST['tags']); // set album name $albumName = "France2008"; // construct photo object // save to server try { $photo = $gphoto->newPhotoEntry(); // set file $file = $gphoto->newMediaFileSource($_FILES['photofile']['tmp_name']); $file->setContentType("image/jpeg"); $photo->setMediaSource($file); // set title $photo->setSummary($gphoto->newSummary($title)); // set tags $photo->mediaGroup = new Zend_Gdata_Media_Extension_MediaGroup(); $keywords = new Zend_Gdata_Media_Extension_MediaKeywords(); $keywords->setText($tags); $photo->mediaGroup->keywords = $keywords; // link to album $album = $gphoto->newAlbumQuery(); $album->setUser($user); $album->setAlbumName($albumName); // save photo $gphoto->insertPhotoEntry($photo, $album->getQueryUrl()); } catch (Zend_Gdata_App_Exception $e) { echo "Error: " . $e->getResponse(); } echo 'Photo successfully added!'; } ?> </body> </html>
  18. I need to set up a rotating proxy for an application i am building. I have a cURL script that reads a page, but i need to seem like its not being called from the same IP address each time. I would like to have a list of proxies that i can rotate between each call i make. I have looked at Glype and PHPproxy but both i cannot get to work correctly. Does anybody have any suggestions, script examples or good info web pages they can provide. I would be interested in using Glype or PHPproxy if someone can point me in a good direction to use them correctly. Otherwise anything else would be perfect as well. Thanks much. Cesar
  19. I am new to vmware. I am attempting yo use a SOAP wrapper built for PHP, but I am having some issues with it. The wrapper is found at, http://code.google.com/p/phlabmanager/. There's not much to the script, but im just getting a white screen. I think it has to do with some configurationvalues it needs. I have listed them below in hows that someone has used vmware and knows what i need. To give a little background on the project, VMware is installed on Server A. I am using phLabManager from a directory on Server B. 1. I assume the hostname is that of Server A? Something like http://147.34.xxx.xxx/ correct? 2. Is username, password that of the server, or the users vCenter login? 3. "organisation_name" and "workspace_name" are a litle confusing. When in LabManager and clicking on the Workspace link it shows my Workspace name as ITGO-TTS / Main, but i have no Organisation Name. Now if i click on VM Templates link, I now have an Organisation as ITGO-TTS, but no Workspace Name. Where do i get these values? 4. GetConfigurationByName() should this be set to either a Template Name or Workspace -> Configuration Name right? Thanks for the help.
  20. I want to use the following script found here. I want to alter it so that on rollover a DIV is shown instead of the IMG. Within the DIV will be the IMG and some copy. I have tried to do this but always end up with the rollovers not placing correctly, or the copy shows at all times. Thanks for the suggestions and help.
  21. All it does is accept vars sent in the exec() and uses the values to start the transfer. The page runs fine if called regularly with spoofed vars.
  22. Include/Require will not work. I should have explained better. The page im calling via exec() is transferring 1G file between two servers. If this file is include()'d, the page will hang white until the transfer is complete. Therefor i need to create a separate php process to run in the background. This way once the transfer is started, the user can continue with their browsing without waiting. The way to do this is with exec(). I just need to know how i went wrong. I think its pathing. Fu*^ing pathing every time! But maybe someone can help. Thanks.
×
×
  • 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.