[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 upgrade: 

http://143.43.222.103/sga";);?> 

This line worked before, but no longer does. I have
tried adding a trailing slash, using single quotes, no
quotes, etc. Nothing apparently works. Please help!

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



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 Police Trainee
> ([EMAIL PROTECTED]):
> > 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 upgrade: 
> > 
> > http://143.43.222.103/sga";);?> 
> > 
> > This line worked before, but no longer does. I
> have
> > tried adding a trailing slash, using single
> quotes, no
> > quotes, etc. Nothing apparently works. Please
> help!
> 
> Was --disable-url-fopen-wrapper  compiled in php?
> 
> You can check your phpinfo() output in that.
> 
> Curt
> -- 
> "I used to think I was indecisive, but now I'm not
> so sure."
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



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') in
/hsphere/local/home/domain/mydomain.com/includesite.php
on
line 2


> What happens when you try to include it?  Is there
> an error?
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



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 permissions, php
and the webserver should be able to modify the file...


--- Adrian Murphy <[EMAIL PROTECTED]>
wrote:
> hi,
> how come when i make a dir thus
> 
> mkdir($basedir,0777);
> 
> cute can't then chmod or delete said dir.
> also vice versa : when i create a dir with cute
> with 777 access php can't do anything with it.
> it's very annoying.
> 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




[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. However, the
php web page fails to ever finish loading. 

When using the system() command, the output of the
command (at least *some* of the output) appears on the
web page, but fails to stop trying to load. With the
other two commands, no data appears on the web page
and the pages endlessly continue to try and load (wait
for a reply) even though the ms-dos window has come
and gone.

advise?

thank you.

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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




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 determines the
user's browser width and height. 
2) the page automatically refreshes immediately to
another page along with the variables (e.g.
/index2.phtml?h=xyz&w=abc).
3) on the new page, php can use the variables passed
via the URL as if it were posted with the GET method
from a form.

ok, i admit it's messy, not ideal, and lame, but it
works.

Since I don't know a fraction of what the php gurus
here know, the programming on my site may be messy,
bulky, and more complicated than it needs to be- but
at least it gets the job done : )

hope it helps




I can't think of a way to do it in the page itself...
Unfortunately 
(there
could be a way, I just can't think of it - frazzled
after a day of 
work),
but if you're using forms on your page, then set the
values of some 
hidden
form elements to the JS variables you want to use, and
pass them along. 
You
could have the page refresh itself to give you the
variables, too.
I'm sure there's a better way, though.
Good luck,
-- 
Chris Garaffa
#!/usr/local/lib/php
$contact_info["Name"]   = "Chris Garaffa";
$contact_info["Email"]  = "[EMAIL PROTECTED]";
$contact_info["Work"]   = "[EMAIL PROTECTED]";
$contact_info["cell"]   = "203.803.9066";


"Seppo Laukkanen" (from <[EMAIL PROTECTED]>)
wrote on 7/17/02 
3:06
PM:

> Can anybody help?
> > I have javascript code to find out browsers width
and height, but 
they
> are stored in javascript variables. How can I access
them from PHP? 
Or
> is there a method to do same in PHP straightly?
> > Thanks,
> Seppo
> > -- 



__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

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




[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 appreciated!

Thank you!
-mark

__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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... any help please?
the php site is only helpful to me if i know which
function i wish to look up by name. 

in a nutshell:
if ("150.200.250.x" is within
$REMOTE_ADDR){dowhatever}

thanks!

__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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

2002-01-16 Thread Police Trainee

nah, there's another one that you don't have to
speficy the length. i remember seeing it used once
when checking the user's browser to see if the string
"mozilla" was contained within the variable...

besides, i changed the string to check for by one
digit and it still returned 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), Police
> Trainee wrote:
> 
> >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... any help please?
> >the php site is only helpful to me if i know which
> >function i wish to look up by name. 
> >
> >in a nutshell:
> >if ("150.200.250.x" is within
> >$REMOTE_ADDR){dowhatever}
> >
> >thanks!
> >
> >__
> >Do You Yahoo!?
> >Send FREE video emails in Yahoo! Mail!
> >http://promo.yahoo.com/videomail/
> >
> >-- 
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >For additional commands, e-mail:
> [EMAIL PROTECTED]
> >To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 
> 
> 


__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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

__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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 one thing and
the second part (5 or 10) to be used to compute
something else. How would I write a script to
"separate" or pull only one of the parts of the value
out?

help greatly appreciated as i continue my learning
process of php.

-mark

__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




[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 amount of php programming at
their will.
something as simple as a function that strips all <'s
and >'s would work just as well i would imagine.

thanks!

-mark

__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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




[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 expressed concerns 
about overloading email servers, but since i have less

than 20 people on the list, i'm sure it can handle it.

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




[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
everyone listed in a file. the file contains a name
followed by a space followed by their email followed
by a carriage return. the number of entries in the
file changes. i would like to send the newletter to
everyone in the file and have their name put in the
email as well. (since i don't endorse spam I assure
you this isn't for such purpose).

>From what i'm able to figure out on my own, I think
i'm going to need something that reads the file into
some array which separates each entry based on the \n
and the space and some sort of loop (for, while, etc).
I have no idea how complex of a task this is but i
would appreciate any help or ideas! thanks! (note: i'm
on php4.0.4pl1)


-mark

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




[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 expressed concerns about
overloading email servers, but since i have less than
20 people on the list, i'm sure it can handle it.

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




[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 full error printout is:

Warning: chmod failed: Operation not permitted in
/path-here/index.phtml on line 1

Warning: fopen("../index.phtml","a") - Permission
denied in
/path here/index.phtml on line 1

Warning: Unable to find file identifier 0 in
/path here/index.phtml on line 2

Warning: chmod failed: Operation not permitted in
/path-here/index.phtml on line 2

I know the second error is because the file wasn't
made world-writable so it wasn't able to write to it,
i don't know what the third error is for

__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] chmod failed: Operation not permitted

2001-08-31 Thread Police Trainee

the files are all owned by me, that is, my unix login.
--- Jason Bell <[EMAIL PROTECTED]> wrote:
>  who owns the file to begin with? your account?  a
> web server typically runs
> as a low access account, such as "nobody" on Unix.
> So, what is probably
> happening 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 PROTECTED]>
> Sent: Friday, August 31, 2001 11:43 AM
> Subject: [PHP] chmod failed: Operation not permitted
> 
> 
> > 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:
>  > 0646);write data to file that has been made
> > world-writable here; chmod("../index.phtml",
> 0644);}?>
> >
> > the full error printout is:
> >
> > Warning: chmod failed: Operation not permitted in
> > /path-here/index.phtml on line 1
> >
> > Warning: fopen("../index.phtml","a") - Permission
> > denied in
> > /path here/index.phtml on line 1
> >
> > Warning: Unable to find file identifier 0 in
> > /path here/index.phtml on line 2
> >
> > Warning: chmod failed: Operation not permitted in
> > /path-here/index.phtml on line 2
> >
> > I know the second error is because the file wasn't
> > made world-writable so it wasn't able to write to
> it,
> > i don't know what the third error is for
> >
> > __
> > Do You Yahoo!?
> > Get email alerts & NEW webcam video instant
> messaging with Yahoo!
> Messenger
> > http://im.yahoo.com
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 


__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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

__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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.



__ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 

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



[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 servers. Tech support
says I can do it using any other port tho.

Is there a way to re-write the mail() function to do
this? Or does the port specs rest solely with the mail
server (which cannot be configured on which port to
send to)?

Help appreciated, suggestions welcome, better server
software links honored, and yes i did read the manual
on mail().

thank you

__
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]