Jump to content

scottiedog

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

scottiedog's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Ok, I was half right... ha I just changed the pages I wanted it on to .php (originally html) - I assume there is no problem with doing this ? Everything seems to be working just fine.... Just make sure there couldnt be any background problems with changing the files to .php ? Thanks.
  2. Right, it is a good question. I could only get it to work when I changed the names of my pages to .php but I think that is because its using a .php as the imported text file. Like the dude said above, there is actually no need to use .pp for a simple text input and indeed my ".php" file didnt actually have anything worth php-ing, so I guess that if you import via a text file then you wont need to change the php extensions... this is complete guess work to be honest, based upon what the experienced guy said. I just changed the file names to php and reuploaded them, didnt bother me, and its working fine so I aint ammending it.... Let me know how it goes. I´d be interested. I think maybe the experienced guy will come in later anyway, and will either confirm what I say or say I am speaking complete crap and then give you the facts... (as i said, i could be speaking total rubbish, its just my newb brain working.... )
  3. That´s the problem. Change that main.html to main.php (maybe as a test first, just to check but I reckon that will do it) (remember all your links to that page )
  4. Other than that, I would be stumped to. It took me a while to get the php script file to work, had to try varying script structures before it did actually work - but it was coming up with file errors across the ticker when there was a problem........ Actually, I think I might have the answer... did you rename the live page from .html to .php ? I am pretty sure it was white black when I had it still as a .html page If not, I am sure the dude here will be able to help though.
  5. Change the import myimport.php line too..... change it to what the guy recommended above...
  6. Cheers dude ! As soon as I put that HTML after the php it worked just fine. Thanks so much. Later.
  7. Hi Thorpe, Its working great now. Thanks so much for your advice. One other question. I was just trying to add a link into the text somewhere (by adding a a href)... But everytime I add it it then comes up with an error on that line, so I must be writing something wrong Not really a surprise as I am a Newb, but could you check this and see what is wrong with it ? </style><span style='background-color:#227004;'> <font color=#ffffff><a href="www.mysite.com/page">Want this to be a link in white text</a></font> </span> Standard Text written here, working fine; I add this to the myimportlib.php just before the end ";?> It is the last line of text I want, and is just in addition to the otehr 4 lines of text. Parse Error syntax error, unexpected T_STRING, expecting ',' or ';' What should this line of text look like to add a Link ? Also, is there a good site you can recommend where I can get written codes like this, so I can copy and paste etc ? Cheers Scott
  8. Excellent. Thanks very much. I will try that and get back to you with the results. Good of you to help me. Thanks..
  9. Yes, here is the script. thanks so much for your help... Is this what you meant ? <? include "http://www./myimportlib.php" ?> </div> </DIV> <div align="center"> <script type="text/javascript" src="webticker_lib.js" language="javascript"></script>
  10. Hi there everyone. Totally new to php and to this site. Been going round in circles for hours on something....... Wonder if anyone can help. I have a website which is running a tiny php file on the index to call for some text for a horizontal ticker. I have attached the script for you to see, maybe you can see straight away what the problem is ? The ticker is from this link..... http://www.mioplanet.com/rsc/newsticker_javascript.htm At the bottom it says you can use a php file to determine the text, so this is what I did as the ticker is on multiple pages and needs to be updated daily, sometimes multiple times daily. It works fine when it works but why oh why does it hang for 5 - 15 seconds before it brings in the text, then completing the page ? The symptom is that the page loads down to the php script fast (as usual) then hangs whilst grabbing the text from the script, it can take 10 seconds or more to grab this 4k script..... Surely that is not right ? The script on the page is as follows, this calls for the .php which is in the same root directory of the domain (so its not like it has to go looking for it for it or anything ! Any ideas anyone ? [attachment deleted by admin]
×
×
  • 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.