kiowa_jackson
Members-
Posts
36 -
Joined
-
Last visited
Never
Everything posted by kiowa_jackson
-
Started doing it like this now, pretty happy with it. Unless there's some obvious way to make it better I'll go with this: <?php $xmlStr = file_get_contents('http://search.twitter.com/search.atom?q=twitter+feed'); $rss = new SimpleXMLElement($xmlStr); echo "<p>"; echo $rss->entry[0]->title; echo "<p>"; echo $rss->entry[1]->title; echo "<p>"; echo $rss->entry[2]->title; echo "<p>"; echo $rss->entry[3]->title; echo "<p>"; echo $rss->entry[4]->title; ?> </p>
-
dzelenika, awesome, thanks so much!! That's a very easy script to use too. Is there way to make it display multiple entries? I tried doing $xmlStr = file_get_contents('http://search.twitter.com/search.atom?q=twitter+feed'); $rss = new SimpleXMLElement($xmlStr); echo $rss->entry[0]->title; $xmlStr = file_get_contents('http://search.twitter.com/search.atom?q=twitter+feed'); $rss = new SimpleXMLElement($xmlStr); echo $rss->entry[1]->title; $xmlStr = file_get_contents('http://search.twitter.com/search.atom?q=twitter+feed'); $rss = new SimpleXMLElement($xmlStr); echo $rss->entry[2]->title; i.e. enter the script multiple times and increase "entry" by 1. It works, but is that a good way to do it or is there a better way? Thanks again
-
I use rsslib http://www.2rss.com/software.php to display rss feeds in my site. I’d like to display a twitter feed on my page, but it doesn’t seem to work. However, I used rss mixer http://www.rssmix.com/ to convert the twitter feed to xml and then it worked properly. However, the site runs veeery slow like this, and now I can't get rssmixer to work and therefore all my feeds are broken. Is there a way to convert the twitter feed to xml? Or is there a different script to use for displaying twitter feeds? Thanks
-
I've got the cookie msg set. How do I insert the value of the cookie in to the source code? Thanks (again )
-
Google has several parameters when you search, the most interesting being the query http://www.google.com/search?q=pumpkin+pie&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a is there a way to capture the value of this at the landing page, if someone clicks through from the organic results? It doesn't look like google passes them on through the organic links, but I've heard you can capture it using javascript...
-
Thanks!
-
I want someone who is coming in with the link www.mydomain.com/index.php?msg=1 to get a cookie set called msg with the value 1. I tried using this: <?php $days = 360; $time = time() + ($days * 86400); setcookie('msg', $msg, $time); ?> but to no avail. Can someone tell me what I need to change to make it work? Thanks
-
I'm trying to include the content for the empty sidebar. This is what the code for it looks like: <div id="sidebar-a"> <?php include('http://www.hansfalk.se/inc/sidebar.php'); ?> </div> do you want the rest of the code as well?
-
I'm using the function <?php include('http://www.hansfalk.se/inc/sidebar.php'); ?> on the page http://www.hansfalk.se/index.php, but nothing is displaying. http://www.hansfalk.se/inc/sidebar.php is working fine though...why is that? And the image on the right hand side http://www.hansfalk.se/img/hasse.JPG isn't displaying for me in firefox, but it's working in IE. Can someone confirm this for me? Thanks for the help...
-
I'm currently using something like <h1>Welcome To My Page About <?php echo urldecode($_GET['ins']); ?> and I just set $ins in links to whatever I want to be displayed in the headline. Is there a way to have default text displayed for when $ins is not set? So that everyone sees something....? Thanks
-
[SOLVED] Inserting values with spaces in to text
kiowa_jackson replied to kiowa_jackson's topic in PHP Coding Help
Awesome, thank you so much! -
[SOLVED] Inserting values with spaces in to text
kiowa_jackson replied to kiowa_jackson's topic in PHP Coding Help
Thanks. I'm unsure how to write it though, I tried <h1>Welcome to my site about <?php echo $_GET['urldecode($ins']; ?>!</h1> but it doesn't work. Have tried other variations but I'm just guessing...how would I use it? -
Say I have a variable $ins, and on my site I use <h1>Welcome to my site about <?php echo $_GET['ins']; ?>!</h1> is there anyway I can set the $ins to contain spaces in it? Say I want the phrase "vintage motor boats" to appear in the headline. Since I can't use spaces in the url, right now I have to use the value "vintage-motor-boats", which looks terrible in the headline. Is there any way around this? Thanks
-
I have a web form I use to capture leads <form action="https://rws.infusionsoft.com/AddForms/processForm.jsp" method='POST'> <input type="hidden" id="formid" name="formid" value="6"> <input type="hidden" id="type" name="type" value="CustomFormWeb"> <input type='hidden' name='med' value='ppc'> <table> <tr><td colspan=99 style="padding:4px;background-color:#000000;color:#FFFFFF">Contact Information</td></tr> <tr><td>First Name</td><td><input type='text' name='Contact0FirstName' value=''></td></tr> <tr><td>Email</td><td><input type='text' name='Contact0Email' value=''></td></tr> <tr><td colspan=2><input title="" type="submit" name="Submit" id="Submit" value="Submit" class="button np"></td></tr> </table> </form> Is it possible to also make it send an email with the value of a specific variable in the subject line? So if someone finds the form with http://www.myurl.com/form.php?med=ppc Then an email gets sent with the subject line "ppc" (i.e. value of $med) to my email address. Thanks
-
Using mod rewrite to move your site to PHP?
kiowa_jackson replied to kiowa_jackson's topic in PHP Coding Help
Thanks for the reply. Actually, I'm changing all my pages to .php extension. However there are many links pointing to various pages with .html extension. What I want to do is simply make sure that anyone who clicks on a link pointing to /page.html gets redirected to /page.php -
I'm switching a .html site to php. I know you can use mod rewrite to change .html urls to .php...does anyone know the exact code you need to use? It's for a fairly high traffic site so I want to make sure I get it right... thanks
-
I have a site that's been around for several years and has a lot of different inbound links etc. all in the old .html format. I now want to move over to php...is there an easy way to redirect all .html links to .php? Are there other things to consider when making the switch (if anyone knows of a link to an article or something about switching from html to php that would be great). Thanks.
-
I have made two pages with <?php echo $tid; ?> on them, and uploaded them. One is at the top level and works, the other is in a folder and does not work. http://www.believeandmanifest.com/echo.php?tid=works http://www.believeandmanifest.com/1/echo.php?tid=doesnotwork Can someone tell me why this is? THanks