Search found 92 matches

by JasonTC
Mon Mar 15, 2010 10:40 am
Forum: PHP - Code
Topic: Magic constants not working
Replies: 2
Views: 1403

Re: Magic constants not working

That's it. Thanks!
by JasonTC
Mon Mar 15, 2010 10:16 am
Forum: PHP - Code
Topic: Magic constants not working
Replies: 2
Views: 1403

Magic constants not working

I have an interesting/frustrating situation. I have some code that works on one server but doesn't work on another server. That in itself isn't terribly shocking. It's WHAT isn't working that's deeply puzzling: Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /home/jason/ard/api_exam...
by JasonTC
Wed Oct 28, 2009 11:54 am
Forum: Linux
Topic: Advice on setting up environment
Replies: 2
Views: 4052

Re: Advice on setting up environment

I just realized that I overlooked something pretty obvious: If I just get a static IP address from my ISP, the "unreliable" part of my problem with the home server approach probably goes away, at least for the most part. Then I could register a domain name for that address to solve the &qu...
by JasonTC
Wed Oct 28, 2009 9:55 am
Forum: Linux
Topic: Advice on setting up environment
Replies: 2
Views: 4052

Advice on setting up environment

I have a question on how to set up my dev/staging/production environment. This isn't entirely a Linux-specific question, but that's what I'm using on my servers and this general question will probably lead to some more Linux-specific questions. I have the following development situation and it's bee...
by JasonTC
Thu Jun 12, 2008 5:36 pm
Forum: Installation and Configuration
Topic: phpinfo() says I have PHP 5, php -v says PHP 4
Replies: 4
Views: 9882

Re: phpinfo() says I have PHP 5, php -v says PHP 4

I just copied the file and that worked. Perhaps a symbolic link would be better.

Thanks!
by JasonTC
Wed Jun 11, 2008 10:58 pm
Forum: Installation and Configuration
Topic: phpinfo() says I have PHP 5, php -v says PHP 4
Replies: 4
Views: 9882

Re: phpinfo() says I have PHP 5, php -v says PHP 4

Thanks for the reply. Doing a "whereis php" showed me /usr/bin/php. I moved it and the php command was no longer recognized (and "whereis php" no longer returned results). I did find my PHP 5 executable in /usr/local/php5/bin/php. Running "/usr/local/php5/bin/php -v" ga...
by JasonTC
Wed Jun 11, 2008 9:53 pm
Forum: Installation and Configuration
Topic: phpinfo() says I have PHP 5, php -v says PHP 4
Replies: 4
Views: 9882

phpinfo() says I have PHP 5, php -v says PHP 4

I'm running Mac OS 10.4.11 and Apache 1.3.41, although I've read about similar problems on different OSs. When I run phpinfo(), it tells me I have PHP 5.2.4. When I do "php -v" from the command line, it tells me I have PHP 4.4.8. I want PHP 5 only. When I run phpinfo() from the command lin...
by JasonTC
Mon Apr 09, 2007 10:47 am
Forum: Installation and Configuration
Topic: PHP files not being treated as PHP
Replies: 6
Views: 2786

I'm not really a fan of apt-get when it comes down to configuring stuff... anyway, as oren already mentionned, where is the section that loads the module? and registers files with .php to application/x-httpd-php ? Actually, I don't think it exists and that's probably my problem. Oren showed a way t...
by JasonTC
Mon Apr 09, 2007 9:33 am
Forum: Installation and Configuration
Topic: PHP files not being treated as PHP
Replies: 6
Views: 2786

Initially, no configuration. Just did an apt-get install. Then I added something like this to my httpd.conf: <VirtualHost 127.0.0.1:80> ServerName askeet DocumentRoot "/home/sfprojects/askeet/web" DirectoryIndex index.php Alias /sf /usr/local/lib/php/data/symfony/web/sf <Directory "/h...
by JasonTC
Sun Apr 08, 2007 11:34 pm
Forum: Installation and Configuration
Topic: PHP files not being treated as PHP
Replies: 6
Views: 2786

PHP files not being treated as PHP

I have a fresh Debian install with PHP5 and Apache 2. When I try to view PHP pages in a browser, my browser tries to download the PHP page and asks me what type of program I would like to use to open it. I would take this to mean that the server is not parsing the PHP and outputting text like it's s...
by JasonTC
Thu Jan 11, 2007 3:28 pm
Forum: Linux
Topic: Installing PHP5 MySQL extension on Debian?
Replies: 2
Views: 1900

That did it. Thanks!
by JasonTC
Thu Jan 11, 2007 3:18 pm
Forum: Linux
Topic: Installing PHP5 MySQL extension on Debian?
Replies: 2
Views: 1900

Installing PHP5 MySQL extension on Debian?

Apparently, if I want to use MySQL with PHP5, I have to compile PHP5 with MySQL support. Does anyone know how to do this on Debian? "apt-get install php5" and then "apt-get install mysql-server" doesn't cut it. I realize that I could just re-install PHP5 from source with the prop...
by JasonTC
Wed Jan 10, 2007 12:57 pm
Forum: Linux
Topic: [resolved] PHP: using ./configure
Replies: 4
Views: 2330

You got me thinking down the right track.

Code: Select all

apt-get install php5-xsl
turned out to be the solution. Thanks.
by JasonTC
Wed Jan 10, 2007 11:33 am
Forum: Linux
Topic: [resolved] PHP: using ./configure
Replies: 4
Views: 2330

[resolved] PHP: using ./configure

I'm on Debian Linux, using PHP5. I have a certain package missing from my PHP installation and I need to reinstall with that package included. I understand that I need to do something like ./configure --with-xsl before I do my apt-get install php5 According to some site I found, I need to be in my P...
by JasonTC
Tue Jan 09, 2007 3:32 pm
Forum: Linux
Topic: Pear missing?
Replies: 1
Views: 1419

Code: Select all

apt-get install php-pear