Jump to content

holyearth

Members
  • Posts

    23
  • Joined

  • Last visited

    Never

Everything posted by holyearth

  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!!-->
  15. I'm in need of a php script to redirect from an array of URL's.... For example when index.php is hit, it will redirect to a random url from the array.... <?php $url = array( "1" => "http://www.google.com", "2" => "http://www.yahoo.com", "3" => "http://www.snap.com", "4" => "http://www.altavista.com", ); ?> <HTML><HEAD> <META HTTP-EQUIV=Refresh CONTENT="0; URL=<? echo("$newurl"); ?>"> </HTML> That's as far as I can go, I don't know how to tell it to pick randomly....:-( Sorry, I'm learning.......
  16. Thank you ken and craygo. I appreciate your time and help! God Bless!
  17. Ray, Got it thanks! Now, im trying to "output"  (to the user)  the 500 lines it saved as an array using: <? echo("$startnum"); ?> But it only shows: Array
  18. I'm trying to open hitcounter.txt "pull" the first 500 lines as $something BUT I want the 500 lines that were "pulled" from hitcounter.txt to be "removed" while they are pulled. So, it should extract the 500 lines and save the file without those 500 lines.
  19. Hello everyone, need some help... I have the following code: $process = fopen("hitcounter.txt", "r"); //opens txt file for startnum $startnum = fread($process,8192); //starting number Which opens hitcounter.txt and extracts data from it and saves it as $startnum How can I make it extract the data (500 lines at a time) and DELETE the data it extracted. So, it will open hitcounter.txt pull the first 500 lines save it as $startnum and delete the 500 lines from hitcounter.txt (the ones it extracted).
×
×
  • 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.