RE: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread Brian Duke
What exactly does your script end in? I think you can make up your own extension and add it as well just tell apache what to use when it sees it. I.E. AddType application/x-httpd-php .fred I can't guarantee that's true but I think you can. > -Original Message- > From: Robin Getz [mailt

RE: [PHP] Quick compile question --with-oci8

2004-12-31 Thread Brian Duke
t; Sent: Thursday, December 30, 2004 3:08 PM > To: Brian Duke > Subject: Re: [PHP] Quick compile question --with-oci8 > > Brian Duke wrote: > > >Correct me if I'm wrong but we will have to install oracle8 || 9i before > we > >can compile php --with-oci8. I don't

RE: [PHP] Quick compile question --with-oci8

2004-12-30 Thread Brian Duke
John Nichel [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 30, 2004 6:19 PM > To: php-general@lists.php.net > Subject: Re: [PHP] Quick compile question --with-oci8 > > Brian Duke wrote: > > This has been going on for about a week now. I have an oracle client > > insta

[PHP] Quick compile question --with-oci8

2004-12-30 Thread Brian Duke
This has been going on for about a week now. I have an oracle client installed. I have php4 source installed all on a stripped down fedora server. We get various errors. Like the infamous ld can find XXX in -lclntsh. Correct me if I'm wrong but we will have to install oracle8 || 9i before we can

RE: [PHP] I think this is a bug...cant use exec commands.

2004-04-02 Thread Brian Duke
Thank you all for your collective help. I was very frustrated. This list helped me find the answer quickly and once again PHP is slowly all beginning to make sense. The default values enable safe-mode and that is what Jason was trying to get me to check. Thus when the php.ini wasn't where php thoug

RE: [PHP] I think this is a bug...cant use exec commands.

2004-04-02 Thread Brian Duke
> They're different, see manual for details. The Manual is brilliant. > exec("free -b", $data ,$result_code); > print_r($data); > > Array > ( > [0] => total used free sharedbuffers > cached > [1] => Mem: 256917504 2494013447516160

RE: [PHP] I think this is a bug...cant use exec commands.

2004-04-02 Thread Brian Duke
Forgive the top-post. I tried the php -I found php was looking for the php.ini in /var/www/conf. I copied php.ini from /etc/ to /var/www/conf. Now the shell_exec works fine. Thanks Jason. If I wanted to use exec() for this project in the future, is: (shell_exec ("free -b")) = (exec("free -b",

RE: [PHP] I think this is a bug...cant use exec commands.

2004-04-02 Thread Brian Duke
a, $result); -Original Message- From: Daevid Vincent [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 12:51 AM To: 'Brian Duke'; 'Jay Blanchard'; 'William Lovaton'; [EMAIL PROTECTED] Subject: RE: [PHP] I think this is a bug...cant use exec commands. Th

RE: [PHP] I think this is a bug...cant use exec commands.

2004-04-01 Thread Brian Duke
Oops I catted the wrong file. But the file is exactly the same as mem.php. [EMAIL PROTECTED] swap]# cat mem.php -Original Message- From: Brian Duke [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 12:21 AM To: 'Jason Wong'; [EMAIL PROTECTED] Subject: RE: [PHP] I think

RE: [PHP] I think this is a bug...cant use exec commands.

2004-04-01 Thread Brian Duke
Ok here is my php.ini. directly from /etc/php.ini ; Safe Mode ; safe_mode = Off ; By default, Safe Mode does a UID compare check when ; opening files. If you want to relax this to a GID compare, ; then turn on safe_mode_gid. safe_mode_gid = Off ; When safe_mode is on, UID/GID checks are bypassed

RE: [PHP] I think this is a bug...cant use exec commands.

2004-04-01 Thread Brian Duke
I tell you the truth. I have only 1 php.ini. There are other ini files I have looked at but I have not found anything in them about safe mode. Everything has been double or triple checked. Still not able run any shell_exec commands from the command line. I need the output from free so if I use ex

[PHP] I think this is a bug...cant use exec commands.

2004-03-31 Thread Brian Duke
I can't seem to use the shell_exec() command. Here is the program: I can make this script executable via chmod 700 mem.php and run it directly via the command line. Only then I can get it to work on my redhat 9 machine. The problem is I call this script from another script to plot out t

[PHP] POST data

2002-12-03 Thread Brian Duke
Can someone tell me how I can access data from a POST? I don't mean the variables because the data I'm getting doesn't have any. I have a client that is doing a simple HTTP Post to a server and appending xml data right after the header. I need access to the xml blob. Thanks, Brian - Brian (Be sur

[PHP] RE: [PHP-INST] "VERY NEWBIE" php_* mod_* --with- question

2002-10-02 Thread Brian . Duke
Well, I'm not the best qualified to answer this question but here goes my best shot (Guru's watch me here make sure I don't screw this up). Starting with Apache. Apache does not actually process your *.php files. There is another engine that takes care of that called Zend. There are a couple lin

[PHP] Re: How can I uncompress zlib data in the browser?

2001-12-05 Thread Brian Duke
Thanks! It seems to work when I put this at the very top of my php file: ob_start("ob_gzhandler"); When I do a tcpdump on port 80, I see a small amount of garbage with that statement and huge amount of text without it. The text displays correctly in my browser either way, so it looks like it wor

[PHP] How can I uncompress zlib data in the browser?

2001-12-04 Thread Brian Duke
Is it possible to use the zlib functions in php to compress data, send that data to the browser, then uncompress it? My clients will only be using IE so is there something in IE that will do it? Javascript? Thanks, Brian - Brian (Be sure to remove the # symbol before replying to my email address

[PHP] best way to include html?

2001-04-18 Thread Duke
I'm setting up an html "shell" for my webpage that I include with my php code so I don't have to see html crap and whatnot. I'm wondering what the best way is to insert the html "shell" into my code? Should I just echo the file, should I include(), require(), include_once(), or require_once()?? On

[PHP] array() stuff

2001-04-11 Thread Duke
I'm trying to create the following array: $host_info = array( "hostname" => "localhost" "log" => "rocketbox_db.log" "username" => $username "password" => $password "database" => "rocketbox" "table" => $table ); however when

Re: [PHP] date/time in wrong zone

2001-04-08 Thread Duke
It may also be relevant that the "T" format string for the date() function also reports GMT, even though I've set my system timezone to EDT. The command "date" in FreeBSD also reports the time in EDT. -Original Message- From: Duke <[EMAIL PROTECTED]>

[PHP] date/time in wrong zone

2001-04-08 Thread Duke
I'm using php 4.0.4pl1on a FreeBSD system. When I use a php date/time function, it reports the time in GMT, however, I have the date on my FreeBSD system set to EDT. I can't figure out what the problem is here. The only thing I can think of is that when I compiled php, my system timezone was set