Pathnames in PHP scripts ?
Posted: Tue Jan 10, 2006 7:37 pm
Hi,
Please let me introduce myself first - I think it's the polite thing to do when joining a new BB. I am an ICT consultant specialized in designing and implementing Systems Management Solutions, with a strong emphasis on HP OpenView software. As such I have come across OpenVMS as a "to-be-monitored" OS, and it was (is ?) the only mainstream OS that I didn't know my way around with. So I decided to teach myself. That was halfway through 2005. Now I find myself owning 3 AS1000's, 2 AS250's and, my pride: a dual-CPU AlphaServer 1200 with 2 GB of memory and lots of disks ! Since a few weeks I have replaced my Intel box with Linux with the Alpha, running OpenVMS 8.2 on hobbyist licenses. On this server I run a few websites, my mail, and some other things. Because this migration came a few weeks earlier than I had planned due to a hardware failure on the Intel box, I now find myself having to learn *really* fast to get my "production" server up to par.
So far I have installed CSWS 2.1, PHP and MySQL and most of it is working very well in the meantime. There are however a few things that still puzzle me, and, not having found the answers via Google yet, I hope that some of you people can help me with this. Of course I can and will do my part to help you whenever I can.
Now for my first question: how should I enter paths in PHP scripts ?
My private website makes use of some PHP scripts to operate a guestbook and a weblog. For the correct functioning of these scripts, I need to enter some paths to tell the rest of the scripts where to find things. As a comparison, I noticed that in PHP.INI I can enter paths in Unix-Style, eg: /php_root/include, but that doesn't work in the scripts.
For example I need to tell the script the path to SYS$COMMON:[APACHE.HTDOCS.PRIVATE.GUESTBOOK.TEMPLATES] and paths like that.
Any ideas ?
Please let me introduce myself first - I think it's the polite thing to do when joining a new BB. I am an ICT consultant specialized in designing and implementing Systems Management Solutions, with a strong emphasis on HP OpenView software. As such I have come across OpenVMS as a "to-be-monitored" OS, and it was (is ?) the only mainstream OS that I didn't know my way around with. So I decided to teach myself. That was halfway through 2005. Now I find myself owning 3 AS1000's, 2 AS250's and, my pride: a dual-CPU AlphaServer 1200 with 2 GB of memory and lots of disks ! Since a few weeks I have replaced my Intel box with Linux with the Alpha, running OpenVMS 8.2 on hobbyist licenses. On this server I run a few websites, my mail, and some other things. Because this migration came a few weeks earlier than I had planned due to a hardware failure on the Intel box, I now find myself having to learn *really* fast to get my "production" server up to par.
So far I have installed CSWS 2.1, PHP and MySQL and most of it is working very well in the meantime. There are however a few things that still puzzle me, and, not having found the answers via Google yet, I hope that some of you people can help me with this. Of course I can and will do my part to help you whenever I can.
Now for my first question: how should I enter paths in PHP scripts ?
My private website makes use of some PHP scripts to operate a guestbook and a weblog. For the correct functioning of these scripts, I need to enter some paths to tell the rest of the scripts where to find things. As a comparison, I noticed that in PHP.INI I can enter paths in Unix-Style, eg: /php_root/include, but that doesn't work in the scripts.
For example I need to tell the script the path to SYS$COMMON:[APACHE.HTDOCS.PRIVATE.GUESTBOOK.TEMPLATES] and paths like that.
Any ideas ?