-
Posts
14,780 -
Joined
-
Last visited
-
Days Won
43
Everything posted by .josh
-
You know, I mostly like the actual song. Maybe too many instances of brand name bi-ing used.. $10 says MS keeps the song and ditches the video and makes their own based off the song.
-
couple things with that though: 1) it does not preserve original (lack of) 0 padding 2) it only addresses the date part of that regex
-
Scraping itself is not illegal, though it's a good way to get you banned real quick. Main thing though is what you are doing with the content you scrape....
-
How to have a script run automaticly everyday at certain time
.josh replied to DigitalGuard's topic in PHP Coding Help
You can setup a cron job to run a php script every x amount of time. -
unless you are wanting to continue being somehow tied to the website (continue retaining some kind of access/ownership, continue getting some kind of revenue from it, etc..) the only interest you really have is making sure all ties are severed and they can't come back and bother you. Basically an "as-is" no warranty no work/support, etc.. sort of thing.
-
How search engines know of the newly registered domains
.josh replied to satishgadhave's topic in Miscellaneous
Probably directly from the registrar you registered your domain with... -
It's on my to-do list to get one of those. Right now I am still working on making the perfect survival-kit-in-a-backpack kit.
-
Nerdiest? I think not. That is one of my most favorite xkcd comics. If I endorse it, that makes it cool.
-
I have my friend Rosie Palmer...what more do I need??
-
[SOLVED] Outputting a php array in Javascript
.josh replied to mikesta707's topic in PHP Coding Help
php is server-side. It executes the code and sends results to browser. So by the time javascript gets the value(s) like you have before, it's just plain text. In other words, you cannot loop through a php array using javascript. Okay, technically you can, if you were to use ajax and a session array or something, but I think the simpler solution is to use a php loop to build and output a javascript array and then loop through the javascript array in your js code. -
staff...team...whatever. we're all volunteers, so i just use the one word.
-
There are two types of ranks: post count based, and member group based. post count based ranks: We decided a long time ago that this is 99% superficial and will not be used to measure/weigh someone's worth. They do play a part in deciding member group based promotion, but only in an indirect way, in that the more posts someone has, the more we can evaluate/judge them to see if they are worth promoting. We will not allow regular members of higher post count to mark threads as solved, because a high post count does not mean you are qualified to do so. Surely you see the difference between 1,000 posts where one is asking questions, vs. 1,000 posts where someone is answering questions. member group based ranks: Guru, phpfreak recommended (PFR), Moderator, Admin. You are promoted into one of these groups by being recognized by others already in these groups, and enough people deciding you should join the ranks. Any of these member groups (also staff alumni can too (I think...)) can mark a thread as solved. No he wasn't. We often put "regular" in quotes in this context, because it can get somewhat ambiguous. Normally a regular user would be someone who shows up and participates on a regular basis. But on the board, it is also used as describing regular vs. staff member (staff member being anybody guru+). I assure you, he did not put it in quotes to use it in the same way people call other people "special".
-
Well, according to the absolute authority that is wiki, the U.S. started this holiday. Well let me tell you, unless it's something you can get the day off for, it's not considered a holiday around here.
-
[SOLVED] Write to Folder/File Doesn't Work, but Writing To File Works
.josh replied to cursed's topic in PHP Coding Help
is your path correct? That / on the front of the path makes it look for the ips directory, starting in the root public directory. public_html/ips/$ip$magic.txt Is that where the file really is? -
You cannot assign a variable to a property in the property declaration. Where in the flow of your script are you trying to assign this? Are you wanting to instantiate an object and pass an arbitrary value to $template_dir ? You can do something like this: class blah { var $template_dir = ''; function __construct($dir) { $this->template_dir = $dir; } } $something = new blah('some/random/path');
-
Would help if you actually showed example content... Any reason why you can't use a negated character class? [^G]+
-
I admit I'm not entirely sure what you are asking or trying to do so I don't know if this is what you're looking for but in php you can access the value from the url string using $_GET['variable'] so for instance if you go to http://www.mysite.com/somepage.php?id=123 you can for instance echo $_GET['id']; // output: 123 As far as the offset for preg_match_all... the description is pretty straight forward: instead of starting the whole matching process at the beginning of the string, you can specify an offset to start at, instead. So for instance, if you have this: $string = "some string"; If you put 5 as the offset, it will start trying to match at the 's' in 'string' instead of at the beginning, because the 's' in 'string' is the 5th character position in the string (position starts at 0).
-
well if you have the original non-subtitled movie, then sure, that works. But if the original movie has the subtitles in it, then you're pretty much out of luck.
-
You can't. not without source files. Best you can do is load it into something like flash and create a layer on top of the movie with a box masking the subtitles and then create another layer on top of that where you put your own.
-
I good proposal should clearly outline the current problem, what the system is supposed to do to make it go away, and key steps/areas of it (without going into every gritty detail). Beyond that, I can't really offer much else, because "I.T. Proposal" is pretty damn vague.
-
php only return a part of a string for RSS description
.josh replied to wendu's topic in PHP Coding Help
What you have right there may not always work out for you. It's an rss feed so you never know what's going to come in. There could be really long paragraphs or something and the \n might come too far down the string. The best way to do it would be to first premove all \n's, then wordwrap, then explode at \n' and use the first exploded element. Alternatively, wordwrap specifying a unique delimiter and explode at that. -
[SOLVED] Need some PHP help, related to href
.josh replied to carlmartin10's topic in PHP Coding Help
"<a href=\"http://...\">...</a>" //or "<a href='http://...'>...</a>" -
you could explode it, use array_unique, and then implode it.
-
Sorry, just checked out stash, no joy. I hear google has a bunch extra though.