-
Content Count
254 -
Joined
-
Last visited
Content Type
Profiles
Forums
Calendar
Everything posted by sepoto
-
http://asp.wheelpros.com/cs/ws/dealerline.ashx?service=makes&year=2010 In regards to the link above I have been told that I need to interact with the link via SOAP. I am new to SOAP so I am a bit lost really on how to interact with the message retrieved by the link. I know I want to get the message and store only the important parts in an array for use later. Does anyone have sample SOAP code for this? Thanks!
-
I am really struggling badly with this layout. I need the height of wrapper to adjust automatically to the height of the largest column of my three column layout. Wrapper has a border applied to it. For some reason I can not get it to function properly at all. Thanks in advance. <html><head><title>Three Column Layout</title><style>* { margin: 0px; }body { background-color: black; text-align: center; height: 100%; }#wrapper { border: 1px solid white; min-height: 100%; width: 800px; margin: 0 auto; color: white; text-align: left; padding: 0px; height: auto !impor
-
I had some code and recently I moved over to a new server which happens to be running Debian 5.0 Lenny. I had some code involving page redirection that stopped working and I had to add ob_start(); to the top of the .php files in question to get them working again. I read some documentation for ob_start(); but I have to admit it did not make sense to me at all. Why am I unable to send my headers unless ob_start(); has been invoked first? Is there a stack someplace being created? If so is it a stack only for header information? What exactly is ob_start(); doing? Thank you!
-
Thank you for your reply. I will try that in the future.
-
I just want my header to have a simple two column layout with the logo on the left and the menu on the right laying horizontally. I have followed the two column layout example out of the CSS Cookbook. I can't seem to get it to work properly. The page can be viewed in its current state at http://www.sepserver.net/dsg/. Please help! <?phprequire_once('d_login.php');require_once('i_rsslib.php');require_once('f_lib.php');$db = new mysqli($db_hostname, $db_username, $db_password, $db_database);$cemail = $_COOKIE['dsgemail127'];$cpassword = $_COOKIE['dsgpassword127'];if($cemail) { logIn($db, $ce
-
I need to use a custom bitmap in place of the default downward pointing arrow for my drop down list. Is there a way to do this with CSS? If not with CSS how can this be done?Thanks!
-
I'm trying to explain the best I can. I have a form and some code to check if the method is POST. If the method is POST some mapping code is echoed below the form. When I hit refresh in my browser it just resubmits the same information from the form so I still see my mapping code being echoed. When I refresh I want the mapping code to not execute in other words the method for the form should be GET on reload so that no mapping code is being echoed. Can this be done? I tried using header(); as in a previous post but that did not really seem like my solution.
-
Is there a way to tap into the refresh event with PHP? Ideally I want to handle only the refresh event if certain conditions are met such as the user refreshed by use of the browser refresh button or context menu... I've never seen code for this so it is all new to me.
-
I want to change the method from POST to GET whenever a user uses the refresh button in the browser. Can this be done?
-
What are all the required types? I think what you are trying to tell me is that .ttf is not good enough for everything. Where do I deposit my fonts once I have all the required types? Does Apache need to know where the fonts are or do they just sit in a directory?
-
I have some custom fonts in True Type format that I have downloaded and would like to use in my page. I'm not sure bit mapping the fonts would be appropriate in all cases and I was wondering if there is a way to set up my server to serve out the custom fonts. In other words is there a way I can make sure the fonts display properly for all the users that view my page without using a bit map?
-
<?php$limit = 20;$blog_name = 'sepoto.tumblr.com';$use_url = "http://api.tumblr.com/v2/blog/sepoto.tumblr.com/posts?api_key=yourapicodehere";$posts = false;$curl = curl_init($use_url);curl_setopt($curl, CURLOPT_HTTPGET, true);curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);$response = curl_exec($curl);curl_close($curl);$response = json_decode($response, true);if($response['meta']['status'] == 200){$posts = $response['response']['posts'];}unset ($response);print_r($posts);?>
-
I have this URI that I need to call with PHP: api.tumblr.com/v2/blog/{base-hostname}/info?api_key={key} The URI is returning a JSON object I think. My question is how in PHP do I call the URI and store the result. Once the result is stored I think I can use json_decode(): to decode the result. My version of PHP is 5.3 so I should not have to add any extensions for json functionality from what I have read. Does anyone know how the URI is called from PHP?Thank you.
-
I'm new to the API but I don't seem to see anything about how one would make a call to the URL listed in my first post from for example PHP. I do see that PHP has a few JSON functions but they seem to be oriented towards strings. That was all really great information but I have not really cracked the code yet. I guess I just need to keep asking questions. Thank you for the help out!
-
The code below is from the Tumblr.com API manual. I do not know what to do with it? Do I put the code inside <script></script> tags? Why is there a URL? How is the URL used? Is there someplace on the web I can learn the basics of JSON?Thank you! http://api.tumblr.com/v2/blog/david.tumblr.com/info?api_key={key}{ "meta": { "status": 200, "msg": "OK" }, "response": { "blog": { "title": "David's Log", "posts": 3456, "name": "david", "url": "http:\/\/david.tumblr.com\/", "updated": 1308953007, "description": "<p><strong>Mr. Karp<\/strong> is ta
-
You are right it is $articles not $article which is going to be a big problem because $article is undefined at that point and essentially contains nothing. Thanks!
-
I can not understand at all why my call to str_replace is returning a null string: if($artsize > 9) { for ($i = 0; $i < 10; $i++) { $colpos = strpos($articles[$i][1], ":" ); $twithandle = substr($articles[$i][1], 0, $colpos); $new = str_replace($twithandle, '<a href="">Testing:</a>', $article[$i][1]); echo "{$colpos} <br>"; echo "{$new}...<a class='feed' href='{$articles[$i][3]}' target='_new'>More ></a><br/><br/>"; }} $twithandle clearly contains a string as does $article[$i][1]. Something is very fishy with this.
-
foreach ($articles as $article) { $title = str_replace('DSG_Steve:', '', $article['title']); $description = str_replace('DSG_Steve:', '', $article['description']); $lines = explode("\n",wordwrap($title,60)); $title = $lines[0]; echo "{$title}... <a class='feed' href='{$article['link']}' target='_new'>More ></a><br/><br/>"; } I'm looking for the least amount of code that will sort my array $articles by $article['date']; Does anyone know how to do that?Thank you!
-
If only the original programmer of this 2000 lines of code where that wise.
-
I am trying to supress the display of this: Notice: Undefined variable: closedhh in C:\inetpub\wwwroot\dsgog\edit_profile.php on line 124 Call Stack # Time Memory Function Location 1 0.0231 382192 {main}( ) ..\edit_profile.php:0 Without really turning off my error reporting. Is this possible to do by using code in my php file? I would rather do that than modify my php.ini.Thank you!
-
<form id="addressForm" action="/" style='text-align: left;'> <div style=''> <div style='text-align: left;'> <label for="address">Address:</label><Br> <input type="text" name="address" id="address" style='width: 300px;' /><br> <label for="radius">Radius:</label><br> <select name="Radius" size="1" style='width: 300px;'> <option value="5" selected>5</option> <option value="10">10</option> <option value="50">50</option> </select><br></div> <input type="submit"
-
That is a wonderful pearl of wisdom. Thank you.
-
That is exactly what it was. A scope issue. This is what the could ended up looking like:<script type="text/javascript" src="jquery/jquery-1.6.1.min.js"></script><script type="text/javascript"> function scrollBg(){ var xsrc = $('#cityscape').attr('src'); if(xsrc == 'img/cityscape01.jpg') { $('#cityscape').attr({src: 'img/cityscape02.jpg', alt: 'cover2'}); } else if(xsrc == 'img/cityscape02.jpg') { $('#cityscape').attr({src: 'img/cityscape03.jpg', alt: 'cover2'}); } else if(xsrc == 'img/cityscape03.jpg') { $('#cityscape').attr({src: 'img/cityscape04.jpg', alt: