-
Posts
252 -
Joined
-
Last visited
Everything posted by ryanfilard
-
Do you want to embed the video or the thumbnail. Use the youtube api to get the thumbnail photo. http://img.youtube.com/vi/VIDEO_ID_HERE/0.jpg
-
This is such a great forum
ryanfilard replied to TapeGun007's topic in PHPFreaks.com Website Feedback
This forum is amazing, almost everyone in this forum helped me get my bugs out. -
You should mark this topic as solved if you have found your answer.
-
I am making a script to search the users in my database based on there username, tags, real name
-
The results still return empty even when I type in the exact field name. $idea = $_REQUEST['s']; mysql_select_db($database_Users, $Users); $query_search = "SELECT * FROM users WHERE username AND fname AND lname AND tags LIKE '$idea'"; $search = mysql_query($query_search, $Users) or die(mysql_error()); $row_search = mysql_fetch_assoc($search);
-
The one above the calendar is there because it is a new widget, right?
-
Here is the color code: #FEF1EC
-
I did not write this but I modified it a little because it was old.
-
Do people who abuse there power become Staff Alumni or do they just step down.
-
This is what I got Shipping: Strict Standards: USPSParcelRate() [function.uspsparcelrate]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /home/samred/public_html/content/usps.php on line 62 Notice: Undefined index: RATEV3RESPONSE in /home/******/public_html/content/usps.php on line 62
-
I have error reporting on. Nothing shows up.
-
No text or error appears.
-
Nothing appears
-
Here is my code, it is not working. <?PHP function USPSParcelRate($weight,$dest_zip) { $userName = '696RYANW7228'; $orig_zip = '11705'; $url = "http://Production.ShippingAPIs.com/ShippingAPI.dll"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_POST, 1); $data = "API=RateV3&XML=<RateV3Request USERID=\"$userName\"><Package ID=\"1ST\"><Service>PRIORITY</Service><ZipOrigination>$orig_zip</ZipOrigination><ZipDestination>$dest_zip</ZipDestination><Pounds>$weight</Pounds><Ounces>0</Ounces><Size>REGULAR</Size><Machinable>TRUE</Machinable></Package></RateV3Request>"; // send the POST values to USPS curl_setopt($ch, CURLOPT_POSTFIELDS,$data); $result=curl_exec ($ch); $data = strstr($result, '<?'); // echo '<!-- '. $data. ' -->'; // Uncomment to show XML in comments $xml_parser = xml_parser_create(); xml_parse_into_struct($xml_parser, $data, $vals, $index); xml_parser_free($xml_parser); $params = array(); $level = array(); foreach ($vals as $xml_elem) { if ($xml_elem['type'] == 'open') { if (array_key_exists('attributes',$xml_elem)) { list($level[$xml_elem['level']],$extra) = array_values($xml_elem['attributes']); } else { $level[$xml_elem['level']] = $xml_elem['tag']; } } if ($xml_elem['type'] == 'complete') { $start_level = 1; $php_stmt = '$params'; while($start_level < $xml_elem['level']) { $php_stmt .= '[$level['.$start_level.']]'; $start_level++; } $php_stmt .= '[$xml_elem[\'tag\']] = $xml_elem[\'value\'];'; eval($php_stmt); } } curl_close($ch); // echo '<pre>'; print_r($params); echo'</pre>'; // Uncomment to see xml tags return $params['RATEV3RESPONSE']['1ST']['1']['RATE']; } echo USPSParcelRate(10,11705); ?>
-
My servers are hosted in Texas.
-
I also recently did folkartdecoys.com. I am just fixing a few bugs now.
-
Thank You
-
I need to get mysql information. This is incorrect what should I use instead. WHERE username = '$user', id = '$getid'
-
I just created a site for a client. They seem happy with it but there is still major construction to be done. http://www.damantiques.com
-
It is taken but is up for sale $1,788. Their budget is $500
-
Red Door Antiques
-
No but something related to antiques
-
Can you think of one? If you don't like any of them.
-
Yes Username: phpfreaks Password: password