Again on PHP - Post ID 171793
HI all,
my question has been asked already but I couldn't find an answer yet.
I would like to add a little php in my pages (a drop-down button + sql query on a database, returning a table).
Writing the php code is one separate thing, but my question is : can I save and upload my vsd files with a .php extension, and still keep the site maintained and processed by vsd ?
Thanks
Pascal
windows xp rofessionnal, vsd 6.0 registered - see www.explor.ponty.fr/human.html for a mockup of the table
my question has been asked already but I couldn't find an answer yet.
I would like to add a little php in my pages (a drop-down button + sql query on a database, returning a table).
Writing the php code is one separate thing, but my question is : can I save and upload my vsd files with a .php extension, and still keep the site maintained and processed by vsd ?
Thanks
Pascal
windows xp rofessionnal, vsd 6.0 registered - see www.explor.ponty.fr/human.html for a mockup of the table
modify the server to parse .html as php using the .htaccess file or by adding a handler to apache.
Hiya Pascal,
Not sure what Ken said lol, over my head there, but to answer your actual question, no. Unless what Ken suggests is a working solution there would be no way to do what you want to do. The reason for this is that your site is contained within the .vnu file (all files, images, folders, structure, etc.) and nothing is importable to this file so it would not see those changes when you reopened the site again to edit it.
I do hope Ken's suggestion is something that will work, as this would be a solution to many VSD users that grow beyond the restrictions of the WYSIWYG interface and want to expand to the PHP world. Good luck with it Pascal, hope it works for you
Not sure what Ken said lol, over my head there, but to answer your actual question, no. Unless what Ken suggests is a working solution there would be no way to do what you want to do. The reason for this is that your site is contained within the .vnu file (all files, images, folders, structure, etc.) and nothing is importable to this file so it would not see those changes when you reopened the site again to edit it.
I do hope Ken's suggestion is something that will work, as this would be a solution to many VSD users that grow beyond the restrictions of the WYSIWYG interface and want to expand to the PHP world. Good luck with it Pascal, hope it works for you

Sorry about the cryptic post, I should have explained this better. What I was suggesting is to modify your web server so that it parses .html files the same way that it parses .php files. that way anything in php tags will be parsed properly as php.
There are two way to accomplish this.
First, by adding or modifying the .htaccess file to indicate which .html files are to be handled differently in the directory.
Second, by adding a new apache handler to treat all .html files as .php.
A .htaccess file would have a line in it similar to:
or for a single file something like:
adding an apache handler should show the following in the list of your servers handlers:
Of course, all of this only applies if you have some access to your webserver and it is running apache.
I have been doing this using Arvixe http://www.arvixe.com/2751.html as a web host and it works very well.
hope this helps, and is a little less confusing.
There are two way to accomplish this.
First, by adding or modifying the .htaccess file to indicate which .html files are to be handled differently in the directory.
Second, by adding a new apache handler to treat all .html files as .php.
A .htaccess file would have a line in it similar to:
AddType application/x-httpd-php .html
or for a single file something like:
<Files yourpage.html>
AddType application/x-httpd-php .html
</Files>
AddType application/x-httpd-php .html
</Files>
adding an apache handler should show the following in the list of your servers handlers:
application/x-httpd-php5 .php .html
Of course, all of this only applies if you have some access to your webserver and it is running apache.
I have been doing this using Arvixe http://www.arvixe.com/2751.html as a web host and it works very well.
hope this helps, and is a little less confusing.
You all are aware that Pascal's post was from Dec 17, 2009.

Robert Bruce
should have been moved to the going nowhere thread
Started using CC VSD in January 2009, I don't do HTML code, Sales from CC site exceeding expectations taken me out of semi-retirement
Hosted FREE on CC S DRIVE www.chauffeurdrivenluxurycars.co.uk
My new VSD & SCCP site Oct 2011 www.deloreanjewellery.co.uk
My friendly window cleaner www.mwcwindowcleaner.co.uk
Hosted FREE on CC S DRIVE www.chauffeurdrivenluxurycars.co.uk
My new VSD & SCCP site Oct 2011 www.deloreanjewellery.co.uk
My friendly window cleaner www.mwcwindowcleaner.co.uk
Robert Bruce wrote:
You all are aware that Pascal's post was from Dec 17, 2009.
You all are aware that Pascal's post was from Dec 17, 2009.

I did but I'm still nursing the bump on my head from JoAnn's frying pan last week.

Parsing php in html
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Ken! Thanks a bunch.
I heard about that somewhere but not how. Logged it, I will try it especially with self reporting pages. Ones that show the results of inputs to forms.
Makes VSD more powerful.
Luckily I know just enough about programming and php to make me dangerous. I can knock up the necessary utilities to do things like transfer the folder and php file from form builder to the VCD preview folder. I guess batch files could too. Working out how I can copy the html over in the same step.
That would be a good upgrade. One button transfer of the lot from form builder into the html box of VSD.
If I get it to work I will have a great tool to offer cheap. What! I'm an Aussie bite me
I heard about that somewhere but not how. Logged it, I will try it especially with self reporting pages. Ones that show the results of inputs to forms.
Makes VSD more powerful.
Luckily I know just enough about programming and php to make me dangerous. I can knock up the necessary utilities to do things like transfer the folder and php file from form builder to the VCD preview folder. I guess batch files could too. Working out how I can copy the html over in the same step.
That would be a good upgrade. One button transfer of the lot from form builder into the html box of VSD.
If I get it to work I will have a great tool to offer cheap. What! I'm an Aussie bite me
The Guy from OZ
Wow that was quick, I will add it as a freebie on my new site built with VCD and formed with WFB.
I now have the utility, save the clipboard header and body to two temp files, go to VCD highlight the text press button to paste in two positions and transfer the form folder and php file on the 2nd paste.What a time saver. Try to do it all at a press of a button next, Web site first.
Anyone can do the same use Rapidq Q (Basic) for the GUI and Autohotkey for the resident part to paste, hotkeys etc. They did not call it basic for nothing, It really is.
I am really getting to appreciate this Visual Site Designer. Who wants to edit html using Notepad to write the code, this is so much easier, less time consuming and I believe I will get less bounces. Plus the way I can slot these real cool forms in is fantastic. I am not a good designer but with WIS I have backgrounds heaps of icons, animations, and clips. I shall keep it simple and coin the cash. I was a Pommie for 21 years and an Aussie for 48. What a mix.
I still like the classic version which works really well and now with the heads up Ken I can slot the PHP in.
I have a successful site that works, that is getting a bit tired and need of dressing up so I am getting excited with my progress so far using these tools.
I believe they will pay for themselves in a week once I upload. Still trialing in Wamp. Best outlay I have made so far.
I do not advertise my website as I do sell software and I do have principals. I may hint or maybe not.
Programming is a hobby of mine. That is why I buy CC's ware, I respect and appreciate their developers skills. Love to have a go at their code though. I bet I could get it whistling Dixie. "Old Programmers Chant"
Type to much go now
Terry
I now have the utility, save the clipboard header and body to two temp files, go to VCD highlight the text press button to paste in two positions and transfer the form folder and php file on the 2nd paste.What a time saver. Try to do it all at a press of a button next, Web site first.
Anyone can do the same use Rapidq Q (Basic) for the GUI and Autohotkey for the resident part to paste, hotkeys etc. They did not call it basic for nothing, It really is.
I am really getting to appreciate this Visual Site Designer. Who wants to edit html using Notepad to write the code, this is so much easier, less time consuming and I believe I will get less bounces. Plus the way I can slot these real cool forms in is fantastic. I am not a good designer but with WIS I have backgrounds heaps of icons, animations, and clips. I shall keep it simple and coin the cash. I was a Pommie for 21 years and an Aussie for 48. What a mix.
I still like the classic version which works really well and now with the heads up Ken I can slot the PHP in.
I have a successful site that works, that is getting a bit tired and need of dressing up so I am getting excited with my progress so far using these tools.
I believe they will pay for themselves in a week once I upload. Still trialing in Wamp. Best outlay I have made so far.
I do not advertise my website as I do sell software and I do have principals. I may hint or maybe not.
Programming is a hobby of mine. That is why I buy CC's ware, I respect and appreciate their developers skills. Love to have a go at their code though. I bet I could get it whistling Dixie. "Old Programmers Chant"
Type to much go now
Terry
The Guy from OZ
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.