[PHP] PHP via DIAL-UP?

2004-12-10 Thread Police Trainee
Hello. I have a computer at my office running Apache that I use to run PHP scripts with using http://localhost. Is there anyway I can set up my computer to allow me to dial-in from home and use the webserver and my php applications? It is a win 98 system with tcp/ip. _

Re: [PHP] Include(remote HTML file) doesn't work since upgrade

2003-07-25 Thread Police Trainee
Warning: main(http://143.43.222.103/sga) [function.main]: failed to create stream: Invalid argument in /hsphere/local/home/domain/mydomain.com/includesite.php on line 2 Warning: main() [function.main]: Failed opening 'http://143.43.222.103/sga' for inclusion (include_path='.:/usr/local/lib/php') i

Re: [PHP] Include(remote HTML file) doesn't work since upgrade

2003-07-24 Thread Police Trainee
my phpinfo output does not have that particular init value "disable-url-fopen-wrapper". "allow_url_fopen" is enabled, safemode is off, and include_path is set to .:/usr/local/lib/php. further ideas? --- Curt Zirzow <[EMAIL PROTECTED]> wrote: > * Thus wrote Polic

[PHP] Include(remote HTML file) doesn't work since upgrade

2003-07-24 Thread Police Trainee
When the server upgraded to php 4.3.1 from 4.2.x, I was no longer able to include remote html files. allow_url_fopen is still enabled and no other settings have changed. Running Apache 1.3.27 on Linux. This is one line that I use to call the remote html file. It also has not changed since the up

Re: [PHP] how to access javascipt variables in PHP

2002-07-18 Thread Police Trainee
one method that i have found works for me (albeit not so pretty, neat, or concise) is to pass js variables through a url request. Ok follow me for a little if you will (it's bulky, but it works!) 1) user loads a page (e.g. your-domain.com/index.phtml) that page contains the javascript which deter

[PHP] Using PHP to execute system commands on Win 98 w/apache

2002-07-02 Thread Police Trainee
I have been trying to figure out how to execute commands on a win 98 system with php and apache. exec(), system(), and shell_exec() seem to work when i try to execute a command (such as "netstat -n" or "dir") because I can see the ms-dos window open on the system, run the command, and then close.

Re: [PHP] about file permissions + cuteftp

2002-06-23 Thread Police Trainee
Because when you use php to make a file/directory, the webserver makes the owner the webserver (usually "nobody"). Unless you log in as "nobody" (or whatever respective name), you will not be able to modify the permissions or delete the file/dir. However, when logging in and making a file with 777

[PHP] evaluate my mailing list attempt?

2002-04-15 Thread Police Trainee
Well, constructed from the help i received from some of you, this is the end result of my attempts to be able to send email to everyone listed in a file and including their names in the email. i would appreciate any feedback or suggestions for simplification, etc. i know several of you have

[PHP] evaluate my mailing list attempt?

2002-04-15 Thread Police Trainee
Well, constructed from the help i received from some of you, this is the end result of my attempts to be able to send email to everyone listed in a file and including their names in the email. i would appreciate any feedback or suggestions for simplification, etc. i know several of you have exp

[PHP] how to send an email to everone listed in a file

2002-04-09 Thread Police Trainee
Hi all. I really wish I could contribute here and help people out too but i don't know a fraction of the stuff that you gurus do. I try not to bug you all with too many questions and try to figure it out/learn on my own as much as possible. I am trying to figure out how i could send an email to

[PHP] "nullifying" php and html tags?

2002-02-18 Thread Police Trainee
Hello. I just finished creating a simple input form in which the contents of a textarea get written to a file which in turn gets read by a particular page. is there anyway to "disable" any html or php tags that the user might have typed in? it seems pretty dangerous to allow a user to enter any am

[PHP] arrays with form data?

2002-02-13 Thread Police Trainee
good evening gentlemen. I am attempting (with my oh so limited php writing abilities) to write a script that will take the second "part" of a form item's data and process it separately. To elaborate: When processing, I want the first part of the value (TextHere or OtherText) to be used for on

[PHP] How to resolve IP with PHP

2002-01-20 Thread Police Trainee
Hello. Can anyone tell me how to resolve an IP into a hostname? I've tried $REMOTE_HOST but all i get back from it is the ip or blank. Is there another environmental variable i need to use or do i have to do something more complicated? thanks so much! -mark __

Re: [PHP] how to check REMOTE_ADDR to see if it contains PART of an ip

2002-01-16 Thread Police Trainee
eturned true because PART of the string was true i guess... i dunno. anyone else got another function in mind? --- "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > strncmp() > > MANUAL! > > bvr. > > > On Wed, 16 Jan 2002 10:41:51 -0800 (PST),

[PHP] how to check REMOTE_ADDR to see if it contains PART of an ip

2002-01-16 Thread Police Trainee
hello. i am trying to write a simple php line that checks the REMOTE_ADDR variable and see if it comes from a specific netblock (to see if A.B.C is contained in a REMOTE_ADDR of A.B.C.D) But how do i do this? i know there is a php function that checks the string for the presence of another one...

[PHP] Can PHP access BIOS information?

2002-01-10 Thread Police Trainee
Hello. I was trying to determine if PHP has the ability to access BIOS information in a WIN environment. Specifically, I would like to have PHP access the cpu temperature as appears in the BIOS menu. I am running Apache 1.3.14. The board is a PC 100 Super 7 M598. Any help/thoughts/ideas greatly

[PHP] chmod and ps ef |grep httpd

2001-09-01 Thread Police Trainee
i've been told that the files must be owned by the same person that owns the httpd. using ps ef |grep httpd, it says "grep httpd USERNAME= ENV=/home/police/.bashrc HISTSIZE=" my unix login is police. so, what does this mean as far as trying to get my chmod command to work? thanx

Re: [PHP] chmod failed: Operation not permitted

2001-08-31 Thread Police Trainee
appening is that you don't have permissions to > chmod the file. Doesn't have > anything to do with your PHP configuration. > > Jason Bell > > - Original Message - > From: "Police Trainee" <[EMAIL PROTECTED]> > To: "PHP" <[EMAIL PRO

[PHP] chmod failed: Operation not permitted

2001-08-31 Thread Police Trainee
can anyone help? safe mode is set to "0", which i believe is "off". i put a chmod command in one of my scripts and got the following error on running it: Warning: chmod failed: Operation not permitted in /path-here/index.phtml on line 1 why won't chmod work? the chmod command i used is: the

[PHP] new mail() function

2001-01-31 Thread Police Trainee
I recently downloaded the ArGoSoft mail server that someone on this list once suggested when trying to use the mail command on a window's system running php. I have since installed it and it works fine, except for the fact that my isp blocks connections to port 25 that will relay email to other s