RE: [PHP] include_files message question

2003-01-14 Thread Jesse Cablek
Allen Byington mailto:[EMAIL PROTECTED] scribbled;

[snip]
 
 *** Error Begins ***
 Fatal error: Failed opening required 'includes/config.inc.php'
 (include_path='/usr/local/lib/php') in
 /opt/apache/htdocs/admin/includes/auth.inc.php on line 24
 *** Error Ends ***
 

You don't seem to have . in your include_path, add it in your php.ini:
include_path = /usr/local/lib/php:.

-jesse


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] portabily including files

2003-01-14 Thread Jesse Cablek
Tyler BIRD mailto:[EMAIL PROTECTED] scribbled;

 I'm trying to include
 'http://www.myserver.com/conted/me.inc';
 portably on several mirrored servers like include
 '/conted/me.inc'
 , I was wondering if there was someway I could include
 files and have the implicity connect
 and down the load me.inc from the local server whatever server it
 happens to be on. 
 
[snip]
 
 for example
 on web2 box
 include 'conted/me.inc'; works fine
 

This example should work on both, as it is a relative path.

Unless you mean you want all the mirrored servers to read off your ONE URL,
then you can include that whole URL (but I think that would defeat the
purpose of mirroring if they all read off main site)


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Does PHP's imap_utf7_en/decode compatible with Microsoft Outlook Express?

2003-01-13 Thread Jesse Cablek
Hunte Swee [mailto:[EMAIL PROTECTED]] scribbled;

 Hi all,
 
 It seems true that php's imap_utf7_en/decode does not compatible with
 microsoft outlook express. We create imap folder(include chinese
 chars) using IMP, all it ok in IMP problem, but when use OE
 to connect to imap server, the folder can't be shown correctly. And
 vice versa.
 
 So my problem is what is wrong? PHP or Outlook Express?
 

I'd say Outlook Express (untested of course).
The reason:
I once helped a guy that could not send an email to one specific person, it
was because of a Garman character in the persons name in his address book.
Try creating an english IMAP folder and see if OE can read that?

-jesse


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] version confusion - please help

2003-01-11 Thread Jesse Cablek
Christian Stalberg mailto:[EMAIL PROTECTED] scribbled;

 what does debug_phpinfo.php read to get its information?
 

Not sure.

 When I run debug_phpinfo.php in my browser it says version 4.2.3
 

Assuming a UNIX box running Apache, and assuming this is a PHP module,
sounds right.

 But when I execute php -v at the command line I get 4.0.4pl1

Assuming the above would cause me to believe this is a separate CLI
compilation, which CLI PHP probably wasn't rebuilt when 4.2.3 was installed.

mod_php != CLI PHP, they can be completely different versions.

Too many assumptions, best give more information about the setup.

-jesse


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Re: 4.0.2 = 4.2.3, form vars are empty?

2002-09-27 Thread Jesse Cablek

Erwin mailto:[EMAIL PROTECTED] scribbled;
 
 Qmail List wrote:
 Hello List,
 
 I'm putting a php app that has been off-line for about 18 months back
 on-line. During my absence from php I had heard about some security
 issues, so figured I'd try the latest 4.2.3 release.
 
 Sessions and the DB are fine, but GET/POST vars are continually
 empty. I mean a form submission from .html to .php (about the
 simplest thing possible) the variables are not getting populated with
 their form values.
 
 Turn register_globals = On in the php.ini file...
 
 HTH
 Erwin

Or better yet, actually use the new $_GET[] and $_POST[] and leave that
option off.

-jesse


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] HELP: Carriage returns don't display in HTML

2002-09-27 Thread Jesse Cablek

Shane mailto:[EMAIL PROTECTED] scribbled;

 There is a JavaScript function that will convert carriage
 return to BR tags, but is there a PHP function that will
 add BR or P tags to a text form field in place of the
 carriage returns a user might add.
 

nl2br()

-jesse


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] REMOTE ADDR

2002-09-26 Thread Jesse Cablek

Anderson O Muniz mailto:[EMAIL PROTECTED] scribbled;
 
 !--#if expr=(${REMOTE_ADDR} = /^192\.168\./) ||
   (${REMOTE_ADDR} = /^10\.206\./) ||
   (${REMOTE_ADDR} = /^10\.2\.1[0-9][0-9]\./)  --   
 !--#set var=prefix value=http://192.168.0.7/view/view.shtml; --
 !--#else --
 !--#set var=prefix value= --
 !--#endif --
 
 

Is that PHP code, or SSI?

-jesse


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] error compiling apache2 on cobalt libgdbm error

2002-09-24 Thread Jesse Cablek

electroteque mailto:[EMAIL PROTECTED] scribbled;
 
 libtool: link: warning: library `/usr/lib/libgdbm.la' was moved.
 libtool: link: warning: library `/usr/lib/libgdbm.la' was moved.
 make[1]: Leaving directory `/home/src/httpd-2.0.40'
 
 what could be the problem

It looks like a gdb issue.
It also looks like an Apache issue, and I don't remember subscribing to
the Apache list.

Maybe you'll want to go to http://httpd.apache.org or do a simple web
search?

-jesse


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Crypt() =or= md5()

2002-09-24 Thread Jesse Cablek

Anthony Ritter mailto:[EMAIL PROTECTED] scribbled;
 
 I get the following line when trying to use the crypt() function in
 php ..
 
 Fatal error: Call to undefined function: crypt() in c:\program
 files\apache group\apache\htdocs\handleform1.php on line 16
 
 

http://www.php.net/manual/en/function.crypt.php

First part of description:

crypt() will return an encrypted string using the standard Unix
DES-based encryption algorithm or alternative algorithms that may be
available on the system.

You need crypt on Windows, good luck. Most liekly crypt() is just
disabled for Win32 port.

 
 However, when I replace crypt() with md5() - the following script
 works fine.
 
[...]


MD5 is just a hash, not encryption. I'm guessing this one is built into
PHP.

Read yourself:
http://www.php.net/manual/en/function.md5.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] getting ip address of the user.

2002-09-24 Thread Jesse Cablek

Anil Garg mailto:[EMAIL PROTECTED] scribbled;
 
 Can i get the ip-address of the machines who accessed my website??
 Plz give the pointer that on what lines shall i start for doing so.
 

print $_SERVER['REMOTE_ADDR'];

-jesse


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] html input and php (newbie)

2002-09-24 Thread Jesse Cablek

Anna Gyor mailto:[EMAIL PROTECTED] scribbled;
 
 Hi,
 
 I just began to learn php and I have te following code. How can I get
 the input field value in the php script? Because my script doesn't
 work. $UserName is always an empty string.
 
 ?php
 if ($submit == click){
   echo Hello, $UserName;
 }
[...]


Assuming register_globals=off, use $_POST['UserName'] instead

-jesse



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Search system

2002-09-20 Thread Jesse Cablek

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] scribbled;
 
 Hi,
 
 Can someone point me to the documentation to make the same search
 system as php.net like www.php.net/lala that will search on the
 manual. 
 


http://www.php.net/urlhowto.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Re: Search system

2002-09-20 Thread Jesse Cablek

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] scribbled;
 
 I found it at http://www.php.net/urlhowto.php
 
 Thanks anyway.
 

Crap I just sent this to the list, I need a better email client that
sorts by thread and not just subject :/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] adding unix account via system command

2002-09-20 Thread Jesse Cablek

tim tom mailto:[EMAIL PROTECTED] scribbled;
 
 Dear Marek,
 Where do find that? I am no C programmer.
 
 --
 tim
 
 --- Marek Kilimajer [EMAIL PROTECTED] wrote:
 It's a shell script, and your shell drops root privileges. Use a
 shell that doesn't or use a C-wraper.
 

Make yourfile.c and put this in:

main(argc,argv)
int argc;
char **argv;
{
execv(/your/program/here, argv);
}


then cc -o yourfile yourfile.c

chown root.root yourfile
chmod 4755 yourfile

this will make it rwsr-xr-x

-jesse


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Why isn't there much info on apache2?

2002-09-20 Thread Jesse Cablek

 Adam Williams [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 e.ms.us...
 Yeah, apache 2.0 and php don't like each other.
 
 Adam
 
 On Fri, 20 Sep 2002, pierre.samson wrote:
 
 I'm building a new server and would like to use:
 php4
 apache 2.xxx
 mod_ssl
 MySQL
 mod_perl
 
 Is there any major hurdle?
 


mod_ssl is also incompatible with apache 2.x according to www.modssl.org

Well, unless they hide the 2.x compatible version.

Plus mod_perl as far as I know has completely changed, so if you have
old mod_perl scripts they gotta convert.
Start here:
http://perl.apache.org/docs/2.0/user/overview/overview.html

-jesse


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Why isn't there much info on apache2?

2002-09-20 Thread Jesse Cablek

Danny Shepherd mailto:[EMAIL PROTECTED] scribbled;
 
 Mod_ssl is part of the standard Apache2 distro now.
 


Ah, then it IS hidden ;)

-jesse


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Dynamic HTML Email

2002-09-20 Thread Jesse Cablek

Mike Dunlop mailto:[EMAIL PROTECTED] scribbled;
 
 Hello,
 
 I am wondering how it would be possible to generate an html response
 email via a PHP script. I have tried and all that has happened is the
 html source code appears in the message body as plain text. I believe
 this is happening because the email needs an additional header
 stating the email needs to be parsed as html not plain text (or both).
 


You can try sending Content-Type: text/html\r\n to see if that helps,
otehrwise the mail client may be set for text-only.

-jesse


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: PERMISSIONS

2002-09-12 Thread Jesse Cablek

Breno Cardoso Perucchi writes: 

 HI,
 I am trying to use a script php with the command:
 system(mkdir /home/hosting/test);
 but the PERMISSION IS DENIED and I am the root on my server. 
 
 How I change the user to root? 
 

If you /really/ want to use this, use a C wrapper that's setuid root.
Otherwise, give access to your httpd user to the mentioned directory. 

 -jesse 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: PHP

2002-09-12 Thread Jesse Cablek

llclmc writes: 

 I am trying to copy *.log files to a file called dir.data. Does anyone have a 
suggestion on the php code to use? I am using Redhat 7.0. Using ls *.log  dir.data 
doesn't work. 
 

Try: cat *.log  dir.data
ls will just give filenames, cat will do the inside of the files. 

 Also does anyone know how to insert a text on about the 4 or 5 line of a file using 
php? I can add text to the end of a file and to the beginning, but I'm not sure how 
to do it for specific lines. 
 

Sorry.. 

 -jesse 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: PHP EXEC();

2002-09-12 Thread Jesse Cablek

Doug Kozar writes: 

 Does anyone know why the following script will not rebuild one of my
 sendmail databases? 
 
 ?
 exec('/usr/sbin/makemap hash /etc/mail/virtusertable.db 
 /etc/mail/virtusertable');
 exit;
 ? 
 

Check your httpd logs. I'd be willing to bet it's a permissions issue as 
httpd's usually aren't run as root (unless you're crazy ;) 

 -jesse 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php