Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Editors and Tools > Other PHP Tools

Other PHP Tools This is were to discuss other non-desktop PHP related tools.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2003-09-11, 10:32 PM
Bob
Guest
 
Posts: n/a
Default

Hi,
Your software is great!!!
However, I would like to use it to catalog code that actually works (i.e., the snippets could be directly included in a PHP project, instead of having to copy and paste the code). I managed change the functions:

function dec_string($string) {
return ($string);
}


function enc_string($string) {
return ($string);
}

in functions.php, to eliminate the reversing of the snippet, but I still get a problem:
when writing something like
<? echo "hello"; ?> the library app changes the code to
<? echo \"hello\"; ?>
What else should I change so the snippets are usuable as I save them?

Thanks in advance,
Bob
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 2003-09-12, 01:35 AM
Bob
Guest
 
Posts: n/a
Default

By using

function dec_string($string) {
return stripslashes($string);
}


function enc_string($string) {
return stripslashes($string);
}

in functions.php seems to resolve the problem.

Apache would not execute files that end with .s as PHP files; in fact, it outputs the contents of the snippet right into the browser, just as with a regular text file
(and the contents of the directory could be filtered out/hidden from direct view with .htaccess).
Is there anthing else that I should be aware of?

Another thing is that I am thinking about is integrating some of the ideas found in php.ide, so you are able to run/debug the scripts in a separate window.

It is nice that there in no security authentication scheme implemeted; it makes it easier to custom build this part (with .htaccess or MySQL for example).


Thanks.
Bob
Reply With Quote
  #3 (permalink)  
Old 2003-09-12, 08:05 AM
stuart's Avatar
Administrator
 
Join Date: Jan 2003
Location: Scotland
Posts: 472
stuart will become famous soon enoughstuart will become famous soon enough
Send a message via MSN to stuart
Default

I was always intending to rewrite CSL so it could work with real files (scan file or directories), add the code to MySQL and allow sub-directories. This would have been ideal for projects and could also work for version control. I never got round to it!!
I think your ideas are similar and would love to see the final version. Most of the code for CSL was writen quite a while ago and I am aware of some minor errors, most of which are php configuration issues.
I did write in in a component based method so that its easily editable, this applies to both design and development. An other thing i wanted to do was add a database abstraction layer but, still allow flat text file usage. I have many ideas to improve it (and to get it work in more configs).
At one time I started to add security but this is something I dont like out of the box. There are various methods for security and sometimes the code can be confusing to users wishing to remove it or change it, not to mention config problems. So I felt it was much better exclude it altogether.

I look forward to seing your improvements

Regards,
Stuart
Reply With Quote
  #4 (permalink)  
Old 2003-09-13, 11:08 AM
Bob
Guest
 
Posts: n/a
Default

Thanks.
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:24 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.