I downloaded the lasted tar ball to my linux server. I untared it in to /home/...../www/phpwidgets I then tried my url with www......./phpwidgets/index.php3
Is the the correct way to verify that I "installed" it properly?
Where can I find some doc's on how to implement the phpwidgets?
(I saw your post under "how do I create my own widget", and was curious if any other docs existed.)
Thanks
Marius
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
To answer your question the easiest way to
verify that it is installed correctly is to
open up your browser to the index page and
start closing/moving widgets, when you
refresh the page if everything is working your
changes will be retained until you close
your browser or hit the 'logout' (which
should put the page back to the default) option.
if you get errrors - please let me know details:
what message, what versions of PHPLIB, php, httpd,
etc. You can even point me at the web server if it's a public site.
There isn't much documentation on other then
that "how do I create my own widget" post
you saw... Honestly, PHPWidgets doesn't
provide much in the way of meaty functionality
it is more or less just a simple framework
for allowing users to personalize the
layout/content on their pages. It was built
to be pretty straight forward, essientially
a widget's name is also defined as a varible
that holds the output and returns it to the template engine, which injects the value of
that variable into the the page... some of the
code looks more complicated then it has to be
because of the extent that has been gone to to try and make it very generic/reusable.
You are right, I should proably formalize the
knowledge of that post into a more detailed
document or manual.
-Ironstorm
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2001-11-14
PHPLIB: How can I verify installed and version?
php: 4
httpd: apache_1.3.20_4.0.6_2
Trying to access index.php3, location devel.phpwebhosting.com/phpwidgets/index.php3
Error: Can't find function page_open().
I think that my problem is that the server doesn't have phplib installed. Do you agree? I just started working on this server, and I don't know the history of installed packages.
Thanks,
Marius
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2001-11-14
Also, is anything else requireed for phpwidgets other than PHPLib? Also, do you have to use phplib 7.3, or will 7.2 work?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok,
Now we are rolling...
First off your PHPLIB is not correctly installed, as you sespect...
You likely don't have phplib's prepend.php3 file set as the
prepend_file in your php.ini or apache config file. (see the phplib
project for more detailed help then I can offer)
The way I handle this on my server is to add:
php_value auto_prepend_file "prepend.php3"
to my httpd.conf for the VHOST that phpwidgets
runs off of.
You also need to make sure that the phplib directory (that contains
sessions.inc and template.inc) is included in the PHP include_path...
so again I use:
php_value include_path ".:/path/to/phplib"
in my httpd.conf.
Again both of those have corresponding settings
in PHP.ini that can be set instead, all depends
on how you want to manage it.
Once you get that going you need to have DB connectivity to store
session info... Again see phplib's docs on this... If you can
get the sessions demo page included with PHPLIB working that
PHPWidgets will almost certainly run.
PHPWidgets was built against phplib 7.3 (what
ever release of phplib is in debian 2.2). The
templates.inc file was altered and is included in
the PR release (which is the only thing you need
download btw). It should work with 7.2 also if you have
that... PHPLIB's API hasn't changed AFAIK.
-Ironstorm
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2001-11-14
I'm on a shared server, with several other domains. php.ini is located in /usr/local/lib. Wouldn't that make it a server wide change, if I changed it? I haven't modified one before. I get very nervous when I get in to system areas. I know enough sys-admin to know that I need to be careful.
-Marius
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You are correct PHP.ini file settings are global... That's one of the reasons I do my config in the httpd.conf (you might also be
able to do it in the .htaccess control files
too - look in the manaual on www.PHP.net on
configuration).
Anyway, when you do it in httpd.conf the scope
of the config option only applies to the
tag you are inside of... so if I have the
following set up:
...
php_value include_path ".;/usr/share/lib/myincs"
...
<virtualhost 123.456.789.101>
ServerName Site1
php_value include_path ".;/usr/share/phplib"
DocumentRoot "/var/www2/html"
...
</virtualhost>
<virtualhost 123.456.789.102>
ServerName Site2
DocumentRoot "/var/www2/html"
...
</virtualhost>
...
I would expect Site1 to have my custome PHPLIB
include_path (I know this works) and Site2 to
have the global include path defined at the top...
If there is no global default then the defaults
come out of the PHP.ini file (I run with no
global default and this is what I see happen
by looking at phpinfo [local value vs. master
value] ).
You may be able to do the same thing with
<Directory> tags, I don't know I haven't tried.
-Ironstorm
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ironstorm,
I downloaded the lasted tar ball to my linux server. I untared it in to /home/...../www/phpwidgets I then tried my url with www......./phpwidgets/index.php3
Is the the correct way to verify that I "installed" it properly?
Where can I find some doc's on how to implement the phpwidgets?
(I saw your post under "how do I create my own widget", and was curious if any other docs existed.)
Thanks
Marius
Hi Marius,
To answer your question the easiest way to
verify that it is installed correctly is to
open up your browser to the index page and
start closing/moving widgets, when you
refresh the page if everything is working your
changes will be retained until you close
your browser or hit the 'logout' (which
should put the page back to the default) option.
if you get errrors - please let me know details:
what message, what versions of PHPLIB, php, httpd,
etc. You can even point me at the web server if it's a public site.
There isn't much documentation on other then
that "how do I create my own widget" post
you saw... Honestly, PHPWidgets doesn't
provide much in the way of meaty functionality
it is more or less just a simple framework
for allowing users to personalize the
layout/content on their pages. It was built
to be pretty straight forward, essientially
a widget's name is also defined as a varible
that holds the output and returns it to the template engine, which injects the value of
that variable into the the page... some of the
code looks more complicated then it has to be
because of the extent that has been gone to to try and make it very generic/reusable.
You are right, I should proably formalize the
knowledge of that post into a more detailed
document or manual.
-Ironstorm
PHPLIB: How can I verify installed and version?
php: 4
httpd: apache_1.3.20_4.0.6_2
Trying to access index.php3, location devel.phpwebhosting.com/phpwidgets/index.php3
Error: Can't find function page_open().
I think that my problem is that the server doesn't have phplib installed. Do you agree? I just started working on this server, and I don't know the history of installed packages.
Thanks,
Marius
Also, is anything else requireed for phpwidgets other than PHPLib? Also, do you have to use phplib 7.3, or will 7.2 work?
Ok,
Now we are rolling...
First off your PHPLIB is not correctly installed, as you sespect...
You likely don't have phplib's prepend.php3 file set as the
prepend_file in your php.ini or apache config file. (see the phplib
project for more detailed help then I can offer)
The way I handle this on my server is to add:
php_value auto_prepend_file "prepend.php3"
to my httpd.conf for the VHOST that phpwidgets
runs off of.
You also need to make sure that the phplib directory (that contains
sessions.inc and template.inc) is included in the PHP include_path...
so again I use:
php_value include_path ".:/path/to/phplib"
in my httpd.conf.
Again both of those have corresponding settings
in PHP.ini that can be set instead, all depends
on how you want to manage it.
Once you get that going you need to have DB connectivity to store
session info... Again see phplib's docs on this... If you can
get the sessions demo page included with PHPLIB working that
PHPWidgets will almost certainly run.
PHPWidgets was built against phplib 7.3 (what
ever release of phplib is in debian 2.2). The
templates.inc file was altered and is included in
the PR release (which is the only thing you need
download btw). It should work with 7.2 also if you have
that... PHPLIB's API hasn't changed AFAIK.
-Ironstorm
I'm on a shared server, with several other domains. php.ini is located in /usr/local/lib. Wouldn't that make it a server wide change, if I changed it? I haven't modified one before. I get very nervous when I get in to system areas. I know enough sys-admin to know that I need to be careful.
-Marius
You are correct PHP.ini file settings are global... That's one of the reasons I do my config in the httpd.conf (you might also be
able to do it in the .htaccess control files
too - look in the manaual on www.PHP.net on
configuration).
Anyway, when you do it in httpd.conf the scope
of the config option only applies to the
tag you are inside of... so if I have the
following set up:
...
php_value include_path ".;/usr/share/lib/myincs"
...
<virtualhost 123.456.789.101>
ServerName Site1
php_value include_path ".;/usr/share/phplib"
DocumentRoot "/var/www2/html"
...
</virtualhost>
<virtualhost 123.456.789.102>
ServerName Site2
DocumentRoot "/var/www2/html"
...
</virtualhost>
...
I would expect Site1 to have my custome PHPLIB
include_path (I know this works) and Site2 to
have the global include path defined at the top...
If there is no global default then the defaults
come out of the PHP.ini file (I run with no
global default and this is what I see happen
by looking at phpinfo [local value vs. master
value] ).
You may be able to do the same thing with
<Directory> tags, I don't know I haven't tried.
-Ironstorm
If you can't accesss php.ini, you can revise the include comand and provide the whole path to the include files! Trace the error msg and it works!
Hi folks!
Would your gays think have a install and usage document inside the tar-ball is a execellent ideal
?