Search found 11 matches

by kcormier
Wed Jul 21, 2010 10:48 pm
Forum: General Discussion
Topic: php ide
Replies: 1
Views: 597

php ide

Hi All. I used to use aptana 1.5 for php development. I'm looking for recommendations on what new ide's to look into. I haven't been programming in php for the last year or two. The biggest things I need are subversion integration, and the ability to sync via sftp. I'd like code completion and such ...
by kcormier
Wed Jun 03, 2009 12:04 pm
Forum: PHP - Code
Topic: oo php with multiple directories
Replies: 7
Views: 419

Re: oo php with multiple directories

thanks for the advice :). It still leaves me writing a different header for each level in the directory, but it gives me some extra flexibility, allowing me to reference stuff absolutely if the need ever arises. Thanks!

-Kevin
by kcormier
Sun May 31, 2009 5:37 pm
Forum: PHP - Code
Topic: pagination problems - left in the lurch by my tech guy
Replies: 4
Views: 189

Re: pagination problems - left in the lurch by my tech guy

This one is interested. For those who haven't looked at the page, the problem is that the pagination is done with javascript, and then when the user clicks anything it opens the page. Then when hitting the back button, the javascript defaults back to page 1. Anyone know of a way to store the javascr...
by kcormier
Sun May 31, 2009 4:34 pm
Forum: PHP - Code
Topic: oo php with multiple directories
Replies: 7
Views: 419

Re: oo php with multiple directories

That's what I've done, usually through .htaccess files. Basically I'm looking to see if there's a creative way to figure out what the path to the classes folder is though at runtime. The only way I can think to do it is to hard code the relative path into each file because of the folder structure.
by kcormier
Sun May 31, 2009 1:34 pm
Forum: PHP - Code
Topic: login redirect code
Replies: 6
Views: 12667

Re: login redirect code

How secure do you want this script to be? If this is going on a live web server it's got a LOT of security holes in it. Don't let that discourage you as I've written many scripts that look similar. Just wondering how in depth you want me to get with security. And can you explain what you're trying t...
by kcormier
Sun May 31, 2009 1:30 pm
Forum: PHP - Code
Topic: Just a beginner
Replies: 4
Views: 374

Re: Just a beginner

  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <tit...
by kcormier
Sun May 31, 2009 1:01 pm
Forum: PHP - Code
Topic: Convert String to Date
Replies: 2
Views: 113

Re: Convert String to Date

can you give us a sample of what the join date looks like after your script runs? plus what is the value in datestring? If the value is just now() why even bother with the datestring variable? /edit - proper indentation of code helps too   $r = mysql_query ("SELECT SQL_CALC_FOUND_ROWS id FROM $...
by kcormier
Sun May 31, 2009 12:57 pm
Forum: PHP - Code
Topic: Passing values through the URL
Replies: 1
Views: 118

Re: Passing values through the URL

Couple problems. From what I can see in this code, there's nothing that will call this page that sets a value to $_GET['place'] unless that link is created somewhere else. Also, you're using include wrong. Include doesn't work like viewing a webpage would. In other words you can't pass values to the...
by kcormier
Sun May 31, 2009 12:19 pm
Forum: PHP - Code
Topic: login redirect code
Replies: 6
Views: 12667

Re: login redirect code

There are a few things to notice there. The first, when you perform a header redirect in php, it's just like adding any other header. It doesn't automatically exit your php script afterwards. If those header redirects are deny access to a protected part of your site, you need to call exit() to preve...
by kcormier
Sun May 31, 2009 11:57 am
Forum: PHP - Code
Topic: oo php with multiple directories
Replies: 7
Views: 419

Re: oo php with multiple directories

it might look something like / index.php header.php admin/ another_index.php another_page.php user_page/ yet_another_index.php yet_another_page.php classes/ class_1.php class_2.php class_3.php What happens is I need to be able to reference all the classes from any php file. The simple way would be t...
by kcormier
Sun May 31, 2009 1:47 am
Forum: PHP - Code
Topic: oo php with multiple directories
Replies: 7
Views: 419

oo php with multiple directories

Howdy all. Basically I have an object oriented php application that I'd like to span multiple folders. There is one directory though that houses all my classes that I'd like to be able to access from anywhere. I'd like to avoid relying on .htaccess files and the like as not all web servers support i...