Worked like a charm! Thanks very much for the snippet and full explanation, very helpful!
Type: Posts; User: M2com; Keyword(s):
Worked like a charm! Thanks very much for the snippet and full explanation, very helpful!
Thanks for the reply, the second line in your code looks about what I want.
#word -> <a href='website.com/page.php?h=$word'>#word</a>
I want to create a script that will read a string and whenever the hashtag symbol (#) appears, it replaces it with a link. How could I do this?
I've only found scripts that just replace the # and...
Thanks for the reply!
I mean if it was changed at any time, past year or the past couple seconds. The folder that is filled with text files Is located in the same directory that this script I'm...
I would like to know how/where to start to get an a ajax or JavaScript script to check if a folder filled with text files was changed and then display them according to a php File. Let me know what I...
Never mind I got it to work! Thank you so much!
Thanks!
So here's my code, but it's not working. I'm pretty sure I'm missing something but I don't know what.
Where do I put the first.js or is there something that needs to be combined? I'm...
Thanks for the quick reply!
So let me get this straight, the client would place this: document.write('<script type="text/javascript" src="http://www.yourdomain.com/script.php?url=' +...
Yeah, I got the share part but will this code also allow me to display the number of shares? Everything is in a frame so it can connect to my website. My script will get the page URL and find the...
Thank you!
Yes but is there a way for the button to find the URL of the Iframe holder that's not on the same domain or in a text file?
Thanks again!
I'm creating a share button for my own little social network. This button can be placed anywhere without having people type a URL into a button creator. They just simply put the code on their page...
I need a script will reload the page every 10 minutes unless the user is typing. This also means even though the javascript function is in the middle of counting down, the script will restart the...
Thanks for your help! Some data from a few of the files: 0,1,2,3 (that's basically what the files will look like they're text files by the way). Sorting:
The data will be sorted by greatest to...
Okay thanks very much! Now I just ventured into the cmp thing:
<?php
function cmp($array, $b)
{
if ($array == $b) {
return 0;
}
return ($array < $b) ? -1 : 1;
}
Thanks! I got the opening up the directory and everything but the array and sorting part is what I'm having a problem with, I really don't know how to that. If you could help set me straight that...
I've been working on this for a while but I can't wrap my head around doing this and making it work! I'm trying to get PHP to all the text files in a directory and based on the contents it would sort...
The Cron Job seems to be too messy for me unless you know a simpler way to do it. I thought I heard that you could do that using the userabort. Thanks!
I am trying to create a script that will keep checking the time and if it's the desired time lets say 17:01 o'clock, it will commit the action. Once it's not that time, the scripts stop and goes back...
Yes it is like a pie chart but only square and I only need it to be over an image so it might use CSS for the opacity part. But besides that all I need is a square pie chart. If you want an image...
Have you seen those square icon images sometimes in game that have a what looks like a slice was cut out of it to represent the amount of time left? Is it possible to do that with PHP and if so, how...
Thanks for getting me started! I believe I got a usable script I came up with!
Thanks again, can't believe I just should of thought of searching "working with dates in php".
Well let's say for example the user will work for 8 hours. What would be the best method for getting the time plus the eight hours. When the user logs in, the page would check if the current time is...
I've been experimenting a lot with trying to find the right "formula" for having the user's character work for a certain amount of time and then the user is done working. If you have any ideas for...
True but I do not have that available at the moment. hmmm....
hmmm... I'm not really looking to have to use arrays but if that's the only way to make the username along with their scores go into order of highest to lowest then that's how I should do it right?