View Single Post
Old 07-04-2008, 01:26 AM   #9 (permalink)
Kalle
The Frequenter
Zend Certified 
 
Join Date: Sep 2007
Location: Denmark
Posts: 352
Thanks: 8
Kalle is on a distinguished road
Default

Quote:
Originally Posted by delayedinsanity View Post
I'm a huge fan of Dreamweaver, so I'm not sure if this is going to work out or not, but I decided to give Zend Studio a try, and I'm curious about two things in particular in the last five minutes of using it.

First thing actually has to do with the studio itself. I have phpMyAdmin and a test directory in my web root, and I was wondering if there was a way to cloak those directories from Zend. I want to be able to access them, but I don't want the classes et al showing up in my project outline.

Second thing is a regular expression question, but related to Zend's error/warning reporting. It's spitting out a TONNE of warnings that I have bad escape sequences which I think is a little rash. For example:

PHP Code:
$regex .= "(\?[a-z+&_.-][a-z0-9;:@\/&%=+\$_.-]*)?"// GET Query 
Part of my url validating regular expression, it's telling me that \? is a bad escape sequence and that I should be using \\?. Sure, if I wanted it to match as few backslashes as possible, that makes sense. So what's up, why is Zend freaking out about this?

Thanks for any help or insight on the Zend Studio.
-m
The last question is quite simple and logical that it gives you those errors or warnings. Its simply because your using double quote signs which will tell PHP to intepret the string with possible escape characters, then use single sign quotes insted and the warning should be gone :)
__________________
Send a message via MSN to Kalle Send a message via Skype™ to Kalle
Kalle is offline  
Reply With Quote