Jump to content

holyearth

Members
  • Posts

    23
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

holyearth's Achievements

Member

Member (2/5)

0

Reputation

  1. Thanks I will follow up with you via PM
  2. I am having a unique issue which no can seem to figure out... My site is not loading properly in IE7 ... an image after an "include" function wont load. (ONLY in IE7) If I take out the include ... the image loads.... Im thinking because the include takes a few seconds to load IE7 forgets to load the image afterwards or something... So, can I have the page begin the inclusion at the top like a preinclude or something ... then tell it later to insert here...? Not really familiar with PHP, so im not sure if this is do-able...
  3. Thanks Yesideez ... MUCH appreciated!
  4. Yesideez, How can I change it to pull the .txt file from a directory... example ... include(days/$useday.'.txt'); That didnt work for me...
  5. No matter what day2= ... as long as there is a day2= something then dont include anything Perhaps a if day2 == something then die ?
  6. Thanks MemphiS and Yesideez... I ended up choosing yours Yesideez... One last question... I need to make one change... I want to tell the script that if there is a day2= switch then dont include anything....
  7. Hello, In my page, I am sending this parameter ... target.php?day=monday I need to tell php that if day = monday then include "monday.txt" if day = Tuesday then include "tuesday.txt" But, if day = blank or day = is not specified then include "default.txt" I only know how to do a basic include so I am stomped on this one. Thanks everyone, this forum rocks!
  8. Hello, I'm trying to pass a url thru for redirection....example.... http://www.example.com/index.php?r=http://www.google.com I must pass it thru that way... Here's my code but it's not working.... [code]<?php $data = urlencode($HTTP_GET_VARS['r']); ?> <HTML><HEAD> <META HTTP-EQUIV=Refresh CONTENT="0; URL=<? echo("$data"); ?>"> </HEAD></HTML>[/code] I think the urlencode is wrong?? Please help. Thanks in advance!
  9. Thanks utexas I appreciate your help. This board rocks!
  10. Let's say that $information = $broughtin and that $broughtin = 'Cat jumps very high' If I print $information I want it to remove the word "very" So it should print: Cat jumps high How can I tell it to remove a certain word (in this case "very")? Thanks in advance!
  11. I am parsing an XML file where the following situation is ocurring The data in the XML file has a certain variable called: <ImageUrlMedium> http://images.amazon.com/images/P/B0006ISHT2.01.MZZZZZZZ.jpg </ImageUrlMedium> But, the entire XML file has several different <ImageUrlMedium> for example here's another: <ImageUrlMedium> http://images.amazon.com/images/P/B00004R7IE.01.MZZZZZZZ.jpg </ImageUrlMedium> I have made an array, but when I print ImageUrlMedium, it's showing ALL of the ImageUrlMedium's I want it to show only the first 5 (or 6 or 7) ImageUrlMedium's from the array ... not all of them from the array ....... Is there a way to "call" upon the array to only show the first X amount? Thanks in advance, sorry if I have confused anyone.
  12. Fert, Thanks! urlencode($HTTP_GET_VARS['second']); That did it :-)
  13. Pretend this is a url I'm loading: http://www.example.com/index.php?first=dog&second=donkey+goat In index.php (referenced above), I have: $first = $HTTP_GET_VARS['first']; $second = $HTTP_GET_VARS['second']; So, first spits out: dog second spits out: Donkey Goat I want the second to spit out Donkey%20Goat    -OR-  Donkey+Goat In other words, I want it to spit out the LITERAL value of the passed variable. Thanks for your time.
  14. <?php $url = array( "0" => "http://www.excite.com", "1" => "http://www.google.com", "2" => "http://www.yahoo.com", "3" => "http://www.snap.com", "4" => "http://www.altavista.com", ); ?> <?php $urlIdx = rand(0,count($url)-1); ?> <META HTTP-EQUIV=Refresh CONTENT="0; URL=<? echo("$url[$urlIdx]"); ?>"> <!--THE ABOVE CODE WORKS!!-->
×
×
  • 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.