achedy / php-form-builder-class

Automatically exported from code.google.com/p/php-form-builder-class
GNU General Public License v3.0
0 stars 0 forks source link

Example pages not displaying correctly on windows localhost #187

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Download PFBC and unpack in www/pfbc
2.Run localhost/pfbc/index.php
3.Click on one of the examples

What is the expected output? What do you see instead?
The bootstrap files are not being found

What version of the product are you using? On what operating system?
Windows 7, Wamp

Please provide any additional information below.
The problem is caused by line 5 in header.php
    strpos(getcwd(), "\examples") !== false)
On Windows getcwd() outputs a path like ...wamp\www\pfbc\examples USING Back 
Slashes so testing for "/example" with forward slash won't work.
So an additional test is needed for "\example" or remove slash. I just changed 
slash to backslash and it works fine!

Original issue reported on code.google.com by neyl2...@gmail.com on 27 Nov 2012 at 1:15

GoogleCodeExporter commented 8 years ago
I forgot to mention - using 
http://php-form-builder-class.googlecode.com/files/pfbc3.0-php5.3.zip

Original comment by neyl2...@gmail.com on 27 Nov 2012 at 1:20

GoogleCodeExporter commented 8 years ago
Thanks for the bug report (and included solution!) r590 - 
http://code.google.com/p/php-form-builder-class/source/detail?r=590 - should 
include a fix for this situation.

You can pull down and verify with...
svn export http://php-form-builder-class.googlecode.com/svn/trunk/ pfbc

- Andrew

Original comment by ajporterfield@gmail.com on 27 Nov 2012 at 10:31