From: TAO R. <ron...@ho...> - 2001-05-23 12:14:00
Attachments:
binarycloud.php
|
>if anyone has any problems, let me know. there is a bug in binarycloud.php with Win32, and I have attacted the patched version. Ronald TAO ron...@ho... _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. |
From: TAO R. <ron...@ho...> - 2001-05-23 12:26:42
|
>What would happen if you wanted a central install of BC to run more >than >one site? How would you tell it which binarycloud.php to include? if your binarycloud.php is not located in a public accessible dir, it should be no problem > >Also, is there any other permissible way of doing this - I could set >up r1 >on free web hosts because I could use an .htaccess, but I don't >think the >above is supported, at least not with safe_mode enabled :-( I have no problem with safe_mode enabled. Ronald TAO ron...@ho... _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. |
From: Faine, M. <Mar...@ms...> - 2001-05-23 12:54:56
|
There seems to be a problem getting it to install on iPlanet. I think the problem is with the code: $pieces = explode('/', $HTTP_SERVER_VARS[DOCUMENT_ROOT]); There is no $HTTP_SERVER_VARS[DOCUMENT_ROOT] or at least I can't find it. There still is doc_root from the php.ini, could I use that instead, if so how would I refer to it. -Mark -----Original Message----- From: Alex Black [mailto:en...@tu...] Sent: Tuesday, May 22, 2001 5:27 PM To: binarycloud-dev Subject: [binarycloud-dev] functioning download available http://www.binarycloud.com/download/ under "binarycloud r2 pre-release downloads" the "binarycloud r2 shell" link gets you a tarball. note that you can see a functioning version at: http://www.binarycloud.com:8000/ seems to be averaging about 2/thousanths of a second on that machine, my dev machine is consistently coming in at ~.013 seconds :) once you have untarred that file, you'll have a directory: r2 if you copy: r2/binarycloud.php to your php include path and r2/binarycloud to one level above htdocs and r2/htdocs/* to somewhere (anywhere) in your server's document root, you should have a functional install that renders pages. if anyone has any problems, let me know. btw, the above should be about as complex as installation gets for r2 :) _alex -- alex black, ceo en...@tu... the turing studio, inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 _______________________________________________ binarycloud-dev mailing list bin...@li... http://lists.sourceforge.net/lists/listinfo/binarycloud-dev |
From: alex b. <en...@tu...> - 2001-05-23 16:33:45
|
hi mark, try this: in binarycloud.php, just hardcode the path for the moment (i.e. delete all the code except "define(BC_PATH..." and just set the path. that will get your install functional.. then, go to /path/to/bc/htdocs/index.php at the bottom of that page, there's a bunch of commented out lines: //$Debug->Output("globals"); is the one you want to un-comment. that will give you a print_r of your globals... can you copy that, and send it to me? (you may want to clean parts of it that contain IPs etc) that way I can see what the iPlanet env looks like. thanks, _alex ----- Original Message ----- From: "Faine, Mark" <Mar...@ms...> To: <bin...@li...> Sent: Wednesday, May 23, 2001 5:54 AM Subject: RE: [binarycloud-dev] functioning download available > There seems to be a problem getting it to install on iPlanet. I think the > problem is with the code: > $pieces = explode('/', $HTTP_SERVER_VARS[DOCUMENT_ROOT]); > > There is no $HTTP_SERVER_VARS[DOCUMENT_ROOT] or at least I can't find it. > There still is doc_root from the php.ini, could I use that instead, if so > how would I refer to it. > > -Mark > > -----Original Message----- > From: Alex Black [mailto:en...@tu...] > Sent: Tuesday, May 22, 2001 5:27 PM > To: binarycloud-dev > Subject: [binarycloud-dev] functioning download available > > > http://www.binarycloud.com/download/ > > under "binarycloud r2 pre-release downloads" > > the "binarycloud r2 shell" link gets you a tarball. > > note that you can see a functioning version at: > http://www.binarycloud.com:8000/ > seems to be averaging about 2/thousanths of a second on that machine, my dev > machine is consistently coming in at ~.013 seconds :) > > once you have untarred that file, you'll have a directory: r2 > if you copy: > > r2/binarycloud.php to your php include path > and > r2/binarycloud to one level above htdocs > and > r2/htdocs/* to somewhere (anywhere) in your server's document root, > > you should have a functional install that renders pages. > > if anyone has any problems, let me know. > > btw, the above should be about as complex as installation gets for r2 :) > > _alex > > > > -- > alex black, ceo > en...@tu... > > the turing studio, inc. > http://www.turingstudio.com > > vox+510.666.0074 > fax+510.666.0093 > > > > _______________________________________________ > binarycloud-dev mailing list > bin...@li... > http://lists.sourceforge.net/lists/listinfo/binarycloud-dev > > _______________________________________________ > binarycloud-dev mailing list > bin...@li... > http://lists.sourceforge.net/lists/listinfo/binarycloud-dev > |
From: Faine, M. <Mar...@ms...> - 2001-05-23 16:58:36
|
in binarycloud.php, just hardcode the path for the moment (i.e. delete all the code except "define(BC_PATH..." and just set the path. exactly what I did, should be ok for now. then, go to /path/to/bc/htdocs/index.php at the bottom of that page, there's a bunch of commented out lines: //$Debug->Output("globals"); is the one you want to un-comment. that will give you a print_r of your globals... Here they are: Debug called with: 'globals' = GLOBALS Array ========================================================================== Array ( [QUERY_STRING] => [REQUEST_LINE] => GET /bc/index.php HTTP/1.1 [REQUEST_METHOD] => GET [SCRIPT_NAME] => /bc/index.php [SCRIPT_PROTOCOL] => HTTP/1.1 [CONTENT_LENGTH] => [CONTENT_TYPE] => [HTTP_ACCEPT] => */* [HTTP_ACCEPT_ENCODING] => gzip, deflate [HTTP_ACCEPT_LANGUAGE] => en-us [HTTP_AUTHORIZATION] => [HTTP_COOKIE] => [HTTP_IF_MODIFIED_SINCE] => [HTTP_REFERER] => [HTTP_USER_AGENT] => Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) [HTTP_USER_DEFINED] => [AUTH_TYPE] => [PATH_INFO] => [REMOTE_USER] => [HTTPS_KEYSIZE] => [HTTPS_SECRETSIZE] => [REMOTE_ADDR] => IP was here [PHP_SELF] => /bc/index.php [HTTP_POST_VARS] => Array ( ) [HTTP_GET_VARS] => Array ( ) [HTTP_COOKIE_VARS] => Array ( ) [HTTP_SERVER_VARS] => Array ( [QUERY_STRING] => [REQUEST_LINE] => GET /bc/index.php HTTP/1.1 [REQUEST_METHOD] => GET [SCRIPT_NAME] => /bc/index.php [SCRIPT_PROTOCOL] => HTTP/1.1 [CONTENT_LENGTH] => [CONTENT_TYPE] => [HTTP_ACCEPT] => */* [HTTP_ACCEPT_ENCODING] => gzip, deflate [HTTP_ACCEPT_LANGUAGE] => en-us [HTTP_AUTHORIZATION] => [HTTP_COOKIE] => [HTTP_IF_MODIFIED_SINCE] => [HTTP_REFERER] => [HTTP_USER_AGENT] => Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) [HTTP_USER_DEFINED] => [AUTH_TYPE] => [PATH_INFO] => [REMOTE_USER] => [HTTPS_KEYSIZE] => [HTTPS_SECRETSIZE] => [REMOTE_ADDR] => IP was here [PHP_SELF] => /bc/index.php ) [HTTP_ENV_VARS] => Array ( ) [HTTP_POST_FILES] => Array ( ) [SERVER_PORT] => 2500 [HTTPS] => OFF [SERVER_NAME] => starbase [REMOTE_HOST] => [SERVER_URL] => http://starbase:2500 [PATH_TRANSLATED] => /raidb4/iPlanet/server/docs/bc/index.php There were more but didn't seem important let me know if I left anything you needed out. I'm also getting JS errors and missing images, are there any other paths or switches that need setting? Also, this: Unable to call _pear_call_destructors() - function does not exist in Unknown on line 0 but I'm guessing you know about this one already. -Mark |
From: Alex B. <en...@tu...> - 2001-05-23 18:16:11
|
> exactly what I did, should be ok for now. ah, good. > [PATH_TRANSLATED] => /raidb4/iPlanet/server/docs/bc/index.php agh! not quite :) I don't see any Docroot or anything similar. What I'll do with the "distro" version of r2 is include the current code in binarycloud.php, but commented out. The only code in the distro will be define("BC_PATH","/blah/blah/blah/binarycloud/"); > I'm also getting JS errors and missing images, are there any other paths or > switches that need setting? cd /raidb4/iPlanet/server/docs/bc/ cp -R resources ../ reload > Also, this: Unable to call _pear_call_destructors() - function does not > exist in Unknown on line 0 Yes, after looking quite carefully at PEAR_Error, I am sad to say that it isn't beefy enough. So, we'e going to do an error class as well. Snarf! > but I'm guessing you know about this one already. yep. _alex -- alex black, ceo en...@tu... the turing studio, inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 |
From: Spiggy T. <th...@me...> - 2001-05-25 03:00:24
|
okie. i get a blank page with absolutely nothing in it. not even in the source of the page.. i have tried the page with all the browsers i have installed (win2k/linux) my setup is php4.0.5, mysql 3.23.37, redhat 7.1. i have lots of virtualhosts and php/ mysql works. i took the virtualhost config from binarycloud.com and pasted it to httpd.conf (only changed the paths). i have tried to change the paths again (in defined_constants) just to test and that does produce an error so i am assuming bc is finding everything correctly. have i missed something obvious? paivi ----- Original Message ----- From: "Alex Black" <en...@tu...> To: "binarycloud-dev" <bin...@li...> Sent: Wednesday, May 23, 2001 2:15 PM Subject: Re: [binarycloud-dev] functioning download available > > exactly what I did, should be ok for now. > > ah, good. > > > [PATH_TRANSLATED] => /raidb4/iPlanet/server/docs/bc/index.php > > agh! not quite :) > > I don't see any Docroot or anything similar. > > What I'll do with the "distro" version of r2 is include the current code in > binarycloud.php, but commented out. > > The only code in the distro will be > > define("BC_PATH","/blah/blah/blah/binarycloud/"); > > > > I'm also getting JS errors and missing images, are there any other paths or > > switches that need setting? > > cd /raidb4/iPlanet/server/docs/bc/ > cp -R resources ../ > > reload > > > Also, this: Unable to call _pear_call_destructors() - function does not > > exist in Unknown on line 0 > > Yes, after looking quite carefully at PEAR_Error, I am sad to say that it > isn't beefy enough. > > So, we'e going to do an error class as well. Snarf! > > > but I'm guessing you know about this one already. > yep. > > _alex > > > > -- > alex black, ceo > en...@tu... > > the turing studio, inc. > http://www.turingstudio.com > > vox+510.666.0074 > fax+510.666.0093 > > > > _______________________________________________ > binarycloud-dev mailing list > bin...@li... > http://lists.sourceforge.net/lists/listinfo/binarycloud-dev > > |
From: alex b. <en...@tu...> - 2001-05-25 06:07:43
|
this is almost certainly a session problem. try commenting out start_session() in htdocs/index.php, and see what happens. ----- Original Message ----- From: "Spiggy TheCat" <th...@me...> To: <bin...@li...> Sent: Thursday, May 24, 2001 8:06 PM Subject: [binarycloud-dev] blank page with binarycloud r1 > okie. i get a blank page with absolutely nothing in it. not even in the > source of the page.. i have tried the page with all the browsers i have > installed (win2k/linux) > > my setup is php4.0.5, mysql 3.23.37, redhat 7.1. i have lots of virtualhosts > and php/ mysql works. i took the virtualhost config from binarycloud.com and > pasted it to httpd.conf (only changed the paths). i have tried to change the > paths again (in defined_constants) just to test and that does produce an > error so i am assuming bc is finding everything correctly. > > have i missed something obvious? > > paivi > > ----- Original Message ----- > From: "Alex Black" <en...@tu...> > To: "binarycloud-dev" <bin...@li...> > Sent: Wednesday, May 23, 2001 2:15 PM > Subject: Re: [binarycloud-dev] functioning download available > > > > > exactly what I did, should be ok for now. > > > > ah, good. > > > > > [PATH_TRANSLATED] => /raidb4/iPlanet/server/docs/bc/index.php > > > > agh! not quite :) > > > > I don't see any Docroot or anything similar. > > > > What I'll do with the "distro" version of r2 is include the current code > in > > binarycloud.php, but commented out. > > > > The only code in the distro will be > > > > define("BC_PATH","/blah/blah/blah/binarycloud/"); > > > > > > > I'm also getting JS errors and missing images, are there any other paths > or > > > switches that need setting? > > > > cd /raidb4/iPlanet/server/docs/bc/ > > cp -R resources ../ > > > > reload > > > > > Also, this: Unable to call _pear_call_destructors() - function does not > > > exist in Unknown on line 0 > > > > Yes, after looking quite carefully at PEAR_Error, I am sad to say that it > > isn't beefy enough. > > > > So, we'e going to do an error class as well. Snarf! > > > > > but I'm guessing you know about this one already. > > yep. > > > > _alex > > > > > > > > -- > > alex black, ceo > > en...@tu... > > > > the turing studio, inc. > > http://www.turingstudio.com > > > > vox+510.666.0074 > > fax+510.666.0093 > > > > > > > > _______________________________________________ > > binarycloud-dev mailing list > > bin...@li... > > http://lists.sourceforge.net/lists/listinfo/binarycloud-dev > > > > > > > _______________________________________________ > binarycloud-dev mailing list > bin...@li... > http://lists.sourceforge.net/lists/listinfo/binarycloud-dev > |
From: Spiggy T. <th...@me...> - 2001-05-25 11:47:06
|
> this is almost certainly a session problem. > > try commenting out start_session() > in htdocs/index.php, and see what happens. > nope. that was not it. still a blank page. my apache is ver 1.3.19 btw if it makes any difference. does binarycloud work with apache 2.0? my box is in an internal network so i dont have security issues to be concerned about. so i might try the new beta while im at it :) paivi > ----- Original Message ----- > From: "Spiggy TheCat" <th...@me...> > To: <bin...@li...> > Sent: Thursday, May 24, 2001 8:06 PM > Subject: [binarycloud-dev] blank page with binarycloud r1 > > > > okie. i get a blank page with absolutely nothing in it. not even in the > > source of the page.. i have tried the page with all the browsers i have > > installed (win2k/linux) > > > > my setup is php4.0.5, mysql 3.23.37, redhat 7.1. i have lots of > virtualhosts > > and php/ mysql works. i took the virtualhost config from binarycloud.com > and > > pasted it to httpd.conf (only changed the paths). i have tried to change > the > > paths again (in defined_constants) just to test and that does produce an > > error so i am assuming bc is finding everything correctly. > > > > have i missed something obvious? > > > > paivi |
From: Alex B. <en...@tu...> - 2001-05-25 17:47:57
|
> >> this is almost certainly a session problem. >> >> try commenting out start_session() >> in htdocs/index.php, and see what happens. >> > nope. that was not it. still a blank page. my apache is ver 1.3.19 btw if it > makes any difference. > > does binarycloud work with apache 2.0? my box is in an internal network so i > dont have security issues to be concerned about. so i might try the new beta > while im at it :) I have not tested with 2.0. Probably. on to your issue. what does the url look like in your browser? try editing binarycloud/user/conf/prepend.inc find this line: check_permissions($perms_group); and comment it out. see what happens then. _a -- alex black, ceo en...@tu... the turing studio, inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 |
From: Spiggy T. <th...@me...> - 2001-05-26 00:51:27
|
> what does the url look like in your browser? > try editing binarycloud/user/conf/prepend.inc > > find this line: > check_permissions($perms_group); woohoo! i have something: the banner image, menu (no links) and Fatal error: Call to undefined function: get_directory_names_array() in /include/binarycloud/core/lib/bread_crumbs_and_tabs.lib on line 78 err.. alex, im assuming you know what this means :)? |
From: Alex B. <en...@tu...> - 2001-05-26 01:05:43
|
>> what does the url look like in your browser? >> try editing binarycloud/user/conf/prepend.inc >> >> find this line: >> check_permissions($perms_group); > > woohoo! i have something: the banner image, menu (no links) and > > Fatal error: Call to undefined function: get_directory_names_array() in > /include/binarycloud/core/lib/bread_crumbs_and_tabs.lib on line 78 > > err.. alex, im assuming you know what this means :)? yes. that function: get_directory_names_array() is contained in the file whose line you commented out :) --- but the important question is, what are you getting the blank page? so: -do you have binarycloud somewhere strange (like /docroot/foo/index.php) in your tree? -have you noticed that you are actually getting an infinite loop, and your url is something like: http://example/place/index.php?rd=/index.php&rd=index.php etc? give me as much info as you can. _a -- alex black, ceo en...@tu... the turing studio, inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 |
From: Spiggy T. <th...@me...> - 2001-05-26 02:00:20
|
'htdocs' for bc is located at /web/bc/, binarycloud is at /include/binarycloud/. i get what i get when i go to http://binarycloud/, same when i add index.php, no loops as far as i can see... thats pretty much all i can think about. virtualhost is straight from your site (with paths changed), except that i use the local ip address for the virtualhost. apache is running as nobody.nobody and the files are owned by the server. ----- Original Message ----- From: "Alex Black" <en...@tu...> To: "binarycloud-dev" <bin...@li...> Sent: Friday, May 25, 2001 9:05 PM Subject: Re: [binarycloud-dev] blank page with binarycloud r1 > >> what does the url look like in your browser? > >> try editing binarycloud/user/conf/prepend.inc > >> > >> find this line: > >> check_permissions($perms_group); > > > > woohoo! i have something: the banner image, menu (no links) and > > > > Fatal error: Call to undefined function: get_directory_names_array() in > > /include/binarycloud/core/lib/bread_crumbs_and_tabs.lib on line 78 > > > > err.. alex, im assuming you know what this means :)? > > yes. that function: > get_directory_names_array() > is contained in the file whose line you commented out :) > > --- > > but the important question is, what are you getting the blank page? > so: > -do you have binarycloud somewhere strange (like /docroot/foo/index.php) > in your tree? > -have you noticed that you are actually getting an infinite loop, and > your url is something like: > http://example/place/index.php?rd=/index.php&rd=index.php etc? > > give me as much info as you can. > > _a > > > > > > -- > alex black, ceo > en...@tu... > > the turing studio, inc. > http://www.turingstudio.com > > vox+510.666.0074 > fax+510.666.0093 > > > > _______________________________________________ > binarycloud-dev mailing list > bin...@li... > http://lists.sourceforge.net/lists/listinfo/binarycloud-dev > > |
From: alex b. <en...@tu...> - 2001-05-26 02:11:53
|
> 'htdocs' for bc is located at /web/bc/, binarycloud is at > /include/binarycloud/. i get what i get when i go to http://binarycloud/, > same when i add index.php, no loops as far as i can see... thats pretty much > all i can think about. Ah, so you are running a virtualhost, cool. Do you have any special directives in the vhost? what about a .htaccess in a higher-level directory? are you using your own php.ini or the binarycluod distro php.ini? > virtualhost is straight from your site (with paths changed), except that i > use the local ip address for the virtualhost. apache is running as > nobody.nobody and the files are owned by the server. hmm, that sounds right... _a |
From: Spiggy T. <th...@me...> - 2001-05-26 02:33:59
|
> Ah, so you are running a virtualhost, cool. > Do you have any special directives in the vhost? > what about a .htaccess in a higher-level directory? i havent created a single .htaccess file anywhere. httpd.conf is basic except for the virtualhosts. are there any apache modules that should be avoided? or that prevent bc from working correctly? > are you using your own php.ini or the binarycluod distro php.ini? i had my own but i tried the distro version too. i had to change mm to files (session_save_path). but this should not make any difference as far as i can see. all the directives in the virtualhost definitions do not have to be duplicated in php.ini.. right? still a blank page. |
From: Alex B. <en...@tu...> - 2001-05-26 20:41:49
|
>> Ah, so you are running a virtualhost, cool. >> Do you have any special directives in the vhost? >> what about a .htaccess in a higher-level directory? > > i havent created a single .htaccess file anywhere. httpd.conf is basic > except for the virtualhosts. are there any apache modules that should be > avoided? or that prevent bc from working correctly? > >> are you using your own php.ini or the binarycluod distro php.ini? > > i had my own but i tried the distro version too. i had to change mm to files > (session_save_path). but this should not make any difference as far as i can > see. > > all the directives in the virtualhost definitions do not have to be > duplicated in php.ini.. right? > > still a blank page. ag! you're doing everything right :) hmm... double check: php_value allow_call_time_pass_by_reference 1 use the distro php.ini (with your modification mm->files) comment out session_start() in /path/to/htdocs/index.php ... _a -- alex black, ceo en...@tu... the turing studio, inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 |
From: W.D.Sumilang <wa...@on...> - 2001-05-23 21:58:09
|
Hello: All's tested well on win95/apache1.3.12/php4.0.4pl1 with TAO's patch... anxiously awaiting future releases! can't wait to start coding some modules. Thanx Alex... cheers, W.D. __________________________________________________ FREE voicemail, email, and fax...all in one place. Sign Up Now! http://www.onebox.com |
From: Alex B. <en...@tu...> - 2001-05-23 22:40:00
|
> Hello: > All's tested well on win95/apache1.3.12/php4.0.4pl1 with TAO's patch... > anxiously awaiting future releases! can't wait to start coding some modules. good good. actually, this win32 stuff beings up an interesting point.... later on you'll start to see some fairly "deep" integration of the whole process with makefiles, and those makefiles will be php, intended for use from a command line. does anyone have any experience using php scripts from a dos command line? I'm sure its possible, but it's probably a little strange. and along those lines, a number of the tools we have and will provide are quite *nix specific (shell scripts, etc). what are people's thoughts on this? _alex -- alex black, ceo en...@tu... the turing studio, inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 |
From: Spiggy T. <th...@me...> - 2001-05-24 00:51:21
|
this is slightly off topic... but my boss and i disagree on the "preferred" coding style. he is an asp-guy and i am for php so maybe that makes adifference.. ill let you decide since i am hardly the expert: we have an asp application in use at work.. it uses a lot of document.write"<table><tr><td>some data here</td></tr></table>" type of coding, which works like the php echo (as far as i can understand). i dont like this style at all, it makes the code hard to read.. (plus playing with the quotes is a serious pain in the rear end). then in the code there is a part where the programmer actually did it "my way" which means close code tags and do html as plain html and open code tags when theres code to spit out. my boss says this is bad and slows it down. so which way is faster? i know echoing html is considered bad coding style (at least with php) paivi |
From: alex b. <en...@tu...> - 2001-05-24 03:25:36
|
dude, good nick. onwards.. > this is slightly off topic... but my boss and i disagree on the "preferred" > coding style. he is an asp-guy and i am for php so maybe that makes > adifference.. ill let you decide since i am hardly the expert: I will refrain from the, uh, comparison (for the moment) > we have an asp application in use at work.. it uses a lot of > document.write"<table><tr><td>some data here</td></tr></table>" type of > coding, which works like the php echo (as far as i can understand). i dont AGH! > like this style at all, it makes the code hard to read.. (plus playing with > the quotes is a serious pain in the rear end). then in the code there is a > part where the programmer actually did it "my way" which means close code > tags and do html as plain html and open code tags when theres code to spit > out. my boss says this is bad and slows it down. > so which way is faster? i know echoing html is considered bad coding style > (at least with php) There's probably, oh, _maybe_ 0.0001 seconds difference in a fairly large application between closing tags and "echo". One of the reasons echo is _specifically_ mentioned in the binarycloud code standards is because it effectively makes the code useless. Why? well, if I want to integrate your code with all your echos into my site, but I want to _change_ the look of your application, I am now screwed. If you had separate template files, I could just make new copies of those and be on my merry way. The reason I am so rabidly in favor of xslt is because it is a fully xml compliant way of cleanly abstracting presentation from logic. This is a huge boon to any project for a number of reasons, not least of which that the code is maintainable, and you can make multiple stylesheets for the same collection of data. And your code starts to be elegant. You start to enjoy it... wheeee so, your boss is wrong :) the best thing you can do is generate xml from your application and run it through xsl, but if you're not willing to do that at least separate your markup from your logic. _alex |
From: Curtis C. <c_c...@ya...> - 2001-05-24 04:06:23
|
I concur with regard to the echo statements in the code. I wrote a small database application in PHP with a lot of if-then statements, and echo, print statements. If I want to change the way each form of the application looks, I have to go into the code and change all the echo/print statements. I am currently working on a OOP version of the same system and I am going to try to have it dump the data into XML and use XLST to transform it, but I'll be swimming below water for a couple of weeks before I figure it out. Anyways, echo statements pretty much ruin web gui code, as far as I'm concerned. Thanks, Curtis. __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ |
From: alex b. <en...@tu...> - 2001-05-24 04:35:59
|
> I concur with regard to the echo statements in the > code. I wrote a small database application in PHP with > a lot of if-then statements, and echo, print > statements. If I want to change the way each form of > the application looks, I have to go into the code and > change all the echo/print statements. And that's the rub. > I am currently working on a OOP version of the same > system and I am going to try to have it dump the data > into XML and use XLST to transform it, but I'll be > swimming below water for a couple of weeks before I > figure it out. You're welcome to use that "example" xsl/xml I posted, I've tested it and it works quite well. Part of r2 will be a complete xslt library of form elements and basic form+list templates. Also, if you have any problems with xslt/etc post 'em here and I'm glad to answer what I can. > Anyways, echo statements pretty much ruin web gui > code, as far as I'm concerned. well said. _a |
From: Curtis C. <c_c...@ya...> - 2001-05-24 06:11:25
|
> You're welcome to use that "example" xsl/xml I > posted, I've tested it and it > works quite well. > Part of r2 will be a complete xslt library of form > elements and basic > form+list templates. I will definitely be using binarycloud as code and as examples. Thanks for the help. Curtis. __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ |
From: Peter B. <re...@f2...> - 2001-05-24 07:45:05
|
At 08:57 PM 5/23/01 -0400, you wrote: >we have an asp application in use at work.. it uses a lot of >document.write"<table><tr><td>some data here</td></tr></table>" type of >coding, which works like the php echo (as far as i can understand). i dont >like this style at all, it makes the code hard to read.. (plus playing with >the quotes is a serious pain in the rear end). then in the code there is a >part where the programmer actually did it "my way" which means close code >tags and do html as plain html and open code tags when theres code to spit >out. my boss says this is bad and slows it down. Well according to the article at http://www.newbienetwork.net/sections.php?op=viewarticle&artid=15 tests have shown inline HTML to be twice as fast as using echo(). No results given to back it up though... Peter. -oOo- Maple Design - web design, hosting, domain names http://www.mapledesign.co.uk -oOo- |
From: Monte O. <mo...@is...> - 2001-05-24 13:28:03
|
I asked Andrei here (PHP core developer) about this speed issue. He seems to think that echo should be marginally faster than breaking in and out of the HTML inline. He thinks this example is too short for a fair speed test (probably some state switching setup on the first time that won't happen on subsequent switches?), an atypical scenario. This is an extremely marginal difference, hardly a concern. Peter Bowyer wrote: > > At 08:57 PM 5/23/01 -0400, you wrote: > >we have an asp application in use at work.. it uses a lot of > >document.write"<table><tr><td>some data here</td></tr></table>" type of > >coding, which works like the php echo (as far as i can understand). i dont > >like this style at all, it makes the code hard to read.. (plus playing with > >the quotes is a serious pain in the rear end). then in the code there is a > >part where the programmer actually did it "my way" which means close code > >tags and do html as plain html and open code tags when theres code to spit > >out. my boss says this is bad and slows it down. > > Well according to the article at > http://www.newbienetwork.net/sections.php?op=viewarticle&artid=15 tests > have shown inline HTML to be twice as fast as using echo(). No results > given to back it up though... > > Peter. > > -oOo- > Maple Design - web design, hosting, domain names > http://www.mapledesign.co.uk > -oOo- > > _______________________________________________ > binarycloud-dev mailing list > bin...@li... > http://lists.sourceforge.net/lists/listinfo/binarycloud-dev -- Monte Ohrt <mo...@is...> http://www.ispi.net/ |