[PHP] I need ideas for things to code

2009-04-24 Thread Andrew Hucks
I've been coding PHP for about a year, and I'm running out of things to code that force me to learn new things. If you have any suggestions, I'd greatly appreciate it.

[PHP] Change color of anything in double/single quotes

2009-04-25 Thread Andrew Hucks
If I have something like $string = 'hello there'; (the word hello is in double quotes, if you can't see it), how would I output it as something like font color=colorhello/font there. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] I need ideas for things to code - webbytedd examples

2009-04-27 Thread Andrew Hucks
coded in about 3 years and need to get my hand back in.  Trying to make use of one idea led to several others.  Thanks, tedd! Charles On Sat, Apr 25, 2009 at 4:54 AM, tedd tedd.sperl...@gmail.com wrote: At 7:00 PM -0400 4/24/09, Andrew Hucks wrote: I've been coding PHP for about

[PHP] Project Euler [Oh, this isn't spam mail...]

2009-04-28 Thread Andrew Hucks
This isn't a question. :-D. Anyways, there's a website that I came across which has kept me up past bedtime the past few nights. Project Euler is a series of challenging mathematical/computer programming problems that will require more than just mathematical insights to solve. Although

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Andrew Hucks
Take the values out of single quotes, else it sets them as strings, and not as the variable value. Also, are you meaning to set the cookie's expiration to time()-3600? Try time()+3600. On Tue, Apr 28, 2009 at 4:49 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2009-04-28 at 16:38

Re: [PHP] Re: $_session/$_cookie trouble

2009-04-28 Thread Andrew Hucks
$sale_value would have worked if it hadn't been in single quotes, I believe. (Assuming it was populated.). When you put it in quotes, you were making the cookie's value a string instead of a variable. So, the value would actually have literally been $sale_value, rather than the value for that

Re: [PHP] utf-8 ?

2009-04-30 Thread Andrew Hucks
It'd be a hassle to just remove a function from a language, I suppose... On Thu, Apr 30, 2009 at 6:15 PM, Reese howel...@inkworkswell.com wrote: Tom Worster wrote: why use SGML character entity references in a utf-8 file or stream? can't you just put the character in the file? Because, I

Re: [PHP] graphical integrated development environment recommendations?

2009-05-01 Thread Andrew Hucks
http://notepad-plus.sourceforge.net/uk/site.htm Try out N++. It's very good, supports a whole bunch of languages by default, has folding, and you can tweak the syntax highlight if you want. (You don't need to though.) Takes two minutes to install, and 45 seconds to uninstall it if you don't like

[PHP] Dynamically Rename Images

2009-05-02 Thread Andrew Hucks
Is it possible to rename images dynamically? Say that I had something like image1.png, and I don't want to rename it on the server. I'm working on an image rotater for a forum that doesn't allow anything but image files as signatures. Here's my code so far: ?php //LolRotator //add images. not

Re: [PHP] Dynamically Rename Images

2009-05-03 Thread Andrew Hucks
Thanks, but I solved the problem another way. http://codepad.org/6juIkECZ. On Sun, May 3, 2009 at 3:02 PM, Michael A. Peters mpet...@mac.com wrote: Andrew Hucks wrote: Got this error: Fatal error: Cannot instantiate non-existent class: finfo in place on line 6 You need the pecl-FileInfo

Re: [PHP] Re: Query stopping after 2 records?

2009-05-04 Thread Andrew Hucks
When you say die, does it just stop, or do you get an error message? Depending on how long it's taking to perform the action, the script will stop just because it's taking a while. (by default, I think it's 30 seconds.) If so, use: ini_set(max_execution_time, time in seconds); On Mon, May 4,