aximbigfan
Members-
Posts
329 -
Joined
-
Last visited
Never
Everything posted by aximbigfan
-
Change all hyperlinks to open in new window?
aximbigfan replied to aximbigfan's topic in PHP Coding Help
Never mind. I got it. $description = preg_replace('/<a/', '<a target=\'_blank\'', $description); Not pretty, and won't work for image links, but it works. Chris -
Change all hyperlinks to open in new window?
aximbigfan replied to aximbigfan's topic in PHP Coding Help
Problem is that I would still have to change all the links so that they reference rel, right? I have a huge string with the html in it, and I need to search each <a out and insert a "target='_blank' into it. I don't care about XHTML. The page will always be viewed on FF. chris -
Hi, I have a PHP RSS reader, and one problem is that the links in some RSS "posts" will open in the same window. What I would like to do, is make a function to insert "target='_blank'" into each link. How would I do this? Thanks, Chris
-
All: It looks like I will have to run 2 separate queries. I hate doing that, but it is the only way, I think. I attempted ON DUPLICATE KEY, but it doesn't work because it isn't a _full_ duplicate if the data is changed, but the "dir" and "key" columns are kept the same. Chris
-
I used caps because that's how I have seen SQL commands formatted, not because I need a quick answer. In fact, I am in no hurry. Thanks for your help, Chris
-
Hi, I have a MySQL table with 3 colums. 1 is "dir" 2 is "key" and 3 is the actual data. I want to make an IF/Then system something like this (although this is not proper SQL, obviously) if (exists (where dir='123' AND where key='456') insert into... else update How would I do this? Thanks, Chris
-
I can't wait until all the Obama supporters realize what a horrible mistake they made. I give it 6 months. Chris
-
echo echo echo chris
-
Yeah, I recommend GIMP. To do what I did, I just opened the orange image, when to Colors->Colorize. Then you can make it any color you want. Wow, I didn't realize it was that simple. Welp, off to download Gimp! Thanks guys! Chris
-
EXACTLY!!! Thanks! What editor did you use? Chris
-
Hi, I have this image: ...And I would like it in blue (instead of orange, blue). Everything else is fine, it is just the color. Could someone help me out with this? I don't have Photoshop, or any that might be capable of doing this. Thanks, Chris
-
Are you sure the socket is binding right? I had this problem. PHP sockets will stay open for a bit even after they are closed. Chris
-
This is what I made. Sure, it isn't the best of the best, but it works perfectly. You need to have the 'arial.ttf' font file in the same dir as the script for this to work. <?php function texttoimg($input_txt) { $handle = imagecreatetruecolor(600, 600); $white = imagecolorallocate($handle, 255, 255, 255); $black = imagecolorallocate($handle, 0, 0, 0); imagefilledrectangle($handle, 0, 0, 599, 599, $white); imagefttext($handle, 20, 0, 300, 300, $black, './arial.ttf', $input_txt); header('Content-type: image/png'); imagepng($handle); imagedestroy($handle); } texttoimg('Test'); ?> Chris
-
Ok, thanks guys! I'll check that stuff out. I figured I'd have to learn GD at some point, so I guess now is the time... Chris
-
Hi, I need to create a function to make an image (600X600) and simply write some text in the center (or wherever) of said image. The image must then be returned in the form of a string. I have never worked with images in PHP, or any other editor other than Mspaint. What is the best place to start? Thanks, Chris
-
Well, I guess we all have our caveats. Daniel0's grammar "sucks" and you are a dirty stinky spammer/scammer. Chris
-
He is saying he has a sort of media kit. If each comp has it's own key on a sticker, I don't think there is any problem. If he was using the same key with each box THAT would be a problem. Chris Actually that's allowed I believe. Public schools (where I live at least) order computers that each have a unique product key on the case (so it's not 1 license for x computers, it's 1 license per computer). Each computer gets an image pushed on to it from the server, so therefore all of the computer have the same product key. I believe it's legal because the school can show Microsoft that they have as many licenses as they have computers running windows. Which is basically my question. Would there be a legal problem if I (using a 3rd party 'hack') activated windows without a product key (it's possible, I've done it) and just had the actual license that came with the computer on hand (and not installed elsewhere) in the event that someone came around asking questions. Also, for those still not understanding the actual issue, all XP Home/Pro keys will not work with all XP Home/Pro install CD's. For example, I used a Windows XP Pro CD from a dell computer to install windows on a computer that had an OEM key on it's case. That OEM key would not work with the Dell XP Pro install. I would've had to use an OEM install disc to use that key. On a side not, I did install XP Home on a laptop today with an OEM disc even though it was an HP computer that had an HP Key. Maybe OEM installs can take all keys? I'm not sure exactly how it all works. OEM and retail keys do not mix, you are correct. A key on a Dell system will not work on a copy of XP you buy at BestBuy, or vis versa (?). Chris
-
He is saying he has a sort of media kit. If each comp has it's own key on a sticker, I don't think there is any problem. If he was using the same key with each box THAT would be a problem. Chris
-
[SOLVED] Beginner to MySQL: Having an ID associated with a record
aximbigfan replied to aximbigfan's topic in MySQL Help
Never mind... I got it! I just got confused for a minute. Chris -
Hi This is really only the second time I have ever poked MySQL, so I am a n00b. Now, I have a table like this: +-------------+-------+ | IID | iindex | +-------------+-------+ | 2rlkrp2m3pr | 35 | | erwewetwe | 23 | etc... I want to be able to add 1 to the number next to IID (in iindex). How can I do this? For example, I want to add 1 to the number across from "erwewetwe". What would the query be to do this? Thanks, Chris
-
lol wut? ...yeah...it's taken all of my energy not to comment about the values in the array... I found this especially hilarious: Chris
-
lol wut? Unserialize is quite easy to understand. If you stick an array into serialize() you will get a string. unserialize that string as a var ($var = unser...) and you get that same array structure under the new variable name. Chris
-
Project due!!! Need PHP TEXT-only fading slideshow ASAP
aximbigfan replied to JetJagger's topic in PHP Coding Help
WOOHooo!!!!! Forum drama! In all seriousness, JetJagger, get with the damn program here. We aren't going to write your crap for you. Not only that, but you don't seem to have any concept as to what PHP is. I'm sorry, but it really pissed me off when we get morons like JetJagger who contib nothing to the community and insult the very same people who do their best to help around. Chris -
Sorry for not posting back soon, looonnggg day. I am looking for something CSS. The big thing is that it needs to have a black border. I haven't found a way to make a rounded border to go with the rounded box. Thanks! Chris
-
The new proposed namespace separator "\" is disgusting
aximbigfan replied to emehrkay's topic in Miscellaneous
OH PLEASE NOOOO!!!!!!! Use \ when you are escaping something. No where else. EDIT: Mod can we maybe add a poll? Chris