Jump to content

2levelsabove

Members
  • Posts

    180
  • Joined

  • Last visited

    Never

Everything posted by 2levelsabove

  1. <?php //session_start(); //require_once('/home/rides/public_html/include/_process/application.php'); print_r($_POST); exit(); ?>
  2. When I do test statements like print_r($_POST) an empty array shows up. <table cellspacing="0" cellpadding="0"> <tr valign="top" align="left"> <td colspan="2"></td> <td width="536"> <form name="payment" id="payment" action="/include/_process/paypal/DoDirectPaymentReceipt.php" method="post" > <center> <table class="api"> <tr> <td colspan="2" class="thinfield"> </td> </tr> <tr> <td class="thinfield"> First Name:</td> <td align=left><input name="firstName" type="text" size="30" maxlength="32" /></td> </tr> <tr> <td class="thinfield"> Last Name:</td> <td> <input name="lastName" type="text" size="30" maxlength="32" /></td> </tr> <tr> <td class="thinfield"> Card Type:</td> <td> <select name="creditCardType"> <option selected></option> <option value="Visa">Visa</option> <option value="MasterCard">MasterCard</option> <option value="Discover">Discover</option> <option value="Amex">American Express</option> </select> </td> </tr> <tr> <td class="thinfield"> Card Number:</td> <td> <input type="text" size="19" maxlength="19" name="creditCardNumber" /></td> </tr> <tr> <td class="thinfield"> Expiration Date:</td> <td> <select name="expDateMonth"> <option value="1">01</option> <option value="2">02</option> <option value="3">03</option> <option value="4">04</option> <option value="5">05</option> <option value="6">06</option> <option value="7">07</option> <option value="8">08</option> <option value="9">09</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> </select> <select name="expDateYear"> <option value="2004">2004</option> <option value="2005">2005</option> <option value="2006">2006</option> <option value="2007">2007</option> <option value="2008">2008</option> <option value="2009">2009</option> <option value="2010" selected>2010</option> <option value="2011">2011</option> <option value="2012">2012</option> <option value="2013">2013</option> <option value="2014">2014</option> <option value="2015">2015</option> </select> </td> </tr> <tr> <td class="thinfield"> Card Verification Number:</td> <td> <input type="text" size="8" maxlength="4" name="cvv2Number" /></td> </tr> <tr> <td class="thinfield"> Address 1: </td> <td> <input type="text" size="25" maxlength="100" name="address1" /></td> </tr> <tr> <td class="thinfield"> Address 2: </td> <td> <input type="text" size="25" maxlength="100" name="address2" />(optional)</td> </tr> <tr> <td class="thinfield"> City: </td> <td> <input type="text" size="25" maxlength="40" name="city" /></td> </tr> <tr> <td class="thinfield"> State: </td> <td> <select name="state"> <option selected></option> <option value="AK">AK</option> <option value="AL">AL</option> <option value="AR">AR</option> <option value="AZ">AZ</option> <option value="CA">CA</option> <option value="CO">CO</option> <option value="CT">CT</option> <option value="DC">DC</option> <option value="DE">DE</option> <option value="FL">FL</option> <option value="GA">GA</option> <option value="HI">HI</option> <option value="IA">IA</option> <option value="ID">ID</option> <option value="IL">IL</option> <option value="IN">IN</option> <option value="KS">KS</option> <option value="KY">KY</option> <option value="LA">LA</option> <option value="MA">MA</option> <option value="MD">MD</option> <option value="ME">ME</option> <option value="MI">MI</option> <option value="MN">MN</option> <option value="MO">MO</option> <option value="MS">MS</option> <option value="MT">MT</option> <option value="NC">NC</option> <option value="ND">ND</option> <option value="NE">NE</option> <option value="NH">NH</option> <option value="NJ">NJ</option> <option value="NM">NM</option> <option value="NV">NV</option> <option value="NY">NY</option> <option value="OH">OH</option> <option value="OK">OK</option> <option value="OR">OR</option> <option value="PA">PA</option> <option value="RI">RI</option> <option value="SC">SC</option> <option value="SD">SD</option> <option value="TN">TN</option> <option value="TX">TX</option> <option value="UT">UT</option> <option value="VA">VA</option> <option value="VT">VT</option> <option value="WA">WA</option> <option value="WI">WI</option> <option value="WV">WV</option> <option value="WY">WY</option> <option value="AA">AA</option> <option value="AE">AE</option> <option value="AP">AP</option> <option value="AS">AS</option> <option value="FM">FM</option> <option value="GU">GU</option> <option value="MH">MH</option> <option value="MP">MP</option> <option value="PR">PR</option> <option value="PW">PW</option> <option value="VI">VI</option> </select> </td> </tr> <tr> <td class="thinfield"> ZIP Code: </td> <td> <input type="text" size="10" maxlength="10" name="zip" /> (5 or 9 digits) </td> </tr> <tr> <td class="field"> </td> <td> <input name="submit" type="Submit" id="submit" value="Submit Payment" /> <input name="amount" type="hidden" id="amount" value="<?= $total ?>" /> <input name="adID" type="hidden" id="adID" value="<? echo $adID; ?>" /> <input name="paymentType" type="hidden" id="paymentType" value="Sale" /></td> </tr> </table> <img src="images/credit_card_paypal_logos_1.gif" alt="logos" width="204" height="27"> </center> </form> </p> </td> </tr> </table>
  3. No matter what I do but the directory does not get created. If I just use MKDir by itself it comes back with saying that file already exists warning. I have checked again and again and the file is not there. Please suggest. I believe I have all the necessary permissions. $outputfilepath = "user_storage/".$atruserid."/flyers/".$adID."/test/"; if (!is_dir($outputfilepath)) { mkdir($outputfilepath, 0777, 1); chmod($outputfilepath,0777); $output="DIRECTORY CREATED"; } else{ $output="'$outputfilepath' NOT CREATED AS IT ALREADY EXISTS"; }
  4. Developing a tool for a client marketing company that wants to determine on the fly how many back-links a website has or somehow automate that process. For example AllTheRides.com has 4300 sites that have a link pointing back to it. Now how could one approach the problem of trying to calculate that efficiently. Google "Link" command is unreliable at most
  5. A simple Google search resulted in the following. I take no credit for the code. function IsGooglebot(){ // check if user agent contains googlebt if(eregi("Googlebot",$_SERVER['HTTP_USER_AGENT'])){ $ip = $_SERVER['REMOTE_ADDR']; //server name e.g. crawl-66-249-66-1.googlebot.com $name = gethostbyaddr($ip); //check if name ciontains googlebot if(eregi("Googlebot",$name)){ //list of IP's $hosts = gethostbynamel($name); foreach($hosts as $host){ if ($host == $ip){ return true; } } return false; // Pretender, take some action if needed }else{ return false; // Pretender, take some action if needed } }else{ // Not googlebot, take some action if needed } return false; }
  6. I have seen certain applications do it successfully and yet certain applications fail miserably. Any thoughts on this matter?
  7. $outgoinglinksarray=array_filter($alllinks,array($this, "isoutgoing")); ill post all code in just a few
  8. <b>Fatal error</b>: Using $this when not in object context on line <b>396</b><br />
  9. my site is sample1.com the urls are like : /test.php sample1.com/somefile.php http://yahoo.com How can I quickly get an A). array of same site links B). outside links to 3rd party Thanks guys
  10. I keep getting an error The second argument, 'isoutgoing', should be a valid callback I know how callbacks work in procedural but how do I call it in OOP please help function get_outgoing_links($uri){ $uri = trim(eregi_replace('http://', '', $uri)); $uri = trim(eregi_replace('http', '', $uri)); $uri = trim(eregi_replace('www.', '', $uri)); $this->url=$uri; $alllinks=explode(" ",$this->get_all_links($uri)); $outgoinglinksarray=array_filter($alllinks,"isoutgoing"); return $outgoinglinksarray; } //the call back function function isoutgoing($link) { $link1 = parse_url($link); $cleanlink1=$link1['host']; $$cleanlink1 = trim(eregi_replace('http://', '', $cleanlink1)); $cleanlink1 = trim(eregi_replace('http', '', $cleanlink1)); $cleanlink1 = trim(eregi_replace('www.', '', $cleanlink1)); if ( !strpos($link1['host'], $this->$url)) { return 1; } }
  11. But I know it is active and running.
  12. I have 2 URLS both encoded with urlencode 1). http://somesite.com?id=1&url=http://somesiteagain.com?test=1 2). http://somesite.com?id=1&url=http://subdomain.somesiteagain.com?test=1 The second one is causing a 503 error any thoughts ?
  13. Thank you for your feedback!
  14. I have a site that gets users to submit XML feeds. Once in a while the occasional user submits a malformed RSS feed with a few characters that will make the process break (I am using simple pie) Is there any way to take the XML feed URL, run the feed through some cleanup process and then processing the so called clean feed ? Any thoughts would be highly appreciated.
  15. Point Taken. I will make a note of that and wont do that anymore. The only reason did ride was because in future was going to incorporate bikes and all. Thanks again
  16. http://www.buildasign.com/PowerDesign.aspx?t=2B437038705555444650383D&cid=1579&cr=0&track=pd
  17. Thanks guys (PS dont be too harsh) LoL
  18. http://www.buildasign.com/PowerDesign.aspx?t=7959662B685A4879535A733D&cid=1579&cr=1&track=pd As you can see, you can build custom signs . Please let me know . Thanks
  19. Guys thank you all for your feedback. I removed the encoding="UTF-8" and it seems to be working fine. Thank you soooooooooooooooooooooooooooooooooooooo much. This was a thorn in my ass for a while.
  20. Hello, I have a RSS feed (http://alltherides.com/feed.xml) that appears fine in certain instances and when you refresh page it randomly starts showing up as plain text without any formatting. Please please help me fix this as I have asked this question before noone was able to help me. Thanks a lot and happy holidays
  21. i am a css novice. This is what I have body{ margin:0; padding:0; line-height: 1em; } img{ border-style:none; } b{font-size: 110%;} em{color: red;} #topsection{ height: 100px; /*Height of top section*/ width: 100%; background:url(../../../images/logo.jpg) no-repeat; } #topsection a{ color:#CCCCCC; } #navheader{ /*background:#C0C8DD;*/ background:#4A7BB5; height: 31px; /*Height of top section*/ } #navheader a{ color:#CCCCCC; } #topsection h1{ margin: 0; padding-top: 15px; } #contentwrapper{ float: left; width: 100%; } #contentcolumn{ margin: 0 15% 0 20%; /*Margins for content column. Should be "0 RightColumnWidth 0 LeftColumnWidth*/ } #leftcolumn{ float: left; width: 20%; /*Width of left column in percentage*/ margin-left: -100%; /*background:#C0C8DD;*/ background:#4A7BB5; } #rightcolumn{ float: left; width: 17%; /*Width of right column in pixels*/ margin-left: -17%; /*Set margin to that of -(RightColumnWidth)*/ /*background:#C0C8DD;*/ background:#4A7BB5; } #footer{ clear: left; width: 100%; background: #3B5998; color:#CCCCCC; text-align: center; padding: 4px 0; } #footer a{ color:#FFFFFF; } .innertube{ margin: 10px; /*Margins for inner DIV inside each column (to provide padding)*/ margin-top: 0; } .category_header { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color:#FFFFFF; background-color:#3B5998; text-align:center; } .category_listing { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #006699; } a { FONT-WEIGHT: bold; FONT-SIZE: 10px; COLOR: #006699; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; TEXT-DECORATION: none; } a:hover {color: #ffffff; background-color:#006699;} .form_text { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; } .bold_red { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; font-weight: bold; color: #FF0000; } .latest_rides{ } .latest_rides a { font-size:54%; font-weight:bold; } .viewlisting_header_text{font-size:24px; font-weight:bolder; } .news_column a { } .greenmoney { color: #009900; font-size:12px; } .columnText { font-size:12px; } .topnavlinks { color:#000000; } .didyouknow{color:#FF6600; font-stretch:semi-expanded; font-weight:700; } .vin { font-size:16px; font-weight:bold; } }
  22. http://alltherides.com It appears fine on my machine (FF IE both) . But on certain computers typically with old browsers it looks all messed up. That is the right of the page starts shifting over. look at the following links: http://alltherides.com/2001_BMW_X5_for_sale_15402.html please recommend a solution. This keeps me up at nights.
  23. well the bad characters are characters like "." and " ' ". I tried doing htmlentities and even addslashes but that doesnt seem to do anything.
  24. The feed is at : http://alltherides.com/feed.xml I used htmlentities on the description but still have errors that show up. please suggest. Thanks
  25. Not sure. Im sure there are things that can be done to optimize it .
×
×
  • 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.